so im making a plugin that decorates walls. like cuts holes in walls and such. i dont need csg help or something but i have a piece of code that doesnt work and just instantly stops.
repeat task.wait() mouseobjectc.Position = mouse.Hit.Position until mouse.Button1Down
and it doesnt work. yes i have attempted to use variables but just didnt work. please help?
Edit: yes i know mouse.button1down isnt the right one but thats all i could think of.
mouse.TargetFilter=mouseobjectc local tab={mouse.Move:Connect(function() mouseobjectc.Position = mouse.Hit.Position end)} tab[2]=mouse.Button1Down:Connect(function() for _,v in ipairs(tab)do v:Disconnect() end end) --mouse.Button1Down:Wait()