local map = game.Workspace.MapMakingKitV1
function onPlayerEntered(newPlayer)
--How could I delete map here?
end
game.Players.ChildAdded:connect(onPlayerEntered)
COMMUNITY QUESTION
Can someone please help me with this script?
2 answers
Mg.
local map = game.Workspace.MapMakingKitV1
function OnPlayerEnter(newplayer)
wait()
map:Destroy() -- Destroys the map in one shot.
game.Players.PlayerAdded:connect(OnPlayerEnter)
end
That code still has an error
local map = game.Workspace.MapMakingKitV1
function OnPlayerEnter(newplayer)
wait()
map:Destroy() -- Destroys the map in one shot.
end
game.Players.PlayerAdded:connect(OnPlayerEnter)--outside function plox
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thanks! I was doin map.Destroy()! XD