function Clicked()
script.Parent.Parent.Parent = nil
end
script.Parent.MouseButton1Click:connect(Clicked)
This doesn't work because, when I join the game, it's already gone.
function Clicked()
script.Parent.Parent.Parent = nil
end
script.Parent.MouseButton1Click:connect(Clicked)
This doesn't work because, when I join the game, it's already gone.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Put an if statement in to see if the object is there before it sets it to nil.