
12.1k Views
1.9k Executions
Anti teleport script
Universal Script 📌
sampangmatthew10 followers
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo 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
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()









client btw
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
it makes ur root part glitch a lot, only fly fixing it