local autoWin = false local autoRobux = false function win() game.Players.LocalPlayer.Character:PivotTo(workspace.Finish.Chest:GetPivot()) end function showColors() local function colorPart(v) if v:IsA("BoolValue") and v.Name == "breakable" then v.Parent.Color = Color3.fromRGB(255, 0, 0) elseif v:IsA("Part") and not v:FindFirstChild("breakable") and v.Parent.ClassName == "Folder" then v.Color = Color3.fromRGB(0, 255, 0) end end for _, v in next, workspace.segmentSystem.Segments:GetDescendants() do colorPart(v) end workspace.segmentSystem.Segments.ChildAdded:Connect(function(child) colorPart(child) end) end function destroyIncorrect() local function check(v) if v:IsA("Part") and v:FindFirstChild("breakable") then v:Destroy() end end for _, v in next, workspace.segmentSystem.Segments:GetDescendants() do check(v) end workspace.segmentSystem.Segments.ChildAdded:Connect(function(child) check(child) end) end function robux() game:GetService("ReplicatedStorage").RemoteEvents.crateRemote:FireServer("processCrate", 3) game:GetService("ReplicatedStorage").RemoteEvents.crateRemote:FireServer("processReward", 3) end local gameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = gameName, Icon = 0, LoadingTitle = gameName, LoadingSubtitle = "by icmp", Theme = "Default", DisableRayfieldPrompts = false, DisableBuildWarnings = false, }) local Tab = Window:CreateTab("Main", 4483362458) local Section = Tab:CreateSection("Main") local Button = Tab:CreateButton({ Name = "Show Correct/Incorrect Glass", Callback = function() showColors() end, }) local Button = Tab:CreateButton({ Name = "Destroy Incorrect Glass", Callback = function() destroyIncorrect() end, }) local Button = Tab:CreateButton({ Name = "Win", Callback = function() win() end, }) local Button = Tab:CreateButton({ Name = "Get Robux Crate", Callback = function() robux() end, }) local Toggle = Tab:CreateToggle({ Name = "Auto Win", CurrentValue = false, Flag = "wintoggle", Callback = function(Value) autoWin = Value while autoWin == true do win() task.wait(3) end end, }) local Toggle = Tab:CreateToggle({ Name = "Auto Robux Crate", CurrentValue = false, Flag = "robuxtoggle", Callback = function(Value) autoRobux = Value while autoRobux == true do robux() task.wait() end end, })