Advertisement
KenshiOfficial

Flow and style script

Dec 15th, 2024
6,528
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. -- DrRayLibrary Setup
  2. local DrRayLibrary = loadstring(game:HttpGet("https://raw.githubusercontent.com/AZYsGithub/DrRay-UI-Library/main/DrRay.lua"))()
  3. local window = DrRayLibrary:Load("GUI by @elnanocruz2 aka Cruz", "Default") -- Custom window title
  4.  
  5. -- === STYLES TAB ===
  6. local stylesTab = DrRayLibrary.newTab("Styles", "")
  7.  
  8. local stopRolling = false -- Flag to control when to stop rolling
  9.  
  10. -- Function to roll for the desired style
  11. local function rollStyle(styleName)
  12. local player = game.Players.LocalPlayer
  13. local styleService = game:GetService("ReplicatedStorage").Packages.Knit.Services.StyleService.RE.Spin
  14.  
  15. -- Reset stopRolling flag
  16. stopRolling = false
  17.  
  18. while not stopRolling do
  19. task.wait(0.3) -- Add a slight delay for performance
  20. if player:FindFirstChild("PlayerStats") and player.PlayerStats:FindFirstChild("Style") then
  21. if player.PlayerStats.Style.Value ~= styleName then
  22. styleService:FireServer()
  23. else
  24. print(styleName .. " Style activated!")
  25. stopRolling = true -- Stop rolling when the style is achieved
  26. -- Trigger the Stop Rolls button here
  27. stopButton.MouseButton1Click:Fire() -- This simulates clicking the Stop button
  28. break
  29. end
  30. end
  31. end
  32. end
  33.  
  34. -- Add buttons for each style
  35. stylesTab.newButton("King", "Roll for King Style", function()
  36. rollStyle("King")
  37. end)
  38.  
  39. stylesTab.newButton("Chigiri", "Roll for Chigiri Style", function()
  40. rollStyle("Chigiri")
  41. end)
  42.  
  43. stylesTab.newButton("Bachira", "Roll for Bachira Style", function()
  44. rollStyle("Bachira")
  45. end)
  46.  
  47. stylesTab.newButton("Shidou", "Roll for Shidou Style", function()
  48. rollStyle("Shidou")
  49. end)
  50.  
  51. stylesTab.newButton("Nagi", "Roll for Nagi Style", function()
  52. rollStyle("Nagi")
  53. end)
  54.  
  55. stylesTab.newButton("Isagi", "Roll for Isagi Style", function()
  56. rollStyle("Isagi")
  57. end)
  58.  
  59. stylesTab.newButton("Gagamaru", "Roll for Gagamaru Style", function()
  60. rollStyle("Gagamaru")
  61. end)
  62.  
  63. stylesTab.newButton("Sae", "Roll for Sae Style", function()
  64. rollStyle("Sae")
  65. end)
  66.  
  67. stylesTab.newButton("Rin", "Roll for Rin Style", function()
  68. rollStyle("Rin")
  69. end)
  70.  
  71. -- === FLOWS TAB ===
  72. local flowsTab = DrRayLibrary.newTab("Flows", "")
  73.  
  74. -- Function to roll for the desired flow
  75. local function rollFlow(flowName)
  76. local player = game.Players.LocalPlayer
  77. local flowService = game:GetService("ReplicatedStorage").Packages.Knit.Services.FlowService.RE.Spin
  78.  
  79. -- Reset stopRolling flag
  80. stopRolling = false
  81.  
  82. -- Immediately stop when the flow matches
  83. while not stopRolling do
  84. task.wait(0.9) -- Slower delay between rolls
  85. if player:FindFirstChild("PlayerStats") and player.PlayerStats:FindFirstChild("Flow") then
  86. local currentFlow = player.PlayerStats.Flow.Value
  87. if currentFlow == flowName then
  88. print(flowName .. " Flow activated!")
  89. stopRolling = true
  90. -- Trigger the Stop Rolls button here
  91. stopButton.MouseButton1Click:Fire() -- This simulates clicking the Stop button
  92. break
  93. else
  94. flowService:FireServer()
  95. end
  96. end
  97. end
  98. end
  99.  
  100. -- Add buttons for each flow
  101. flowsTab.newButton("Lighting", "Roll for Lighting Flow", function()
  102. rollFlow("Lighting")
  103. end)
  104.  
  105. flowsTab.newButton("Puzzle", "Roll for Puzzle Flow", function()
  106. rollFlow("Puzzle")
  107. end)
  108.  
  109. flowsTab.newButton("Monster", "Roll for Monster Flow", function()
  110. rollFlow("Monster")
  111. end)
  112.  
  113. flowsTab.newButton("Gale Burst", "Roll for Gale Burst Flow", function()
  114. rollFlow("Gale Burst")
  115. end)
  116.  
  117. flowsTab.newButton("King's Instinct", "Roll for King's Instinct Flow", function()
  118. rollFlow("King's Instinct")
  119. end)
  120.  
  121. flowsTab.newButton("Genius", "Roll for Genius Flow", function()
  122. rollFlow("Genius")
  123. end)
  124.  
  125. flowsTab.newButton("Awakened Genius", "Roll for Awakened Genius Flow", function()
  126. rollFlow("Awakened Genius")
  127. end)
  128.  
  129. flowsTab.newButton("Wild Card", "Roll for Wild Card Flow", function()
  130. rollFlow("Wild Card")
  131. end)
  132.  
  133. flowsTab.newButton("Demon Wings", "Roll for Demon Wings Flow", function()
  134. rollFlow("Demon Wings")
  135. end)
  136.  
  137. -- === STOP ROLLING GUI ===
  138. local stopRollsGui = Instance.new("ScreenGui")
  139. stopRollsGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  140. stopRollsGui.Name = "StopRollsGUI"
  141.  
  142. local stopButton = Instance.new("TextButton")
  143. stopButton.Text = "Stop Rolls"
  144. stopButton.Size = UDim2.new(0, 150, 0, 50)
  145. stopButton.Position = UDim2.new(0, 0, 0, 0) -- Set button to top-left corner
  146. stopButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  147. stopButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  148. stopButton.Parent = stopRollsGui
  149.  
  150. -- Triggered when the Stop Rolls button is clicked
  151. stopButton.MouseButton1Click:Connect(function()
  152. stopRolling = true
  153. print("Rolls stopped.")
  154. end)
  155.  
  156. -- Show the window to ensure all tabs load
  157. window:Show()
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement