Categories > Exploiting > Scripts >

Roblox | Speed Simulator

Posts: 2

Threads: 1

Joined: Jun, 2022

Reputation: 0

Posted

local Players, myLocalPlayer;
Players = game:GetService('Players');
myLocalPlayer = Players.LocalPlayer;

function OrbZone(Zone)
    local OrbsFolder, Orbs = workspace.OrbsPositions, {};
    Orbs.Found = false;

    if OrbsFolder:FindFirstChild(tostring(Zone)) then
       Orbs.Found = true;
    end

    repeat wait(1) until Orbs.Found == true
    Orbs = OrbsFolder:FindFirstChild(tostring(Zone));
    return Orbs.Script;
end

local function closestOrb(orbf)
    local child = orbf:GetChildren()
    local maxMag = math.huge

    local ORB;
    for i2 = 1, #child do
       local mag = (myLocalPlayer.Character.PrimaryPart.Position - child[i2].Position).magnitude
        if mag < math.huge then
            maxMag = mag
            ORB = child[i2]
        end
    end
    return ORB
end

function GetOrbsFromZone(Zone, amount)
    local b = OrbZone('Zone1')
    local val = 0;
    
    for i2 = 1, amount do
        local ARV = closestOrb(b);
        if ARV.Material == Enum.Material.Neon  then 
            myLocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(ARV.Position.X, myLocalPlayer.Character.Head.Position.Y, ARV.Position.Z))
        end
        val = i2
        wait(math.random(1, 3))
    end

    repeat wait(.5) until val == amount;
    myLocalPlayer:Kick('Finished Collecting.. 100 Orbs')
    return 'Finished'
end

GetOrbsFromZone(closestOrb(OrbZone('Zone1')), 200);
  • 0

Posts: 1316

Threads: 54

Joined: Jul, 2021

Reputation: 64

Replied

Moved to scripts, was in the roblox section

  • 0

Mail me at sirweebdev@protonmail.com if you have any questions or you want to say anything to me, I'll reply (maybe).

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )