#stop player input while animation plays
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
ty
When the animation plays, you run this code in a script, then put Humanoid.WalkSpeed back to initial speed once the animation stopped
Or unanchor the root
what if i want to make the character take a step during the animation
Does the character move in the animation?
Then do Humanoid:MoveTo(position)
alr ty
Ah then it is something else
Wait
Here
local PlayerModule = require(player:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
-- wait until anim is done
Controls:Enable()```
In Local Scipt
Script*
i have my animation playing in a regular script
** You are now Level 3! **
is this gonna be an issue
im js rlly lost
i had the ai assistant make a script
to play the anim when i click
white
Oh..
Its more complicated
You have to make a local script that disables or enables the controller
Like this one
Firing a remote event or something
Yeah, you could just do a remoteevent with :FireClient(player), or just move the contents of the server script over to the local one and disable the controls in there
idk what this all means 😭
do you have any idea what your doing
no
okay
i have the idea for the game
so stop doing this
and i have a few animations
and look up a tutorial
they are doing smth completely different