#Animation
1 messages · Page 1 of 1 (latest)
for dash key use UserInputService
for animation,
ani.Animationid = "---"
local aniamtor = --grab your humanoid's animator--
local track = animator:LoadAnimation(ani)
track:Play()```
correct me if im wrong
ehmm can you maybe explain in a bit more im new 😔
o
hmmm
lemme link a vid that teaches UIS in a bit but for now
basically
local ani = Instance.new(Animation) basically makes a new animation in your game
ani.Animationid = "aniamtion id here sets that aniamtions id-tel;ls it which animation its talking about
local animator fpor this you need to learn scoping. https://youtu.be/CJfDSEN-Q5Q?si=Xa3euMdym3TkslJB i recomend you watch brawldev's entire scripting begginer series. hes pretty good.
basically theres an object called "animator" in your characters humanoid object. you need to scope for that can set it as a variable. its different depending on where you place the script if im right.
local track = animator:LoadAnimation(ani) basically makes a new track by loading your aniamtion into the animator
track:Play() plays the animation you loaded
track:Destroy() use this if you need to destroy the animation and remake it eaach time, because when an animation finishes roblox descards it anyway.
use track:Stop()(stops the aniamtion) just before the animation ends and track:Timeposition()(changes the position of the animations timeline) to reset the animation and reuse it
also remember to add padding to your animation on the start and the end so you have time to pause and reuse aniamtions.
also use track:AdjustSpeed(x) to change the speed. if x= 0 then the animation is frozen. if x=1 then its noraml speed x=2 is double speed
DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P
MEMBERSHIPS 🎁
Get Access To My Scripts + More Perks By Becoming a Channel Member! 👇
https://www.youtube.com/@BrawlDevRBLX/join
BEGINNER ROBLOX SCRIPTING SERIES 🟢
https://youtube.com/playl...
@visual geyser
Tyyy