This is the script in a part that's supposed to be the teleport you touch. The CFrame is basically the position - put a part where u want the person to be teleported, lift it up a bit so they don't get stuck in the floor and check the part's position, then put the 3 numbers in the CFrame.new()
03 | local plr = game.Players:GetPlayerFromCharacter(hit.Parent) |
07 | if plr.leaderstats.Coins.Value > = 1 then |
09 | hit.Parent.HumanoidRootPart.CFrame = CFrame.new(- 365.785 , 137.623 , - 269.178 ) |
15 | script.Parent.Touched:Connect(ontouch) |