Advertisement
BlastingStone

Glitchmax X

Jan 17th, 2020
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.60 KB | None | 0 0
  1. -- Objects
  2.  
  3. local GlitchMax = Instance.new("ScreenGui")
  4. local MainFrame = Instance.new("Frame")
  5. local TopFrame = Instance.new("Frame")
  6. local Title = Instance.new("TextLabel")
  7. local CloseGUI = Instance.new("TextButton")
  8. local Credit = Instance.new("TextLabel")
  9. local DetailTopFrame = Instance.new("Frame")
  10. local ButtonFrame = Instance.new("Frame")
  11. local UserBox = Instance.new("TextBox")
  12. local Flatten = Instance.new("TextButton")
  13. local Push = Instance.new("TextButton")
  14. local LockOn = Instance.new("TextButton")
  15. local Float = Instance.new("TextButton")
  16. local Stick = Instance.new("TextButton")
  17. local Experimental = Instance.new("TextButton")
  18. local SideFrame = Instance.new("Frame")
  19. local OpenGUI = Instance.new("TextButton")
  20. local SideCredit = Instance.new("TextLabel")
  21. local SideTitle = Instance.new("TextLabel")
  22.  
  23. -- Properties
  24.  
  25. GlitchMax.Name = "GlitchMax"
  26. GlitchMax.Parent = game.CoreGui
  27.  
  28. MainFrame.Name = "MainFrame"
  29. MainFrame.Parent = GlitchMax
  30. MainFrame.Active = true
  31. MainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  32. MainFrame.BackgroundTransparency = 1
  33. MainFrame.Draggable = true
  34. MainFrame.Position = UDim2.new(0, 570, 0, 61)
  35. MainFrame.Size = UDim2.new(0, 376, 0, 285)
  36.  
  37. TopFrame.Name = "TopFrame"
  38. TopFrame.Parent = MainFrame
  39. TopFrame.BackgroundColor3 = Color3.new(0.466667, 0.47451, 1)
  40. TopFrame.Size = UDim2.new(0, 376, 0, 36)
  41.  
  42. Title.Name = "Title"
  43. Title.Parent = TopFrame
  44. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  45. Title.BackgroundTransparency = 1
  46. Title.Size = UDim2.new(0, 376, 0, 36)
  47. Title.Font = Enum.Font.Highway
  48. Title.FontSize = Enum.FontSize.Size14
  49. Title.Text = "GlitchMax"
  50. Title.TextColor3 = Color3.new(0.243137, 0.372549, 0.4)
  51. Title.TextScaled = true
  52. Title.TextSize = 14
  53. Title.TextStrokeColor3 = Color3.new(1, 1, 1)
  54. Title.TextStrokeTransparency = 0
  55. Title.TextWrapped = true
  56.  
  57. CloseGUI.Name = "CloseGUI"
  58. CloseGUI.Parent = TopFrame
  59. CloseGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  60. CloseGUI.BackgroundTransparency = 1
  61. CloseGUI.Position = UDim2.new(0, 327, 0, 0)
  62. CloseGUI.Size = UDim2.new(0, 49, 0, 36)
  63. CloseGUI.Font = Enum.Font.SourceSans
  64. CloseGUI.FontSize = Enum.FontSize.Size60
  65. CloseGUI.Text = "X"
  66. CloseGUI.TextSize = 50
  67.  
  68. Credit.Name = "Credit"
  69. Credit.Parent = TopFrame
  70. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  71. Credit.BackgroundTransparency = 1
  72. Credit.Position = UDim2.new(0, 16, 0, 0)
  73. Credit.Size = UDim2.new(0, 96, 0, 36)
  74. Credit.Font = Enum.Font.Highway
  75. Credit.FontSize = Enum.FontSize.Size14
  76. Credit.Text = "illremember"
  77. Credit.TextColor3 = Color3.new(0.431373, 0.662745, 0.709804)
  78. Credit.TextScaled = true
  79. Credit.TextSize = 14
  80. Credit.TextStrokeColor3 = Color3.new(1, 1, 1)
  81. Credit.TextStrokeTransparency = 0
  82. Credit.TextWrapped = true
  83.  
  84. DetailTopFrame.Name = "DetailTopFrame"
  85. DetailTopFrame.Parent = MainFrame
  86. DetailTopFrame.BackgroundColor3 = Color3.new(0.541176, 0.678431, 1)
  87. DetailTopFrame.Position = UDim2.new(0, 0, 0, 37)
  88. DetailTopFrame.Size = UDim2.new(0, 376, 0, 11)
  89.  
  90. ButtonFrame.Name = "ButtonFrame"
  91. ButtonFrame.Parent = MainFrame
  92. ButtonFrame.BackgroundColor3 = Color3.new(0.945098, 0.945098, 0.945098)
  93. ButtonFrame.Position = UDim2.new(0, 0, 0, 49)
  94. ButtonFrame.Size = UDim2.new(0, 376, 0, 236)
  95.  
  96. UserBox.Name = "UserBox"
  97. UserBox.Parent = ButtonFrame
  98. UserBox.BackgroundColor3 = Color3.new(0.898039, 0.898039, 0.898039)
  99. UserBox.BorderColor3 = Color3.new(0.360784, 0.384314, 0.392157)
  100. UserBox.BorderSizePixel = 5
  101. UserBox.Position = UDim2.new(0, 33, 0, 15)
  102. UserBox.Size = UDim2.new(0, 310, 0, 31)
  103. UserBox.Font = Enum.Font.SourceSans
  104. UserBox.FontSize = Enum.FontSize.Size14
  105. UserBox.Text = ""
  106. UserBox.TextScaled = true
  107. UserBox.TextSize = 14
  108. UserBox.TextWrapped = true
  109.  
  110. Flatten.Name = "Flatten"
  111. Flatten.Parent = ButtonFrame
  112. Flatten.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  113. Flatten.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
  114. Flatten.BorderSizePixel = 2
  115. Flatten.Position = UDim2.new(0, 22, 0, 66)
  116. Flatten.Size = UDim2.new(0, 135, 0, 36)
  117. Flatten.Font = Enum.Font.Highway
  118. Flatten.FontSize = Enum.FontSize.Size32
  119. Flatten.Text = "Flatten"
  120. Flatten.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
  121. Flatten.TextScaled = true
  122. Flatten.TextSize = 30
  123. Flatten.TextWrapped = true
  124.  
  125. Push.Name = "Push"
  126. Push.Parent = ButtonFrame
  127. Push.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  128. Push.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
  129. Push.BorderSizePixel = 2
  130. Push.Position = UDim2.new(0, 22, 0, 126)
  131. Push.Size = UDim2.new(0, 135, 0, 36)
  132. Push.Font = Enum.Font.Highway
  133. Push.FontSize = Enum.FontSize.Size32
  134. Push.Text = "Push"
  135. Push.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
  136. Push.TextScaled = true
  137. Push.TextSize = 30
  138. Push.TextWrapped = true
  139.  
  140. LockOn.Name = "LockOn"
  141. LockOn.Parent = ButtonFrame
  142. LockOn.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  143. LockOn.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
  144. LockOn.BorderSizePixel = 2
  145. LockOn.Position = UDim2.new(0, 22, 0, 186)
  146. LockOn.Size = UDim2.new(0, 135, 0, 36)
  147. LockOn.Font = Enum.Font.Highway
  148. LockOn.FontSize = Enum.FontSize.Size32
  149. LockOn.Text = "LockOn"
  150. LockOn.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
  151. LockOn.TextSize = 30
  152. LockOn.TextWrapped = true
  153.  
  154. Float.Name = "Float"
  155. Float.Parent = ButtonFrame
  156. Float.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  157. Float.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
  158. Float.BorderSizePixel = 2
  159. Float.Position = UDim2.new(0, 218, 0, 66)
  160. Float.Size = UDim2.new(0, 135, 0, 36)
  161. Float.Font = Enum.Font.Highway
  162. Float.FontSize = Enum.FontSize.Size32
  163. Float.Text = "Float"
  164. Float.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
  165. Float.TextScaled = true
  166. Float.TextSize = 30
  167. Float.TextWrapped = true
  168.  
  169. Stick.Name = "Stick"
  170. Stick.Parent = ButtonFrame
  171. Stick.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  172. Stick.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
  173. Stick.BorderSizePixel = 2
  174. Stick.Position = UDim2.new(0, 218, 0, 126)
  175. Stick.Size = UDim2.new(0, 135, 0, 36)
  176. Stick.Font = Enum.Font.Highway
  177. Stick.FontSize = Enum.FontSize.Size32
  178. Stick.Text = "Stick"
  179. Stick.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
  180. Stick.TextSize = 30
  181. Stick.TextWrapped = true
  182.  
  183. Experimental.Name = "Experimental"
  184. Experimental.Parent = ButtonFrame
  185. Experimental.BackgroundColor3 = Color3.new(0.254902, 0.254902, 0.254902)
  186. Experimental.BorderColor3 = Color3.new(0.368627, 0.576471, 0.72549)
  187. Experimental.BorderSizePixel = 2
  188. Experimental.Position = UDim2.new(0, 218, 0, 186)
  189. Experimental.Size = UDim2.new(0, 135, 0, 36)
  190. Experimental.Font = Enum.Font.Highway
  191. Experimental.FontSize = Enum.FontSize.Size28
  192. Experimental.Text = "Experimental"
  193. Experimental.TextColor3 = Color3.new(0.827451, 0.827451, 0.827451)
  194. Experimental.TextSize = 25
  195. Experimental.TextWrapped = true
  196.  
  197. SideFrame.Name = "SideFrame"
  198. SideFrame.Parent = GlitchMax
  199. SideFrame.Active = true
  200. SideFrame.BackgroundColor3 = Color3.new(0.466667, 0.47451, 1)
  201. SideFrame.Draggable = true
  202. SideFrame.Position = UDim2.new(0, 570, 0, 61)
  203. SideFrame.Size = UDim2.new(0, 376, 0, 36)
  204. SideFrame.Visible = false
  205.  
  206. OpenGUI.Name = "OpenGUI"
  207. OpenGUI.Parent = SideFrame
  208. OpenGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  209. OpenGUI.BackgroundTransparency = 1
  210. OpenGUI.Position = UDim2.new(0, 327, 0, 0)
  211. OpenGUI.Size = UDim2.new(0, 49, 0, 36)
  212. OpenGUI.Font = Enum.Font.SourceSans
  213. OpenGUI.FontSize = Enum.FontSize.Size60
  214. OpenGUI.Text = "X"
  215. OpenGUI.TextSize = 50
  216.  
  217. SideCredit.Name = "SideCredit"
  218. SideCredit.Parent = SideFrame
  219. SideCredit.BackgroundColor3 = Color3.new(1, 1, 1)
  220. SideCredit.BackgroundTransparency = 1
  221. SideCredit.Position = UDim2.new(0, 16, 0, 0)
  222. SideCredit.Size = UDim2.new(0, 96, 0, 36)
  223. SideCredit.Font = Enum.Font.Highway
  224. SideCredit.FontSize = Enum.FontSize.Size14
  225. SideCredit.Text = "illremember"
  226. SideCredit.TextColor3 = Color3.new(0.431373, 0.662745, 0.709804)
  227. SideCredit.TextScaled = true
  228. SideCredit.TextSize = 14
  229. SideCredit.TextStrokeColor3 = Color3.new(1, 1, 1)
  230. SideCredit.TextStrokeTransparency = 0
  231. SideCredit.TextWrapped = true
  232.  
  233. SideTitle.Name = "SideTitle"
  234. SideTitle.Parent = SideFrame
  235. SideTitle.BackgroundColor3 = Color3.new(1, 1, 1)
  236. SideTitle.BackgroundTransparency = 1
  237. SideTitle.Size = UDim2.new(0, 376, 0, 36)
  238. SideTitle.Font = Enum.Font.Highway
  239. SideTitle.FontSize = Enum.FontSize.Size14
  240. SideTitle.Text = "GlitchMax"
  241. SideTitle.TextColor3 = Color3.new(0.243137, 0.372549, 0.4)
  242. SideTitle.TextScaled = true
  243. SideTitle.TextSize = 14
  244. SideTitle.TextStrokeColor3 = Color3.new(1, 1, 1)
  245. SideTitle.TextStrokeTransparency = 0
  246. SideTitle.TextWrapped = true
  247.  
  248. -- Buttons
  249.  
  250. col = Color3.new(0.254902, 0.254902, 0.254902)
  251. loc = Color3.new(0.40, 0.40, 0.40)
  252.  
  253. CloseGUI.MouseButton1Click:connect(function()
  254. MainFrame.Visible = false
  255. SideFrame.Visible = true
  256. SideFrame.Position = MainFrame.Position
  257. end)
  258.  
  259. OpenGUI.MouseButton1Click:connect(function()
  260. MainFrame.Visible = true
  261. SideFrame.Visible = false
  262. MainFrame.Position = SideFrame.Position
  263. end)
  264.  
  265. function shortnames(username)
  266.    local nameshort = {}
  267.    for i,v in pairs(game.Players:GetPlayers()) do
  268.        if v.Name:lower():sub(1, #username) == username:lower() then
  269.            table.insert(nameshort,v)
  270.        end
  271.    end    
  272.    return nameshort    
  273. end
  274.  
  275. local Anim = Instance.new("Animation")
  276. Anim.AnimationId = "rbxassetid://282574440"
  277. local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
  278. flattening = false
  279. Flatten.MouseButton1Click:connect(function()
  280. flattening = not flattening
  281. if flattening then
  282. Flatten.BackgroundColor3 = loc
  283. local y = Instance.new("RocketPropulsion")
  284. y.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  285. y.CartoonFactor = 1
  286. y.MaxThrust = 50000
  287. y.MaxSpeed = 1000
  288. y.ThrustP = 50000
  289. y.Name = "Flatten"
  290. for i,v in pairs(shortnames(UserBox.Text))do
  291. y.Target = game.Players[v.name].Character["Left Leg"]
  292. y:Fire()
  293. track:Play(.1, 1, 1)
  294. game:GetService('RunService').Stepped:connect(function()
  295. if flattening then
  296. game.Players.LocalPlayer.Character.Head.CanCollide = false
  297. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  298. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  299. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  300. end
  301. end)
  302. while wait(0.3) do
  303. if flattening then
  304. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame + Vector3.new(0,2,0)
  305. end
  306. end
  307. end
  308. else
  309. game.Players.LocalPlayer.Character.HumanoidRootPart.Flatten:Destroy()
  310. track:Stop()
  311. Flatten.BackgroundColor3 = col
  312. end
  313. end)
  314.  
  315. floating = false
  316. Float.MouseButton1Click:connect(function()
  317. floating = not floating
  318. if floating then
  319. Float.BackgroundColor3 = loc
  320. local y = Instance.new("RocketPropulsion")
  321. y.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  322. y.CartoonFactor = 1
  323. y.MaxThrust = 50000
  324. y.MaxSpeed = 1000
  325. y.ThrustP = 50000
  326. y.Name = "Float"
  327. for i,v in pairs(shortnames(UserBox.Text))do
  328. y.Target = game.Players[v.Name].Character.Head
  329. y:Fire()
  330. game:GetService('RunService').Stepped:connect(function()
  331. if floating then
  332. game.Players.LocalPlayer.Character.Head.CanCollide = false
  333. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  334. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  335. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  336. end
  337. end)
  338. while wait(0.3) do
  339. if floating then
  340. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character["Left Leg"].CFrame
  341. end
  342. end
  343. end
  344. else
  345. game.Players.LocalPlayer.Character.HumanoidRootPart.Float:Destroy()
  346. Float.BackgroundColor3 = col
  347. end
  348. end)
  349.  
  350. LockOnACTIVE = false
  351. LockOn.MouseButton1Click:connect(function()
  352. LockOnACTIVE = not LockOnACTIVE
  353. for i,v in pairs(shortnames(UserBox.Text))do
  354. while wait() do
  355. if LockOnACTIVE then
  356. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[v.Name].Character.HumanoidRootPart.CFrame
  357. LockOn.BackgroundColor3 = loc
  358. else
  359. LockOn.BackgroundColor3 = col
  360. end
  361. end
  362. end
  363. end)
  364.  
  365. pushing = false
  366. Push.MouseButton1Click:connect(function()
  367. pushing = not pushing
  368. if pushing then
  369. Push.BackgroundColor3 = loc
  370. local b = Instance.new("RocketPropulsion")
  371. b.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  372. b.TurnP = 2500
  373. b.MaxThrust = 50000
  374. b.MaxSpeed = 1000
  375. b.ThrustP = 50000
  376. b.CartoonFactor = 1
  377. b.Name = "Push"
  378. for i,v in pairs(shortnames(UserBox.Text))do
  379. b.Target = game.Players[v.Name].Character.HumanoidRootPart
  380. b:Fire()
  381. game:GetService('RunService').Stepped:connect(function()
  382. if pushing then
  383. game.Players.LocalPlayer.Character.Head.CanCollide = false
  384. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  385. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  386. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  387. end
  388. end)
  389. b:Fire()
  390. end
  391. else
  392. game.Players.LocalPlayer.Character.HumanoidRootPart.Push:Destroy()
  393. Push.BackgroundColor3 = col
  394. end
  395. end)
  396.  
  397. local Anim = Instance.new("Animation")
  398. Anim.AnimationId = "rbxassetid://215384594"
  399. local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
  400. experi = false
  401. Experimental.MouseButton1Click:connect(function()
  402. experi = not experi
  403. if experi then
  404. Experimental.BackgroundColor3 = loc
  405. local h = Instance.new("RocketPropulsion")
  406. h.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  407. h.Name = "Experimental"
  408. for i,v in pairs(shortnames(UserBox.Text))do
  409. h.Target = game.Players[v.Name].Character.HumanoidRootPart
  410. h:Fire()
  411. track:Play(.1,1,1)
  412. game:GetService('RunService').Stepped:connect(function()
  413. if experi then
  414. game.Players.LocalPlayer.Character.Head.CanCollide = false
  415. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  416. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  417. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  418. end
  419. end)
  420. end
  421. else
  422. game.Players.LocalPlayer.Character.HumanoidRootPart.Experimental:Destroy()
  423. track:Stop()
  424. Stick.BackgroundColor3 = col
  425. end
  426. end)
  427.  
  428. stuck = false
  429. Stick.MouseButton1Click:connect(function()
  430. stuck = not stuck
  431. if stuck then
  432. Stick.BackgroundColor3 = loc
  433. local h = Instance.new("RocketPropulsion")
  434. h.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  435. h.MaxSpeed = 1000
  436. h.MaxThrust = 10000
  437. h.Name = "Stick"
  438. for i,v in pairs(shortnames(UserBox.Text))do
  439. h.Target = game.Players[v.Name].Character.HumanoidRootPart
  440. h:Fire()
  441. game:GetService('RunService').Stepped:connect(function()
  442. if stuck then
  443. game.Players.LocalPlayer.Character.Head.CanCollide = false
  444. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  445. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  446. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  447. end
  448. end)
  449. end
  450. else
  451. game.Players.LocalPlayer.Character.HumanoidRootPart.Stick:Destroy()
  452. Stick.BackgroundColor3 = col
  453. end
  454. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement