Hellotop2

Untitled

Jan 6th, 2019
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.75 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2.  
  3. if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, 2695558976) then
  4. texts = {
  5. "why did roblox remove fd"; --1
  6. "proto smasher lol"; --2
  7. "didnt expect you to be here"; --3
  8. "oof"; --4
  9. "2019 huh?"; --5
  10. "this was easy to code"; --6
  11. "to be honest i like exploiting legos"; --7
  12. }
  13.  
  14.  
  15.  
  16. -- Objects
  17.  
  18. local urmomJailbreakGUI = Instance.new("ScreenGui")
  19. local Title = Instance.new("TextLabel")
  20. local version = Instance.new("TextLabel")
  21. local LoadingFrame = Instance.new("Frame")
  22. local LoadingIcon = Instance.new("ImageLabel")
  23. local loadingtext = Instance.new("TextLabel")
  24. local TextLabel = Instance.new("TextLabel")
  25. local TextLabel_2 = Instance.new("TextLabel")
  26. local urmombackground = Instance.new("Frame")
  27. local credits = Instance.new("TextLabel")
  28. local gravitybutton = Instance.new("TextButton")
  29. local autorobgui = Instance.new("TextButton")
  30. local speedbutton = Instance.new("TextButton")
  31. local nitrobutton = Instance.new("TextButton")
  32. local blacklisted = Instance.new("TextLabel")
  33. local scriptexecutorbutton = Instance.new("TextButton")
  34. local EditorFrame = Instance.new("ScrollingFrame")
  35. local Source = Instance.new("TextBox")
  36. local Comments_ = Instance.new("TextLabel")
  37. local Globals_ = Instance.new("TextLabel")
  38. local Keywords_ = Instance.new("TextLabel")
  39. local RemoteHighlight_ = Instance.new("TextLabel")
  40. local Strings_ = Instance.new("TextLabel")
  41. local Tokens_ = Instance.new("TextLabel")
  42. local Numbers_ = Instance.new("TextLabel")
  43. local Lines = Instance.new("TextLabel")
  44. local execute = Instance.new("TextButton")
  45. local clear = Instance.new("TextButton")
  46.  
  47. -- Properties
  48.  
  49. urmomJailbreakGUI.Name = "urmomJailbreakGUI"
  50. urmomJailbreakGUI.Parent = game.CoreGui
  51.  
  52. Title.Name = "Title"
  53. Title.Parent = urmomJailbreakGUI
  54. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  55. Title.BackgroundTransparency = 1
  56. Title.Position = UDim2.new(0.0403286032, 0, 0.0357142873, 0)
  57. Title.Size = UDim2.new(0, 228, 0, 62)
  58. Title.Font = Enum.Font.SourceSansLight
  59. Title.Text = "ur mom"
  60. Title.TextColor3 = Color3.new(0, 1, 0.498039)
  61. Title.TextScaled = true
  62. Title.TextSize = 14
  63. Title.TextWrapped = true
  64.  
  65. version.Name = "version"
  66. version.Parent = urmomJailbreakGUI
  67. version.BackgroundColor3 = Color3.new(1, 1, 1)
  68. version.BackgroundTransparency = 1
  69. version.Position = UDim2.new(0.111277066, 0, 0.0726601034, 0)
  70. version.Size = UDim2.new(0, 228, 0, 62)
  71. version.Font = Enum.Font.SourceSansLight
  72. version.Text = "v0.1"
  73. version.TextColor3 = Color3.new(0.301961, 0.301961, 0.301961)
  74. version.TextSize = 31
  75. version.TextWrapped = true
  76.  
  77. LoadingFrame.Name = "LoadingFrame"
  78. LoadingFrame.Parent = urmomJailbreakGUI
  79. LoadingFrame.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
  80. LoadingFrame.BorderSizePixel = 0
  81. LoadingFrame.Position = UDim2.new(0.440390825, 0, 0.339234829, 0)
  82. LoadingFrame.Size = UDim2.new(0, 239, 0, 326)
  83.  
  84. LoadingIcon.Name = "LoadingIcon"
  85. LoadingIcon.Parent = LoadingFrame
  86. LoadingIcon.BackgroundColor3 = Color3.new(1, 1, 1)
  87. LoadingIcon.BackgroundTransparency = 1
  88. LoadingIcon.BorderSizePixel = 0
  89. LoadingIcon.Position = UDim2.new(0.251046032, 0, 0.125766873, 0)
  90. LoadingIcon.Size = UDim2.new(0, 121, 0, 123)
  91. LoadingIcon.Image = "rbxassetid://714343976"
  92.  
  93. loadingtext.Name = "loadingtext"
  94. loadingtext.Parent = LoadingFrame
  95. loadingtext.BackgroundColor3 = Color3.new(1, 1, 1)
  96. loadingtext.BackgroundTransparency = 1
  97. loadingtext.Position = UDim2.new(0.079497911, 0, 0.668711662, 0)
  98. loadingtext.Size = UDim2.new(0, 200, 0, 50)
  99. loadingtext.Font = Enum.Font.SourceSansLight
  100. loadingtext.Text = "LOADING UR MOM..."
  101. loadingtext.TextColor3 = Color3.new(1, 1, 1)
  102. loadingtext.TextScaled = true
  103. loadingtext.TextSize = 14
  104. loadingtext.TextWrapped = true
  105.  
  106. TextLabel.Parent = LoadingFrame
  107. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  108. TextLabel.BackgroundTransparency = 1
  109. TextLabel.Size = UDim2.new(0, 63, 0, 50)
  110. TextLabel.Font = Enum.Font.SourceSansSemibold
  111. TextLabel.Text = "S"
  112. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  113. TextLabel.TextScaled = true
  114. TextLabel.TextSize = 14
  115. TextLabel.TextWrapped = true
  116.  
  117. TextLabel_2.Parent = LoadingFrame
  118. TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
  119. TextLabel_2.BackgroundTransparency = 1
  120. TextLabel_2.Position = UDim2.new(0.0920502022, 0, -0.0276073627, 0)
  121. TextLabel_2.Size = UDim2.new(0, 52, 0, 38)
  122. TextLabel_2.Font = Enum.Font.SourceSansSemibold
  123. TextLabel_2.Text = "x"
  124. TextLabel_2.TextColor3 = Color3.new(1, 0.666667, 0)
  125. TextLabel_2.TextScaled = true
  126. TextLabel_2.TextSize = 14
  127. TextLabel_2.TextWrapped = true
  128.  
  129. urmombackground.Name = "urmombackground"
  130. urmombackground.Parent = urmomJailbreakGUI
  131. urmombackground.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
  132. urmombackground.BorderSizePixel = 0
  133. urmombackground.Position = UDim2.new(0.0978342071, 0, 0.336206913, 0)
  134. urmombackground.Size = UDim2.new(0, 339, 0, 265)
  135. urmombackground.Visible = false
  136.  
  137. credits.Name = "credits"
  138. credits.Parent = urmombackground
  139. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  140. credits.BackgroundTransparency = 1
  141. credits.Size = UDim2.new(0, 171, 0, 43)
  142. credits.Font = Enum.Font.SourceSansLight
  143. credits.Text = "GUI made by Freak_A_Zoid1#9144 and 3vpl#6684"
  144. credits.TextColor3 = Color3.new(1, 1, 1)
  145. credits.TextScaled = true
  146. credits.TextSize = 14
  147. credits.TextWrapped = true
  148.  
  149. gravitybutton.Name = "gravitybutton"
  150. gravitybutton.Parent = urmombackground
  151. gravitybutton.BackgroundColor3 = Color3.new(1, 1, 1)
  152. gravitybutton.BorderSizePixel = 0
  153. gravitybutton.Position = UDim2.new(0.02359882, 0, 0.207547173, 0)
  154. gravitybutton.Size = UDim2.new(0, 100, 0, 50)
  155. gravitybutton.Font = Enum.Font.SourceSansLight
  156. gravitybutton.Text = "Bypass gravity."
  157. gravitybutton.TextColor3 = Color3.new(0, 0, 0)
  158. gravitybutton.TextScaled = true
  159. gravitybutton.TextSize = 14
  160. gravitybutton.TextWrapped = true
  161.  
  162. autorobgui.Name = "autorobgui"
  163. autorobgui.Parent = urmombackground
  164. autorobgui.BackgroundColor3 = Color3.new(1, 1, 1)
  165. autorobgui.BorderSizePixel = 0
  166. autorobgui.Position = UDim2.new(0.657817125, 0, 0.207547173, 0)
  167. autorobgui.Size = UDim2.new(0, 100, 0, 50)
  168. autorobgui.Font = Enum.Font.SourceSansLight
  169. autorobgui.Text = "Auto rob GUI."
  170. autorobgui.TextColor3 = Color3.new(0, 0, 0)
  171. autorobgui.TextScaled = true
  172. autorobgui.TextSize = 14
  173. autorobgui.TextWrapped = true
  174.  
  175. speedbutton.Name = "speedbutton"
  176. speedbutton.Parent = urmombackground
  177. speedbutton.BackgroundColor3 = Color3.new(1, 1, 1)
  178. speedbutton.BorderSizePixel = 0
  179. speedbutton.Position = UDim2.new(0.0235988498, 0, 0.528301895, 0)
  180. speedbutton.Size = UDim2.new(0, 100, 0, 50)
  181. speedbutton.Font = Enum.Font.SourceSansLight
  182. speedbutton.Text = "Bypass speed."
  183. speedbutton.TextColor3 = Color3.new(0, 0, 0)
  184. speedbutton.TextScaled = true
  185. speedbutton.TextSize = 14
  186. speedbutton.TextWrapped = true
  187.  
  188. nitrobutton.Name = "nitrobutton"
  189. nitrobutton.Parent = urmombackground
  190. nitrobutton.BackgroundColor3 = Color3.new(1, 1, 1)
  191. nitrobutton.BorderSizePixel = 0
  192. nitrobutton.Position = UDim2.new(0.657817125, 0, 0.528301895, 0)
  193. nitrobutton.Size = UDim2.new(0, 100, 0, 50)
  194. nitrobutton.Font = Enum.Font.SourceSansLight
  195. nitrobutton.Text = "Infinite Nitro"
  196. nitrobutton.TextColor3 = Color3.new(0, 0, 0)
  197. nitrobutton.TextScaled = true
  198. nitrobutton.TextSize = 14
  199. nitrobutton.TextWrapped = true
  200.  
  201. blacklisted.Name = "blacklisted"
  202. blacklisted.Parent = urmombackground
  203. blacklisted.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
  204. blacklisted.Size = UDim2.new(0, 339, 0, 265)
  205. blacklisted.Visible = false
  206. blacklisted.Font = Enum.Font.SourceSansLight
  207. blacklisted.Text = "You have been blacklisted."
  208. blacklisted.TextColor3 = Color3.new(1, 1, 1)
  209. blacklisted.TextScaled = true
  210. blacklisted.TextSize = 14
  211. blacklisted.TextWrapped = true
  212.  
  213. scriptexecutorbutton.Name = "scriptexecutorbutton"
  214. scriptexecutorbutton.Parent = urmombackground
  215. scriptexecutorbutton.BackgroundColor3 = Color3.new(1, 1, 1)
  216. scriptexecutorbutton.BorderSizePixel = 0
  217. scriptexecutorbutton.Position = UDim2.new(0.318584085, 0, 0.856603801, 0)
  218. scriptexecutorbutton.Size = UDim2.new(0, 115, 0, 24)
  219. scriptexecutorbutton.Font = Enum.Font.SourceSansLight
  220. scriptexecutorbutton.Text = "Script executor."
  221. scriptexecutorbutton.TextColor3 = Color3.new(0, 0, 0)
  222. scriptexecutorbutton.TextScaled = true
  223. scriptexecutorbutton.TextSize = 14
  224. scriptexecutorbutton.TextWrapped = true
  225.  
  226. EditorFrame.Name = "EditorFrame"
  227. EditorFrame.Parent = urmomJailbreakGUI
  228. EditorFrame.BackgroundColor3 = Color3.new(0.145098, 0.145098, 0.145098)
  229. EditorFrame.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
  230. EditorFrame.Position = UDim2.new(0, 1245,0, 672)
  231. EditorFrame.Size = UDim2.new(0, 637, 0, 184)
  232. EditorFrame.ZIndex = 3
  233. EditorFrame.BottomImage = "rbxassetid://148970562"
  234. EditorFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  235. EditorFrame.HorizontalScrollBarInset = Enum.ScrollBarInset.ScrollBar
  236. EditorFrame.MidImage = "rbxassetid://148970562"
  237. EditorFrame.ScrollBarThickness = 5
  238. EditorFrame.TopImage = "rbxassetid://148970562"
  239. EditorFrame.Visible = false
  240.  
  241. Source.Name = "Source"
  242. Source.Parent = EditorFrame
  243. Source.BackgroundColor3 = Color3.new(1, 1, 1)
  244. Source.BackgroundTransparency = 1
  245. Source.Position = UDim2.new(0, 30, 0, 0)
  246. Source.Size = UDim2.new(1, 0, 1, 0)
  247. Source.ZIndex = 3
  248. Source.ClearTextOnFocus = false
  249. Source.Font = Enum.Font.Code
  250. Source.MultiLine = true
  251. Source.PlaceholderColor3 = Color3.new(0.8, 0.8, 0.8)
  252. Source.Text = "print(\"Not all scripts will work.\")"
  253. Source.TextColor3 = Color3.new(0.8, 0.8, 0.8)
  254. Source.TextSize = 15
  255. Source.TextWrapped = true
  256. Source.TextXAlignment = Enum.TextXAlignment.Left
  257. Source.TextYAlignment = Enum.TextYAlignment.Top
  258.  
  259. Comments_.Name = "Comments_"
  260. Comments_.Parent = Source
  261. Comments_.BackgroundColor3 = Color3.new(1, 1, 1)
  262. Comments_.BackgroundTransparency = 1
  263. Comments_.Size = UDim2.new(1, 0, 1, 0)
  264. Comments_.ZIndex = 5
  265. Comments_.Font = Enum.Font.Code
  266. Comments_.Text = ""
  267. Comments_.TextColor3 = Color3.new(0.231373, 0.784314, 0.231373)
  268. Comments_.TextSize = 15
  269. Comments_.TextXAlignment = Enum.TextXAlignment.Left
  270. Comments_.TextYAlignment = Enum.TextYAlignment.Top
  271.  
  272. Globals_.Name = "Globals_"
  273. Globals_.Parent = Source
  274. Globals_.BackgroundColor3 = Color3.new(1, 1, 1)
  275. Globals_.BackgroundTransparency = 1
  276. Globals_.Size = UDim2.new(1, 0, 1, 0)
  277. Globals_.ZIndex = 5
  278. Globals_.Font = Enum.Font.Code
  279. Globals_.Text = ""
  280. Globals_.TextColor3 = Color3.new(0.517647, 0.839216, 0.968628)
  281. Globals_.TextSize = 15
  282. Globals_.TextXAlignment = Enum.TextXAlignment.Left
  283. Globals_.TextYAlignment = Enum.TextYAlignment.Top
  284.  
  285. Keywords_.Name = "Keywords_"
  286. Keywords_.Parent = Source
  287. Keywords_.BackgroundColor3 = Color3.new(1, 1, 1)
  288. Keywords_.BackgroundTransparency = 1
  289. Keywords_.Size = UDim2.new(1, 0, 1, 0)
  290. Keywords_.ZIndex = 5
  291. Keywords_.Font = Enum.Font.Code
  292. Keywords_.Text = ""
  293. Keywords_.TextColor3 = Color3.new(0.972549, 0.427451, 0.486275)
  294. Keywords_.TextSize = 15
  295. Keywords_.TextXAlignment = Enum.TextXAlignment.Left
  296. Keywords_.TextYAlignment = Enum.TextYAlignment.Top
  297.  
  298. RemoteHighlight_.Name = "RemoteHighlight_"
  299. RemoteHighlight_.Parent = Source
  300. RemoteHighlight_.BackgroundColor3 = Color3.new(1, 1, 1)
  301. RemoteHighlight_.BackgroundTransparency = 1
  302. RemoteHighlight_.Size = UDim2.new(1, 0, 1, 0)
  303. RemoteHighlight_.ZIndex = 5
  304. RemoteHighlight_.Font = Enum.Font.Code
  305. RemoteHighlight_.Text = ""
  306. RemoteHighlight_.TextColor3 = Color3.new(0, 0.568627, 1)
  307. RemoteHighlight_.TextSize = 15
  308. RemoteHighlight_.TextXAlignment = Enum.TextXAlignment.Left
  309. RemoteHighlight_.TextYAlignment = Enum.TextYAlignment.Top
  310.  
  311. Strings_.Name = "Strings_"
  312. Strings_.Parent = Source
  313. Strings_.BackgroundColor3 = Color3.new(1, 1, 1)
  314. Strings_.BackgroundTransparency = 1
  315. Strings_.Size = UDim2.new(1, 0, 1, 0)
  316. Strings_.ZIndex = 5
  317. Strings_.Font = Enum.Font.Code
  318. Strings_.Text = ""
  319. Strings_.TextColor3 = Color3.new(0.678431, 0.945098, 0.584314)
  320. Strings_.TextSize = 15
  321. Strings_.TextXAlignment = Enum.TextXAlignment.Left
  322. Strings_.TextYAlignment = Enum.TextYAlignment.Top
  323.  
  324. Tokens_.Name = "Tokens_"
  325. Tokens_.Parent = Source
  326. Tokens_.BackgroundColor3 = Color3.new(1, 1, 1)
  327. Tokens_.BackgroundTransparency = 1
  328. Tokens_.Size = UDim2.new(1, 0, 1, 0)
  329. Tokens_.ZIndex = 5
  330. Tokens_.Font = Enum.Font.Code
  331. Tokens_.Text = ""
  332. Tokens_.TextColor3 = Color3.new(1, 1, 1)
  333. Tokens_.TextSize = 15
  334. Tokens_.TextXAlignment = Enum.TextXAlignment.Left
  335. Tokens_.TextYAlignment = Enum.TextYAlignment.Top
  336.  
  337. Numbers_.Name = "Numbers_"
  338. Numbers_.Parent = Source
  339. Numbers_.BackgroundColor3 = Color3.new(1, 1, 1)
  340. Numbers_.BackgroundTransparency = 1
  341. Numbers_.Size = UDim2.new(1, 0, 1, 0)
  342. Numbers_.ZIndex = 4
  343. Numbers_.Font = Enum.Font.Code
  344. Numbers_.Text = ""
  345. Numbers_.TextColor3 = Color3.new(1, 0.776471, 0)
  346. Numbers_.TextSize = 15
  347. Numbers_.TextXAlignment = Enum.TextXAlignment.Left
  348. Numbers_.TextYAlignment = Enum.TextYAlignment.Top
  349.  
  350. Lines.Name = "Lines"
  351. Lines.Parent = EditorFrame
  352. Lines.BackgroundColor3 = Color3.new(1, 1, 1)
  353. Lines.BackgroundTransparency = 1
  354. Lines.Size = UDim2.new(0, 30, 1, 0)
  355. Lines.ZIndex = 4
  356. Lines.Font = Enum.Font.Code
  357. Lines.Text = "1"
  358. Lines.TextColor3 = Color3.new(1, 1, 1)
  359. Lines.TextSize = 15
  360. Lines.TextYAlignment = Enum.TextYAlignment.Top
  361.  
  362. execute.Name = "execute"
  363. execute.Parent = urmomJailbreakGUI
  364. execute.BackgroundColor3 = Color3.new(1, 1, 1)
  365. execute.BorderSizePixel = 0
  366. execute.Position = UDim2.new(0.648, 0,0.674, 0)
  367. execute.Size = UDim2.new(0, 200, 0, 50)
  368. execute.Font = Enum.Font.SourceSansLight
  369. execute.Text = "Execute."
  370. execute.TextColor3 = Color3.new(0, 0, 0)
  371. execute.TextScaled = true
  372. execute.TextSize = 14
  373. execute.TextWrapped = true
  374. execute.Visible = false
  375.  
  376. clear.Name = "clear"
  377. clear.Parent = urmomJailbreakGUI
  378. clear.BackgroundColor3 = Color3.new(1, 1, 1)
  379. clear.BorderSizePixel = 0
  380. clear.Position = UDim2.new(0.876, 0,0.674, 0)
  381. clear.Size = UDim2.new(0, 200, 0, 50)
  382. clear.Font = Enum.Font.SourceSansLight
  383. clear.Text = "Clear."
  384. clear.TextColor3 = Color3.new(0, 0, 0)
  385. clear.TextScaled = true
  386. clear.TextSize = 14
  387. clear.TextWrapped = true
  388. clear.Visible = false
  389. loadingtext.Text = string.upper(texts[math.random(1,7)])
  390. for i=1,300 do wait()
  391. local timeInCycle = tick() % 2
  392. local cycleAlpha = (function()
  393. local t = (timeInCycle / 2) * 2
  394. if t < 1 then
  395. return 1 / 2 * t*t*t + 0
  396. else
  397. t = t - 2
  398. return 1 / 2 * (t * t * t + 2) + 1
  399. end
  400. end)()
  401.  
  402. LoadingIcon.Rotation = cycleAlpha * 360
  403. end
  404. LoadingFrame.Visible = false
  405. urmombackground.Visible = true
  406. local UserInputService,gui,dragging,dragInput,dragStart,startPos = game:GetService("UserInputService"),urmombackground
  407.  
  408. local function update(input)
  409. local delta = input.Position - dragStart
  410. wait(0.1)
  411. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  412. end
  413.  
  414. gui.InputBegan:Connect(function(input)
  415. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  416. dragging = true
  417. dragStart = input.Position
  418. startPos = gui.Position
  419.  
  420. input.Changed:Connect(function()
  421. if input.UserInputState == Enum.UserInputState.End then
  422. dragging = false
  423. end
  424. end)
  425. end
  426. end)
  427.  
  428. gui.InputChanged:Connect(function(input)
  429. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  430. dragInput = input
  431. end
  432. end)
  433.  
  434. UserInputService.InputChanged:Connect(function(input)
  435. if input == dragInput and dragging then
  436. update(input)
  437. end
  438. end)
  439. gravitybutton.MouseButton1Click:Connect(function()
  440. if game:GetService("Workspace").Gravity == 42 then
  441. game:GetService("Workspace").Gravity = 196.2;
  442. else
  443. game:GetService("Workspace").Gravity = 42;
  444. end
  445. end)
  446. autorobgui.MouseButton1Click:Connect(function()
  447. loadstring(game:GetObjects("rbxassetid://1461971147")[1].Source)()
  448. end)
  449. speedbutton.MouseButton1Click:Connect(function()
  450. if game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed == 200 then
  451. _G.WS = 16;
  452. local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
  453. Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  454. Humanoid.WalkSpeed = _G.WS;
  455. end)
  456. Humanoid.WalkSpeed = _G.WS;
  457. else
  458. _G.WS = 200;
  459. local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
  460. Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  461. Humanoid.WalkSpeed = _G.WS;
  462. end)
  463. Humanoid.WalkSpeed = _G.WS;
  464. end
  465. end)
  466. nitrobutton.MouseButton1Click:Connect(function()
  467. nitrobutton.Text = "Patched."
  468. wait(2)
  469. nitrobutton.Text = "Infinite Nitro"
  470. end)
  471. scriptexecutorbutton.MouseButton1Click:connect(function()
  472. if EditorFrame.Visible == false then
  473. EditorFrame.Visible = true
  474. execute.Visible = true
  475. clear.Visible = true
  476. else
  477. EditorFrame.Visible = false
  478. execute.Visible = false
  479. clear.Visible = false
  480. end
  481. end)
  482. execute.MouseButton1Click:Connect(function()
  483. loadstring(Source.Text)()
  484. end)
  485. clear.MouseButton1Click:Connect(function()
  486. Source.Text = ""
  487. end)
  488. local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"}
  489. local global_env = {"getrawmetatable", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16"}
  490.  
  491. local Source = Source
  492. local Lines = Lines
  493.  
  494. local Highlight = function(string, keywords)
  495. local K = {}
  496. local S = string
  497. local Token =
  498. {
  499. ["="] = true,
  500. ["."] = true,
  501. [","] = true,
  502. ["("] = true,
  503. [")"] = true,
  504. ["["] = true,
  505. ["]"] = true,
  506. ["{"] = true,
  507. ["}"] = true,
  508. [":"] = true,
  509. ["*"] = true,
  510. ["/"] = true,
  511. ["+"] = true,
  512. ["-"] = true,
  513. ["%"] = true,
  514. [";"] = true,
  515. ["~"] = true
  516. }
  517. for i, v in pairs(keywords) do
  518. K[v] = true
  519. end
  520. S = S:gsub(".", function(c)
  521. if Token[c] ~= nil then
  522. return "\32"
  523. else
  524. return c
  525. end
  526. end)
  527. S = S:gsub("%S+", function(c)
  528. if K[c] ~= nil then
  529. return c
  530. else
  531. return (" "):rep(#c)
  532. end
  533. end)
  534.  
  535. return S
  536. end
  537.  
  538. local hTokens = function(string)
  539. local Token =
  540. {
  541. ["="] = true,
  542. ["."] = true,
  543. [","] = true,
  544. ["("] = true,
  545. [")"] = true,
  546. ["["] = true,
  547. ["]"] = true,
  548. ["{"] = true,
  549. ["}"] = true,
  550. [":"] = true,
  551. ["*"] = true,
  552. ["/"] = true,
  553. ["+"] = true,
  554. ["-"] = true,
  555. ["%"] = true,
  556. [";"] = true,
  557. ["~"] = true
  558. }
  559. local A = ""
  560. string:gsub(".", function(c)
  561. if Token[c] ~= nil then
  562. A = A .. c
  563. elseif c == "\n" then
  564. A = A .. "\n"
  565. elseif c == "\t" then
  566. A = A .. "\t"
  567. else
  568. A = A .. "\32"
  569. end
  570. end)
  571.  
  572. return A
  573. end
  574.  
  575.  
  576. local strings = function(string)
  577. local highlight = ""
  578. local quote = false
  579. string:gsub(".", function(c)
  580. if quote == false and c == "\"" then
  581. quote = true
  582. elseif quote == true and c == "\"" then
  583. quote = false
  584. end
  585. if quote == false and c == "\"" then
  586. highlight = highlight .. "\""
  587. elseif c == "\n" then
  588. highlight = highlight .. "\n"
  589. elseif c == "\t" then
  590. highlight = highlight .. "\t"
  591. elseif quote == true then
  592. highlight = highlight .. c
  593. elseif quote == false then
  594. highlight = highlight .. "\32"
  595. end
  596. end)
  597.  
  598. return highlight
  599. end
  600.  
  601. local comments = function(string)
  602. local ret = ""
  603. string:gsub("[^\r\n]+", function(c)
  604. local comm = false
  605. local i = 0
  606. c:gsub(".", function(n)
  607. i = i + 1
  608. if c:sub(i, i + 1) == "--" then
  609. comm = true
  610. end
  611. if comm == true then
  612. ret = ret .. n
  613. else
  614. ret = ret .. "\32"
  615. end
  616. end)
  617. ret = ret
  618. end)
  619.  
  620. return ret
  621. end
  622.  
  623. local numbers = function(string)
  624. local A = ""
  625. string:gsub(".", function(c)
  626. if tonumber(c) ~= nil then
  627. A = A .. c
  628. elseif c == "\n" then
  629. A = A .. "\n"
  630. elseif c == "\t" then
  631. A = A .. "\t"
  632. else
  633. A = A .. "\32"
  634. end
  635. end)
  636.  
  637. return A
  638. end
  639.  
  640. local highlight_source = function(type)
  641. if type == "Text" then
  642. Source.Text = Source.Text:gsub("\13", "")
  643. Source.Text = Source.Text:gsub("\t", " ")
  644. local s = Source.Text
  645. Source.Keywords_.Text = Highlight(s, lua_keywords)
  646. Source.Globals_.Text = Highlight(s, global_env)
  647. Source.RemoteHighlight_.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"})
  648. Source.Tokens_.Text = hTokens(s)
  649. Source.Numbers_.Text = numbers(s)
  650. Source.Strings_.Text = strings(s)
  651. local lin = 1
  652. s:gsub("\n", function()
  653. lin = lin + 1
  654. end)
  655. Lines.Text = ""
  656. for i = 1, lin do
  657. Lines.Text = Lines.Text .. i .. "\n"
  658. end
  659. end
  660. end
  661.  
  662. highlight_source("Text")
  663.  
  664. Source.Changed:Connect(highlight_source)
  665. else
  666. error("You do not own the asset. Please make sure your using the account you bought it with.")
  667. end
Advertisement
Add Comment
Please, Sign In to add comment