unkownxplayer

aeeee

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