The thing is, you're firing the server, but you're still trying to complete a local task. Destroying a button GUI is something that can be done in one local script, but you're trying to bring the server into this.
local Button = script.Parent
Button.MouseButton1Down:Connect(function()
Button:Destroy()
end)
This script is all you need to destroy a button, you don't need to use remote events or server scripts to access the server since the button is only on the player's screen.
However, I still have a challenge for you...
How about making it so when you press a button a part is created in the server? Pressing a button is something local, and creating a part is something on the server, so you see that you have to use a Remote Event for that.
Show me your script when you're done and if you need any help with it! :D
2 comments
Would something like welding be done in server side or local side?
want it to be on the server; take a guess