This script teleports you to the part that is named 1,2,3,4,5,6,7 etc.. It teleports you depending on your PlayerStat Value Named "Stage"
Not sure at all where the problem is!
script.Parent.Touched:connect(function()
local player = game.Players.LocalPlayer
local Stat = player:WaitForChild("PlayerStats")
local spot = game.Workspace:FindFirstChild(Stat.Stage.Value)
player.Character.Torso.CFrame = spot.CFrame + Vector3.new(0,3,0)
end)

1 comment
I knew it had something to with local but i did not know how to fix thank you!