Advertisement
xcodeerror

XYI

Sep 5th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.00 KB | None | 0 0
  1. local opened = false
  2. local hidekey = Enum.KeyCode.Insert
  3. local MadHack = Instance.new("ScreenGui")
  4. local Visuals = Instance.new("Frame")
  5. local VisualsText = Instance.new("TextLabel")
  6. local Tracers = Instance.new("TextButton")
  7. local Tracers_2 = Instance.new("TextButton")
  8. local Tp = Instance.new("Frame")
  9. local TpText = Instance.new("TextLabel")
  10. local Player = Instance.new("Frame")
  11. local PlayerText = Instance.new("TextLabel")
  12. local Speed = Instance.new("TextButton")
  13. local Gravity = Instance.new("TextButton")
  14. local NoClip = Instance.new("TextButton")
  15. local Fly = Instance.new("TextButton")
  16. local World = Instance.new("Frame")
  17. local WorldText = Instance.new("TextLabel")
  18. local Day = Instance.new("TextButton")
  19. local Night = Instance.new("TextButton")
  20. local NoLasers = Instance.new("TextButton")
  21.  
  22. -- Properties
  23.  
  24. MadHack.Name = "MadHack"
  25. MadHack.Parent = game.CoreGui
  26. MadHack.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  27.  
  28. Visuals.Name = "Visuals"
  29. Visuals.Parent = MadHack
  30. Visuals.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
  31. Visuals.BorderColor3 = Color3.new(1, 1, 1)
  32. Visuals.Position = UDim2.new(0.0490654185, 0, 0.0737051815, 0)
  33. Visuals.Size = UDim2.new(0, 166, 0, 226)
  34. Visuals.Active = true
  35. Visuals.Draggble = true
  36. Visuals.Visible = false
  37.  
  38. VisualsText.Name = "VisualsText"
  39. VisualsText.Parent = Visuals
  40. VisualsText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  41. VisualsText.BorderColor3 = Color3.new(1, 1, 1)
  42. VisualsText.Size = UDim2.new(0, 166, 0, 18)
  43. VisualsText.Font = Enum.Font.Cartoon
  44. VisualsText.Text = "Visuals"
  45. VisualsText.TextColor3 = Color3.new(0, 0, 0)
  46. VisualsText.TextSize = 14
  47.  
  48. Tracers.Name = "Tracers"
  49. Tracers.Parent = Visuals
  50. Tracers.BackgroundColor3 = Color3.new(1, 0, 0)
  51. Tracers.BorderColor3 = Color3.new(1, 1, 1)
  52. Tracers.Position = UDim2.new(0, 0, 0.132743359, 0)
  53. Tracers.Size = UDim2.new(0, 166, 0, 19)
  54. Tracers.Font = Enum.Font.Cartoon
  55. Tracers.Text = "Tracers"
  56. Tracers.TextColor3 = Color3.new(0, 0, 0)
  57. Tracers.TextSize = 14
  58.  
  59. Tracers_2.Name = "Tracers"
  60. Tracers_2.Parent = Visuals
  61. Tracers_2.BackgroundColor3 = Color3.new(1, 0, 0)
  62. Tracers_2.BorderColor3 = Color3.new(1, 1, 1)
  63. Tracers_2.Position = UDim2.new(0, 0, 0.252212375, 0)
  64. Tracers_2.Size = UDim2.new(0, 166, 0, 19)
  65. Tracers_2.Font = Enum.Font.Cartoon
  66. Tracers_2.Text = "ESP"
  67. Tracers_2.TextColor3 = Color3.new(0, 0, 0)
  68. Tracers_2.TextSize = 14
  69.  
  70. Tp.Name = "Tp"
  71. Tp.Parent = MadHack
  72. Tp.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
  73. Tp.BorderColor3 = Color3.new(1, 1, 1)
  74. Tp.Position = UDim2.new(0.261682212, 0, 0.0737052113, 0)
  75. Tp.Size = UDim2.new(0, 166, 0, 226)
  76. Tp.Draggble = true
  77. Tp.Visible = false
  78. Tp.Active = true
  79.  
  80. TpText.Name = "TpText"
  81. TpText.Parent = Tp
  82. TpText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  83. TpText.BorderColor3 = Color3.new(1, 1, 1)
  84. TpText.Size = UDim2.new(0, 166, 0, 18)
  85. TpText.Font = Enum.Font.Cartoon
  86. TpText.Text = "Tp's"
  87. TpText.TextColor3 = Color3.new(0, 0, 0)
  88. TpText.TextSize = 14
  89.  
  90. Player.Name = "Player"
  91. Player.Parent = MadHack
  92. Player.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
  93. Player.BorderColor3 = Color3.new(1, 1, 1)
  94. Player.Position = UDim2.new(0.466121554, 0, 0.0737051964, 0)
  95. Player.Size = UDim2.new(0, 166, 0, 226)
  96. Player.Active = true
  97. Player.Draggble = true
  98. Player.Visible = false
  99.  
  100. PlayerText.Name = "PlayerText"
  101. PlayerText.Parent = Player
  102. PlayerText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  103. PlayerText.BorderColor3 = Color3.new(1, 1, 1)
  104. PlayerText.Size = UDim2.new(0, 166, 0, 18)
  105. PlayerText.Font = Enum.Font.Cartoon
  106. PlayerText.Text = "Player"
  107. PlayerText.TextColor3 = Color3.new(0, 0, 0)
  108. PlayerText.TextSize = 14
  109.  
  110. Speed.Name = "Speed"
  111. Speed.Parent = Player
  112. Speed.BackgroundColor3 = Color3.new(1, 0, 0)
  113. Speed.BorderColor3 = Color3.new(1, 1, 1)
  114. Speed.Position = UDim2.new(0, 0, 0.132743359, 0)
  115. Speed.Size = UDim2.new(0, 166, 0, 19)
  116. Speed.Font = Enum.Font.Cartoon
  117. Speed.Text = "Speed [X]"
  118. Speed.TextColor3 = Color3.new(0, 0, 0)
  119. Speed.TextSize = 14
  120. Speed.MouseButton1Down:connect(function()
  121. local walkspeedplayer = game:GetService("Players").LocalPlayer
  122. local walkspeedmouse = walkspeedplayer:GetMouse()
  123.  
  124. local walkspeedenabled = false
  125.  
  126. function x_walkspeed(key)
  127. if (key == "x") then
  128. if walkspeedenabled == false then
  129. _G.WS = 200;
  130. local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
  131. Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  132. Humanoid.WalkSpeed = _G.WS;
  133. end)
  134. Humanoid.WalkSpeed = _G.WS;
  135.  
  136. walkspeedenabled = true
  137. elseif walkspeedenabled == true then
  138. _G.WS = 20;
  139. local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
  140. Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  141. Humanoid.WalkSpeed = _G.WS;
  142. end)
  143. Humanoid.WalkSpeed = _G.WS;
  144.  
  145. walkspeedenabled = false
  146. end
  147. end
  148. end
  149.  
  150. walkspeedmouse.KeyDown:connect(x_walkspeed)
  151.  
  152. end)
  153.  
  154. Gravity.Name = "Gravity"
  155. Gravity.Parent = Player
  156. Gravity.BackgroundColor3 = Color3.new(1, 0, 0)
  157. Gravity.BorderColor3 = Color3.new(1, 1, 1)
  158. Gravity.Position = UDim2.new(0, 0, 0.256637156, 0)
  159. Gravity.Size = UDim2.new(0, 166, 0, 19)
  160. Gravity.Font = Enum.Font.Cartoon
  161. Gravity.Text = "Gravity"
  162. Gravity.TextColor3 = Color3.new(0, 0, 0)
  163. Gravity.TextSize = 14
  164. Gravity.MouseButton1Down:connect(function()
  165. workspace.Gravity = 196
  166. end)
  167.  
  168. NoClip.Name = "NoClip"
  169. NoClip.Parent = Player
  170. NoClip.BackgroundColor3 = Color3.new(1, 0, 0)
  171. NoClip.BorderColor3 = Color3.new(1, 1, 1)
  172. NoClip.Position = UDim2.new(0, 0, 0.495109558, 0)
  173. NoClip.Size = UDim2.new(0, 166, 0, 19)
  174. NoClip.Font = Enum.Font.Cartoon
  175. NoClip.Text = "NoClip [B]"
  176. NoClip.TextColor3 = Color3.new(0, 0, 0)
  177. NoClip.TextSize = 14
  178. NoClip.MouseButton1Down:connect(function()
  179. local noclipplayer = game:GetService("Players").LocalPlayer
  180. local noclipmouse = noclipplayer:GetMouse()
  181.  
  182. local donoclip = false
  183. local noclip = false
  184.  
  185. function b_noclip(key)
  186. if (key == "b") then
  187. if noclip == false then
  188. donoclip = true
  189.  
  190. noclip = true
  191. elseif noclip == true then
  192. donoclip = false
  193.  
  194. noclip = false
  195. end
  196. end
  197. end
  198.  
  199. noclipmouse.KeyDown:connect(b_noclip)
  200.  
  201. game:GetService("Players").LocalPlayer.Character.Head.Touched:connect(function(obj)
  202. if obj ~= workspace.Terrain then
  203. if donoclip == true then
  204. obj.CanCollide = false
  205. else
  206. obj.CanCollide = true
  207. end
  208. end
  209. end)
  210. end)
  211.  
  212. Fly.Name = "Fly"
  213. Fly.Parent = Player
  214. Fly.BackgroundColor3 = Color3.new(1, 0, 0)
  215. Fly.BorderColor3 = Color3.new(1, 1, 1)
  216. Fly.Position = UDim2.new(0, 0, 0.371215701, 0)
  217. Fly.Size = UDim2.new(0, 166, 0, 19)
  218. Fly.Font = Enum.Font.Cartoon
  219. Fly.Text = "Fly [F]"
  220. Fly.TextColor3 = Color3.new(0, 0, 0)
  221. Fly.TextSize = 14
  222. Fly.MouseButton1Down:connect(function()
  223. repeat wait()
  224.  
  225. until game:GetService"Players".LocalPlayer and game:GetService"Players".LocalPlayer.Character and game:GetService"Players".LocalPlayer.Character:findFirstChild("UpperTorso") and game:GetService"Players".LocalPlayer.Character:findFirstChild("Humanoid")
  226. local mouse = game:GetService"Players".LocalPlayer:GetMouse()
  227. repeat wait() until mouse
  228. local plr = game:GetService"Players".LocalPlayer
  229. local torso = plr.Character.UpperTorso
  230. local flying = true
  231. local deb = true
  232. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  233. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  234. local maxspeed = 100
  235. local speed = 0
  236.  
  237. function Fly()
  238. local bg = Instance.new("BodyGyro", torso)
  239. bg.P = 9e4
  240. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  241. bg.cframe = torso.CFrame
  242. local bv = Instance.new("BodyVelocity", torso)
  243. bv.velocity = Vector3.new(0,0.1,0)
  244. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  245. repeat wait()
  246. plr.Character.Humanoid.PlatformStand = true
  247. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  248. speed = speed+.5+(speed/maxspeed)
  249. if speed > maxspeed then
  250. speed = maxspeed
  251. end
  252. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  253. speed = speed-1
  254. if speed < 0 then
  255. speed = 0
  256. end
  257. end
  258. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  259. bv.velocity = ((game:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
  260. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  261. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  262. bv.velocity = ((game:GetService("Workspace").CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game:GetService("Workspace").CurrentCamera.CoordinateFrame.p))*speed
  263. else
  264. bv.velocity = Vector3.new(0,0.1,0)
  265. end
  266. bg.cframe = game:GetService("Workspace").CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  267. until not flying
  268. ctrl = {f = 0, b = 0, l = 0, r = 0}
  269. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  270. speed = 0
  271. bg:Destroy()
  272. bv:Destroy()
  273. plr.Character.Humanoid.PlatformStand = false
  274. end
  275. mouse.KeyDown:connect(function(key)
  276. if key:lower() == "f" then
  277. if flying then flying = false
  278. else
  279. flying = true
  280. Fly()
  281. end
  282. elseif key:lower() == "w" then
  283. ctrl.f = 1
  284. elseif key:lower() == "s" then
  285. ctrl.b = -1
  286. elseif key:lower() == "a" then
  287. ctrl.l = -1
  288. elseif key:lower() == "d" then
  289. ctrl.r = 1
  290. end
  291. end)
  292. mouse.KeyUp:connect(function(key)
  293. if key:lower() == "w" then
  294. ctrl.f = 0
  295. elseif key:lower() == "s" then
  296. ctrl.b = 0
  297. elseif key:lower() == "a" then
  298. ctrl.l = 0
  299. elseif key:lower() == "d" then
  300. ctrl.r = 0
  301. end
  302. end)
  303. Fly()
  304. end)
  305.  
  306. World.Name = "World"
  307. World.Parent = MadHack
  308. World.BackgroundColor3 = Color3.new(0, 0.811765, 0.188235)
  309. World.BorderColor3 = Color3.new(1, 1, 1)
  310. World.Position = UDim2.new(0.677570164, 0, 0.0737051815, 0)
  311. World.Size = UDim2.new(0, 166, 0, 226)
  312. World.Active = true
  313. World.Draggble = true
  314. World.Visible = false
  315.  
  316. WorldText.Name = "WorldText"
  317. WorldText.Parent = World
  318. WorldText.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  319. WorldText.BorderColor3 = Color3.new(1, 1, 1)
  320. WorldText.Size = UDim2.new(0, 166, 0, 18)
  321. WorldText.Font = Enum.Font.Cartoon
  322. WorldText.Text = "World"
  323. WorldText.TextColor3 = Color3.new(0, 0, 0)
  324. WorldText.TextSize = 14
  325.  
  326. Day.Name = "Day"
  327. Day.Parent = World
  328. Day.BackgroundColor3 = Color3.new(1, 0, 0)
  329. Day.BorderColor3 = Color3.new(1, 1, 1)
  330. Day.Position = UDim2.new(0, 0, 0.132743359, 0)
  331. Day.Size = UDim2.new(0, 166, 0, 19)
  332. Day.Font = Enum.Font.Cartoon
  333. Day.Text = "Day"
  334. Day.TextColor3 = Color3.new(0, 0, 0)
  335. Day.TextSize = 14
  336. Day.MouseButton1Down:connect(function()
  337. game.Lighting.TimeOfDay = "12:00:00"
  338. end)
  339.  
  340. Night.Name = "Night"
  341. Night.Parent = World
  342. Night.BackgroundColor3 = Color3.new(1, 0, 0)
  343. Night.BorderColor3 = Color3.new(1, 1, 1)
  344. Night.Position = UDim2.new(0, 0, 0.255938619, 0)
  345. Night.Size = UDim2.new(0, 166, 0, 19)
  346. Night.Font = Enum.Font.Cartoon
  347. Night.Text = "Night"
  348. Night.TextColor3 = Color3.new(0, 0, 0)
  349. Night.TextSize = 14
  350. Night.MouseButton1Down:connect(function()
  351. game.Lighting.TimeOfDay = "00:00:00"
  352. end)
  353.  
  354. NoLasers.Name = "NoLasers"
  355. NoLasers.Parent = World
  356. NoLasers.BackgroundColor3 = Color3.new(1, 0, 0)
  357. NoLasers.BorderColor3 = Color3.new(1, 1, 1)
  358. NoLasers.Position = UDim2.new(0, 0, 0.367256641, 0)
  359. NoLasers.Size = UDim2.new(0, 166, 0, 19)
  360. NoLasers.Font = Enum.Font.Cartoon
  361. NoLasers.Text = "NoLasers"
  362. NoLasers.TextColor3 = Color3.new(0, 0, 0)
  363. NoLasers.TextSize = 14
  364.  
  365. game:GetService("UserInputService").InputBegan:connect(function(key)
  366. if key.KeyCode == Enum.KeyCode.Insert then
  367. if opened == true then
  368. opened = false
  369. Visuals.Visible = false
  370. World.Visible = false
  371. Tp.Visible = false
  372. Player.Visible = false
  373. elseif opened == false then
  374. opened = true
  375. Visuals.Visible = true
  376. World.Visible = true
  377. Tp.Visible = true
  378. Player.Visible = true
  379. end
  380. end
  381. end)
  382.  
  383. game.StarterGui:SetCore("SendNotification",{Title="MadHack",Text="Loaded."})
  384. wait(1)
  385. game.StarterGui:SetCore("SendNotification",{Title="MadHack",Text="Press [Insert] to close/open menu"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement