Advertisement
unknownexploits

ninja sim

Feb 17th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.86 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://pastebin.com/raw/AqZYACS7", true))()
  2. local mouse = game.Players.LocalPlayer:GetMouse();
  3. local UserInput = game:GetService("UserInputService")
  4. local farming = library:CreateWindow({
  5. text = "Farming"
  6. })
  7. local character = library:CreateWindow({
  8. text = "Character"
  9. })
  10. local teleports = library:CreateWindow({
  11. text = "Teleports"
  12. })
  13.  
  14. local miscellaneous = library:CreateWindow({
  15. text = "Miscellaneous"
  16. })
  17.  
  18. local settings = {
  19. autofarm = false;
  20. autosell = false;
  21. autofarmcoins = false;
  22. logs = false;
  23. vis = false;
  24. }
  25. loadstring(game:HttpGet("https://pastebin.com/raw/xKbbAuc7"))() wait(.1)
  26.  
  27. local credits = library:CreateWindow({text='Credits'})
  28. credits:AddLabel("Credits\nInori: Dragging\nwally: UI\nsmail: Ideas")
  29.  
  30. farming:AddToggle("AutoFarm", function(state)
  31. if settings.autofarm == false then
  32. settings.autofarm = true
  33. while wait() do
  34. local tbl_main =
  35. {
  36. "swingKatana"
  37. }
  38. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  39. if settings.autofarm == false then
  40. break
  41. end
  42. end
  43. else
  44. settings.autofarm = false
  45. end
  46. end)
  47.  
  48. farming:AddToggle("Auto Sell", function(state)
  49. if settings.autosell == false then
  50. settings.autosell = true
  51. while wait() do
  52. workspace.sellAreaCircles.sellAreaCircle.circleInner.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  53. if settings.autosell == false then
  54. workspace.sellAreaCircles.sellAreaCircle.circleInner.CFrame = CFrame.new(77.014, 6.29789, -51.3384)
  55. break
  56. end
  57. end
  58. else
  59. settings.autosell = false
  60. end
  61. end)
  62.  
  63. farming:AddToggle("Farm Coins and Chi", function(state)
  64. if settings.autofarmcoins == false then
  65. settings.autofarmcoins = true
  66. local charpos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  67. while wait() do
  68. for i,v in pairs(workspace.spawnedCoins.Valley:GetChildren()) do
  69. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  70. end
  71. if settings.autofarmcoins == false then
  72. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = charpos
  73. break
  74. end
  75. end
  76. else
  77. settings.autofarmcoins = false
  78. end
  79. end)
  80.  
  81. farming:AddToggle("Remove coin effects shit", function(state)
  82. if state then
  83. game.Players.LocalPlayer.PlayerGui.statEffectsGui.Enabled = false
  84. if game.Players.LocalPlayer.PlayerGui.gameGui:FindFirstChild("maxNinjitsuMenu") then
  85. game.Players.LocalPlayer.PlayerGui.gameGui.maxNinjitsuMenu.Parent = game.Players.LocalPlayer.PlayerGui
  86. end
  87. else
  88. game.Players.LocalPlayer.PlayerGui.statEffectsGui.Enabled = true
  89. game.Players.LocalPlayer.PlayerGui:WaitForChild("maxNinjitsuMenu").Parent = game.Players.LocalPlayer.PlayerGui.gameGui
  90. end
  91. end)
  92.  
  93. character:AddToggle("Super Speed", function(state)
  94. game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = (state and 100 or 16)
  95. end)
  96.  
  97. character:AddBox("WalkSpeed", function(object, focus)
  98. if focus then
  99. game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = tonumber(object.Text) or 16
  100. end
  101. end)
  102.  
  103. character:AddToggle("Super Jump", function(state)
  104. game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = (state and 100 or 50)
  105. end)
  106.  
  107. character:AddBox("JumpPower", function(object, focus)
  108. if focus then
  109. game:GetService("Players").LocalPlayer.Character.Humanoid.JumpPower = tonumber(object.Text) or 50
  110. end
  111. end)
  112.  
  113. character:AddButton("Reset", function()
  114. game:GetService("Players").LocalPlayer.Character.Humanoid.Health = 0;
  115. end)
  116.  
  117. teleports:AddButton("Enchanted Island", function()
  118. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Enchanted Island"].CFrame
  119. end)
  120.  
  121. teleports:AddButton("Astral Island", function()
  122. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Astral Island"].CFrame
  123. end)
  124.  
  125. teleports:AddButton("Mystical Island", function()
  126. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Mystical Island"].CFrame
  127. end)
  128.  
  129. teleports:AddButton("Space Island", function()
  130. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Space Island"].CFrame
  131. end)
  132.  
  133. teleports:AddButton("Tundra Island", function()
  134. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Tundra Island"].CFrame
  135. end)
  136.  
  137. teleports:AddButton("Eternal Island", function()
  138. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Eternal Island"].CFrame
  139. end)
  140.  
  141. teleports:AddButton("Sandstorm", function()
  142. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Sandstorm"].CFrame
  143. end)
  144.  
  145. teleports:AddButton("Thunderstorm", function()
  146. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Thunderstorm"].CFrame
  147. end)
  148.  
  149. teleports:AddButton("Ancient Inferno Island", function()
  150. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Ancient Inferno Island"].CFrame
  151. end)
  152.  
  153. teleports:AddButton("Midnight Shadow Island", function()
  154. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Midnight Shadow Island"].CFrame
  155. end)
  156.  
  157. teleports:AddButton("Mythical Souls Island", function()
  158. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Mythical Souls Island"].CFrame
  159. end)
  160.  
  161. teleports:AddButton("Winter Wonder Island", function()
  162. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Winter Wonder Island"].CFrame
  163. end)
  164.  
  165. teleports:AddButton("Golden Master Island", function()
  166. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Golden Master Island"].CFrame
  167. end)
  168.  
  169. teleports:AddButton("Dragon Legend Island", function()
  170. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Dragon Legend Island"].CFrame
  171. end)
  172.  
  173. teleports:AddButton("Cybernetic Legends Island", function()
  174. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = workspace.islandUnlockParts["Cybernetic Legends Island"].CFrame
  175. end)
  176.  
  177. miscellaneous:AddLabel(" --Buy All Swords--")
  178.  
  179. local dropdown;
  180. dropdown = miscellaneous:AddDropdown({"Buy all Swords Ground", "Buy all Swords Astral Island", "Buy all Swords Space Island", "Buy all Swords Tundra Island", "Buy all Swords Eternal Island", "Buy all Swords Sandstorm", "Buy all Swords Thunderstorm", "Buy all Swords Ancient Inferno Island", "Buy all Swords Midnight Shadow Island", "Buy all Swords Mythical Souls Island", "Buy all Swords Winter Wonder Island", "Buy all Swords Golden Master Island", "Buy all Swords Dragon Legend Island", "Buy all Swords Cybernetic Legends Island"}, function(a)
  181. if a == "Buy all Swords Ground" then
  182. local tbl_main =
  183. {
  184. "buyAllSwords",
  185. "Ground"
  186. }
  187. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  188. elseif a == "Buy all Swords Astral Island" then
  189. local tbl_main =
  190. {
  191. "buyAllSwords",
  192. "Astral Island"
  193. }
  194. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  195. elseif a == "Buy all Swords Space Island" then
  196. local tbl_main =
  197. {
  198. "buyAllSwords",
  199. "Space Island"
  200. }
  201. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  202. elseif a == "Buy all Swords Tundra Island" then
  203. local tbl_main =
  204. {
  205. "buyAllSwords",
  206. "Tundra Island"
  207. }
  208. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  209. elseif a == "Buy all Swords Eternal Island" then
  210. local tbl_main =
  211. {
  212. "buyAllSwords",
  213. "Eternal Island"
  214. }
  215. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  216. elseif a == "Buy all Swords Sandstorm" then
  217. local tbl_main =
  218. {
  219. "buyAllSwords",
  220. "Sandstorm"
  221. }
  222. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  223. elseif a == "Buy all Swords Thunderstorm" then
  224. local tbl_main =
  225. {
  226. "buyAllSwords",
  227. "Thunderstorm"
  228. }
  229. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  230. elseif a == "Buy all Swords Ancient Inferno Island" then
  231. local tbl_main =
  232. {
  233. "buyAllSwords",
  234. "Ancient Inferno Island"
  235. }
  236. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  237. elseif a == "Buy all Swords Midnight Shadow Island" then
  238. local tbl_main =
  239. {
  240. "buyAllSwords",
  241. "Midnight Shadow Island"
  242. }
  243. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  244. elseif a == "Buy all Swords Mythical Souls Island" then
  245. local tbl_main =
  246. {
  247. "buyAllSwords",
  248. "Mythical Souls Island"
  249. }
  250. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  251. elseif a == "Buy all Swords Winter Wonder Island" then
  252. local tbl_main =
  253. {
  254. "buyAllSwords",
  255. "Winter Wonder Island"
  256. }
  257. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  258. elseif a == "Buy all Swords Golden Master Island" then
  259. local tbl_main =
  260. {
  261. "buyAllSwords",
  262. "Golden Master Island"
  263. }
  264. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  265. elseif a == "Buy all Swords Dragon Legend Island" then
  266. local tbl_main =
  267. {
  268. "buyAllSwords",
  269. "Dragon Legend Island"
  270. }
  271. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  272. elseif a == "Buy all Swords Cybernetic Legends Island" then
  273. local tbl_main =
  274. {
  275. "buyAllSwords",
  276. "Cybernetic Legends Island"
  277. }
  278. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  279. end
  280. end)
  281.  
  282. miscellaneous:AddLabel(" --Buy All Belts--")
  283.  
  284. local dropdown2;
  285. dropdown2 = miscellaneous:AddDropdown({"Buy all Belts Ground", "Buy all Belts Astral Island", "Buy all Belts Space Island", "Buy all Belts Tundra Island", "Buy all Belts Eternal Island", "Buy all Belts Sandstorm", "Buy all Belts Thunderstorm", "Buy all Belts Ancient Inferno Island", "Buy all Belts Midnight Shadow Island", "Buy all Belts Mythical Souls Island", "Buy all Belts Winter Wonder Island", "Buy all Belts Golden Master Island", "Buy all Belts Dragon Legend Island", "Buy all Belts Cybernetic Legends Island"}, function(a)
  286. if a == "Buy all Belts Ground" then
  287. local tbl_main =
  288. {
  289. "buyAllSwords",
  290. "Ground"
  291. }
  292. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  293. elseif a == "Buy all Belts Astral Island" then
  294. local tbl_main =
  295. {
  296. "buyAllBelts",
  297. "Astral Island"
  298. }
  299. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  300. elseif a == "Buy all Belts Space Island" then
  301. local tbl_main =
  302. {
  303. "buyAllBelts",
  304. "Space Island"
  305. }
  306. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  307. elseif a == "Buy all Belts Tundra Island" then
  308. local tbl_main =
  309. {
  310. "buyAllBelts",
  311. "Tundra Island"
  312. }
  313. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  314. elseif a == "Buy all Belts Eternal Island" then
  315. local tbl_main =
  316. {
  317. "buyAllBelts",
  318. "Eternal Island"
  319. }
  320. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  321. elseif a == "Buy all Belts Sandstorm" then
  322. local tbl_main =
  323. {
  324. "buyAllBelts",
  325. "Sandstorm"
  326. }
  327. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  328. elseif a == "Buy all Belts Thunderstorm" then
  329. local tbl_main =
  330. {
  331. "buyAllBelts",
  332. "Thunderstorm"
  333. }
  334. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  335. elseif a == "Buy all Belts Ancient Inferno Island" then
  336. local tbl_main =
  337. {
  338. "buyAllBelts",
  339. "Ancient Inferno Island"
  340. }
  341. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  342. elseif a == "Buy all Belts Midnight Shadow Island" then
  343. local tbl_main =
  344. {
  345. "buyAllBelts",
  346. "Midnight Shadow Island"
  347. }
  348. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  349. elseif a == "Buy all Belts Mythical Souls Island" then
  350. local tbl_main =
  351. {
  352. "buyAllBelts",
  353. "Mythical Souls Island"
  354. }
  355. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  356. elseif a == "Buy all Belts Winter Wonder Island" then
  357. local tbl_main =
  358. {
  359. "buyAllBelts",
  360. "Winter Wonder Island"
  361. }
  362. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  363. elseif a == "Buy all Belts Golden Master Island" then
  364. local tbl_main =
  365. {
  366. "buyAllBelts",
  367. "Golden Master Island"
  368. }
  369. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  370. elseif a == "Buy all Belts Dragon Legend Island" then
  371. local tbl_main =
  372. {
  373. "buyAllBelts",
  374. "Dragon Legend Island"
  375. }
  376. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  377. elseif a == "Buy all Belts Cybernetic Legends Island" then
  378. local tbl_main =
  379. {
  380. "buyAllBelts",
  381. "Cybernetic Legends Island"
  382. }
  383. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  384. end
  385. end)
  386.  
  387. miscellaneous:AddButton("Buy all possible skills", function()
  388. local tbl_main =
  389. {
  390. "buyAllSkills",
  391. "Cybernetic Legends Island"
  392. }
  393. game:GetService("Players").LocalPlayer.ninjaEvent:FireServer(unpack(tbl_main))
  394. end)
  395.  
  396. function Time()
  397. local HOUR = math.floor((tick() % 86400) / 3600)
  398. local MINUTE = math.floor((tick() % 3600) / 60)
  399. local SECOND = math.floor(tick() % 60)
  400. local AP = HOUR > 11 and 'PM' or 'AM'
  401. HOUR = (HOUR % 12 == 0 and 12 or HOUR % 12)
  402. HOUR = HOUR < 10 and '0' .. HOUR or HOUR
  403. MINUTE = MINUTE < 10 and '0' .. MINUTE or MINUTE
  404. SECOND = SECOND < 10 and '0' .. SECOND or SECOND
  405. return HOUR .. ':' .. MINUTE .. ':' .. SECOND .. ' ' .. AP
  406. end
  407.  
  408. function CreateLabel(Name, Text)
  409. if #game.CoreGui.UILibrary.chatlogs.logpannel.main:GetChildren() >= 2546 then
  410. game.CoreGui.UILibrary.chatlogs.logpannel.main:ClearAllChildren()
  411. end
  412. local alls = 0
  413. for i,v in pairs(game.CoreGui.UILibrary.chatlogs.logpannel.main:GetChildren()) do
  414. if v then
  415. alls = v.Size.Y.Offset + alls
  416. end
  417. if not v then
  418. alls = 0
  419. end
  420. end
  421. local tl = Instance.new('TextLabel', game.CoreGui.UILibrary.chatlogs.logpannel.main)
  422. local il = Instance.new('Frame', tl)
  423. tl.Name = Name
  424. tl.ZIndex = 10
  425. tl.Text = Time().." - ["..Name.."]: "..Text
  426. tl.Size = UDim2.new(0,322,0,84)
  427. tl.BackgroundTransparency = 1
  428. tl.BorderSizePixel = 0
  429. tl.Font = "SourceSans"
  430. tl.Position = UDim2.new(-1,0,0,alls)
  431. tl.TextTransparency = 1
  432. tl.TextScaled = false
  433. tl.TextSize = 14
  434. tl.TextWrapped = true
  435. tl.TextXAlignment = "Left"
  436. tl.TextYAlignment = "Top"
  437. il.BackgroundTransparency = 1
  438. il.BorderSizePixel = 0
  439. il.Size = UDim2.new(0,12,1,0)
  440. il.Position = UDim2.new(0,316,0,0)
  441. il.ZIndex = 10
  442. tl.TextColor3 = Color3.fromRGB(255,255,255)
  443. tl.Size = UDim2.new(0,322,0,tl.TextBounds.Y)
  444. game.CoreGui.UILibrary.chatlogs.logpannel.main.CanvasPosition = Vector2.new(0,game.CoreGui.UILibrary.chatlogs.logpannel.main.CanvasPosition.Y+tl.TextBounds.Y)
  445. local size2 = game.CoreGui.UILibrary.chatlogs.logpannel.main.CanvasSize.Y.Offset
  446. tl:TweenPosition(UDim2.new(0,3,0,alls), 'In', 'Quint', 0.5)
  447. for i = 0,50 do wait(0.05)
  448. tl.TextTransparency = tl.TextTransparency - 0.05
  449. end
  450. tl.TextTransparency = 0
  451. end
  452.  
  453. function writefileExploit()
  454. if writefile then
  455. return true
  456. end
  457. end
  458.  
  459. local cooldown = false
  460. function writefileCooldown(name,data)
  461. spawn(function()
  462. if not cooldown then
  463. cooldown = true
  464. writefile(name, data)
  465. else
  466. repeat wait() until cooldown == false
  467. writefileCooldown(name,data)
  468. end
  469. wait(3)
  470. cooldown = false
  471. end)
  472. end
  473.  
  474. ChatLog = function(plr)
  475. plr.Chatted:Connect(function(Message)
  476. if settings.logs == true then
  477. CreateLabel(plr.Name,Message)
  478. end
  479. end)
  480. end
  481.  
  482. miscellaneous:AddToggle("Chatlogs", function(state)
  483. if state then
  484. game.CoreGui.UILibrary.chatlogs:TweenPosition(UDim2.new(0.035, 0,0.65, 0), "Out", "Linear", .3, true)
  485. else
  486. game.CoreGui.UILibrary.chatlogs:TweenPosition(UDim2.new(0.71, 0,0.997, 0), "Out", "Linear", .3, true)
  487. end
  488. end)
  489.  
  490. game.CoreGui.UILibrary.chatlogs.buttons.enable.MouseButton1Down:connect(function()
  491. if settings.logs then
  492. settings.logs = false
  493. game.CoreGui.UILibrary.chatlogs.buttons.enable.Text = 'Disabled'
  494. else
  495. settings.logs = true
  496. game.CoreGui.UILibrary.chatlogs.buttons.enable.Text = 'Enabled'
  497. end
  498. end)
  499.  
  500. game.CoreGui.UILibrary.chatlogs.buttons.clear.MouseButton1Down:connect(function()
  501. for _, child in pairs(game.CoreGui.UILibrary.chatlogs.logpannel.main:GetChildren()) do
  502. child:Destroy()
  503. end
  504. end)
  505.  
  506. game.CoreGui.UILibrary.chatlogs.buttons.save.MouseButton1Down:connect(function()
  507. if writefileExploit() then
  508. if #game.CoreGui.UILibrary.chatlogs.logpannel.main:GetChildren() > 0 then
  509. local placeName = game:GetService('MarketplaceService'):GetProductInfo(game.PlaceId).Name
  510. local writelogs = '-- Epic Hakor Man Chatlogs For "'..placeName..'"\n'
  511. for _, child in pairs(game.CoreGui.UILibrary.chatlogs.logpannel.main:GetChildren()) do
  512. writelogs = writelogs..'\n'..child.Text
  513. end
  514. local writelogsFile = tostring(writelogs)
  515. local fileext = 0
  516. local function nameFile()
  517. local file
  518. pcall(function() file = readfile(placeName..' Chat Logs ('..fileext..').txt') end)
  519. if file then
  520. fileext = fileext+1
  521. nameFile()
  522. else
  523. writefileCooldown(placeName..' Chat Logs ('..fileext..').txt', writelogsFile)
  524. end
  525. end
  526. nameFile()
  527. end
  528. else
  529. end
  530. end)
  531.  
  532. for _, plr in pairs(game.Players:GetChildren()) do
  533. if plr.ClassName == "Player" then
  534. ChatLog(plr)
  535. end
  536. end
  537.  
  538. game.Players.PlayerAdded:Connect(function(plr)
  539. ChatLog(plr)
  540. end)
  541.  
  542. miscellaneous:AddButton2("Toggle UI Key; ' '",function()
  543. game.CoreGui.UILibrary.Miscellaneous.Container.TextButton2.Text = 'Press any Key now'
  544. local input = UserInput.InputBegan:wait()
  545. if input.UserInputType == Enum.UserInputType.Keyboard then
  546. settings.togglekey = tostring(input.KeyCode)
  547. game.CoreGui.UILibrary.Miscellaneous.Container.TextButton2.Text = "Toggle UI Key; '"..string.sub(tostring(input.KeyCode), 14).."'"
  548. else
  549. settings.togglekey = tostring(input.UserInputType)
  550. game.CoreGui.UILibrary.Miscellaneous.Container.TextButton2.Text = "Toggle UI Key; '"..string.sub(tostring(input.UserInputType), 20).."'"
  551. end
  552. end)
  553.  
  554. miscellaneous:AddButton("Rejoin", function()
  555. game:GetService('TeleportService'):Teleport(game.PlaceId)
  556. end)
  557.  
  558. UserInput.InputBegan:Connect(function(input)
  559. if tostring(input.KeyCode) == settings.togglekey or tostring(input.UserInputType) == settings.togglekey then
  560. if settings.vis == true then
  561. settings.vis = false
  562. for _,v in ipairs(game.CoreGui.UILibrary:GetDescendants()) do
  563. if v:IsA("Frame") then
  564. v.Visible = false
  565. end
  566. end
  567. elseif settings.vis == false then
  568. settings.vis = true
  569. for _,v in ipairs(game.CoreGui.UILibrary:GetDescendants()) do
  570. if v:IsA("Frame") then
  571. v.Visible = true
  572. end
  573. end
  574. end
  575. end
  576. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement