The animation should stop when the player jumps but it wont.
Did i use JumpRequest wrong?
script.Parent.Triggered:Connect(function(plr)
script.Parent.Enabled = false
local humanoid = plr.Character:WaitForChild("Humanoid")
local rootPart = plr.Character:WaitForChild("HumanoidRootPart")
rootPart.CFrame = script.Parent.Parent.CFrame
local anim = humanoid:LoadAnimation(script.Parent:WaitForChild("Animation"))
anim:Play()
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
local userInputService = game:GetService("UserInputService")
userInputService.JumpRequest:Connect(function()
anim:Stop()
humanoid.WalkSpeed = 16
humanoid.JumpPower = 50
end)
end)