How would I make the player teleport to a model?

image
Ok, Now WHAT? Something’s deleting everything in the folder…
image
WHAT???

Here the problem

local db = false
game.Players.LocalPlayer.BuildMode.Changed:Connect(function()
	if db == false then
		print ("Build mode entered!")
		db = true
		script.Parent.Sound:Play() -- play sound
		script.Parent.Sound.TimePosition = 0 --reset sound
		local Player = game.Players.LocalPlayer

		local Part = game.workspace:WaitForChild("Plots.Plot1.Mailbox.TPPart",10)
		

		Player.Character.HumanoidRootPart.CFrame = Part.CFrame * CFrame(0,3,0) 
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
		game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
		----------tween everything----------
		script.Parent.ControlBar:TweenPosition(UDim2.new(0.91, 0, 0.089, 0), "In", "Quint", 1.4, true)
		script.Parent.Main:TweenPosition(UDim2.new(0.024, 0, 0.728, 0), "In", "Quint", 1.4, true)
		script.Parent.Exit:TweenPosition(UDim2.new(0.059, 0, 0.078, 0), "In", "Quint", 1.4, true)
		script.Parent.FlexPoints:TweenPosition(UDim2.new(0.024, 0, 0.03, 0), "In", "Quint", 1.4, true)
		----------increase sound----------
		for i = 1,500 do
			script.Parent.Parent.WelcomeScreen.MainScreen.Play.BG.Volume -= 0.01
			wait(0.0001)
		end
		for i = 1,10 do
			script.Parent.Sound.Volume += 0.1
			wait (0.5)
		end
	elseif db == true then
		print ("Build mode left!")
		db = false

		----------tween everything----------
		script.Parent.ControlBar:TweenPosition(UDim2.new(1, 0, 0.089, 0), "Out", "Quint", 1.4, true)
		script.Parent.Main:TweenPosition(UDim2.new(0.024, 0, 1, 0), "Out", "Quint", 1.4, true)
		script.Parent.Exit:TweenPosition(UDim2.new(-0.2, 0, 0.078, 0), "Out", "Quint", 1.4, true)
		script.Parent.FlexPoints:TweenPosition(UDim2.new(-0.3, 0, 0.03, 0), "Out", "Quint", 1.4, true)
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 18
		game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
		----------increase sound----------
		for i = 1,100 do
			script.Parent.Sound.Volume -= 0.01
			wait (0.01)
		end		
		script.Parent.Sound:Stop() --stop sound
		script.Parent.Sound.TimePosition = 0  --reset sound
		wait (3)
		for i = 1,500 do
			script.Parent.Parent.WelcomeScreen.MainScreen.Play.BG.Volume += 0.01
			wait (0.001)
		end
	end
end)

Try this!

I dont need the tp anymore, but thanksd!