Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- DrRayLibrary Setup
- local DrRayLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/AZYsGithub/DrRay-UI-Library/main/DrRay.lua"))()
- local window = DrRayLibrary:Load("GUI by @elnanocruz2 aka Cruz", "Default") -- Custom window title
- -- === STYLES TAB ===
- local stylesTab = DrRayLibrary.newTab("Styles", "")
- local stopRolling = false -- Flag to control when to stop rolling
- -- Function to roll for the desired style
- local function rollStyle(styleName)
- local player = game.Players.LocalPlayer
- local styleService = game:GetService("ReplicatedStorage").Packages.Knit.Services.StyleService.RE.Spin
- -- Reset stopRolling flag
- stopRolling = false
- while not stopRolling do
- task.wait(0.3) -- Add a slight delay for performance
- if player:FindFirstChild("PlayerStats") and player.PlayerStats:FindFirstChild("Style") then
- if player.PlayerStats.Style.Value ~= styleName then
- styleService:FireServer()
- else
- print(styleName .. " Style activated!")
- stopRolling = true -- Stop rolling when the style is achieved
- -- Trigger the Stop Rolls button here
- stopButton.MouseButton1Click:Fire() -- This simulates clicking the Stop button
- break
- end
- end
- end
- end
- -- Add buttons for each style
- stylesTab.newButton("King", "Roll for King Style", function()
- rollStyle("King")
- end)
- stylesTab.newButton("Chigiri", "Roll for Chigiri Style", function()
- rollStyle("Chigiri")
- end)
- stylesTab.newButton("Bachira", "Roll for Bachira Style", function()
- rollStyle("Bachira")
- end)
- stylesTab.newButton("Shidou", "Roll for Shidou Style", function()
- rollStyle("Shidou")
- end)
- stylesTab.newButton("Nagi", "Roll for Nagi Style", function()
- rollStyle("Nagi")
- end)
- stylesTab.newButton("Isagi", "Roll for Isagi Style", function()
- rollStyle("Isagi")
- end)
- stylesTab.newButton("Gagamaru", "Roll for Gagamaru Style", function()
- rollStyle("Gagamaru")
- end)
- stylesTab.newButton("Sae", "Roll for Sae Style", function()
- rollStyle("Sae")
- end)
- stylesTab.newButton("Rin", "Roll for Rin Style", function()
- rollStyle("Rin")
- end)
- -- === FLOWS TAB ===
- local flowsTab = DrRayLibrary.newTab("Flows", "")
- -- Function to roll for the desired flow
- local function rollFlow(flowName)
- local player = game.Players.LocalPlayer
- local flowService = game:GetService("ReplicatedStorage").Packages.Knit.Services.FlowService.RE.Spin
- -- Reset stopRolling flag
- stopRolling = false
- -- Immediately stop when the flow matches
- while not stopRolling do
- task.wait(0.9) -- Slower delay between rolls
- if player:FindFirstChild("PlayerStats") and player.PlayerStats:FindFirstChild("Flow") then
- local currentFlow = player.PlayerStats.Flow.Value
- if currentFlow == flowName then
- print(flowName .. " Flow activated!")
- stopRolling = true
- -- Trigger the Stop Rolls button here
- stopButton.MouseButton1Click:Fire() -- This simulates clicking the Stop button
- break
- else
- flowService:FireServer()
- end
- end
- end
- end
- -- Add buttons for each flow
- flowsTab.newButton("Lighting", "Roll for Lighting Flow", function()
- rollFlow("Lighting")
- end)
- flowsTab.newButton("Puzzle", "Roll for Puzzle Flow", function()
- rollFlow("Puzzle")
- end)
- flowsTab.newButton("Monster", "Roll for Monster Flow", function()
- rollFlow("Monster")
- end)
- flowsTab.newButton("Gale Burst", "Roll for Gale Burst Flow", function()
- rollFlow("Gale Burst")
- end)
- flowsTab.newButton("King's Instinct", "Roll for King's Instinct Flow", function()
- rollFlow("King's Instinct")
- end)
- flowsTab.newButton("Genius", "Roll for Genius Flow", function()
- rollFlow("Genius")
- end)
- flowsTab.newButton("Awakened Genius", "Roll for Awakened Genius Flow", function()
- rollFlow("Awakened Genius")
- end)
- flowsTab.newButton("Wild Card", "Roll for Wild Card Flow", function()
- rollFlow("Wild Card")
- end)
- flowsTab.newButton("Demon Wings", "Roll for Demon Wings Flow", function()
- rollFlow("Demon Wings")
- end)
- -- === STOP ROLLING GUI ===
- local stopRollsGui = Instance.new("ScreenGui")
- stopRollsGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- stopRollsGui.Name = "StopRollsGUI"
- local stopButton = Instance.new("TextButton")
- stopButton.Text = "Stop Rolls"
- stopButton.Size = UDim2.new(0, 150, 0, 50)
- stopButton.Position = UDim2.new(0, 0, 0, 0) -- Set button to top-left corner
- stopButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- stopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- stopButton.Parent = stopRollsGui
- -- Triggered when the Stop Rolls button is clicked
- stopButton.MouseButton1Click:Connect(function()
- stopRolling = true
- print("Rolls stopped.")
- end)
- -- Show the window to ensure all tabs load
- window:Show()
Advertisement
Advertisement