
Key Required

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local function CollisionDisabler(enable)
pcall(function()
local MapFolder = workspace:WaitForChild("map")
local GkBarriar = MapFolder:FindFirstChild("gkbarriar")
local AGoal = MapFolder:FindFirstChild("Agoal")
local BGoal = MapFolder:FindFirstChild("Bgoal")
if GkBarriar then
local ABarriar = GkBarriar:FindFirstChild("A")
local BBarriar = GkBarriar:FindFirstChild("B")
if ABarriar then
ABarriar.CanCollide = not enable
ABarriar.Transparency = enable and 0.8 or 0
end
if BBarriar then
BBarriar.CanCollide = not enable
BBarriar.Transparency = enable and 0.8 or 0
end
end
if AGoal then
AGoal.CanCollide = not enable
AGoal.Transparency = enable and 0.5 or 0
end
if BGoal then
BGoal.CanCollide = not enable
BGoal.Transparency = enable and 0.5 or 0
end
end)
end
local collisionConnection
local function AutoRefreshCollision()
if collisionConnection then
collisionConnection:Disconnect()
end
collisionConnection = workspace.ChildAdded:Connect(function(child)
if child.Name == "map" then
task.wait(1)
CollisionDisabler(_G.DISABLE_COLLISION)
end
end)
end
local function CreateControlGUI()
local gui = Instance.new("ScreenGui")
gui.Parent = LocalPlayer:WaitForChild("PlayerGui")
local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 200, 0, 40)
button.Position = UDim2.new(0.5, -100, 0, 10)
button.Text = "DISABLE COLLISION: OFF"
button.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
button.TextColor3 = Color3.new(1, 1, 1)
button.MouseButton1Click:Connect(function()
_G.DISABLE_COLLISION = not _G.DISABLE_COLLISION
button.Text = "DISABLE COLLISION: " .. (_G.DISABLE_COLLISION and "ON" or "OFF")
CollisionDisabler(_G.DISABLE_COLLISION)
AutoRefreshCollision()
end)
button.Parent = gui
end
CreateControlGUI()
AutoRefreshCollision()
CollisionDisabler(_G.DISABLE_COLLISION or false)
What does this do?
bro sigma