UIS = game:GetService("UserInputService")
plr = game.Players.LocalPlayer
ctr = plr.Character or plr.CharacterAdded:Wait()
hum = ctr:WaitForChild('Humanoid')
an = Instance.new("Animation")
an.AnimationId = "https://www.roblox.com/asset?id=".."2695066337"--id
antrack = hum:LoadAnimation(an)
db = true
strength = plr:WaitForChild("Stats"):WaitForChild("Strength")
UIS.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.T and db == true then
db = false
local speed = hum.WalkSpeed
strength.Value = strength.Value + 10
antrack:Play()
wait(2)
speed = nil
db = true
end
end)
I've made this script and I've tried anchoring humanoidrootpart and the player can still move. I made the walkspeed and jump power 0 but the animation just stopped working or if you don't get it the animation only partly works by just rotating a slightly bit then going back to normal
My goal: Make the player do the animation and stop moving or jumping when clicked t.

2 comments
I have given an answer.
Srsly?