Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G.AntiFling = true
- local Players = game:GetService("Players")
- local RunService = game:GetService("RunService")
- -- Function to disable collisions for all parts of a character
- local function disableCollisions(character)
- if character then
- for _, descendant in ipairs(character:GetDescendants()) do
- if descendant:IsA("BasePart") and descendant.CanCollide then
- descendant.CanCollide = false
- end
- end
- end
- end
- -- Main loop to continuously check for players
- while _G.AntiFling do
- RunService.Stepped:Wait()
- for _, player in ipairs(Players:GetPlayers()) do
- if player ~= Players.LocalPlayer then
- -- Safely handle potential errors with pcall
- pcall(function()
- disableCollisions(player.Character)
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement