Categories > Exploiting > Scripts >

(Tutorial) - How to teleport your avatar to a place in roblox lua

Posts: 14

Threads: 8

Joined: Jun, 2023

Reputation: 0

Posted

so if you want to make teleport hack in roblox i will show you code on how to do

 

local plr = game.Players.LocalPlayer.Character.humanoidrootpart -- this is the avatar

plr.CFrame = CFrame.new(place) -- for place you have to write the place id which is in dex explorer of cframe this ,cframe is position only

 

if you want to teleport avatar to part you have to do

plr.CFrame = game.Workspace.PartName.CFrame -- this will teleport your avatar position to part position so you will teleport

 

thank you guys for listening i hope you learning from this

  • 0

best roblox lua exploit scripter

Posts: 1391

Threads: 71

Joined: May, 2022

Reputation: 17

Replied

1. this is broken code

2. even if this was fixed this is not a good way of doing it

3. please use codeblocks

 

fixed code:

local plr = game.Players.LocalPlayer.Character or workspace:WaitForChild(game.Players.LocalPlayer.Name)
plr:SetPrimaryPartCFrame(CFrame.new(0,0,0)) -- this will work on games that have custom characters (or atleast should)

Comments

Aetheron 5 Reputation

Commented

I think this is a better way of doing it.

local Character = game.Players.LocalPlayer.Character or workspace:WaitForChild(game.Players.LocalPlayer.Name)
Character:PivotTo(CFrame.new(0,0,0)) -- To teleport your character

print(Character:GetPivot()) -- Prints your coordinates.

-- Pivots can be used for models as well meaning you can use this to teleport your Vehicle without having to set primary CFrame.
  • 0

  • 0

Did I mention I use arch btw?

WetWipes

Professional Idiot

vip

Posts: 146

Threads: 32

Joined: Sep, 2020

Reputation: 14

Replied

For anyone looking, here is a nice and simple one!

local TpS = game:GetService("TeleportService")
local Player = game:GetService("Players").LocalPlayer
local PlaceID = -- Put the place id here :)
TpS:Teleport(PlaceID, Player)
  • 0

Open to help anyone with anything, DM me on discord :)

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )