
10.1k Views
1.7k Executions
trexinator no collision
Universal Script 📌
rolledrick581Published 10
1 year 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
* works for tsb/lbg * never gets ragdolled while it's toggled on
Updates
Script edited: Update script
Script edited: Update script
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local CHECK_INTERVAL = 0.1
local DIST_THRESHOLD = 20
local stopped = false
local connection
local function getHRP(character)
return character and character:FindFirstChild("HumanoidRootPart")
end
local function startScript()
if connection then connection:Disconnect() end
stopped = false
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
localHRP = getHRP(character)
connection = RunService.Heartbeat:Connect(function(dt)
if stopped or not localHRP then return end
localPos = localHRP.Position
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer and player.Character then
local otherHRP = getHRP(player.Character)
if otherHRP then
local dist = (otherHRP.Position - localPos).Magnitude
local shouldCollide = dist >= DIST_THRESHOLD
for _, part in ipairs(player.Character:GetDescendants()) do
if part:IsA("BasePart") and part.CanCollide ~= shouldCollide then
part.CanCollide = shouldCollide
end
end
end
end
end
end)
end








If a player dies and comes back to life, does the script still work or does it have to be re-executed?
after I looked at the script it seems to still work if it's alive again