to explain this better, how do i make the script teleport someone that hasn't been teleported yet but doesn't teleport the person that it already teleported?
local plrs = workspace:GetChildren() local Part = workspace:WaitForChild("BStage") wait(1) Players = game.Players:GetPlayers() Plr = Players[math.random(#Players)] Plr.Character:SetPrimaryPartCFrame(Part.CFrame)
Theres a lot of way to implement this, and its really depend on how you want it to work exactly
e.g Player dies > Teleports him back to the round > don't teleport people inside the round
or Player joined the game > Teleports him somewhere or maybe you just want to teleport him once etc etc
one way you can do this is to add a bool somewhere when the player joined
game.Players.PlayerAdded:connect(function(ply) boolVal = Instance.new("BoolValue") boolVal.Name = "Teleported" boolVal.Parent = ply end)
and then change the value to "True" and teleports him when his character spawned
game.Players.PlayerAdded:connect(function(ply) boolVal = Instance.new("BoolValue") boolVal.Name = "Teleported" boolVal.Parent = ply ply.CharacterAdded:connect(function(char) if ply.boolVal.Value == false then char.HumanoidRootPart:CFrame = YourTeleportLocationHere ply.boolVal.Value = true end end) end)
This should teleport someone when they spawned, once
if this is not what you want. then you should give specific details on how you want your script to work