Im trying to have an object follow the mouse when i press a guibutton button and have it stop following it when i press the same button how can you get it to stop following it
here is my code currently
1 mouse.TargetFilter = game.Workspace.HAND_TRACER
2
3 while wait() do
4 game.Workspace.HAND_TRACER.CFrame = CFrame.new(mouse.Hit.p)

2 comments
@phxntxsmic i couldnt get that too work where do i add that ins and do i need to delete certain stuff
What do you mean you couldn't get it to work?