Hi I Testing Make Push-Up Tool Animation Not Rotating My Character Help Please.
Error:
Code:
local plr = game:GetService("Players").LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hmnd = char:WaitForChild("Humanoid")
local IdlePushup = hmnd:LoadAnimation(script.Parent:WaitForChild("IdlePushup"))
local tool = script.Parent
tool.Equipped:Connect(function()
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()
Controls:Disable()
IdlePushup:Play()
end)
tool.Unequipped:Connect(function()
local Controls = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()
Controls:Enable()
IdlePushup:Stop()
end)
AnimationID:
rbxassetid://9068090438