local Part = game.Workspace.GohxiongArmyWarehouse:FindFirstChild("TP")
local Player = game.StarterPlayer.StarterCharacter:FindFirstChild("HumanoidRootPart")
Part.Touched:Connect(function()
Player.CFrame = CFrame.new(Vector3.new(0, 50, 0))
end)
This is to tp a player to 0,50,0 but it doesnt work. Please help.

1 comment
you cant access the player through starterplayer, you do it through the players service