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
6 comments
Insert a BoolValue into that player called "Teleported" and set to true once they did get teleported.
im guessing i put the value in replicated storage?
i put the bool in replicated storage, now how do i script it?
Just put the BoolValue in the player and set it to false, then make something like if (player.BoolValue = false) then.... teleport, once the player has teleported set the value to true.
yes if player.BoolValue.Value then ... else -- teleport player end
where do i find the player? :/ ik this is frustrating but, i'm confused ...