local replicated_storage = game:GetService("ReplicatedStorage") local local_player = game:GetService("Players").LocalPlayer local rarites = { ["Common"] = Color3.fromRGB(255, 255, 255), ["Rare"] = Color3.fromRGB(137, 255, 111), ["Epic"] = Color3.fromRGB(119, 0, 255), ["Legendary"] = Color3.fromRGB(255, 255, 0), ["Godly"] = Color3.fromRGB(255, 0, 127) } local stop_at = "Legendary" local args = { [1] = "SpinsService/Spin", [2] = { [1] = "1" } } replicated_storage:WaitForChild("Libraries"):WaitForChild("net"):WaitForChild("RE/UICommunication"):FireServer(unpack(args)) repeat task.wait(0.05) if local_player.PlayerGui.SpinsGui.Main.ClassNameLabel.TextColor3 == rarites[stop_at] then break end local args = { [1] = "SpinsService/Spin", [2] = { [1] = "1" } } replicated_storage:WaitForChild("Libraries"):WaitForChild("net"):WaitForChild("RE/UICommunication"):FireServer(unpack(args)) until local_player.PlayerGui.SpinsGui.Main.ClassNameLabel.TextColor3 == rarites[stop_at] print("Got " .. stop_at .. " Class!")