Plugin Methods
Hello, so I am making a plugin that does something when you click. So what I want to happen is:
Player clicks plugin button
Player clicks in workspace wherever they want
Function executes and spawns block at that location
Function resets so it can be used again
But, when I click on the button, and then click in Workspace, nothing happens. If you could help me it would be greatly appreciated.
Note: spawnBlock is already declared, as well as mouse, and button.
1 | button.Click:connect( function () |
2 | mouse.Button 1 Up:connect( function () |
3 | spawnBlock(mouse.Origin) |