Guys, I am so sorry... this is such a simple question but I do not know. I think it has something to do with loops. I am not sure. I am using ROBLOX's RayCasting Script. I don't need a super long answer or anything, just something to point me in the right direction. Thank you! -TheFierceWaffle
Well you can just do Button1Down etc like so
01 | local player = game.Players.LocalPlayer |
02 | local mouse = player:GetMouse() |
03 |
04 | local mouseDown = false |
05 | local canPlay = true |
06 |
07 | mouse.Button 1 Down:Connect( function () |
08 | mouseDown = true |
09 | end ) |
10 |
11 | mouse.Button 1 Up:Connect( function () |
12 | mouseDown = false |
13 | end ) |
14 |
15 | while true do |
Hope it helped :D If it helped please mark it as answered