How would I be able to teleport a player with the press of a button?

OH I GOT IT !!!

local Camera = game.Workspace.CurrentCamera
local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	Camera.CameraType = "Custom"
	script.Parent.Parent.Visible = false
    plr.CameraMinZoomDistance = 0.5
	plr.CameraMaxZoomDistance = 0.5
	plr.Character:PivotTo(game.Workspace.russiaspawn.CFrame)
end)

You need to call the character not the player sorry for my bad !
Have a nice day !

1 Like

if it’s an empty imagebutton it probably won’t work

You are a legend. Thank you so much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.