Universal Script 📌
5.2k Views
224 Executions

re rejoin

Universal Script 📌
hierman
hiermanFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Rejoin & teleport back to where you are

Updates

  1. Script edited: Create script

View Raw
local Player = game.Players.LocalPlayer
local Character = Player.Character or false
local Humanoid = Character and Character:FindFirstChildOfClass("Humanoid") or false
local RootPart = Humanoid and Humanoid.RootPart or false
local PrimaryPart = Character and Character.PrimaryPart or false
local BasePart = Character and Character:FindFirstChildWhichIsA("BasePart", true) or false
local Camera = workspace:FindFirstChildWhichIsA("Camera") or false

local OldPos

if RootPart then
    OldPos = RootPart.CFrame
elseif PrimaryPart then
    OldPos = PrimaryPart.CFrame
elseif BasePart then
    OldPos = BasePart.CFrame
elseif Camera then
    OldPos = Camera.Focus
end

queue_on_teleport(string.format([[
    if not game:IsLoaded() then
        game["Loaded"]:wait()
    end

    local Players = game:GetService("Players")
    
    local Player = Players.LocalPlayer
    local Character = Player.Character or Player.CharacterAppearanceLoaded:wait()
    local RootPart = Character and Character:WaitForChild("HumanoidRootPart")
    local CurrentPos = RootPart and RootPart.CFrame

    if not CurrentPos then return end

    repeat
        RootPart.CFrame = CFrame.new(%s)
        RootPart.Velocity = Vector3.new()
        task.wait()
    until RootPart.CFrame ~= CurrentPos
]], tostring(OldPos)))


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
3.2M
753.1k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script 📌
400
1.1k
Bumped 4 hours ago
Key System
Universal Script 📌
7.1k
141.6k
Bumped 5 hours ago
Script hub
45.7k
114.4k
Bumped 7 hours ago
Key System
Script hub
3.5M
448.8k
Bumped 7 hours ago
Key System

Script hub

Hall of Fame #4

Verified script badgeOverflow #1 *OP*

Universal Script 📌
14.9k
71.8k
Bumped 8 hours ago