#how do i make a teleport button that teleports me
4 messages · Page 1 of 1 (latest)
Change the CFrame of the humanoidrootpart when the button is clickd
local button = script.Parent
button.MouseButton1Click:Connect(function()
local plr = game.Players.LocalPlayer
local char = plr.Character
local hrp = char.HumanoidRootPart
hrp.CFrame = CFrame.new(100, 100, 100) -- change your position
end)
I think it's better to let them try and figure out how exactly to do it instead of just giving them a script, you don't learn much from copy and pasting