Advertisement
brianops1

Rosu!mania

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