local InterEnab = game.ReplicatedStorage.IntermissionEnabled local Time = script.Parent.Value.Value if InterEnab.Value == true then script.Parent.Parent.Enabled = true while Time ~= 0 do Time = Time -1 script.Parent.Text = Time wait(1) end if Time == 0 then local Players = game.Players:GetPlayers() local Maps = game.ReplicatedStorage.Maps:GetChildren() local ChosenMap = Maps[math.random(1,#Maps)] local Parts = ChosenMap:GetChildren() Parts.Position = Vector3.new(-306.5, 500.662, -76) ChosenMap:Clone().Parent = game.Workspace game.Workspace.Lobby:Clone().Parent = game.ReplicatedStorage game.Workspace.Lobby:Destroy() Players.Character.HumanoidRootPart.Position = Vector3.new(-306.5, 546.662, -76) end end
Replace your script with the one below:
local InterEnab = game.ReplicatedStorage.IntermissionEnabled local Time = script.Parent.Value.Value if InterEnab.Value == true then script.Parent.Parent.Enabled = true while Time ~= 0 do Time = Time -1 script.Parent.Text = Time wait(1) end if Time == 0 then local Players = game.Players:GetPlayers() local Maps = game.ReplicatedStorage.Maps:GetChildren() local ChosenMap = Maps[math.random(1,#Maps)] local Parts = ChosenMap:GetChildren() Parts.Position = Vector3.new(-306.5, 500.662, -76) ChosenMap:Clone().Parent = game.Workspace game.Workspace.Lobby:Clone().Parent = game.ReplicatedStorage game.Workspace.Lobby:Destroy() for _, plr in pairs(Players) do --loops through all player instances plr.Character.HumanoidRootPart.Position = Vector3.new(-306.5, 546.662, -76) --Repositions each player's HumanoidRootPart individually end end end