Advertisement
Guest User

Untitled

a guest
Dec 13th, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Name = "Put Your Roblox Name Here" --You must do this else the buttons will not work!!!
  2.  
  3. local DBRgui = Instance.new("ScreenGui")
  4. local ParentOfAll = Instance.new("Frame")
  5. local OpenClose = Instance.new("TextButton")
  6. local Frame = Instance.new("Frame")
  7. local Defense = Instance.new("TextButton")
  8. local Attack = Instance.new("TextButton")
  9. local Agility = Instance.new("TextButton")
  10. local Energy = Instance.new("TextButton")
  11. local Charge = Instance.new("TextButton")
  12. local TurnAtckOff = Instance.new("TextButton")
  13. local TurnDefOff = Instance.new("TextButton")
  14. local TurnEnergyOff = Instance.new("TextButton")
  15. local StopCharge = Instance.new("TextButton")
  16.  
  17. DBRgui.Name = "DBRgui"
  18. DBRgui.Parent = game.CoreGui
  19.  
  20. ParentOfAll.Name = "ParentOfAll"
  21. ParentOfAll.Parent = DBRgui
  22. ParentOfAll.BackgroundColor3 = Color3.new(1, 1, 1)
  23. ParentOfAll.Position = UDim2.new(1.17427015, 0, 0.79284364, 0)
  24. ParentOfAll.Size = UDim2.new(0, 100, 0, 100)
  25. ParentOfAll.Style = Enum.FrameStyle.RobloxRound
  26.  
  27. OpenClose.Name = "OpenClose"
  28. OpenClose.Parent = ParentOfAll
  29. OpenClose.BackgroundColor3 = Color3.new(1, 0, 0)
  30. OpenClose.BorderColor3 = Color3.new(0, 0, 0)
  31. OpenClose.Position = UDim2.new(-6.37482023, 0, -2.67482471, 0)
  32. OpenClose.Size = UDim2.new(0, 154, 0, 24)
  33. OpenClose.Text = "Close"
  34. OpenClose.TextSize = 14
  35. OpenClose.TextWrapped = true
  36. OpenClose.MouseButton1Click:connect(function()
  37. spawn(function()
  38. local Ting = OpenClose.Frame
  39.  
  40.     if Ting.Visible == false then
  41.         Ting.Visible = true
  42. OpenClose.Position = UDim2.new(-6.37482023, 0, -2.67482471, 0)
  43.         OpenClose.Text = "Close"
  44.     elseif Ting.Visible == true then
  45.         OpenClose.Text = "Open"
  46.  OpenClose.Position = UDim2.new(-5.365, 0, 0.885, 0)
  47.         Ting.Visible = false
  48.     end
  49. end)
  50. end)
  51.  
  52. Frame.Parent = OpenClose
  53. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  54. Frame.Position = UDim2.new(-0.675324678, 0, 1.33333337, 0)
  55. Frame.Size = UDim2.new(0, 361, 0, 264)
  56. Frame.Style = Enum.FrameStyle.RobloxRound
  57.  
  58. Defense.Name = "Defense"
  59. Defense.Parent = Frame
  60. Defense.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  61. Defense.Position = UDim2.new(0.529085875, 0, 0.0118110254, 0)
  62. Defense.Size = UDim2.new(0, 161, 0, 46)
  63. Defense.Style = Enum.ButtonStyle.RobloxRoundButton
  64. Defense.Text = "Defense"
  65. Defense.TextSize = 14
  66. Defense.MouseButton1Click:connect(function()
  67. spawn(function()
  68. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnDefOff.Visible = true
  69. while game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnDefOff.Visible == true do
  70. wait()
  71. local remote = Game["ReplicatedStorage"]["Remotes"]["Training"]["Defense"]
  72. local args = {
  73.     [1] = Game["Players"][Name]["Stats"],
  74.     [2] = Game["Players"][Name]["Status"],
  75.     [3] = Game["Workspace"][Name]["Humanoid"],
  76.     [4] = Game["Workspace"][Name]["RightHand"]
  77. }
  78. remote:InvokeServer(unpack(args))
  79. end
  80. end)
  81. end)
  82.  
  83. Attack.Name = "Attack"
  84. Attack.Parent = Frame
  85. Attack.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  86. Attack.Position = UDim2.new(0.00831024908, 0, 0.0113636367, 0)
  87. Attack.Size = UDim2.new(0, 162, 0, 46)
  88. Attack.Style = Enum.ButtonStyle.RobloxRoundButton
  89. Attack.Text = "Attack"
  90. Attack.TextSize = 14
  91. Attack.MouseButton1Click:connect(function()
  92. spawn(function()
  93. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnAtckOff.Visible = true
  94. while game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnAtckOff.Visible == true do
  95. wait()
  96. local remote = Game["ReplicatedStorage"]["Remotes"]["Training"]["Combat"]
  97. local args = {
  98. [1] = {
  99. LeftLowerArm = Game["Workspace"][Name]["LeftLowerArm"],
  100. RightUpperArm = Game["Workspace"][Name]["RightUpperArm"],
  101. LeftFoot = Game["Workspace"][Name]["LeftFoot"],
  102. RightHand = Game["Workspace"][Name]["RightHand"],
  103. RightLowerArm = Game["Workspace"][Name]["RightLowerArm"],
  104. LeftUpperLeg = Game["Workspace"][Name]["LeftUpperLeg"],
  105. LeftUpperArm = Game["Workspace"][Name]["LeftUpperArm"],
  106. Character = Game["Workspace"][Name],
  107. LeftHand = Game["Workspace"][Name]["LeftHand"],
  108. RightFoot = Game["Workspace"][Name]["RightFoot"],
  109. Humanoid = Game["Workspace"][Name]["Humanoid"],
  110. RightLowerLeg = Game["Workspace"][Name]["RightLowerLeg"],
  111. RightUpperLeg = Game["Workspace"][Name]["RightUpperLeg"],
  112. LeftLowerLeg = Game["Workspace"][Name]["LeftLowerLeg"]
  113. }
  114. }
  115. remote:InvokeServer(unpack(args))
  116. end
  117. end)
  118. end)
  119.  
  120. Agility.Name = "Agility"
  121. Agility.Parent = Frame
  122. Agility.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  123. Agility.Position = UDim2.new(0.00831024908, 0, 0.401515126, 0)
  124. Agility.Size = UDim2.new(0, 162, 0, 46)
  125. Agility.Style = Enum.ButtonStyle.RobloxRoundButton
  126. Agility.Text = "Agility"
  127. Agility.TextSize = 14
  128. Agility.Name = "Agility"
  129. Agility.Parent = Frame
  130. Agility.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  131. Agility.Position = UDim2.new(0.00831024908, 0, 0.401515126, 0)
  132. Agility.Size = UDim2.new(0, 162, 0, 46)
  133. Agility.Style = Enum.ButtonStyle.RobloxRoundButton
  134. Agility.Text = "Agility"
  135. Agility.TextSize = 14
  136. Agility.MouseButton1Click:connect(function()
  137. spawn(function()
  138. for i=1, 10000 do
  139. game.ReplicatedStorage.Remotes.Training.Agility:FireServer(game.Players.Name.Stats)
  140. end
  141. end)
  142. end)
  143.  
  144. Energy.Name = "Energy"
  145. Energy.Parent = Frame
  146. Energy.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  147. Energy.Position = UDim2.new(0.529085875, 0, 0.405303031, 0)
  148. Energy.Size = UDim2.new(0, 162, 0, 46)
  149. Energy.Style = Enum.ButtonStyle.RobloxRoundButton
  150. Energy.Text = "Energy"
  151. Energy.TextSize = 14
  152. Energy.Name = "Energy"
  153. Energy.Parent = Frame
  154. Energy.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  155. Energy.Position = UDim2.new(0.529085875, 0, 0.405303031, 0)
  156. Energy.Size = UDim2.new(0, 162, 0, 46)
  157. Energy.Style = Enum.ButtonStyle.RobloxRoundButton
  158. Energy.Text = "Energy"
  159. Energy.TextSize = 14
  160. Energy.MouseButton1Click:connect(function()
  161. spawn(function()
  162. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnEnergyOff.Visible = true
  163. while game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnEnergyOff.Visible == true do
  164. wait(0.1)
  165. local remote = Game["ReplicatedStorage"]["Remotes"]["Actions"]["EnergyBlast"]
  166. local args = {
  167.     [1] = "Left"
  168. }
  169. remote:InvokeServer(unpack(args))
  170. end
  171. end)
  172. end)
  173.  
  174. Charge.Name = "Charge"
  175. Charge.Parent = Frame
  176. Charge.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  177. Charge.Position = UDim2.new(0.00831023604, 0, 0.812962234, 0)
  178. Charge.Size = UDim2.new(0, 162, 0, 46)
  179. Charge.Style = Enum.ButtonStyle.RobloxRoundButton
  180. Charge.Text = "Charge"
  181. Charge.TextSize = 14
  182. Charge.Name = "Charge"
  183. Charge.Parent = Frame
  184. Charge.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  185. Charge.Position = UDim2.new(0.00831023604, 0, 0.812962234, 0)
  186. Charge.Size = UDim2.new(0, 162, 0, 46)
  187. Charge.Style = Enum.ButtonStyle.RobloxRoundButton
  188. Charge.Text = "Charge"
  189. Charge.TextSize = 14
  190. Charge.MouseButton1Click:connect(function()
  191. spawn(function()
  192. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.StopCharge.Visible = true
  193. local remote = Game["ReplicatedStorage"]["Remotes"]["Training"]["Charge"]
  194. local args = {
  195.     [1] = Game["Players"][Name]["Status"],
  196.     [2] = Game["Workspace"][Name]["UpperTorso"],
  197.     [3] = Game["Workspace"][Name]["Humanoid"]
  198. }
  199. remote:InvokeServer(unpack(args))
  200. end)
  201. end)
  202.  
  203. TurnAtckOff.Name = "TurnAtckOff"
  204. TurnAtckOff.Parent = Frame
  205. TurnAtckOff.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  206. TurnAtckOff.Position = UDim2.new(0.00831024908, 0, 0.212151036, 0)
  207. TurnAtckOff.Size = UDim2.new(0, 162, 0, 46)
  208. TurnAtckOff.Visible = false
  209. TurnAtckOff.Style = Enum.ButtonStyle.RobloxRoundButton
  210. TurnAtckOff.Text = "Turn off attack AutoTrain"
  211. TurnAtckOff.TextSize = 9
  212. TurnAtckOff.Name = "TurnAtckOff"
  213. TurnAtckOff.Parent = Frame
  214. TurnAtckOff.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  215. TurnAtckOff.Position = UDim2.new(0.00831024908, 0, 0.212151036, 0)
  216. TurnAtckOff.Size = UDim2.new(0, 162, 0, 46)
  217. TurnAtckOff.Visible = false
  218. TurnAtckOff.Style = Enum.ButtonStyle.RobloxRoundButton
  219. TurnAtckOff.Text = "Turn off attack AutoTrain"
  220. TurnAtckOff.TextSize = 9
  221. TurnAtckOff.MouseButton1Click:connect(function()
  222. spawn(function()
  223. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnAtckOff.Visible = false
  224. end)
  225. end)
  226.  
  227. TurnDefOff.Name = "TurnDefOff"
  228. TurnDefOff.Parent = Frame
  229. TurnDefOff.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  230. TurnDefOff.Position = UDim2.new(0.529085875, 0, 0.212151036, 0)
  231. TurnDefOff.Size = UDim2.new(0, 162, 0, 46)
  232. TurnDefOff.Visible = false
  233. TurnDefOff.Style = Enum.ButtonStyle.RobloxRoundButton
  234. TurnDefOff.Text = "Turn off defense AutoTrain"
  235. TurnDefOff.TextSize = 9
  236. TurnDefOff.Name = "TurnDefOff"
  237. TurnDefOff.Parent = Frame
  238. TurnDefOff.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  239. TurnDefOff.Position = UDim2.new(0.529085875, 0, 0.212151036, 0)
  240. TurnDefOff.Size = UDim2.new(0, 162, 0, 46)
  241. TurnDefOff.Visible = false
  242. TurnDefOff.Style = Enum.ButtonStyle.RobloxRoundButton
  243. TurnDefOff.Text = "Turn off defense AutoTrain"
  244. TurnDefOff.TextSize = 9
  245. TurnDefOff.MouseButton1Click:connect(function()
  246. spawn(function()
  247. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnDefOff.Visible = false
  248. end)
  249. end)
  250.  
  251. TurnEnergyOff.Name = "TurnEnergyOff"
  252. TurnEnergyOff.Parent = Frame
  253. TurnEnergyOff.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  254. TurnEnergyOff.Position = UDim2.new(0.529085875, 0, 0.605851829, 0)
  255. TurnEnergyOff.Size = UDim2.new(0, 162, 0, 46)
  256. TurnEnergyOff.Visible = false
  257. TurnEnergyOff.Style = Enum.ButtonStyle.RobloxRoundButton
  258. TurnEnergyOff.Text = "Turn off energy AutoTrain"
  259. TurnEnergyOff.TextSize = 9
  260. TurnEnergyOff.Name = "TurnEnergyOff"
  261. TurnEnergyOff.Parent = Frame
  262. TurnEnergyOff.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  263. TurnEnergyOff.Position = UDim2.new(0.529085875, 0, 0.605851829, 0)
  264. TurnEnergyOff.Size = UDim2.new(0, 162, 0, 46)
  265. TurnEnergyOff.Visible = false
  266. TurnEnergyOff.Style = Enum.ButtonStyle.RobloxRoundButton
  267. TurnEnergyOff.Text = "Turn off energy AutoTrain"
  268. TurnEnergyOff.TextSize = 9
  269. TurnEnergyOff.MouseButton1Click:connect(function()
  270. spawn(function()
  271. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.TurnEnergyOff.Visible = false
  272. end)
  273. end)
  274.  
  275. StopCharge.Name = "StopCharge"
  276. StopCharge.Parent = Frame
  277. StopCharge.BackgroundColor3 = Color3.new(0.972549, 0.917647, 1)
  278. StopCharge.Position = UDim2.new(0.529085875, 0, 0.813916683, 0)
  279. StopCharge.Size = UDim2.new(0, 162, 0, 46)
  280. StopCharge.Visible = false
  281. StopCharge.Style = Enum.ButtonStyle.RobloxRoundButton
  282. StopCharge.Text = "StopCharging"
  283. StopCharge.TextSize = 9
  284. StopCharge.MouseButton1Click:connect(function()
  285. spawn(function()
  286. game.CoreGui.DBRgui.ParentOfAll.OpenClose.Frame.StopCharge.Visible = false
  287. local remote = Game["ReplicatedStorage"]["Remotes"]["Training"]["ChargeFinish"]
  288. local args = {}
  289. remote:FireServer(unpack(args))
  290. end)
  291. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement