You may encounter some 500 errors on script pages. This is actively being fixed, sorry for the inconvenience!
Universal Script 📌
13 Views
1 Executions

AntiFling

Universal Script 📌
q0saq
q0saqFirst script
5 days ago · Updated

Reviewed by QueueSpeedDemonPaid revieweron How review works

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

Simple anti fling script (no lag) THE SCRIPT IS ENABLED BY DEFAULT!!! open source no key tested on solara

View Raw
-- AntiFling Script 
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AntiFlingGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui

local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(0, 50, 0, 50)
toggleButton.Position = UDim2.new(0.5, -25, 0, -30)
toggleButton.Text = "+"
toggleButton.BackgroundColor3 = Color3.new(0, 0, 0)
toggleButton.TextColor3 = Color3.new(1, 1, 1)
toggleButton.Font = Enum.Font.SourceSansBold
toggleButton.TextSize = 24
toggleButton.Parent = screenGui

local uICorner = Instance.new("UICorner")
uICorner.CornerRadius = UDim.new(0.5, 0)
uICorner.Parent = toggleButton


local protectionEnabled = true

local function setCollision(character, enabled)
    if not character then return end
    for _, part in ipairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.CanCollide = enabled
        end
    end
end

local function updateProtection()
    for _, otherPlayer in ipairs(game.Players:GetPlayers()) do
        if otherPlayer ~= player and otherPlayer.Character then
            setCollision(otherPlayer.Character, not protectionEnabled)


Comments

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