So I am wondering how to make a map changing script so when there have been 200 KOs it changes the map. Please help me
COMMUNITY QUESTION
How do you make a map changing script?
1 answer
for k,v in pairs(game.Players:GetPlayers()) do --loops through the player
if v:FindFirstChild("leaderstats") and v.leaderstats:FindFirstChild("KOs") then --the stuff like KOs are in the leaderstats which is a stringvalue
if v.leaderstats.KOs.Value == 200 or v.leaderstats.KOs.Value > 199 then --Checks if their KOs are higher than 199
workspace.MapName:remove() --removes the map that is now on the round remember you have to change the mapname to the map's name
game.Lighting.Maps.MapName:Clone().Parent = workspace --Well here I didn't make the map change but it's a default map but still you didn't say a random map chooser so my job is done give me points
end
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
