Advertisement
brianops1

ROsu!Mania

Dec 8th, 2019
4,156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.58 KB | None | 0 0
  1. --[[
  2. -----------------------
  3. Description:
  4.  
  5. rosu!mania auto
  6.  
  7. If you want to miss just hit one of the notes wrong :P
  8.  
  9. -The keybinds work for anything as long as it is 0-9, a-z, and ;
  10. -This mainly works for game speed/note speed 1
  11. -If you switch the skin you have to disable and enable the auto button again
  12.  
  13. -----------------------
  14. Game:
  15. https://www.roblox.com/games/3126135622/rosu-mania-Update-7-14
  16.  
  17. -----------------------
  18. Credits:
  19.  
  20. GUI ~ brianops1
  21.  
  22. Scripter(s) ~ brianops1
  23. -----------------------
  24. Scripts:
  25. --]]
  26. plr = game:GetService('Players').LocalPlayer
  27. Root = plr.Character.HumanoidRootPart
  28. --[[
  29.  
  30. --~ Copy Vector3 (setclipboard function) ~--
  31.  
  32.  
  33. plr = game:GetService('Players').LocalPlayer
  34. Root = plr.Character.HumanoidRootPart
  35. function loc(A)
  36.     location = string.find(A, ".",0,true)
  37.     return string.sub(A, 0,location - 1)
  38. end
  39. function copy()
  40.     setclipboard(loc(x) .. ", " .. loc(y) .. ", " .. loc(z))
  41. end
  42.  
  43. x = Root.CFrame.x
  44. y = Root.CFrame.y
  45. z = Root.CFrame.z
  46. print('-----------------')
  47. print('Your x value is '.. loc(x))
  48. print('Your y value is '.. loc(y))
  49. print('Your z value is '.. loc(z))
  50. pcall(copy)
  51.  
  52.  
  53.  
  54.  
  55. --~ Baseplate Teleport ~--
  56.  
  57.  
  58. Height = 5000 --this is how high up the plate will be
  59. SizeX = 60 --this is how big the X axis will be for the part
  60. SizeY = 60 --this is how big the Y axis will be for the part
  61. --Execute once to make the baseplate, execute again to delete and teleport back
  62.  
  63. plr = game:GetService('Players').LocalPlayer
  64. Root = plr.Character.HumanoidRootPart
  65. local check = game.Workspace:FindFirstChild("BRIAN'S PLATFORM")
  66. if check then
  67.     Root.CFrame = _G.StartingPosition
  68.     check:Destroy()
  69. else
  70.     _G.StartingPosition = Root.CFrame
  71.     local P = Instance.new("Part", workspace)
  72.     P.Anchored = true
  73.     P.CFrame = Root.CFrame * CFrame.new(0, Height, 0)
  74.     P.Name = "BRIAN'S PLATFORM"
  75.     P.Size = Vector3.new(SizeX, 1, SizeY)
  76.     Root.CFrame = P.CFrame * CFrame.new(0,5,0)
  77. end
  78.  
  79.  
  80. --]]
  81.  
  82.  
  83. print('Loading')
  84. UIS = game:GetService("UserInputService")
  85. mouse = plr:GetMouse()
  86. local ScreenGui = Instance.new("ScreenGui")
  87. local Frame = Instance.new("Frame")
  88. local Game = Instance.new("TextLabel")
  89. local Minimize = Instance.new("TextButton")
  90. local Close = Instance.new("TextButton")
  91. local Credit = Instance.new("TextLabel")
  92. local B1 = Instance.new("TextButton")
  93. local L1 = Instance.new("TextLabel")
  94. local B2 = Instance.new("TextButton")
  95. local L2 = Instance.new("TextLabel")
  96. local B3 = Instance.new("TextButton")
  97. local L3 = Instance.new("TextLabel")
  98. local B4 = Instance.new("TextButton")
  99. local L4 = Instance.new("TextLabel")
  100. local B5 = Instance.new("TextButton")
  101. local L5 = Instance.new("TextLabel")
  102. local B6 = Instance.new("TextButton")
  103. local L6 = Instance.new("TextLabel")
  104. local B7 = Instance.new("TextButton")
  105. local L7 = Instance.new("TextLabel")
  106. local B8 = Instance.new("TextButton")
  107. local L8 = Instance.new("TextLabel")
  108. function VarOff()
  109.     _G.on1 = 0
  110.     _G.on2 = 0
  111.     _G.on3 = 0
  112.     _G.on4 = 0
  113.     _G.on5 = 0
  114.     _G.on6 = 0
  115.     _G.on7 = 0
  116.     _G.on8 = 0
  117. end
  118. VarOff()
  119. ScreenGui.Parent = game.CoreGui
  120. Frame.Parent = ScreenGui
  121. Frame.BackgroundColor3 = Color3.new(0.219608, 0.572549, 1)
  122. Frame.BackgroundTransparency = 0.69999998807907
  123. Frame.BorderColor3 = Color3.new(1, 1, 1)
  124. Frame.Position = UDim2.new(0, 191, 0, 102)
  125. Frame.Size = UDim2.new(0, 295, 0, 270)
  126. Frame.Active = true
  127. Frame.Selectable = true
  128. Frame.Draggable = true
  129. Game.Name = "Game"
  130. Game.Parent = Frame
  131. Game.BackgroundColor3 = Color3.new(1, 1, 1)
  132. Game.BackgroundTransparency = 0.69999998807907
  133. Game.BorderColor3 = Color3.new(1, 1, 1)
  134. Game.BorderSizePixel = 0
  135. Game.Size = UDim2.new(0, 245, 0, 25)
  136. Game.Font = Enum.Font.SourceSans
  137. Game.Text = ""
  138. Game.TextColor3 = Color3.new(0, 0, 0)
  139. Game.TextSize = 14
  140. Minimize.Name = "Minimize"
  141. Minimize.Parent = Frame
  142. Minimize.BackgroundColor3 = Color3.new(1, 1, 1)
  143. Minimize.BackgroundTransparency = 0.69999998807907
  144. Minimize.BorderColor3 = Color3.new(1, 1, 1)
  145. Minimize.BorderSizePixel = 0
  146. Minimize.Position = UDim2.new(0, 245, 0, 0)
  147. Minimize.Size = UDim2.new(0, 25, 0, 25)
  148. Minimize.Font = Enum.Font.SourceSans
  149. Minimize.Text = "-"
  150. Minimize.TextColor3 = Color3.new(0, 0, 0)
  151. Minimize.TextSize = 14
  152. Close.Name = "Close"
  153. Close.Parent = Frame
  154. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  155. Close.BackgroundTransparency = 0.69999998807907
  156. Close.BorderColor3 = Color3.new(0.87451, 0.87451, 0.87451)
  157. Close.BorderSizePixel = 0
  158. Close.Position = UDim2.new(0, 270, 0, 0)
  159. Close.Size = UDim2.new(0, 25, 0, 25)
  160. Close.Font = Enum.Font.SourceSans
  161. Close.Text = "x"
  162. Close.TextColor3 = Color3.new(0, 0, 0)
  163. Close.TextSize = 14
  164. Credit.Name = "Credit"
  165. Credit.Parent = Frame
  166. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  167. Credit.BackgroundTransparency = 0.80000001192093
  168. Credit.BorderColor3 = Color3.new(1, 1, 1)
  169. Credit.Position = UDim2.new(0, 0, 0, 245)
  170. Credit.Size = UDim2.new(0, 295, 0, 25)
  171. Credit.Font = Enum.Font.SourceSans
  172. Credit.Text = "GUI ~ brianops1 | Scipter(s) ~ "
  173. Credit.TextColor3 = Color3.new(0, 0, 0)
  174. Credit.TextSize = 14
  175. B1.Name = "B1"
  176. B1.Parent = Frame
  177. B1.BackgroundColor3 = Color3.new(1, 1, 1)
  178. B1.BackgroundTransparency = 0.5
  179. B1.BorderColor3 = Color3.new(1, 1, 1)
  180. B1.Position = UDim2.new(0.0240000002, 0, 0.123000003, 0)
  181. B1.Size = UDim2.new(0, 135, 0, 45)
  182. B1.Font = Enum.Font.SourceSans
  183. B1.Text = ""
  184. B1.TextColor3 = Color3.new(0, 0, 0)
  185. B1.TextSize = 14
  186. L1.Name = "L1"
  187. L1.Parent = B1
  188. L1.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  189. L1.BackgroundTransparency = 0.30000001192093
  190. L1.BorderSizePixel = 0
  191. L1.Size = UDim2.new(0, 10, 0, 10)
  192. L1.Font = Enum.Font.SourceSans
  193. L1.Text = ""
  194. L1.TextColor3 = Color3.new(0, 0, 0)
  195. L1.TextSize = 14
  196. B2.Name = "B2"
  197. B2.Parent = Frame
  198. B2.BackgroundColor3 = Color3.new(1, 1, 1)
  199. B2.BackgroundTransparency = 0.5
  200. B2.BorderColor3 = Color3.new(1, 1, 1)
  201. B2.Position = UDim2.new(0.518999994, 0, 0.123000003, 0)
  202. B2.Size = UDim2.new(0, 135, 0, 45)
  203. B2.Font = Enum.Font.SourceSans
  204. B2.Text = ""
  205. B2.TextColor3 = Color3.new(0, 0, 0)
  206. B2.TextSize = 14
  207. L2.Name = "L2"
  208. L2.Parent = B2
  209. L2.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  210. L2.BackgroundTransparency = 0.30000001192093
  211. L2.BorderSizePixel = 0
  212. L2.Size = UDim2.new(0, 10, 0, 10)
  213. L2.Font = Enum.Font.SourceSans
  214. L2.Text = ""
  215. L2.TextColor3 = Color3.new(0, 0, 0)
  216. L2.TextSize = 14
  217. B3.Name = "B3"
  218. B3.Parent = Frame
  219. B3.BackgroundColor3 = Color3.new(1, 1, 1)
  220. B3.BackgroundTransparency = 0.5
  221. B3.BorderColor3 = Color3.new(1, 1, 1)
  222. B3.Position = UDim2.new(0.0240000002, 0, 0.317999989, 0)
  223. B3.Size = UDim2.new(0, 135, 0, 45)
  224. B3.Font = Enum.Font.SourceSans
  225. B3.Text = ""
  226. B3.TextColor3 = Color3.new(0, 0, 0)
  227. B3.TextSize = 14
  228. L3.Name = "L3"
  229. L3.Parent = B3
  230. L3.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  231. L3.BackgroundTransparency = 0.30000001192093
  232. L3.BorderSizePixel = 0
  233. L3.Size = UDim2.new(0, 10, 0, 10)
  234. L3.Font = Enum.Font.SourceSans
  235. L3.Text = ""
  236. L3.TextColor3 = Color3.new(0, 0, 0)
  237. L3.TextSize = 14
  238. B4.Name = "B4"
  239. B4.Parent = Frame
  240. B4.BackgroundColor3 = Color3.new(1, 1, 1)
  241. B4.BackgroundTransparency = 0.5
  242. B4.BorderColor3 = Color3.new(1, 1, 1)
  243. B4.Position = UDim2.new(0.518999994, 0, 0.317999989, 0)
  244. B4.Size = UDim2.new(0, 135, 0, 45)
  245. B4.Font = Enum.Font.SourceSans
  246. B4.Text = ""
  247. B4.TextColor3 = Color3.new(0, 0, 0)
  248. B4.TextSize = 14
  249. L4.Name = "L4"
  250. L4.Parent = B4
  251. L4.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  252. L4.BackgroundTransparency = 0.30000001192093
  253. L4.BorderSizePixel = 0
  254. L4.Size = UDim2.new(0, 10, 0, 10)
  255. L4.Font = Enum.Font.SourceSans
  256. L4.Text = ""
  257. L4.TextColor3 = Color3.new(0, 0, 0)
  258. L4.TextSize = 14
  259. B5.Name = "B5"
  260. B5.Parent = Frame
  261. B5.BackgroundColor3 = Color3.new(1, 1, 1)
  262. B5.BackgroundTransparency = 0.5
  263. B5.BorderColor3 = Color3.new(1, 1, 1)
  264. B5.Position = UDim2.new(0.0240000002, 0, 0.514999986, 0)
  265. B5.Size = UDim2.new(0, 135, 0, 45)
  266. B5.Font = Enum.Font.SourceSans
  267. B5.Text = ""
  268. B5.TextColor3 = Color3.new(0, 0, 0)
  269. B5.TextSize = 14
  270. L5.Name = "L5"
  271. L5.Parent = B5
  272. L5.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  273. L5.BackgroundTransparency = 0.30000001192093
  274. L5.BorderSizePixel = 0
  275. L5.Size = UDim2.new(0, 10, 0, 10)
  276. L5.Font = Enum.Font.SourceSans
  277. L5.Text = ""
  278. L5.TextColor3 = Color3.new(0, 0, 0)
  279. L5.TextSize = 14
  280. B6.Name = "B6"
  281. B6.Parent = Frame
  282. B6.BackgroundColor3 = Color3.new(1, 1, 1)
  283. B6.BackgroundTransparency = 0.5
  284. B6.BorderColor3 = Color3.new(1, 1, 1)
  285. B6.Position = UDim2.new(0.518999994, 0, 0.514999986, 0)
  286. B6.Size = UDim2.new(0, 135, 0, 45)
  287. B6.Font = Enum.Font.SourceSans
  288. B6.Text = ""
  289. B6.TextColor3 = Color3.new(0, 0, 0)
  290. B6.TextSize = 14
  291. L6.Name = "L6"
  292. L6.Parent = B6
  293. L6.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  294. L6.BackgroundTransparency = 0.30000001192093
  295. L6.BorderSizePixel = 0
  296. L6.Size = UDim2.new(0, 10, 0, 10)
  297. L6.Font = Enum.Font.SourceSans
  298. L6.Text = ""
  299. L6.TextColor3 = Color3.new(0, 0, 0)
  300. L6.TextSize = 14
  301. B7.Name = "B7"
  302. B7.Parent = Frame
  303. B7.BackgroundColor3 = Color3.new(1, 1, 1)
  304. B7.BackgroundTransparency = 0.5
  305. B7.BorderColor3 = Color3.new(1, 1, 1)
  306. B7.Position = UDim2.new(0, 7, 0, 192)
  307. B7.Size = UDim2.new(0, 135, 0, 45)
  308. B7.Font = Enum.Font.SourceSans
  309. B7.Text = ""
  310. B7.TextColor3 = Color3.new(0, 0, 0)
  311. B7.TextSize = 14
  312. L7.Name = "L7"
  313. L7.Parent = B7
  314. L7.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  315. L7.BackgroundTransparency = 0.30000001192093
  316. L7.BorderSizePixel = 0
  317. L7.Size = UDim2.new(0, 10, 0, 10)
  318. L7.Font = Enum.Font.SourceSans
  319. L7.Text = ""
  320. L7.TextColor3 = Color3.new(0, 0, 0)
  321. L7.TextSize = 14
  322. B8.Name = "B8"
  323. B8.Parent = Frame
  324. B8.BackgroundColor3 = Color3.new(1, 1, 1)
  325. B8.BackgroundTransparency = 0.5
  326. B8.BorderColor3 = Color3.new(1, 1, 1)
  327. B8.Position = UDim2.new(0, 153, 0, 192)
  328. B8.Size = UDim2.new(0, 135, 0, 45)
  329. B8.Font = Enum.Font.SourceSans
  330. B8.Text = ""
  331. B8.TextColor3 = Color3.new(0, 0, 0)
  332. B8.TextSize = 14
  333. L8.Name = "L8"
  334. L8.Parent = B8
  335. L8.BackgroundColor3 = Color3.new(0.0509804, 0.137255, 0.254902)
  336. L8.BackgroundTransparency = 0.30000001192093
  337. L8.BorderSizePixel = 0
  338. L8.Size = UDim2.new(0, 10, 0, 10)
  339. L8.Font = Enum.Font.SourceSans
  340. L8.Text = ""
  341. L8.TextColor3 = Color3.new(0, 0, 0)
  342. L8.TextSize = 14
  343. B1.TextWrapped = true
  344. B2.TextWrapped = true
  345. B3.TextWrapped = true
  346. B4.TextWrapped = true
  347. B5.TextWrapped = true
  348. B6.TextWrapped = true
  349. B7.TextWrapped = true
  350. B8.TextWrapped = true
  351. ---------------------------------Functions---------------------------------
  352. m = 0
  353. Minimize.MouseButton1Click:connect(function()
  354.     if m == 0 then
  355.         m = 1
  356.         B1.Visible = false
  357.         B2.Visible = false
  358.         B3.Visible = false
  359.         B4.Visible = false
  360.         B5.Visible = false
  361.         B6.Visible = false
  362.         B7.Visible = false
  363.         B8.Visible = false
  364.         Credit.Visible = false
  365.         Frame.Size = UDim2.new(0, 295, 0, 25)
  366.     else
  367.         m = 0
  368.         B1.Visible = true
  369.         B2.Visible = true
  370.         B3.Visible = true
  371.         B4.Visible = true
  372.         B5.Visible = true
  373.         B6.Visible = true
  374.         B7.Visible = true
  375.         B8.Visible = true
  376.         Credit.Visible = true
  377.         Frame.Size = UDim2.new(0, 295, 0, 270)
  378.     end
  379. end)
  380. Close.MouseButton1Click:connect(function()
  381.     VarOff()
  382.     ScreenGui:Destroy()
  383. end)
  384. function on(light)
  385.     light.BackgroundColor3 = Color3.fromRGB(51, 139, 255)
  386. end
  387. function off(light)
  388.     light.BackgroundColor3 = Color3.fromRGB(13, 35, 65)
  389. end
  390. local keys
  391. if not pcall(function()
  392.     keypress(38)
  393. end) then
  394.     keys = {}
  395.     keys["0"] = 0x30;keys["1"] = 0x31;keys["2"] = 0x32;keys["3"] = 0x33;keys["4"] = 0x34;keys["5"] = 0x35;keys["6"] = 0x36;keys["7"] = 0x37;keys["8"] = 0x38;keys["9"] = 0x39;keys.A = 0x41;keys.B = 0x42;keys.C = 0x43;keys.D = 0x44;keys.E = 0x45;keys.F = 0x46;keys.G = 0x47;keys.H = 0x48;keys.I = 0x49;keys.J = 0x4A;keys.K = 0x4B;keys.L = 0x4C;keys.M = 0x4D;keys.N = 0x4E;keys.O = 0x4F;keys.P = 0x50;keys.Q = 0x51;keys.R = 0x52;keys.S = 0x53;keys.T = 0x54;keys.U = 0x55;keys.V = 0x56;keys.W = 0x57;keys.X = 0x58;keys.Y = 0x59;keys.Z = 0x5A;keys[";"] = 0xBA;
  396.     function Hit(key,hold,release)
  397.         if not hold and not release then
  398.             for i,v in pairs(keys) do
  399.                 if i == string.upper(key) then
  400.                     Input.KeyPress(v)
  401.                     break
  402.                 end
  403.             end
  404.         elseif hold then
  405.             for i,v in pairs(keys) do
  406.                 if i == string.upper(key) then
  407.                     Input.KeyDown(v)
  408.                     break
  409.                 end
  410.             end
  411.         elseif release then
  412.             for i,v in pairs(keys) do
  413.                 if i == string.upper(key) then
  414.                     Input.KeyUp(v)
  415.                     break
  416.                 end
  417.             end
  418.         end
  419.         return
  420.     end
  421. else
  422.     keys = {}
  423.     keys["0"] = 48;keys["1"] = 49;keys["2"] = 50;keys["3"] = 51;keys["4"] = 52;keys["5"] = 53;keys["6"] = 54;keys["7"] = 55;keys["8"] = 56;keys["9"] = 57;keys.A = 65;keys.B = 66;keys.C = 67;keys.D = 68;keys.E = 69;keys.F = 70;keys.G = 71;keys.H = 72;keys.I = 73;keys.J = 74;keys.K = 75;keys.L = 76;keys.M = 77;keys.N = 78;keys.O = 79;keys.P = 80;keys.Q = 81;keys.R = 82;keys.S = 83;keys.T = 84;keys.U = 85;keys.V = 86;keys.W = 87;keys.X = 88;keys.Y = 89;keys.Z = 90;keys[";"] = 186;
  424.     function Hit(key,hold,release)
  425.         if not hold and not release then
  426.             for i,v in pairs(keys) do
  427.                 if i == string.upper(key) then
  428.                     keypress(v)
  429.                     keyrelease(v)
  430.                     break
  431.                 end
  432.             end
  433.         elseif hold then
  434.             for i,v in pairs(keys) do
  435.                 if i == string.upper(key) then
  436.                     keypress(v)
  437.                     break
  438.                 end
  439.             end
  440.         elseif release then
  441.             for i,v in pairs(keys) do
  442.                 if i == string.upper(key) then
  443.                     keyrelease(v)
  444.                     break
  445.                 end
  446.             end
  447.         end
  448.         return
  449.     end
  450. end
  451. if not _G.connections then
  452.     _G.connections = {}
  453. end
  454. for i,v in pairs(_G.connections) do
  455.     v:Disconnect()
  456. end
  457. _G.connections = {}
  458. ---------------------------------MainCode---------------------------------
  459.  
  460. Credit.Text = Credit.Text .. "brianops1" --Scripter Credit Here
  461.  
  462. Game.Text = "rosu!mania" --Game name here
  463.  
  464. B1.Text = "Auto - Perfect" --Name of the buttons (scripts)
  465. B2.Text = "Auto - Great"
  466. B3.Text = ""
  467. B4.Text = ""
  468. B5.Text = ""
  469. B6.Text = ""
  470. B7.Text = ""
  471. B8.Text = ""
  472.  
  473.  
  474. B1.MouseButton1Click:connect(function()
  475.     if _G.on1 == 1 then
  476.         _G.on1 = 0
  477.         off(L1)
  478.         for i,v in pairs(_G.connections) do
  479.             v:Disconnect()
  480.         end
  481.         _G.connections = {}
  482.     else
  483.         _G.on1 = 1
  484.         on(L1)
  485.         for a,b in pairs(plr.PlayerGui.GameUI.GameplayFrame.Tracks:GetChildren()) do
  486.             if b and b:IsA("Frame") then
  487.                 local key
  488.                 if b.Name == "Track1" then
  489.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track1"].Text
  490.                 elseif b.Name == "Track2" then
  491.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track2"].Text
  492.                 elseif b.Name == "Track3" then
  493.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track3"].Text
  494.                 elseif b.Name == "Track4" then
  495.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track4"].Text
  496.                 end
  497.                 local con = b.ChildAdded:Connect(function(child)
  498.                     if _G.on1 == 1 then
  499.                         if child:IsA("Frame") then
  500.                             local hit = false
  501.                             while _G.on1 == 1 and child and not hit do
  502.                                 game:GetService('RunService').Stepped:wait()
  503.                                 if child.Position.Y.Scale >= .98 then
  504.                                     hit = true
  505.                                     Hit(key,false,false)
  506.                                 end
  507.                                 if not child then
  508.                                     hit = true
  509.                                 end
  510.                             end
  511.                         elseif child:IsA("Folder") then
  512.                             local hit = false
  513.                             while _G.on1 == 1 and child and not hit do
  514.                                 game:GetService('RunService').Stepped:wait()
  515.                                 if child.Head.Position.Y.Scale >= .98 then
  516.                                     Hit(key,true,false)
  517.                                 end
  518.                                 if child.Tail.Position.Y.Scale >= .98 then
  519.                                     Hit(key,false,true)
  520.                                     hit = true
  521.                                 end
  522.                                 if not child then
  523.                                     hit = true
  524.                                 end
  525.                             end
  526.                         end
  527.                     end
  528.                 end)
  529.                 table.insert(_G.connections,con)
  530.             end
  531.         end
  532.         game:GetService('RunService').Stepped:wait()
  533.     end
  534. end)
  535.  
  536.  
  537. B2.MouseButton1Click:connect(function()
  538.     if _G.on2 == 1 then
  539.         _G.on2 = 0
  540.         off(L2)
  541.         for i,v in pairs(_G.connections) do
  542.             v:Disconnect()
  543.         end
  544.         _G.connections = {}
  545.     else
  546.         _G.on2 = 1
  547.         on(L2)
  548.         for a,b in pairs(plr.PlayerGui.GameUI.GameplayFrame.Tracks:GetChildren()) do
  549.             if b and b:IsA("Frame") then
  550.                 local key
  551.                 if b.Name == "Track1" then
  552.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track1"].Text
  553.                 elseif b.Name == "Track2" then
  554.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track2"].Text
  555.                 elseif b.Name == "Track3" then
  556.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track3"].Text
  557.                 elseif b.Name == "Track4" then
  558.                     key = plr["PlayerGui"]["GameUI"]["MENUS"]["OptionsFrame"]["Keybinds"]["Track4"].Text
  559.                 end
  560.                 local con = b.ChildAdded:Connect(function(child)
  561.                     if _G.on2 == 1 then
  562.                         if child:IsA("Frame") then
  563.                             local hit = false
  564.                             while _G.on2 == 1 and child and not hit do
  565.                                 game:GetService('RunService').Stepped:wait()
  566.                                 if child.Position.Y.Scale >= .94 then
  567.                                     hit = true
  568.                                     Hit(key,false,false)
  569.                                 end
  570.                                 if not child then
  571.                                     hit = true
  572.                                 end
  573.                             end
  574.                         elseif child:IsA("Folder") then
  575.                             local hit = false
  576.                             while _G.on2 == 1 and child and not hit do
  577.                                 game:GetService('RunService').Stepped:wait()
  578.                                 if child.Head.Position.Y.Scale >= .94 then
  579.                                     Hit(key,true,false)
  580.                                 end
  581.                                 if child.Tail.Position.Y.Scale >= .94 then
  582.                                     Hit(key,false,true)
  583.                                     hit = true
  584.                                 end
  585.                                 if not child then
  586.                                     hit = true
  587.                                 end
  588.                             end
  589.                         end
  590.                     end
  591.                 end)
  592.                 table.insert(_G.connections,con)
  593.             end
  594.         end
  595.         game:GetService('RunService').Stepped:wait()
  596.     end
  597. end)
  598.  
  599.  
  600. B3.MouseButton1Click:connect(function()
  601.     if _G.on3 == 1 then
  602.         _G.on3 = 0
  603.         off(L3)
  604.     else
  605.         _G.on3 = 1
  606.         on(L3)
  607.         --code
  608.         game:GetService('RunService').Stepped:wait()
  609.     end
  610. end)
  611.  
  612.  
  613. B4.MouseButton1Click:connect(function()
  614.     if _G.on4 == 1 then
  615.         _G.on4 = 0
  616.         off(L4)
  617.     else
  618.         _G.on4 = 1
  619.         on(L4)
  620.         game:GetService('RunService').Stepped:wait()
  621.         --code
  622.     end
  623. end)
  624.  
  625.  
  626. B5.MouseButton1Click:connect(function()
  627.     if _G.on5 == 1 then
  628.         _G.on5 = 0
  629.         off(L5)
  630.     else
  631.         _G.on5 = 1
  632.         on(L5)
  633.         game:GetService('RunService').Stepped:wait()
  634.         --code
  635.     end
  636. end)
  637.  
  638.  
  639. B6.MouseButton1Click:connect(function()
  640.     if _G.on6 == 1 then
  641.         _G.on6 = 0
  642.         off(L6)
  643.     else
  644.         _G.on6 = 1
  645.         on(L6)
  646.         game:GetService('RunService').Stepped:wait()
  647.         --code
  648.     end
  649. end)
  650.  
  651.  
  652. B7.MouseButton1Click:connect(function()
  653.     if _G.on7 == 1 then
  654.         _G.on7 = 0
  655.         off(L7)
  656.     else
  657.         _G.on7 = 1
  658.         on(L7)
  659.         game:GetService('RunService').Stepped:wait()
  660.         --code
  661.     end
  662. end)
  663.  
  664.  
  665. B8.MouseButton1Click:connect(function()
  666.     if _G.on8 == 1 then
  667.         _G.on8 = 0
  668.         off(L8)
  669.     else
  670.         _G.on8 = 1
  671.         on(L8)
  672.         game:GetService('RunService').Stepped:wait()
  673.         --code
  674.     end
  675. end)
  676. print('Loaded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement