Problem: Animation Will not Load.
Script Bellow
Error: Unable to cast value to Object
mouse = Player:GetMouse()
local SprintAnim = 389349781
local WalkAnim = 389302210
run = game:GetService("RunService")
print(2)
function onKeyDown(key)
local Key = key:lower()
if key == "r" and mode == 1 then
print(1)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 * 1.5
sound:Play()
Humanoid:LoadAnimation(SprintAnim)
gold.Value = true
mode = 2
elseif key == "r" and mode == 2 then
print(3)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
sound:Play()
Humanoid:LoadAnimation(WalkAnim)
gold.Value = true
mode = 1
end
end
