Universal Script 📌
12.1k Views
1.9k Executions

Anti teleport script

Universal Script 📌
sampangmatthew
sampangmatthew10 followers
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

Fixes getting teleported when in a restricted place with noclip Useful for getting through restricted places that teleport you back

View Raw
local players = game:GetService('Players')
local lplr = players.LocalPlayer
local lastCF, stop, heartbeatConnection
local function start()
    heartbeatConnection = game:GetService('RunService').Heartbeat:Connect(function()
        if stop then
            return 
        end 
        lastCF = lplr.Character:FindFirstChildOfClass('Humanoid').RootPart.CFrame
    end)
    lplr.Character:FindFirstChildOfClass('Humanoid').RootPart:GetPropertyChangedSignal('CFrame'):Connect(function()
        stop = true
        lplr.Character:FindFirstChildOfClass('Humanoid').RootPart.CFrame = lastCF
        game:GetService('RunService').Heartbeat:Wait()
        stop = false
    end)    
    lplr.Character:FindFirstChildOfClass('Humanoid').Died:Connect(function()
        heartbeatConnection:Disconnect()
    end)
end

lplr.CharacterAdded:Connect(function(character)
    repeat 
        game:GetService('RunService').Heartbeat:Wait() 
    until character:FindFirstChildOfClass('Humanoid')
    repeat 
        game:GetService('RunService').Heartbeat:Wait() 
    until character:FindFirstChildOfClass('Humanoid').RootPart
    start()
end)

lplr.CharacterRemoving:Connect(function()
    heartbeatConnection:Disconnect()
end)

start()


Comments

3
Log in to join the conversation. Login
Bipolar_Scripts's profile picture
Bipolar_Scripts1 month ago

client btw

1
gadgeting's profile picture
gadgeting5 months ago

make an option to turn it on and off, because once I use it i cant turn it off and now the game can't teleport me anywhere anymore

1
I6996I's profile picture
I6996I10 months ago

it makes ur root part glitch a lot, only fly fixing it

1

Tags

More universal scripts

See all
Script hub
166.7k
1.5M
Bumped 5 minutes ago
Key System

Script hub

#14 this week

Verified script badgeAirflow HUB

Script hub
1.6M
2.0M
Bumped 13 minutes ago
Key System
Universal Script 📌
5.7k
16.3k
Bumped 2 hours ago
Key System
Script hub
3.2M
397.1k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeOverflow #1 *OP*

Script hub
433.8k
832.6k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #5

Verified script badgeRonix Hub | 71 Supported Games + OP!

Script hub
4.7k
17.6k
Bumped 6 hours ago