PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Mouse.Button1Down

Mouse.Button1Down

Oct 01 2018, 1:51 AM PST

This script, when put in a LocalScript will call Button1Down whenever the left mouse button is pressed:

local Player = game.Players.LocalPlayer --get the local player
local Mouse = Player:GetMouse() --get the mouse

Mouse.Button1Down:Connect(function()
	print("Button1Down")
end)