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?
Cause you're using the wrong MouseButton1Down! Make sure its a LocalScript and this will work :)
local Mouse = game.Players.LocalPlayer:GetMouse() Mouse.Button1Down:Connect(function() print("Click") end)