Earlier I asked a question about a script i was making and the person who answered helped me come up with this:
local Mouse = game.Players.LocalPlayer:GetMouse()
Mouse.MouseButton1Down:Connect(function()
print("IT WORKED")
end
It didn't print, could it be a problem with what type of script it is or where i put the script? or am i just off by a long shot with my script?

8 comments
It didnt work, does it have to be in a certain place because right now its in startercharacterscript.
I edited it, hope it works now :)
If it worked please accept this anwser
yeah it didnt work sorry
any arrors?
if no errors put it in starter player scripts
It worked! It was supposed to be a local script
when using game.player.localplaye rit has to be a local script