How to MAKE Animations Play When A Part Gets Touched.. (Roblox Studio)

Тәжірибелік нұсқаулар және стиль

🛠Thanks so much for watching, hope you guys have a great day! Subscribe 😎🛠
Animation Tutorial: • The ULTIMATE Beginner'...
😎Subscribe: www.youtube.com/@rustysillyba...
💬Discord: / discord
🌴Roblox Group: www.roblox.com/groups/1729640...
👑Rusty Merch: www.roblox.com/groups/1729640...
⌚Timed Chapters:
📝Tags:
#roblox #robloxstudio #lua #robloxstudiotutorial #tutorial #howto #robloxanimation
❓What is Roblox Studio?
🔎Roblox Studio lets you create anything and release with one click to smartphones, tablets, desktops, consoles, and virtual reality devices.
❓Who am I?
🔎I am a Roblox Studio, and Blender, Tutorial KZreadr that you should Subscribe to :)

Пікірлер: 524

  • @rustysillyband
    @rustysillyband Жыл бұрын

    local anim = script.Animation local humanoid = script.Parent.Humanoid local animTrack = humanoid:LoadAnimation(anim) local debounce = nil game.Workspace.Part.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == nil then debounce = true animTrack:Play() wait(1) -- Change this to however much time you want to wait until the animation can play again. debounce = nil end end)

  • @madnessWG

    @madnessWG

    Жыл бұрын

    OH HOLY RUSTY I HAVE BEEN SEARCHING FOR 3 DAYS IN A ROW FINDING THIS BELOVED SCRIPT TO MAKE A ROBLOX GAME! THANK YOU GENTLEMEN

  • @madnessWG

    @madnessWG

    Жыл бұрын

    Oh holy rusty of the god please make a r6 version. To make my zombie game! So I can finally rest of holy God named rusty please read this comment and heart it so your presence Is known!

  • @MarxismOfficial

    @MarxismOfficial

    Жыл бұрын

    thx

  • @theonlyWrck

    @theonlyWrck

    Жыл бұрын

    Oooookooiiiiiio

  • @YourLocalWeirdPerson36

    @YourLocalWeirdPerson36

    Жыл бұрын

    @@theonlyWrck oOoOooOoOooOoOooOoOoOooO

  • @battlestevieonyt
    @battlestevieonyt Жыл бұрын

    Dude, thank you so much. I couldn't find out how to do this, but you made it easy. You are an absolute life saver thank you so much. you earned a subscriber

  • @1LightZ7

    @1LightZ7

    10 ай бұрын

    agreed

  • @user-zs5li4fe7i

    @user-zs5li4fe7i

    2 ай бұрын

    69

  • @NOTJACKDOODS447
    @NOTJACKDOODS447 Жыл бұрын

    Alright Guys If You Need To Do A Custom Avatar then heres The Steps: add the animationcontroller into a humanoid you insert make ur animation insert a script the add an animation inside it copy this script: local anim = script.Animation local humanoid = script.Parent.Humanoid local animTrack = humanoid:LoadAnimation(anim) local debounce = nil game.Workspace.Part.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player and debounce == nil then debounce = true animTrack:Play() wait(1) -- Change this to however much time you want to wait until the animation can play again. debounce = nil end end) make sure to change the part to your parts name And Test it!

  • @weekendwiththekids5787

    @weekendwiththekids5787

    3 ай бұрын

    Ty but it still isn’t working

  • @NOTJACKDOODS447

    @NOTJACKDOODS447

    Ай бұрын

    did you type the script in right?

  • @zazmraz
    @zazmraz Жыл бұрын

    My brother has been wanting something like this forever. Thank you for a tutorial that is simple and makes sense 👍

  • @Tackiejuice
    @Tackiejuice Жыл бұрын

    Tip for beginners it looks better if the block is invisible

  • @0tt869

    @0tt869

    10 ай бұрын

    then the player wouldn't even know where the part goes, or unless you're making that part some kind of zone or something. plus this is an opinion

  • @Flixy207

    @Flixy207

    Ай бұрын

    @@0tt869 i think you dont know how it works you can check a button thats called cancollide and if its disabled it wouldnt work but if its invisible it still works im a scripter builder and a animator (i just tried it out myself it works)

  • @Atlas_TheAdventurerOG
    @Atlas_TheAdventurerOG6 күн бұрын

    That's Amazing, but do you know how to make a NPC peek like Opila Bird in garten of banban so when you look at the npc it plays a slide animation and unloads?

  • @spongeroffical
    @spongeroffical9 ай бұрын

    how to make the easiest basic jumpscare:

  • @ELVR_YouTube

    @ELVR_YouTube

    19 күн бұрын

    not me remaking the batim "boarded up ink machine room" jumpscare

  • @melxfurss
    @melxfurss11 күн бұрын

    Amazing video!

  • @Yuri-not_real
    @Yuri-not_real Жыл бұрын

    Thank you I'm gonna start learning from you dude I really wanna get good at animation and start my own channel hopefully I learn fast

  • @BorelessRBLX
    @BorelessRBLX11 ай бұрын

    tysm, I'm finally working on the dream of becoming a roblox developer. I'm collaborating with a dev and working on the game and thats exactly what i needed. You just earned a subscriber. You are very helpful and i respect you for that.

  • @rustysillyband

    @rustysillyband

    11 ай бұрын

    Best of luck!

  • @Soos43v3r
    @Soos43v3r Жыл бұрын

    OMG DUDE YOU ARE SUCH A LIFE SAVER THANK YOU SO MUCH THIS WILL MAKE MY GAME 10X BETTER!!!!!!!!!

  • @EllisPierce015
    @EllisPierce015 Жыл бұрын

    love this tysm

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    I'm glad you like it

  • @deaththor
    @deaththor Жыл бұрын

    Cool! i just want to know how to make the player do the animation

  • @kaksonito

    @kaksonito

    4 ай бұрын

    Mee to

  • @kaksonito

    @kaksonito

    4 ай бұрын

    I don t know

  • @YinTB
    @YinTB Жыл бұрын

    thank you so much i actually needed this!!

  • @sk3lly23
    @sk3lly23Ай бұрын

    This is really useful if you're making easter eggs ngl, like if you touch the block a character who was watching you runs away and hides but you cant get through there. Kind of like the ewok village in battle front.

  • @classicsonicsim
    @classicsonicsim11 ай бұрын

    For people who dont know how to find the id, when you make the id and publish it, dont press cancel and look at the thing below the name of the animation and youll see the id and you can write it on a paper or copy and paste

  • @faelogamer6348

    @faelogamer6348

    7 ай бұрын

    THANKS GOD I WAS STRUGGIYLNG TO FIND THE ID

  • @zoutweliaiscool

    @zoutweliaiscool

    5 ай бұрын

    actual lifesaver my man

  • @1EAS1World
    @1EAS1World Жыл бұрын

    This is going to be extremely useful.. Thanks!

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    Glad you think so!

  • @tiamckay1010
    @tiamckay101010 ай бұрын

    I found this vid months ago and forgot to comment and like, thank you SO MUCH. Underrated fr!

  • @rustysillyband

    @rustysillyband

    9 ай бұрын

    Appreciate it!

  • @Polygonfella1662
    @Polygonfella166211 ай бұрын

    I don’t even make roblox things I just okay it but it’s fun to watch these types of videos!

  • @LEGOmotionclips
    @LEGOmotionclips Жыл бұрын

    love u man helped me so much

  • @user-sh2gh9ei3j
    @user-sh2gh9ei3j10 ай бұрын

    Bro hit the quickest backflip I've ever seen on roblox

  • @Drkdmrhn
    @Drkdmrhn Жыл бұрын

    THANK YOU!!

  • @grundlyman
    @grundlyman10 ай бұрын

    WOW THANKS DUDE!

  • @blueboy1069
    @blueboy1069 Жыл бұрын

    Thank you very much now I'm the Find game, I say I say thank you I appreciate it and that's why I subscribe and give you a like you deserve it :D

  • @thefloppagaming6936
    @thefloppagaming6936 Жыл бұрын

    TY SOOOO MUCH!

  • @Icypenguin931
    @Icypenguin9312 ай бұрын

    Thanks For making Everything so simple

  • @star6818
    @star68185 күн бұрын

    Thank you!

  • @Duncan_TDA
    @Duncan_TDA8 ай бұрын

    YO TYSM IT GOT STRAIGHT TO THE POINT IT WORKS

  • @LagOfficials25
    @LagOfficials2510 ай бұрын

    Its good for get quest and touch some invis block and the npc will do animation wave + chat

  • @StarLeaderX
    @StarLeaderX Жыл бұрын

    I am so glad I subscribed to you because now I get recommended awesome videos like this. Also, I'm a game dev so I should know this, but how do I enable the outline thing when hovering over something in studio?

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    You should be able to go over to the top left where it says "File" and open that up. Once you're there, open up "Studio Settings.." Then, scroll down to where it says "Tools" and then turn on "Show Hover Over". If that doesn't do the trick, then scroll down and try turning up the "Hover Line Thickness" Hope this helps!

  • @StarLeaderX

    @StarLeaderX

    Жыл бұрын

    @@rustysillyband Thank you so much!

  • @Gagulk_Fanta_Studio
    @Gagulk_Fanta_Studio9 ай бұрын

    this is why i sub to you

  • @TheRealSKEFT
    @TheRealSKEFTАй бұрын

    This Helped me make a chasing scene thanks!!

  • @tinog-ri9li
    @tinog-ri9li7 ай бұрын

    YOU DONT KNOW HOW MUCH I NEEDED TO MAKE A ROOMS GAME WITH THIS LIKE IVE BENN SECHING BUT FINALLY I FOUND ONE THANK YOU SO MUCH FOR THIS YOU GAINED A SUB

  • @CeEne493
    @CeEne4937 ай бұрын

    exactly what i need, wonderful video

  • @cardboardgunman
    @cardboardgunman9 ай бұрын

    When i look up animation tutorials it gets me lost in the whole scripting part, this short helps me alot

  • @kiritokun1480
    @kiritokun148011 ай бұрын

    Legend.

  • @mb8w27
    @mb8w2710 ай бұрын

    thank dude! also the funny part is that if i play the figure animation it was float in the air

  • @Piggyandblue
    @Piggyandblue Жыл бұрын

    Thanks so much

  • @GamingForYT_
    @GamingForYT_11 ай бұрын

    Tysm bro

  • @SeaStar_YT
    @SeaStar_YT Жыл бұрын

    Bro this guy is underrated

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    Thanks!

  • @RyderModsOFICIAL
    @RyderModsOFICIAL Жыл бұрын

    bro you are an angel thanks man 🙏 I'm making a doors game and I needed this to do seek

  • @ballheadbillings8288

    @ballheadbillings8288

    Жыл бұрын

    can you give me link to your game when you have the chance i wanna try it out pls?

  • @ballheadbillings8288

    @ballheadbillings8288

    Жыл бұрын

    :)

  • @RyderModsOFICIAL

    @RyderModsOFICIAL

    Жыл бұрын

    @@ballheadbillings8288 I couldn't make the game I deleted the game my computer Pifu

  • @Riv3rz
    @Riv3rz10 ай бұрын

    This is really cool and it helps so much! but when it comes to Roblox Studio it helps a lot to keep it 6:3 resolution

  • @ladybugbee
    @ladybugbee9 ай бұрын

    Tip to everyone if it's not working: Make sure you rename the "Part" in it to the part you want to use to trigger the animation I named mine "CutscenePart" "game.Workspace.Part.Touched:Connect(function(hit)"

  • @ayceni

    @ayceni

    4 ай бұрын

    it still didnt work

  • @RishikBMGO

    @RishikBMGO

    Ай бұрын

    @@ayceni same

  • @Insnane_editz
    @Insnane_editz Жыл бұрын

    thx so much i was searching for this for 3 weeks edit: HOW I GOT THAT MANY LIKES

  • @Diego_RTA
    @Diego_RTA26 күн бұрын

    . . . GRACIAAAAAS

  • @MarxismOfficial
    @MarxismOfficial Жыл бұрын

    thx

  • @user-xn7bu9rk9j
    @user-xn7bu9rk9j11 ай бұрын

    my guy a legend

  • @seambrowne686
    @seambrowne686 Жыл бұрын

    Thanks alot

  • @elite_scientist_tv_man
    @elite_scientist_tv_manАй бұрын

    ty man you realy are the gaot

  • @exquisitenoob1392
    @exquisitenoob1392 Жыл бұрын

    thanks bro im late but this is fast easy and awesome!

  • @verycoolgamerboy
    @verycoolgamerboy9 ай бұрын

    ty bro now i can make a chase scene now :D

  • @Khalilmatias
    @Khalilmatias9 күн бұрын

    thanks u so much i've been finding dizz

  • @Train2822
    @Train2822 Жыл бұрын

    I saw you in Roblox Studio that was named “NPCTesting”, were you using it for this one?

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    Yep lol!

  • @LeapInno
    @LeapInno6 ай бұрын

    Thanks for the video.

  • @Best0Edited
    @Best0Edited5 ай бұрын

    Its useful thanks!

  • @mn_moonster
    @mn_moonster4 ай бұрын

    IT'S A MIRACLE, I FINALLY FOUND IT, THANKS

  • @Tackiejuice
    @Tackiejuice Жыл бұрын

    So simple wonderful

  • @wilsonplayz1000
    @wilsonplayz10004 ай бұрын

    FINALLY ALRIGHT HERES A SUB

  • @erinmccullough5417
    @erinmccullough54176 ай бұрын

    THANK YOU BRO!!!!

  • @rustyblade7977
    @rustyblade797711 ай бұрын

    thank you for explaining how the script actually works!

  • @scornchip
    @scornchip3 ай бұрын

    UR THE BEST

  • @Hussein-be1qm
    @Hussein-be1qm Жыл бұрын

    YOU GOOD :)

  • @Simplyeditz01
    @Simplyeditz017 ай бұрын

    LIFE SAVER ;)

  • @user-zj1qk4mv2e
    @user-zj1qk4mv2e2 ай бұрын

    This is actually great you're a damn legend! Could you also do one on a script to animate a custom mesh?

  • @rustysillyband

    @rustysillyband

    2 ай бұрын

    Hi there! Thank you for watching, hope you enjoyed it! For animating custom meshes, you will need to first rig the character for it. You can follow along this tutorial here and you are good to go: kzread.info/dash/bejne/ZH-Y3MmpeKynZtY.html Have an amazing day!

  • @Kakimaki03-jd1gx
    @Kakimaki03-jd1gx10 ай бұрын

    omg bro tysm

  • @AgentGilded
    @AgentGilded11 ай бұрын

    If anyones wondering how to make the person disapear after it's over, you need to place another part in the same spot as the animations player, and put this script in the part: script.Parent.Touched:Connect(function() wait(6) game.Workspace.MODEL_NAME_HERE:Destroy() end) Make sure to change the number after 'wait' to however long it takes to play the animation. i was gonna ask how to do this, but i figured it out myself lol

  • @rustysillyband

    @rustysillyband

    11 ай бұрын

    Thanks for helping!

  • @thetortoisemaster5555

    @thetortoisemaster5555

    11 ай бұрын

    OMG THANKS

  • @_ItzK

    @_ItzK

    8 ай бұрын

    does this work at moon??@@rustysillyband

  • @abc123hehe_

    @abc123hehe_

    3 ай бұрын

    @@rustysillyband Does this work with models?

  • @Lupastakinng
    @Lupastakinng6 ай бұрын

    Tysm!!!

  • @Dageometry
    @Dageometry10 ай бұрын

    THANKS ALOT!!! YOU ARE THE BEST SCRIPTER!!!

  • @UltraInstinctZone
    @UltraInstinctZone7 ай бұрын

    tysm bro!

  • @dawidekchoinski
    @dawidekchoinski8 ай бұрын

    THX YOU SO MUCH

  • @Brqv3
    @Brqv311 ай бұрын

    aint nobody gonna talk about how fast the backflip was like fr tho

  • @maciejstemplewski4883
    @maciejstemplewski48836 ай бұрын

    how to make this like a hitting ground with a effects?

  • @ChimpTony
    @ChimpTony8 ай бұрын

    THANK YOU SO MMMUCH MUCH, MUCH. THIS GONNA BE THE BEST IDEA FOR MONKEY BARS

  • @NLIOMEX
    @NLIOMEX Жыл бұрын

    THANKS FOR THE VIDEO NOW I MADE A GAME !!!!!🎉🎉🎉

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    Congrats!!! I'd love to play it!

  • @NLIOMEX

    @NLIOMEX

    10 ай бұрын

    Thanks would you mind make a tutorial on my game :)

  • @BobaFor_Live
    @BobaFor_Live9 ай бұрын

    ty

  • @whiterun9650
    @whiterun9650 Жыл бұрын

    can you make it the same but it only able to get on only once? and on a player

  • @Jam_Editz420
    @Jam_Editz4205 күн бұрын

    how do i play the animation while its anchored?

  • @Arct1y
    @Arct1y11 ай бұрын

    How do you make a full on moon animator 2 cutscene play when the part is touched?

  • @vukovdjuro8122
    @vukovdjuro8122 Жыл бұрын

    Bro u are soooo underrated!!!

  • @kingyzz
    @kingyzz7 ай бұрын

    I LOVE YOU

  • @unladybug
    @unladybug Жыл бұрын

    ok so follow along: my player is dancing. when it touches the part, the character is r6 and it plays the animation in r6. when a r15 player touches it, it plays a different animation in r15. do u know how to do that?

  • @sadaangaming
    @sadaangaming Жыл бұрын

    sorry but if i place the dummy somewhere else it starts the animation from there but still thanks

  • @epicmoment39843
    @epicmoment398435 ай бұрын

    this is so useful, thanks! im trying to make a one time jumpscare (and theres already a comment that explains how to destroy the rig after it plays once) but could you give pointers on how to make the rig be the avatar of the person who steps on the part? tryna do a little spooky peek around the corner type scare.

  • @rustysillyband

    @rustysillyband

    5 ай бұрын

    Hi! For that, you would need to apply the Humanoid Description of the player to the rig. Here's what I like to do for it: local humanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(player.UserId) player.Character.Humanoid:ApplyDescription(humanoidDescription)

  • @epicmoment39843

    @epicmoment39843

    5 ай бұрын

    @@rustysillyband legend! thank you so much 💪

  • @BonkyBoko9
    @BonkyBoko9 Жыл бұрын

    How do you make it play once, so that if you step on the part again, it doesn’t play

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    You can either destroy the part right after that, or add a debounce to it.

  • @memercleaner

    @memercleaner

    10 ай бұрын

    How would I add debounce?

  • @RxshyyFn

    @RxshyyFn

    7 ай бұрын

    set debounce to true@@memercleaner

  • @RxshyyFn

    @RxshyyFn

    7 ай бұрын

    i think so@@memercleaner

  • @nebilimkanaladistexd9577
    @nebilimkanaladistexd95779 ай бұрын

    how do i animate 2 rigs at the sime time?

  • @Gameramen
    @Gameramen28 күн бұрын

    It worked

  • @DlFFQ
    @DlFFQ7 ай бұрын

    I am banging my head on the wall wondering why it worked for everyone else

  • @sonnyscozzafava233

    @sonnyscozzafava233

    7 ай бұрын

    BRO FR HOW

  • @Osstick

    @Osstick

    3 ай бұрын

    you needa put the script in both the script INSIDE humanoid and INSIDE the part and make sure "humanoid" inside your rig has "animationcontroller"

  • @Cheeser409

    @Cheeser409

    Ай бұрын

    ​@Osstick ok I'll put 1 in one and copy on into the other

  • @Cheeser409

    @Cheeser409

    Ай бұрын

    ​@@Osstickyou fucking lied

  • @Osstick

    @Osstick

    Ай бұрын

    @@Cheeser409 yup

  • @KYPSTRYOG
    @KYPSTRYOG Жыл бұрын

    AMAZING you earned a sub also how do I make it loop forever??

  • @PAPYRUSTHEROYALGUARDSMAN

    @PAPYRUSTHEROYALGUARDSMAN

    Жыл бұрын

    just make the animation be a loop

  • @PAPYRUSTHEROYALGUARDSMAN

    @PAPYRUSTHEROYALGUARDSMAN

    Жыл бұрын

    its a buttion

  • @PAPYRUSTHEROYALGUARDSMAN

    @PAPYRUSTHEROYALGUARDSMAN

    Жыл бұрын

    its in the animation editor

  • @thefloppagaming6936
    @thefloppagaming6936 Жыл бұрын

    How to paly 2 or more animations at the same time by touching the part?

  • @rustysillyband

    @rustysillyband

    Жыл бұрын

    Great Idea!

  • @koalajemugamer4550
    @koalajemugamer455011 ай бұрын

    the thing is i want to make a animation loop while in game

  • @rustysillyband

    @rustysillyband

    11 ай бұрын

    You can either use animTrack.Looped = true, or you can just set your animation to looping while you're creating it.

  • @TheNoobKing12
    @TheNoobKing122 күн бұрын

    I cant even animate a dummy walking 😭 this sh** to hard

  • @cupheadtation
    @cupheadtation Жыл бұрын

    yeah

  • @roanroblox8962
    @roanroblox8962 Жыл бұрын

    I used R6 so when touch it it gives me a tool

  • @jonteswag3786
    @jonteswag37865 ай бұрын

    can you please do same thing but when its about the moon animator.

  • @sankmental09_
    @sankmental09_4 ай бұрын

    If this can be used on the player itself i can make special explosion physics where if your too close to an explosion you will be knocked off your feet

  • @sankmental09_

    @sankmental09_

    4 ай бұрын

    Gonna be honest, in addition to this comment, you would be a very helpful development partner for the project im working on

  • @rustysillyband

    @rustysillyband

    4 ай бұрын

    Hi there! You can make a large hitbox for the player and make it so it will play the knockback animation on whoever gets hit by it.

  • @sankmental09_

    @sankmental09_

    4 ай бұрын

    @@rustysillyband would i have to put the animation in the localplayerscripts?

  • @Trabcelona55
    @Trabcelona5510 ай бұрын

    00:05

  • @LagVRR
    @LagVRR29 күн бұрын

    Pls make a version where you can switch if its loopable or not

  • @yaboibuggles8188
    @yaboibuggles81888 ай бұрын

    I did this twice, but only the one I ended up doing first actually works, no matter whatever I did with the second script nothing worked is there any way to fix that

  • @Snowx_x616
    @Snowx_x6167 ай бұрын

    Me: I ain’t got no time for this

  • @TheBigPlantum
    @TheBigPlantumАй бұрын

    How do you make the animation stop where it ends and not have it reset when its over?

Келесі