Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do you use Button1down for weapons?

Im going to script a weapon but I dont know how to use Button1down Any Help / Examples???

1 answer

✓ Accepted answer

Like this, in a LocalScript;

plr = game.Players.LocalPlayer
mouse = plr:GetMouse()

function firedonleftbuttondown()
	print'The left mouse button was pressed!'
end

mouse.Button1Down:connect(firedonleftbuttondown)

1 comment

0

THANK YOU THANK YOU THANK YOU THANK YOU!!!!!

This discussion is preserved as it was. New answers, comments, and votes are closed.