NukeVsCity

sPEED and hack

Apr 18th, 2021 (edited)
89,656
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.93 KB | None | 1 0
  1. --Define basics
  2. local player = game:GetService("Players").LocalPlayer
  3. local mouse = player:GetMouse()
  4. local UIS = game:GetService("UserInputService")
  5. local char = player.Character
  6. local playerGui = player.PlayerGui
  7. --Variables
  8. local uiOpened = true
  9. local walkSpeed = 16
  10. local changingWalkSpeed = false
  11. local jumpPower = 50
  12. local changingJumpPower = false
  13. local findPlayers = false
  14. local findRokas = false
  15. local findArrows = false
  16. local findMasks = false
  17. local noclip = false
  18. --MakeUI functions
  19. local g = Instance.new("ScreenGui")
  20. g.ResetOnSpawn = false
  21. g.Name = tostring(math.random(1.0005, 99999.9999))
  22. g.Parent = playerGui
  23. g.DisplayOrder = 99
  24. makeBaseDragUI = function(size, pos, topName)
  25. local origSize = size
  26. local frame = Instance.new("Frame", g)
  27. frame.BorderSizePixel = 0
  28. frame.BackgroundTransparency = .3
  29. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  30. frame.Size = size
  31. frame.Position = pos
  32. local tn = Instance.new("TextButton", frame)
  33. tn.Name = "tn"
  34. tn.Size = UDim2.new(.9, 0, .15, 0)
  35. tn.Text = topName
  36. tn.TextScaled = true
  37. tn.TextStrokeTransparency = 0
  38. tn.BackgroundTransparency = .9
  39. tn.TextColor3 = BrickColor.new("Royal purple").Color
  40. tn.Font = Enum.Font.Fantasy
  41. local ty = Instance.new("TextButton", frame)
  42. ty.Name = "tx"
  43. ty.Size = UDim2.new(.1, 0, .15, 0)
  44. ty.Position = UDim2.new(.9, 0, 0, 0)
  45. ty.Text = "+"
  46. ty.TextScaled = true
  47. ty.TextStrokeTransparency = 0
  48. ty.BackgroundTransparency = .9
  49. ty.TextColor3 = BrickColor.new("Forest green").Color
  50. ty.Font = Enum.Font.Fantasy
  51. local mainFrame = Instance.new("Frame", frame)
  52. mainFrame.BorderSizePixel = 0
  53. mainFrame.Visible = false
  54. mainFrame.BackgroundTransparency = .9
  55. mainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  56. mainFrame.Size = UDim2.new(1, 0, .85, 0)
  57. mainFrame.Position = UDim2.new(0, 0, .15, 0)
  58. local minimise = false
  59. local dragging = false
  60. mouse.Move:connect(function()
  61. if dragging == true then
  62. frame.Position = UDim2.new(-frame.Size.X.Scale/2, mouse.X, -frame.Size.X.Scale*.05, mouse.Y)
  63. end
  64. end)
  65. tn.MouseButton1Down:connect(function()
  66. dragging = true
  67. end)
  68. tn.MouseButton1Up:connect(function()
  69. dragging = false
  70. end)
  71. ty.MouseButton1Click:connect(function()
  72. if minimise == false then
  73. frame:TweenSize(UDim2.new(frame.Size.X.Scale, 0, .05, 0), "Out", "Linear", .4, true)
  74. tn:TweenSize(UDim2.new(.9, 0, 1, 0), "Out", "Linear", .4, true)
  75. ty:TweenSize(UDim2.new(.1, 0, 1, 0), "Out", "Linear", .4, true)
  76. mainFrame.Visible = false
  77. minimise = true
  78. ty.Text = "+"
  79. ty.TextColor3 = BrickColor.new("Forest green").Color
  80. else
  81. frame:TweenSize(origSize, "Out", "Linear", .4, true)
  82. tn:TweenSize(UDim2.new(.9, 0, .15, 0), "Out", "Linear", .4, true)
  83. ty:TweenSize(UDim2.new(.1, 0, .15, 0), "Out", "Linear", .4, true)
  84. mainFrame.Visible = true
  85. minimise = false
  86. ty.Text = "_"
  87. ty.TextColor3 = BrickColor.new("Brick yellow").Color
  88. end
  89. end)
  90. frame:TweenSize(UDim2.new(frame.Size.X.Scale, 0, .05, 0), "Out", "Linear", .4, true)
  91. tn:TweenSize(UDim2.new(.9, 0, 1, 0), "Out", "Linear", .4, true)
  92. ty:TweenSize(UDim2.new(.1, 0, 1, 0), "Out", "Linear", .4, true)
  93. minimise = true
  94.  
  95. return mainFrame
  96. end
  97. makeSlider = function(parent, size, pos)
  98. local f = makeFrame(parent, size, pos, 8)
  99. f.Name = "outerFrame"
  100. local innerFrame = makeFrame(f, UDim2.new(1, 0, .1, 0), UDim2.new(0, 0, .5, 0), .4)
  101. innerFrame.Name = "innerFrame"
  102. local drag = makeButton(innerFrame, UDim2.new(.05, 0, 5, 0), UDim2.new(f.Position.X.Scale+ .1, 0, -2.5, 0), "", Color3.new(0, 0, 0), BrickColor.new("Royal purple").Color, 0)
  103. drag.Name = "dragFrame"
  104. return drag
  105. end
  106. makeButton = function(parent, size, pos, text, tcolor, bgColor, bgTransparency)
  107. local button = Instance.new("TextButton", parent)
  108. button.Size = size
  109. button.BackgroundTransparency = bgTransparency
  110. button.BorderSizePixel = 0
  111. button.Text = text
  112. button.TextStrokeTransparency = 0
  113. button.TextColor3 = tcolor
  114. button.Position = pos
  115. button.Font = Enum.Font.Fantasy
  116. button.BackgroundColor3 = bgColor
  117. button.TextScaled = true
  118. return button
  119. end
  120. makeLabel = function(parent, size, pos, text, tcolor, bgColor, bgTransparency)
  121. local label = Instance.new("TextLabel", parent)
  122. label.Size = size
  123. label.BackgroundTransparency = bgTransparency
  124. label.BorderSizePixel = 0
  125. label.Text = text
  126. label.TextStrokeTransparency = 0
  127. label.TextColor3 = tcolor
  128. label.Position = pos
  129. label.Font = Enum.Font.Fantasy
  130. label.BackgroundColor3 = bgColor
  131. label.TextScaled = true
  132. return label
  133. end
  134. makeFrame = function(parent, size, pos, bgTransparency)
  135. local frame = Instance.new("Frame", parent)
  136. frame.Size = size
  137. frame.BorderSizePixel = 0
  138. frame.BackgroundTransparency = bgTransparency
  139. frame.Position = pos
  140. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  141. return frame
  142. end
  143. --Functions
  144. --WALKSPEED FUNCTION
  145. local walkSpeed = makeBaseDragUI(UDim2.new(.2, 0, .4, 0), UDim2.new(.65, 0, .25, 0), "Walkspeed")
  146. walkSpeedSlider = makeSlider(walkSpeed, UDim2.new(1, 0, .2, 0), UDim2.new(0, 0, .4, 0))
  147. local walkSpeedLabel = makeLabel(walkSpeed, UDim2.new(1, 0, .2, 0), UDim2.new(0, 0, .2, 0), "Walkspeed: 16", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .8)
  148. local dragging = false
  149. local pos = mouse.X
  150. walkSpeedSlider.MouseButton1Down:connect(function()
  151. dragging = true
  152. pos = mouse.X
  153. end)
  154. walkSpeedSlider.MouseButton1Up:connect(function()
  155. dragging = false
  156. end)
  157. local walkspeed = 16
  158. mouse.Move:connect(function()
  159. if dragging == true then
  160. local f = walkSpeedSlider.Parent.Parent
  161. local newPos = mouse.X
  162. local diff = newPos - pos
  163. pos = mouse.X
  164. local max = mouse.ViewSizeX
  165. local scaleDiff = (diff/max)
  166. local leftBarrier = f.Position.X.Scale--(f.Size.X.Scale/2)
  167. local rightBarrier = f.Position.X.Scale+(f.Size.X.Scale*.95)
  168. local dragPos = walkSpeedSlider.Position.X.Scale + (scaleDiff*5)
  169. if(dragPos > leftBarrier and dragPos < rightBarrier) then
  170. walkSpeedSlider.Position = UDim2.new(dragPos, 0, walkSpeedSlider.Position.Y.Scale, 0)
  171. else
  172. dragging = false
  173. end
  174. local finalPos = (-(f.Size.X.Scale/2)+walkSpeedSlider.Position.X.Scale)*2
  175. changingWalkSpeed = true
  176. walkSpeed = math.floor(116 + (finalPos*100))
  177. walkSpeedLabel.Text = "Walkspeed: "..tostring(walkSpeed)
  178. end
  179. end)
  180. --JUMPPOWER FUNCTION
  181. local jumpPowerF = makeBaseDragUI(UDim2.new(.2, 0, .4, 0), UDim2.new(.65, 0, .3, 0), "Jump Power")
  182. jumpPowerSlider = makeSlider(jumpPowerF, UDim2.new(1, 0, .2, 0), UDim2.new(0, 0, .4, 0))
  183. local jumpPowerLabel = makeLabel(jumpPowerF, UDim2.new(1, 0, .2, 0), UDim2.new(0, 0, .2, 0), "Jump Power: 16", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .8)
  184. local dragging = false
  185. local pos = mouse.X
  186. local jumpPower = 50
  187. jumpPowerSlider.MouseButton1Down:connect(function()
  188. dragging = true
  189. pos = mouse.X
  190. end)
  191. jumpPowerSlider.MouseButton1Up:connect(function()
  192. dragging = false
  193. end)
  194. mouse.Move:connect(function()
  195. if dragging == true then
  196. local f = jumpPowerSlider.Parent.Parent
  197. local newPos = mouse.X
  198. local diff = newPos - pos
  199. pos = mouse.X
  200. local max = mouse.ViewSizeX
  201. local scaleDiff = (diff/max)
  202. local leftBarrier = f.Position.X.Scale--(f.Size.X.Scale/2)
  203. local rightBarrier = f.Position.X.Scale+(f.Size.X.Scale*.95)
  204. local dragPos = jumpPowerSlider.Position.X.Scale + (scaleDiff*5)
  205. if(dragPos > leftBarrier and dragPos < rightBarrier) then
  206. jumpPowerSlider.Position = UDim2.new(dragPos, 0, jumpPowerSlider.Position.Y.Scale, 0)
  207. else
  208. dragging = false
  209. end
  210. local finalPos = (-(f.Size.X.Scale/2)+jumpPowerSlider.Position.X.Scale)*2
  211. changingJumpPower = true
  212. jumpPower = math.floor(150 + (finalPos*100))
  213. jumpPowerLabel.Text = "Jump Power: "..tostring(jumpPower)
  214. end
  215. end)
  216. --ESP FUNCTION
  217. local Esp = makeBaseDragUI(UDim2.new(.2, 0, .45, 0), UDim2.new(.65, 0, .35, 0), "Player&Item ESP")
  218. local targetLabels = {}
  219. local itemLabels = {}
  220. detectRigType = function(target)
  221. if target == nil then
  222. return "Abort"
  223. elseif target:FindFirstChild("Torso") then
  224. return "R6"
  225. elseif target:FindFirstChild("LowerTorso") then
  226. return "R15"
  227. else
  228. return "Abort" -- Probably loading in or something
  229. end
  230. end
  231. detectHumanoid = function(target)
  232. for i,v in pairs(target:GetChildren()) do
  233. if v.Name == "Health" then
  234. return v -- Found the name of our humanoid
  235. end
  236. end
  237. end
  238. detectTeam = function(player)
  239. if player.Neutral == false then
  240. return player.TeamColor
  241. end
  242. end
  243. itemLabel = function(meshPart)
  244. coroutine.resume(coroutine.create(function()
  245. local bb = Instance.new("BillboardGui", meshPart)
  246. bb.AlwaysOnTop = true
  247. bb.Size = UDim2.new(5, 0, 5, 0)
  248. local frL = Instance.new("Frame", bb)
  249. frL.BorderSizePixel = 0
  250. frL.Size = UDim2.new(.05, 0, 1.05, 0)
  251. frL.BackgroundColor3 = BrickColor.new("Lime green").Color
  252. local frR = Instance.new("Frame", bb)
  253. frR.BorderSizePixel = 0
  254. frR.Size = UDim2.new(.05, 0, 1.05, 0)
  255. frR.Position = UDim2.new(.99, 0, 0, 0)
  256. frR.BackgroundColor3 = BrickColor.new("Lime green").Color
  257. local frT = Instance.new("Frame", bb)
  258. frT.BorderSizePixel = 0
  259. frT.Size = UDim2.new(1, 0, .05, 0)
  260. frT.Position = UDim2.new(0, 0, 0, 0)
  261. frT.BackgroundColor3 = BrickColor.new("Lime green").Color
  262. local frB = Instance.new("Frame", bb)
  263. frB.BorderSizePixel = 0
  264. frB.Size = UDim2.new(1, 0, .05, 0)
  265. frB.Position = UDim2.new(0, 0, 0.99, 0)
  266. frB.BackgroundColor3 = BrickColor.new("Lime green").Color
  267. table.insert(itemLabels, bb)
  268. if meshPart.MeshId == "rbxassetid://3497428510" then
  269. frL.BackgroundColor3 = BrickColor.new("Neon orange").Color
  270. frR.BackgroundColor3 = BrickColor.new("Neon orange").Color
  271. frT.BackgroundColor3 = BrickColor.new("Neon orange").Color
  272. frB.BackgroundColor3 = BrickColor.new("Neon orange").Color
  273. elseif meshPart.MeshId == "rbxassetid://4496695972" then
  274. frL.BackgroundColor3 = BrickColor.new("New Yeller").Color
  275. frR.BackgroundColor3 = BrickColor.new("New Yeller").Color
  276. frT.BackgroundColor3 = BrickColor.new("New Yeller").Color
  277. frB.BackgroundColor3 = BrickColor.new("New Yeller").Color
  278. end
  279. local mag = (char.HumanoidRootPart.CFrame.p - meshPart.CFrame.p).magnitude
  280. if mag > 100 then
  281. local extra = mag/100
  282. bb.Size = UDim2.new(5*extra, 0, 5*extra)
  283. end
  284. coroutine.yield()
  285. end))
  286. end
  287. makeTargetLabels = function(targ, player)
  288. if targ ~= nil and player ~= nil then
  289. coroutine.resume(coroutine.create(function()
  290. local rigType = detectRigType(targ)
  291. if rigType == "Abort" or targ:FindFirstChild("HumanoidRootPart") == nil then return end
  292. local bb = Instance.new("BillboardGui", targ.HumanoidRootPart)
  293. bb.AlwaysOnTop = true
  294. bb.Size = UDim2.new(5, 0, 5, 0)
  295. game.Debris:AddItem(bb, .5)
  296. local frL = Instance.new("Frame", bb)
  297. frL.BorderSizePixel = 0
  298. frL.Size = UDim2.new(.05, 0, 1.05, 0)
  299. frL.BackgroundColor3 = BrickColor.new("Really red").Color
  300. local frR = Instance.new("Frame", bb)
  301. frR.BorderSizePixel = 0
  302. frR.Size = UDim2.new(.05, 0, 1.05, 0)
  303. frR.Position = UDim2.new(.99, 0, 0, 0)
  304. frR.BackgroundColor3 = BrickColor.new("Really red").Color
  305. local frT = Instance.new("Frame", bb)
  306. frT.BorderSizePixel = 0
  307. frT.Size = UDim2.new(1, 0, .05, 0)
  308. frT.Position = UDim2.new(0, 0, 0, 0)
  309. frT.BackgroundColor3 = BrickColor.new("Really red").Color
  310. local frB = Instance.new("Frame", bb)
  311. frB.BorderSizePixel = 0
  312. frB.Size = UDim2.new(1, 0, .05, 0)
  313. frB.Position = UDim2.new(0, 0, 0.99, 0)
  314. frB.BackgroundColor3 = BrickColor.new("Really red").Color
  315. --Health bars
  316. local hum = detectHumanoid(targ)
  317. if hum ~= nil then
  318. local fr = Instance.new("Frame", bb)
  319. fr.BorderSizePixel = 0
  320. fr.Size = UDim2.new(1, 5, .1, 5)
  321. fr.Position = UDim2.new(.025, 0, .9, 0)
  322. fr.BackgroundColor3 = Color3.new(0, 0, 0)
  323. local hp = Instance.new("Frame", fr)
  324. hp.BackgroundColor3 = BrickColor.new("Forest green").Color
  325. hp.BorderSizePixel = 0
  326. local total
  327. if targ:FindFirstChild("Health") ~= nil then
  328. total = (hum.Value/hum.MaxValue)
  329. end
  330. hp.Size = UDim2.new(total, 0, 1, 0)
  331. end
  332. local txt = Instance.new("TextLabel", bb)
  333. txt.BackgroundTransparency = 1
  334. txt.TextScaled = true
  335. txt.TextStrokeTransparency = 0
  336. txt.TextColor3 = BrickColor.new("Really red").Color
  337. txt.Position = UDim2.new(.05, 0, .05, 0)
  338. txt.Size = UDim2.new(.95, 20, .1, 20)--uses scalar and native based sizing for distance
  339. txt.Text = targ.Name
  340. if hum ~= nil then
  341. if targ:FindFirstChild("Health") ~= nil then
  342. local estimated = math.floor((hum.Value/hum.MaxValue)*100)
  343. txt.Text = targ.Name.." "..tostring(estimated).."%"
  344. end
  345. end
  346. local team = detectTeam(player)
  347. if team ~= nil then
  348. txt.TextColor3 = team.Color
  349. frL.BackgroundColor3 = team.Color
  350. frR.BackgroundColor3 = team.Color
  351. frT.BackgroundColor3 = team.Color
  352. frB.BackgroundColor3 = team.Color
  353. end
  354. local mag = (char.HumanoidRootPart.CFrame.p - targ.HumanoidRootPart.CFrame.p).magnitude
  355. if mag > 100 then
  356. local extra = mag/100
  357. bb.Size = UDim2.new(5*extra, 0, 5*extra)
  358. end
  359. table.insert(targetLabels, bb)
  360. coroutine.yield()
  361. end))
  362. end
  363. end
  364. local playerESP = makeButton(Esp, UDim2.new(1, 0, .25, 0), UDim2.new(0, 0, 0, 0), "Player ESP OFF", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .4)
  365. local arrowESP = makeButton(Esp, UDim2.new(1, 0, .25, 0), UDim2.new(0, 0, .25, 0), "Arrow ESP OFF", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .4)
  366. local RokaESP = makeButton(Esp, UDim2.new(1, 0, .25, 0), UDim2.new(0, 0, .5, 0), "Roka ESP OFF", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .4)
  367. local vampESP = makeButton(Esp, UDim2.new(1, 0, .25, 0), UDim2.new(0, 0, .75, 0), "Vampire Mask ESP OFF", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .4)
  368. playerESP.MouseButton1Click:connect(function()
  369. if findPlayers == false then
  370. findPlayers = true
  371. playerESP.Text = "Player ESP ON"
  372. else
  373. findPlayers = false
  374. playerESP.Text = "Player ESP OFF"
  375. end
  376. end)
  377. arrowESP.MouseButton1Click:connect(function()
  378. if findArrows == false then
  379. findArrows = true
  380. arrowESP.Text = "Arrow ESP ON"
  381. else
  382. findArrows = false
  383. arrowESP.Text = "Arrow ESP OFF"
  384. end
  385. end)
  386. RokaESP.MouseButton1Click:connect(function()
  387. if findRokas == false then
  388. findRokas = true
  389. RokaESP.Text = "Roka ESP ON"
  390. else
  391. findRokas = false
  392. RokaESP.Text = "Roka ESP OFF"
  393. end
  394. end)
  395. vampESP.MouseButton1Click:connect(function()
  396. if findMasks == false then
  397. findMasks = true
  398. vampESP.Text = "Vampire Mask ESP ON"
  399. else
  400. findMasks = false
  401. vampESP.Text = "Vampire Mask ESP OFF"
  402. end
  403. end)
  404. --Credits
  405. local credits = makeBaseDragUI(UDim2.new(.2, 0, .45, 0), UDim2.new(.65, 0, .4, 0), "Credits")
  406. local maker = makeLabel(credits, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 0, 0), "Made by NukeVsCity", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .4)
  407. --Noclip
  408. local noclipF = makeBaseDragUI(UDim2.new(.2, 0, .45, 0), UDim2.new(.65, 0, .45, 0), "Noclip(N=Down)(M=Up)")
  409. local nobutton = makeButton(noclipF, UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 0, 0), "Noclip is OFF", BrickColor.new("Royal purple").Color, Color3.new(0, 0, 0), .4)
  410. nobutton.MouseButton1Click:connect(function()
  411. if noclip == false then
  412. noclip = true
  413. nobutton.Text = "Noclip is ON"
  414. else
  415. noclip = false
  416. nobutton.Text = "Noclip is OFF"
  417. end
  418. end)
  419. --Looped Runservice
  420. print("EXPLOIT RUNNING! Made by deadline3652/Cameron")
  421. UIS.InputBegan:connect(function(input)
  422. local i = input.KeyCode
  423. if noclip == true then
  424. if i == Enum.KeyCode.N then
  425. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame* CFrame.new(0, -5, 0)
  426. elseif i == Enum.KeyCode.M then
  427. char.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame* CFrame.new(0, 5, 0)
  428. end
  429. end
  430. end)
  431. game:GetService("RunService").RenderStepped:connect(function()
  432. char = player.Character
  433. char.Humanoid.AutoRotate = true
  434. --WS
  435. if changingWalkSpeed == true then
  436. char.Humanoid.WalkSpeed = walkSpeed
  437. end
  438. --JP
  439. if changingJumpPower == true then
  440. char.Humanoid.JumpPower = jumpPower
  441. end
  442. --NOCLIP
  443. if noclip == true then
  444. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  445. end
  446. --ESP
  447. for i,v in pairs(targetLabels) do
  448. v:Destroy()
  449. end
  450. for i,v in pairs(itemLabels) do
  451. v:Destroy()
  452. end
  453. itemLabels = {}
  454. targetLabels = {}
  455. if findPlayers == true then
  456. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  457. if v.Name ~= player.Name then
  458. makeTargetLabels(v.Character, v)
  459. end
  460. end
  461. end
  462. if game.Workspace:FindFirstChild("Item_Spawns") then
  463. for i,v in pairs(game.Workspace:WaitForChild("Item_Spawns"):WaitForChild("Items"):GetChildren()) do
  464. if v:WaitForChild("Base"):FindFirstChild("ParticleEmitter") == nil then
  465. if v.Base.MeshId == "rbxassetid://3497428510" then
  466. if findRokas == true then
  467. itemLabel(v.Base)
  468. end
  469. elseif v.Base.MeshId == "rbxassetid://4496695972" then
  470. if findArrows == true then
  471. itemLabel(v.Base)
  472. end
  473. else
  474. if findMasks == true then
  475. itemLabel(v.Base)
  476. end
  477. end
  478. end
  479. end
  480. end
  481. end)
Add Comment
Please, Sign In to add comment