I am facing terrible problem. Firstly, it will not allow me to rest in peace. Well, Robloxians, I am attempting to make my mouse click using the scripts.
I am not experienced, but have a lot of potential if you will support me. Thank you for whoever does.
player = game:GetService("Players"):FindFirstChild("LocalPlayer"):GetMouse() -- for the mouse script
Any ideas how I can make this into a click script. Thanks!
Make sure to put this into a local script in StarterGui or StarterCharacterScripts:
player = game.Players.LocalPlayer:GetMouse() --Gets the localplayer's mouse. player.Button1Down:Connect(function() --Whenever the left mouse button gets pressed. --code here. end)
Hope this helped!