www.roblox-scripter.com

Сontent continues after AD

Script – Impossible Squid game

Thank you for using our website
Your script:

				
					-- bypass stupid anticheat
local old
local winners = workspace:FindFirstChild('Winners')
old = hookmetamethod(game, '__newindex', function(...)
    local self, k = ...
    if k == 'Sit' then
        return wait(9e9)
    elseif typeof(self) == 'Instance' and self.Parent == winners and k == 'CFrame' then
        return wait(9e9)
    end
    return old(...)
end)

local time = 16
local rs = game:GetService('RunService')
local plrs = game:GetService('Players')
local lp = plrs.LocalPlayer

local pdata = {}
local function onPlayer(plr)
    local function onCharacter(char)
        local hum = char:WaitForChild('Humanoid')
        local hrp = char:WaitForChild('HumanoidRootPart')
        pdata[plr] = {
            char,
            hum,
            hrp,
            0,
            0,
            0,
            false
        }
    end
    if plr.Character then
        coroutine.wrap(onCharacter)(plr.Character)
    end
    plr.CharacterAdded:Connect(onCharacter)
end
--onPlayer(lp)
for i,v in pairs(plrs:GetPlayers()) do
   coroutine.wrap(onPlayer)(v)
end
plrs.PlayerAdded:Connect(onPlayer)

local records = {}
rs.Stepped:Connect(function(_,step)
    for i,v in pairs(pdata) do
        if not v[7] then
            local hum = v[2]
            local hrp = v[3]
            if hrp.Parent ~= nil then
                local x = hrp.Position.X + 4
                local xtype = math.floor(x / 14) + 1
                if hum.Health <= 0 then
                    v[7] = true
                elseif hum.Health > 0 and xtype > 0 and xtype < 101 then
                    if v[4] ~= xtype then
                        if v[5] > time or v[6] > time then
                            records[v[4]] = records[v[4]] or {
                                0,
                                0
                            }
                            if v[5] > time then
                                records[v[4]][1] = records[v[4]][1] + v[5]
                            elseif v[6] > time then
                                records[v[4]][2] = records[v[4]][2] + v[6]
                            end
                            v[5] = 0
                            v[6] = 0
                        end
                    else
                        local side = hrp.Position.Z <= 0
                        v[side and 5 or 6] = v[side and 5 or 6] + (step * hrp.Velocity.magnitude)
                    end
                    v[4] = xtype
                end
            end
        end
    end
    for i,v in pairs(records) do
        local found = workspace.Guess:FindFirstChild(i)
        local one, two = found:FindFirstChild('1'), found:FindFirstChild('2')
        local left, right = v[1], v[2]
        if left > 0 or right > 0 then
            local ans = right > left
            one.Color = Color3.new(ans and 1 or 0, ans and 0 or 1, 0)
            two.Color = Color3.new(ans and 0 or 1, ans and 1 or 0, 0)
        end
    end
end)