Advertisement
Guest User

rise of nations script

a guest
Jun 20th, 2024
2,206
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 1 0
  1. local Decimals = 4
  2. local Clock = os.clock()
  3. local ValueText = "Value Is Now :"
  4.  
  5. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/drillygzzly/Roblox-UI-Libs/main/1%20Tokyo%20Lib%20(FIXED)/Tokyo%20Lib%20Source.lua"))({
  6. cheatname = "Rise of Nations GUI", -- watermark text
  7. gamename = "ron", -- watermark text
  8. })
  9.  
  10. library:init()
  11.  
  12. local Window1 = library.NewWindow({
  13. title = "Rise of Nations | The Best Script out there!", -- Mainwindow Text
  14. size = UDim2.new(0, 510, 0.6, 6)
  15. })
  16.  
  17. local Tab1 = Window1:AddTab(" Sell Section ")
  18. local Tab2 = Window1:AddTab(" Send Alliances ")
  19. local SettingsTab = library:CreateSettingsTab(Window1)
  20.  
  21. local Section1 = Tab1:AddSection("Sell Consumer", 1)
  22. local Section2 = Tab1:AddSection("Unit ESP", 5)
  23. local Section3 = Tab2:AddSection("Send Alliances", 1)
  24.  
  25. local function manageTags(value)
  26. tog = value
  27. local runServ = game:GetService("RunService")
  28. if tog == true then
  29. runServ:BindToRenderStep(
  30. "test",
  31. Enum.RenderPriority.Camera.Value,
  32. function()
  33. for i, v in pairs(game:GetService("Workspace").Units:GetDescendants()) do
  34. if v.Name == "Tag" then
  35. v.Enabled = true
  36. end
  37. end
  38. end
  39. )
  40. end
  41.  
  42. if tog == false then
  43. runServ:UnbindFromRenderStep("test")
  44. end
  45. end
  46.  
  47. local function manageAlliances(value)
  48. tog = value
  49. local runServ = game:GetService("RunService")
  50. if tog == true then
  51. runServ:BindToRenderStep(
  52. "alliances",
  53. Enum.RenderPriority.Last.Value,
  54. function()
  55. for i, v in pairs(workspace.CountryData:GetChildren()) do
  56. if not string.match(v.Leader.Value, "AI") and not string.match(v.Name, game.Players.LocalPlayer.Name) then
  57. wait(0.7)
  58. workspace.GameManager.ManageAlliance:FireServer(v.Name, "SendRequest")
  59. end
  60. for i, v in pairs(game.Players.LocalPlayer.PlayerGui.GameGui.MainFrame:GetChildren()) do
  61. if v.Name == "AlertSample" then
  62. v:Destroy()
  63. end
  64. end
  65. end
  66. end
  67. )
  68. end
  69.  
  70. if tog == false then
  71. runServ:UnbindFromRenderStep("alliances")
  72. end
  73. end
  74.  
  75. Section1:AddToggle({
  76. text = "Sell",
  77. state = false,
  78. risky = true,
  79. tooltip = "tooltip1",
  80. flag = "Toggle_1",
  81. risky = false,
  82. callback = function(v)
  83. print(ValueText, v)
  84. end
  85. }):AddBind({
  86. enabled = true,
  87. text = "Keybind1",
  88. tooltip = "tooltip1",
  89. mode = "toggle",
  90. bind = "None",
  91. flag = "ToggleKey_1",
  92. state = false,
  93. nomouse = false,
  94. risky = false,
  95. noindicator = false,
  96. callback = function(v)
  97. print(ValueText, v)
  98. end,
  99. keycallback = function(v)
  100. print(ValueText, v)
  101. end
  102. })
  103.  
  104. Section2:AddToggle({
  105. text = "Unit ESP",
  106. state = true,
  107. risky = true,
  108. tooltip = "tooltip1",
  109. flag = "Toggle_2",
  110. risky = false,
  111. callback = function(v)
  112. print(ValueText, v)
  113. manageTags(v) -- Call manageTags with the toggle value
  114. end
  115. }):AddBind({
  116. enabled = true,
  117. text = "Keybind1",
  118. tooltip = "tooltip1",
  119. mode = "toggle",
  120. bind = "None",
  121. flag = "ToggleKey_1",
  122. state = false,
  123. nomouse = false,
  124. risky = false,
  125. noindicator = false,
  126. callback = function(v)
  127. print(ValueText, v)
  128. end,
  129. keycallback = function(v)
  130. print(ValueText, v)
  131. end
  132. })
  133.  
  134. Section3:AddToggle({
  135. text = "Send Alliances",
  136. state = false,
  137. risky = true,
  138. tooltip = "tooltip1",
  139. flag = "Toggle_3",
  140. risky = false,
  141. callback = function(v)
  142. print(ValueText, v)
  143. manageAlliances(v) -- Call manageAlliances with the toggle value
  144. end
  145. }):AddBind({
  146. enabled = true,
  147. text = "Keybind1",
  148. tooltip = "tooltip1",
  149. mode = "toggle",
  150. bind = "None",
  151. flag = "ToggleKey_1",
  152. state = false,
  153. nomouse = false,
  154. risky = false,
  155. noindicator = false,
  156. callback = function(v)
  157. print(ValueText, v)
  158. end,
  159. keycallback = function(v)
  160. print(ValueText, v)
  161. end
  162. })
  163.  
  164. local Time = (string.format("%."..tostring(Decimals).."f", os.clock() - Clock))
  165. library:SendNotification(("Loaded In "..tostring(Time)), 6)
  166.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement