local map = game.Workspace.MapMakingKitV1 function onPlayerEntered(newPlayer) --How could I delete map here? end game.Players.ChildAdded:connect(onPlayerEntered)
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