handsUp Script not working

i have a localscript in startergui, the script is as follows;

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Animation = Player.Character:WaitForChild("Humanoid"):LoadAnimation(script.Animation)

Mouse.KeyDown:Connect(function(Key)
	if Key == "h" then
		Animation:Play()
	end
end)

Mouse.KeyUp:Connect(function(Key)
	if Key == "h" then
		Animation:Stop()
	end
end)

for some reason it works in studio and not the game…

1 Like

Fixed, the animations were uploaded to my profile instead of the group the game is listed under.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.