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!

2 comments
it looks like stage isn't defined anywhere, so the script can't find stage.Value if there's no stage
there is, its just a part of the script but i need to fix line 11-12, it does not tp me when i join but does it when i reset myself then respawn.