of     1   

Greendolph
#50807026Monday, July 18, 2011 2:55 PM GMT

I have several maps in an IntValue named 'MapService' int he Lighting. Players still spawn at locations in the non active maps. How can I fix this?
Greendolph
#50809407Monday, July 18, 2011 3:42 PM GMT

Nvm, I fixed with this script: function add(player) if player:findFirstChild("Humanoid") ~= nil then local g = game.Workspace.Map:GetChildren() local spawntable = {} for i=1, #g do if g[i].Name == "SpawnLocation" then if g[i].TeamColor == game.Players[player.Name].TeamColor then spawntable[#spawntable + 1 = g[i] dist = (g[i].Position - player.Torso.Position).magnitude end end end if dist > 20 then player.Torso.CFrame = CFrame.new(spawntable[math.random(1, #spawntable)].Position + Vector3.new(0, 7, 0)) end end dist = nil spawntable = nil g = nil end game.Workspace.ChildAdded:connect(add) =D Bug is pwned

    of     1