Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why won't the mouse function connect?

Asked by 4 years ago
local Player = script.Parent.Parent
wait(.5)
local Character = Player.Character
local Humanoid = Character.Humanoid
local Mouse = Player:GetMouse()

Mouse.Button1Down:Connect(function()
 Humanoid:LoadAnimation(script.Parent.Animation):Play()
end)


1 answer

Log in to vote
1
Answered by
iuclds 720 Moderation Voter
4 years ago
Edited 4 years ago
local Player = game.Players.LocalPlayer

Correct me if I'm wrong. You've provided no imagery of where your script is and what type of script it is.

Ad

Answer this question