Advertisement
Eliquimzzz

Yes

Apr 24th, 2022
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.66 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. local Sectors = {}
  11.  
  12. local function RemoveSpaces(str)
  13. return str:gsub(" ", "")
  14. end
  15.  
  16. local drage = false
  17. local drags = true
  18.  
  19. local Booly = false
  20. local Boolys
  21.  
  22. local longests
  23. local tops
  24. local discs = false
  25. local toppers
  26. local Downruns = false
  27.  
  28. local additions = 0.3
  29.  
  30. local longest
  31. local top
  32. local disc = false
  33. local topper
  34. local Downrun = false
  35.  
  36. local aimer = false
  37. local renderer = false
  38.  
  39. local cdown = false
  40.  
  41. local rs = game:GetService("RunService")
  42.  
  43. local Notification = loadstring(game:HttpGet("https://raw.githubusercontent.com/Hosvile/The-telligence/main/Notificationer", true))()
  44.  
  45. local UserInputService = game:GetService("UserInputService")
  46. local TweenService = game:GetService("TweenService")
  47. local RunService = game:GetService("RunService")
  48.  
  49. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  50. local cores = game:GetService("CoreGui")
  51. local lplays = game:GetService("Players").LocalPlayer
  52. local hiddenss
  53.  
  54. print("Checking")
  55.  
  56. for i, v in pairs(cores:GetDescendants()) do
  57. if v.Name == "Screeny" then
  58. v:Destroy()
  59. end
  60. end
  61. wait()
  62.  
  63. print("Sectors")
  64.  
  65. function Sectors:CreateButton()
  66.  
  67. print("Creating")
  68.  
  69. local hiddens = get_hidden_gui or gethui()
  70. ----print("dun")
  71. local screns = Instance.new("ScreenGui")
  72. screns.Name = "Screeny"
  73. if hiddenss then
  74. screns.Parent = hiddens
  75. else
  76. screns.Parent = cores
  77. end
  78.  
  79. local free = Instance.new("Frame")
  80. free.Name = "Dash"
  81. free.BackgroundTransparency = 1
  82. free.Size = UDim2.new(0.5,0,0.5,0)
  83. free.SizeConstraint = Enum.SizeConstraint.RelativeYY
  84. local xx = free.AbsoluteSize.X / 2
  85. local yy = free.AbsoluteSize.Y / 2
  86. free.AnchorPoint = Vector2.new(0.5,0.5)
  87. free.Position = UDim2.new(0.5, -free.AbsoluteSize.X / 2, 0.5, -free.AbsoluteSize.Y / 2)
  88. free.Parent = screns
  89.  
  90. local ButtonType = {}
  91.  
  92. function ButtonType:Butter(name,action)
  93. local hiddens = get_hidden_gui or gethui()
  94. local imb = Instance.new("ImageButton")
  95. local texa = Instance.new("TextLabel")
  96. --print("ran")
  97. if hiddens then
  98. imb.Parent = free
  99. --print("UI has been Hidden")
  100. else
  101. imb.Parent = cores.Screeny.Dash
  102. --print("UI has not been hidden")
  103. end
  104. imb.Name = RemoveSpaces(name)
  105. imb.BackgroundTransparency = 1
  106. imb.ImageTransparency = 0.5
  107. imb.Image = "http://www.roblox.com/asset/?id=9272739106"
  108. imb.AnchorPoint = Vector2.new(0.5,0.5)
  109. imb.Size = UDim2.new(0.4,0,0.4,0)
  110. local x = imb.AbsoluteSize.X
  111. local y = imb.AbsoluteSize.Y
  112. imb.Position = UDim2.new(0.5,0,0.5,0)
  113. getgenv().Buttons_ = imb
  114.  
  115. texa.Parent = imb
  116. texa.Text = RemoveSpaces(name)
  117. texa.Size = imb.Size
  118. texa.TextSize = 11
  119. texa.TextColor = BrickColor.new("White")
  120. texa.TextTransparency = 0.5
  121. texa.BackgroundTransparency = 1
  122.  
  123. if additions < 0.5 then
  124. additions = additions + 0.2
  125. end
  126.  
  127. texa.Position = imb.Position
  128. texa.AnchorPoint = imb.AnchorPoint
  129.  
  130. imb.MouseButton1Click:Connect(function()
  131. if drage == false then
  132. if Boolys == false then
  133. Boolys = true
  134. imb.Image = "http://www.roblox.com/asset/?id=9274728339"
  135. coroutine.wrap(function()
  136. wait(0.2)
  137. imb.Image = "http://www.roblox.com/asset/?id=9274728339"
  138. end)()
  139. else
  140. Boolys = false
  141. imb.Image = "http://www.roblox.com/asset/?id=9272739106"
  142. end
  143. action(imb)
  144. end
  145. end)
  146.  
  147. topper = imb.MouseButton1Down:Connect(function()
  148. if Downrun == false then
  149. ------print("running")
  150. local userInputService = game:GetService("UserInputService")
  151.  
  152. function TouchLongPress(TouchPositions, state, gameProcessedEvent)
  153. spawn(function()
  154. disc = false
  155. drage = true
  156. local UserInputService = game:GetService("UserInputService")
  157.  
  158. local gui = imb
  159.  
  160. local dragging
  161. local dragInput
  162. local dragStart
  163. local startPos
  164. local redlag = 0
  165. local Irritate = 2
  166.  
  167. local function update(input)
  168. if Irritate == redlag then
  169. wait()
  170. redlag = 0
  171. end
  172. local delta = input.Position - dragStart
  173. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  174. end
  175. local nis
  176. nis = gui.InputBegan:Connect(function(input)
  177. if Irritate == redlag then
  178. wait()
  179. redlag = 0
  180. end
  181. if disc == true then
  182. nis:Disconnect()
  183. end
  184. top:Disconnect()
  185. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  186. dragging = true
  187. dragStart = input.Position
  188. startPos = gui.Position
  189. redlag = redlag + 1
  190. imb.ImageTransparency = 0
  191.  
  192. Downrun = true
  193. input.Changed:Connect(function()
  194. if input.UserInputState == Enum.UserInputState.End then
  195. dragging = false
  196. Downrun = false
  197. coroutine.wrap(function()
  198. wait(0.05)
  199. drage = false
  200. end)()
  201. pcall(function()
  202. top:Disconnect()
  203. end)
  204. end
  205. end)
  206. end
  207. end)
  208. local niss
  209. niss = gui.InputChanged:Connect(function(input)
  210. if disc == true then
  211. niss:Disconnect()
  212. end
  213. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  214. dragInput = input
  215. end
  216. end)
  217. local nisss
  218. nisss = UserInputService.InputChanged:Connect(function(input)
  219. if disc == true then
  220. nisss:Disconnect()
  221. end
  222. if input == dragInput and dragging then
  223. update(input)
  224. end
  225. end)
  226. end)
  227. end
  228. top = userInputService.TouchLongPress:Connect(TouchLongPress)
  229. imb.Image = "http://www.roblox.com/asset/?id=9282620326"
  230. end
  231. end)
  232.  
  233. local rawpath = cores.Screeny.Dash
  234.  
  235. Mouse.Button1Up:Connect(function()
  236. imb.Image = "http://www.roblox.com/asset/?id=9272739106"
  237. pcall(function()
  238. if top then
  239. top:Disconnect()
  240. end
  241. if longest then
  242. longest:Disconnect()
  243. end
  244. end)
  245. if Downrun == true then
  246. Downrun = false
  247. end
  248. if disc == false then
  249. disc = true
  250. end
  251. end)
  252.  
  253. imb.MouseButton1Up:Connect(function()
  254. imb.Image = "http://www.roblox.com/asset/?id=9272739106"
  255. pcall(function()
  256. if top then
  257. top:Disconnect()
  258. end
  259. if longest then
  260. longest:Disconnect()
  261. end
  262. end)
  263. if Downrun == true then
  264. Downrun = false
  265. end
  266. if disc == false then
  267. disc = true
  268. end
  269. end)
  270. end
  271.  
  272. function ButtonType:Toggled(names, bools)
  273. local hiddens = get_hidden_gui or gethui()
  274. local tog = Instance.new("ImageButton")
  275. local taxe = Instance.new("TextLabel")
  276.  
  277. local hiddens = get_hidden_gui or gethui()
  278. if hiddens then
  279. tog.Parent = free
  280. --print("UI has been Hidden")
  281. else
  282. tog.Parent = cores.Screeny.Dash
  283. --print("UI has not been hidden")
  284. end
  285. tog.Name = RemoveSpaces(names)
  286. tog.BackgroundTransparency = 1
  287. tog.ImageTransparency = 0.5
  288. tog.Image = "http://www.roblox.com/asset/?id=9272739106"
  289. tog.AnchorPoint = Vector2.new(0.5,0.5)
  290. tog.Size = UDim2.new(0.39,0,0.39,0)
  291. local x = tog.AbsoluteSize.X
  292. local y = tog.AbsoluteSize.Y
  293. tog.Position = UDim2.new(0.5,0,0.5,0)
  294. getgenv().Toggle_ = tog
  295.  
  296. taxe.Parent = tog
  297. taxe.Text = RemoveSpaces(names)
  298. taxe.BackgroundTransparency = 1
  299. taxe.Size = tog.Size
  300. taxe.TextTransparency = 0.5
  301. taxe.TextSize = 11
  302. taxe.TextColor = BrickColor.new("White")
  303.  
  304. if additions < 0.5 then
  305. additions = additions + 0.2
  306. end
  307.  
  308. taxe.AnchorPoint = tog.AnchorPoint
  309. taxe.Position = tog.Position
  310.  
  311. tog.MouseButton1Click:Connect(function()
  312. if drags == false then
  313. if Booly == false then
  314. Booly = true
  315. tog.Image = "http://www.roblox.com/asset/?id=9274728339"
  316. else
  317. Booly = false
  318. tog.Image = "http://www.roblox.com/asset/?id=9272739106"
  319. end
  320. bools(Booly)
  321. end
  322. end)
  323.  
  324. toppers = tog.MouseButton1Down:Connect(function()
  325. if Booly == false then
  326. tog.Image = "http://www.roblox.com/asset/?id=9274793304"
  327. end
  328. if Downruns == false then
  329. local userrInputService = game:GetService("UserInputService")
  330. function TouchLongPresss(TouchPositions, state, gameProcessedEvent)
  331. spawn(function()
  332. ----print("up")
  333. discs = false
  334. local UserInputService = game:GetService("UserInputService")
  335. local pathers = tostring(RemoveSpaces(names))
  336. local gui = tog
  337. local dragging
  338. local dragInput
  339. local dragStart
  340. local startPos
  341. local redlag = 0
  342. local Irritate = 2
  343. local function update(input)
  344. if Irritate == redlag then
  345. wait()
  346. redlag = 0
  347. end
  348. local delta = input.Position - dragStart
  349. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  350. end
  351. local niss
  352. niss = gui.InputBegan:Connect(function(input)
  353. if Irritate == redlag then
  354. wait()
  355. redlag = 0
  356. end
  357. if discs == true then
  358. niss:Disconnect()
  359. end
  360. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  361. dragging = true
  362. dragStart = input.Position
  363. startPos = gui.Position
  364. redlag = redlag + 1
  365. tog.ImageTransparency = 0
  366. Downruns = true
  367. input.Changed:Connect(function()
  368. if input.UserInputState == Enum.UserInputState.End then
  369. dragging = false
  370. Downruns = false
  371. coroutine.wrap(function()
  372. wait(0.05)
  373. drags = false
  374. end)()
  375. pcall(function()
  376. tops:Disconnect()
  377. end)
  378. end
  379. end)
  380. end
  381. end)
  382. local nisss
  383. nisss = gui.InputChanged:Connect(function(input)
  384. if discs == true then
  385. nisss:Disconnect()
  386. end
  387. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  388. dragInput = input
  389. end
  390. end)
  391. local nissss
  392. nissss = UserInputService.InputChanged:Connect(function(input)
  393. if discs == true then
  394. nissss:Disconnect()
  395. end
  396. if input == dragInput and dragging then
  397. update(input)
  398. end
  399. end)
  400. end)
  401. end
  402. tops = userrInputService.TouchLongPress:Connect(TouchLongPresss)
  403. if Booly == false then
  404. tog.Image = "http://www.roblox.com/asset/?id=9274793304"
  405. end
  406. end
  407. end)
  408.  
  409. local rawpath = cores.Screeny.Dash
  410.  
  411. Mouse.Button1Up:Connect(function()
  412. if Booly == false then
  413. tog.Image = "http://www.roblox.com/asset/?id=9272739106"
  414. end
  415. pcall(function()
  416. if tops then
  417. tops:Disconnect()
  418. end
  419. if longests then
  420. longests:Disconnect()
  421. end
  422. end)
  423. if Downruns == true then
  424. Downruns = false
  425. end
  426. if discs == false then
  427. discs = true
  428. end
  429. end)
  430.  
  431. tog.MouseButton1Up:Connect(function()
  432. if Booly == false then
  433. tog.Image = "http://www.roblox.com/asset/?id=9272739106"
  434. end
  435. pcall(function()
  436. if tops then
  437. tops:Disconnect()
  438. end
  439. if longests then
  440. longests:Disconnect()
  441. end
  442. end)
  443. if Downruns == true then
  444. Downruns = false
  445. end
  446. if discs == false then
  447. discs = true
  448. end
  449. end)
  450. ----print("oks")
  451. end
  452. print("Script has been Executed without any errors")
  453. return ButtonType
  454. end
  455.  
  456. task.spawn(function()
  457. local notif = Notification.new("success", "Success", "Success body message.")
  458. notif:changeHeading("Execution") -- Args(<string> NewHeading)
  459. notif:changeBody("Executed successfully") -- Args(<string> NewBody)
  460. wait(8)
  461. notif:delete()
  462. end)
  463.  
  464. task.spawn(function()
  465. local notif = Notification.new("info", "Success", "Success body message.")
  466. notif:changeHeading("Usage") -- Args(<string> NewHeading)
  467. notif:changeBody("This Gui is made By Gamingscripter, Enjoy!") -- Args(<string> NewBody)
  468. wait(15)
  469. notif:delete()
  470. end)
  471.  
  472. return Sectors
  473.  
  474. --[[ Example Use
  475. local Type = loadstring(game:HttpGet(("https://raw.githubusercontent.com/Hosvile/The-telligence/main/MCButton002"),true))()
  476.  
  477. table.foreach(Type,print)
  478.  
  479. local Types = Type:CreateButton()
  480.  
  481. Types:Butter("Button",function()
  482.  
  483. end)
  484.  
  485. Types:Toggled("Toggle",function()
  486.  
  487. end)
  488. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement