player.CharacterAdded:Connect(function(character) local Humanoid = character:WaitForChild("Humanoid") local Torso = character:WaitForChild("HumanoidRootPart") wait() if Torso and Humanoid then if Stage.Value ~= 0 then local StagePart = workspace.Stages:FindFirstChild(Stage.Value) Torso.CFrame = CFrame.new(StagePart.Position + Vector3.new(0,1,0)) end end end)
There's no error message in the output and it does not teleport me
Thanks for helping!
Looking at your reply, I'm pretty sure the reason it doesn't teleport you when you join is because you only use CharacterAdded and not both CharacterAdded and PlayerAdded
Try this:
function teleport(char) local Humanoid = char:WaitForChild("Humanoid") local Torso = char:WaitForChild("HumanoidRootPart") wait() if Torso and Humanoid then if Stage.Value ~= 0 then local StagePart = workspace.Stages:FindFirstChild(Stage.Value) Torso.CFrame = CFrame.new(StagePart.Position + Vector3.new(0,1,0)) end end end function PlayerEntered(newPlayer) newPlayer.CharacterAdded:Connect(teleport) end game.Players.PlayerAdded:Connect(PlayerEntered)