Categories > Exploiting > Scripts >
(Tutorial) - How to teleport your avatar to a place in roblox lua
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
Cancel
Post
best roblox lua exploit scripter
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)
Cancel
Post
Did I mention I use arch btw?
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)
Cancel
Post
Open to help anyone with anything, DM me on discord :)
Users viewing this thread:
( Members: 0, Guests: 2, Total: 2 )
Comments
Aetheron 5 Reputation
Commented
I think this is a better way of doing it.
0