Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- player.Chatted:Connect(function(msg)
- if msg == '/re' then
- wait(0.35)
- local char = player.Character
- local root = char.HumanoidRootPart
- local vector = {
- x = root.Position.X,
- y = root.Position.Y,
- z = root.Position.Z,
- }
- local json = game:GetService("HttpService"):JSONEncode(vector)
- writefile('cframe.json', json)
- game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId)
- syn.queue_on_teleport([[
- game:GetService("ReplicatedFirst"):RemoveDefaultLoadingScreen();
- local json = readfile("cframe.json")
- local tbl = game:GetService("HttpService"):JSONDecode(json)
- repeat wait() until game.Players.LocalPlayer
- repeat wait() until game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.new(tbl.x, tbl.y, tbl.z)
- loadstring(game:HttpGet("https://pastebin.com/raw/CBD6Mfdn"))()
- ]])
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement