Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Baseplate should dissapear when i touch it. It doesn't. Why?

Asked by 6 years ago
Edited by Goulstem 6 years ago
function poop
    game.Workspace.Baseplate:Remove()

end

game.Workspace.Baseplate.Touched:Connect(poop)
Edited ~ Format your code properly!

1 answer

Log in to vote
0
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
6 years ago

You forgot the parenthesis whilst defining your function.

function poop()
    workspace.Baseplate:Destroy() --'Remove' is deprecated
end

workspace.Baseplate.Touched:Connect(poop)
Ad

Answer this question