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
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
Жыл бұрын
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
Жыл бұрын
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
Жыл бұрын
thx
@theonlyWrck
Жыл бұрын
Oooookooiiiiiio
@YourLocalWeirdPerson36
Жыл бұрын
@@theonlyWrck oOoOooOoOooOoOooOoOoOooO
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
10 ай бұрын
agreed
@user-zs5li4fe7i
2 ай бұрын
69
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
3 ай бұрын
Ty but it still isn’t working
@NOTJACKDOODS447
Ай бұрын
did you type the script in right?
My brother has been wanting something like this forever. Thank you for a tutorial that is simple and makes sense 👍
Tip for beginners it looks better if the block is invisible
@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
Ай бұрын
@@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)
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?
how to make the easiest basic jumpscare:
@ELVR_YouTube
19 күн бұрын
not me remaking the batim "boarded up ink machine room" jumpscare
Amazing video!
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
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
11 ай бұрын
Best of luck!
OMG DUDE YOU ARE SUCH A LIFE SAVER THANK YOU SO MUCH THIS WILL MAKE MY GAME 10X BETTER!!!!!!!!!
love this tysm
@rustysillyband
Жыл бұрын
I'm glad you like it
Cool! i just want to know how to make the player do the animation
@kaksonito
4 ай бұрын
Mee to
@kaksonito
4 ай бұрын
I don t know
thank you so much i actually needed this!!
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.
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
7 ай бұрын
THANKS GOD I WAS STRUGGIYLNG TO FIND THE ID
@zoutweliaiscool
5 ай бұрын
actual lifesaver my man
This is going to be extremely useful.. Thanks!
@rustysillyband
Жыл бұрын
Glad you think so!
I found this vid months ago and forgot to comment and like, thank you SO MUCH. Underrated fr!
@rustysillyband
9 ай бұрын
Appreciate it!
I don’t even make roblox things I just okay it but it’s fun to watch these types of videos!
love u man helped me so much
Bro hit the quickest backflip I've ever seen on roblox
THANK YOU!!
WOW THANKS DUDE!
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
TY SOOOO MUCH!
Thanks For making Everything so simple
Thank you!
YO TYSM IT GOT STRAIGHT TO THE POINT IT WORKS
Its good for get quest and touch some invis block and the npc will do animation wave + chat
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
Жыл бұрын
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
Жыл бұрын
@@rustysillyband Thank you so much!
this is why i sub to you
This Helped me make a chasing scene thanks!!
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
exactly what i need, wonderful video
When i look up animation tutorials it gets me lost in the whole scripting part, this short helps me alot
Legend.
thank dude! also the funny part is that if i play the figure animation it was float in the air
Thanks so much
Tysm bro
Bro this guy is underrated
@rustysillyband
Жыл бұрын
Thanks!
bro you are an angel thanks man 🙏 I'm making a doors game and I needed this to do seek
@ballheadbillings8288
Жыл бұрын
can you give me link to your game when you have the chance i wanna try it out pls?
@ballheadbillings8288
Жыл бұрын
:)
@RyderModsOFICIAL
Жыл бұрын
@@ballheadbillings8288 I couldn't make the game I deleted the game my computer Pifu
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
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
4 ай бұрын
it still didnt work
@RishikBMGO
Ай бұрын
@@ayceni same
thx so much i was searching for this for 3 weeks edit: HOW I GOT THAT MANY LIKES
. . . GRACIAAAAAS
thx
my guy a legend
Thanks alot
ty man you realy are the gaot
thanks bro im late but this is fast easy and awesome!
ty bro now i can make a chase scene now :D
thanks u so much i've been finding dizz
I saw you in Roblox Studio that was named “NPCTesting”, were you using it for this one?
@rustysillyband
Жыл бұрын
Yep lol!
Thanks for the video.
Its useful thanks!
IT'S A MIRACLE, I FINALLY FOUND IT, THANKS
So simple wonderful
FINALLY ALRIGHT HERES A SUB
THANK YOU BRO!!!!
thank you for explaining how the script actually works!
UR THE BEST
YOU GOOD :)
LIFE SAVER ;)
This is actually great you're a damn legend! Could you also do one on a script to animate a custom mesh?
@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!
omg bro tysm
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
11 ай бұрын
Thanks for helping!
@thetortoisemaster5555
11 ай бұрын
OMG THANKS
@_ItzK
8 ай бұрын
does this work at moon??@@rustysillyband
@abc123hehe_
3 ай бұрын
@@rustysillyband Does this work with models?
Tysm!!!
THANKS ALOT!!! YOU ARE THE BEST SCRIPTER!!!
tysm bro!
THX YOU SO MUCH
aint nobody gonna talk about how fast the backflip was like fr tho
how to make this like a hitting ground with a effects?
THANK YOU SO MMMUCH MUCH, MUCH. THIS GONNA BE THE BEST IDEA FOR MONKEY BARS
THANKS FOR THE VIDEO NOW I MADE A GAME !!!!!🎉🎉🎉
@rustysillyband
Жыл бұрын
Congrats!!! I'd love to play it!
@NLIOMEX
10 ай бұрын
Thanks would you mind make a tutorial on my game :)
ty
can you make it the same but it only able to get on only once? and on a player
how do i play the animation while its anchored?
How do you make a full on moon animator 2 cutscene play when the part is touched?
Bro u are soooo underrated!!!
I LOVE YOU
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?
sorry but if i place the dummy somewhere else it starts the animation from there but still thanks
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
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
5 ай бұрын
@@rustysillyband legend! thank you so much 💪
How do you make it play once, so that if you step on the part again, it doesn’t play
@rustysillyband
Жыл бұрын
You can either destroy the part right after that, or add a debounce to it.
@memercleaner
10 ай бұрын
How would I add debounce?
@RxshyyFn
7 ай бұрын
set debounce to true@@memercleaner
@RxshyyFn
7 ай бұрын
i think so@@memercleaner
how do i animate 2 rigs at the sime time?
It worked
I am banging my head on the wall wondering why it worked for everyone else
@sonnyscozzafava233
7 ай бұрын
BRO FR HOW
@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
Ай бұрын
@Osstick ok I'll put 1 in one and copy on into the other
@Cheeser409
Ай бұрын
@@Osstickyou fucking lied
@Osstick
Ай бұрын
@@Cheeser409 yup
AMAZING you earned a sub also how do I make it loop forever??
@PAPYRUSTHEROYALGUARDSMAN
Жыл бұрын
just make the animation be a loop
@PAPYRUSTHEROYALGUARDSMAN
Жыл бұрын
its a buttion
@PAPYRUSTHEROYALGUARDSMAN
Жыл бұрын
its in the animation editor
How to paly 2 or more animations at the same time by touching the part?
@rustysillyband
Жыл бұрын
Great Idea!
the thing is i want to make a animation loop while in game
@rustysillyband
11 ай бұрын
You can either use animTrack.Looped = true, or you can just set your animation to looping while you're creating it.
I cant even animate a dummy walking 😭 this sh** to hard
yeah
I used R6 so when touch it it gives me a tool
can you please do same thing but when its about the moon animator.
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_
4 ай бұрын
Gonna be honest, in addition to this comment, you would be a very helpful development partner for the project im working on
@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_
4 ай бұрын
@@rustysillyband would i have to put the animation in the localplayerscripts?
00:05
Pls make a version where you can switch if its loopable or not
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
Me: I ain’t got no time for this
How do you make the animation stop where it ends and not have it reset when its over?