I have made the round script and it work, but the only problem is the teleporter. When I test the game the print and stuff works I guess then it stops when the command tries to activate the teleporter. Why???? I scripted the teleporter script well. Heres the round script.
--variables Map1 = game.ServerStorage.Maps:FindFirstChild("Map1") Notif = script.Notification MapName = script:FindFirstChild("CurrentMap") TpToggle = script.Parent.TeleportService.EnabledA ReTpToggle = script.Parent.ReTeleportService.EnabledB mapholder = Instance.new("Model", game.Workspace) mapholder.Name = "CurrentMap" while true do wait(5) Notif.Value = "Please Wait" wait(10)--60 MapName.Value = "Parkour1" Notif.Value = "Current Map : " ..MapName.Value wait(6) Notif.Value = "Loading Map ..." wait(5) Map1:clone().Parent = mapholder wait(3) TpToggle.Value = true Notif.Value = "Teleporting Players ..." wait(7) TpToggle.Value = false repeat Notif.Value = "Game in Progress" wait(1) until script.Parent.WinnerFinder.WinnerFound == true if script.Parent.WinnerFinder.WinnerFound then ReTpToggle.Value = true Notif.Value = "Winner :" ..script.Parent.WinnerFinder.WinnerName.Value wait(7) ReTpToggle.Value = false local MapDel1 = mapholder:FindFirstChild("Map1") MapDel1:Destroy() end end
Teleport Service script [Teleport script]
--variables Spawn1o = 0 Spawn2o = 0 Spawn3o = 0 Spawn4o = 0 Spawn5o = 0 Spawn6o = 0 enabled = true Reciver = game.Workspace.Spawn.Spawn1 TpEnabled = false script.EnabledA.Changed:donnect(function() if script.EnabledA.Value == true then TpEnabled = true else TpEnabled = false end end) --Tp game.Workspace.TpSender.Touched:connect(function(part) local hum = part.Parent:FindFirstChild("Humanoid") if hum~=nil then if TpEnabled == true then if enabled == true then enabled = false local t = part.Parent:FindFirstChild("Torso") local t2 = Reciver t.CFrame = CFrame.new(t2.Position.x, t2.Position.y+4, t2.Position.z) Spawn1o = Spawn1o +1 wait(1) enabled = true if Spawn1o == 4 then Reciver = game.Workspace.Spawn.Spawn2 if Spawn2o == 4 then Reciver = game.Workspace.Spawn.Spawn3 if Spawn3o == 4 then Reciver = game.Workspace.Spawn.Spawn4 if Spawn4o == 4 then Reciver = game.Workspace.Spawn.Spawn5 if Spawn5o == 4 then Reciver = game.Workspace.Spawn.Spawn6 end end end end end end end end end)
Re Teleport Script :
--variables Spawn1o = 0 Spawn2o = 0 Spawn3o = 0 Spawn4o = 0 Spawn5o = 0 Spawn6o = 0 enabled = true Reciver = game.Workspace.ReSpawn.Spawn1 TpEnabled = false script.EnabledB.Changed:donnect(function() if script.EnabledB.Value == true then TpEnabled = true else TpEnabled = false end end) --Tp game.Workspace.ReTp.Touched:connect(function(part) local hum = part.Parent:FindFirstChild("Humanoid") if hum~=nil then if TpEnabled == true then if enabled == true then enabled = false local t = part.Parent:FindFirstChild("Torso") local t2 = Reciver t.CFrame = CFrame.new(t2.Position.x, t2.Position.y+4, t2.Position.z) Spawn1o = Spawn1o +1 wait(1) enabled = true if Spawn1o == 4 then Reciver = game.Workspace.ReSpawn.Spawn2 if Spawn2o == 4 then Reciver = game.Workspace.ReSpawn.Spawn3 if Spawn3o == 4 then Reciver = game.Workspace.ReSpawn.Spawn4 if Spawn4o == 4 then Reciver = game.Workspace.ReSpawn.Spawn5 if Spawn5o == 4 then Reciver = game.Workspace.ReSpawn.Spawn6 end end end end end end end end end)
Note : The activate Toggle is inside the script. [For the teleport script] TeleportService Toggle Value = EnabledA ReTeleportService Toggle Value = EnabledB