Advertisement
Dogmen

Untitled

Nov 19th, 2018
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.96 KB | None | 0 0
  1. --[[
  2. Dm me at Chebureki#5214 for help
  3. --]]
  4.  
  5. --// Settings
  6. local settings = {}
  7. settings.toggleButton = "RightShift" --//Keys are at https://wiki.roblox.com/index.php?title=API:Enum/KeyCode
  8. settings.BlurFactor = 20 --// 0-100
  9. settings.Color = Color3.fromRGB(148,0,211)
  10. --//
  11.  
  12. --//
  13. local options = {}
  14. options.Chams = false
  15. options.Aimbot = false
  16. options.RenderTeam = false
  17. options.EnemyColor = Color3.new(1,0,0)
  18. options.AllyColor = Color3.new(0,0,1)
  19. options.SeeThroughWalls = false
  20. options.NoRecoil = false
  21. options.Key = "CapsLock"
  22. options.SpeedEnabled = false
  23. options.Speed = 100
  24. options.NoClip = false
  25. options.AimTarget = "Head"
  26. --//
  27.  
  28. if getsenv ~= nil then
  29. orignalSpeed = getsenv(game.Players.LocalPlayer.PlayerGui.Client).speedupdate
  30. newSpeed = function()
  31. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = options.Speed
  32. end
  33. end
  34.  
  35. local Targets = {
  36. "HumanoidRootPart",
  37. "LeftHand",
  38. "LeftLowerArm",
  39. "LeftUpperArm",
  40. "RightHand",
  41. "RightLowerArm",
  42. "RightUpperArm",
  43. "UpperTorso",
  44. "LeftFoot",
  45. "LeftLowerLeg",
  46. "LeftUpperLeg",
  47. "RightFoot",
  48. "RightLowerLeg",
  49. "RightUpperLeg",
  50. "LowerTorso",
  51. "Head"
  52. }
  53. local camera = workspace.CurrentCamera
  54. local ScreenGui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  55. local ESPLocation = Instance.new("Folder",ScreenGui)
  56. ScreenGui.Enabled = false
  57. ScreenGui.ResetOnSpawn = false
  58. local Blur = Instance.new("BlurEffect",ScreenGui)
  59. Blur.Size = settings.BlurFactor
  60.  
  61. game:GetService("UserInputService").InputBegan:Connect(function(key)
  62. if key.KeyCode == Enum.KeyCode[settings.toggleButton] then
  63. ScreenGui.Enabled = not ScreenGui.Enabled
  64. if ScreenGui.Enabled then
  65. Blur.Parent = game.Lighting
  66. else
  67. Blur.Parent = ScreenGui
  68. end
  69. end
  70. end)
  71.  
  72. function createHeader(Title,x,y)
  73. local Header = Instance.new("TextButton")
  74. local List = Instance.new("Frame")
  75. Header.Name = Title
  76. Header.Parent = ScreenGui
  77. Header.BackgroundColor3 = settings.Color
  78. Header.BorderSizePixel = 0
  79. Header.Draggable = true
  80. Header.Position = UDim2.new(0, x, 0, y)
  81. Header.Size = UDim2.new(0, 245, 0, 35)
  82. Header.ZIndex = 2
  83. Header.Font = Enum.Font.SourceSans
  84. Header.Text = Title
  85. Header.TextColor3 = Color3.new(1, 1, 1)
  86. Header.TextSize = 21
  87.  
  88. List.Name = "List"
  89. List.Parent = Header
  90. List.BackgroundColor3 = Color3.new(0, 0, 0)
  91. List.BackgroundTransparency = 0.60000002384186
  92. List.BorderSizePixel = 0
  93. List.ClipsDescendants = true
  94. List.Position = UDim2.new(0.0122448979, 0, 0, 0)
  95. List.Size = UDim2.new(0, 239, 0, 35)
  96.  
  97. Header.MouseButton1Click:Connect(function()
  98. if List.Size.Y.Offset <= 35 then
  99. List:TweenSize(UDim2.new(0,239,0,35+30*#List:GetChildren()),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  100. else
  101. List:TweenSize(UDim2.new(0,239,0,30),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  102. end
  103. end)
  104.  
  105. return Header
  106. end
  107.  
  108. function addButton(Title,Header,func)
  109. local Button = Instance.new("TextButton")
  110. Button.Name = "Button"
  111. Button.Parent = Header.List
  112. Button.BackgroundColor3 = Color3.new(1, 1, 1)
  113. Button.BackgroundTransparency = 1
  114. Button.Position = UDim2.new(0, 0, 0, 5+30*#Header.List:GetChildren())
  115. Button.Size = UDim2.new(0, 239, 0, 30)
  116. Button.Font = Enum.Font.SourceSansBold
  117. Button.Text = " > "..Title
  118. Button.TextColor3 = Color3.new(1, 1, 1)
  119. Button.TextSize = 25
  120. Button.TextXAlignment = Enum.TextXAlignment.Left
  121. if func ~= nil then
  122. Button.MouseButton1Click:Connect(func)
  123. end
  124.  
  125. return Button
  126. end
  127.  
  128. function addTextBox(Header,PlaceHolderText)
  129. local Box = Instance.new("TextBox")
  130. Box.Name = "TextBox"
  131. Box.Parent = Header.List
  132. Box.BackgroundColor3 = Color3.new(0, 0, 0)
  133. Box.BackgroundTransparency = 0.8
  134. Box.Position = UDim2.new(0, 0, 0, 5+30*#Header.List:GetChildren())
  135. Box.Size = UDim2.new(0, 239, 0, 29)
  136. Box.Font = Enum.Font.SourceSansBold
  137. Box.Text = ""
  138. Box.PlaceholderText = PlaceHolderText
  139. Box.TextColor3 = Color3.new(1, 1, 1)
  140. Box.TextSize = 25
  141. Box.TextXAlignment = Enum.TextXAlignment.Center
  142. return Box
  143. end
  144.  
  145. function convertToColor3(input)
  146. local temp = {}
  147. for number in input:gmatch(",?%d+,?")do
  148. number = number:gsub(",","")
  149. table.insert(temp,number)
  150. end
  151. if #temp ~= 3 then return nil end
  152. return(Color3.fromRGB(unpack(temp)))
  153. end
  154.  
  155. --//The Header is 245 pixels wide
  156.  
  157. local ESP = createHeader("WallHack",100,100)
  158. local AIM = createHeader("Aimbot",375,100)
  159. local MISC = createHeader("Misc",650,100)
  160.  
  161. --//ToggleButtons
  162. local enableEsp = addButton("Enable Chams",ESP)
  163. enableEsp.MouseButton1Click:Connect(function()
  164. options.Chams = not options.Chams
  165. if options.Chams then
  166. enableEsp.TextColor3 = Color3.new(0,1,0)
  167. else
  168. enableEsp.TextColor3 = Color3.new(1,1,1)
  169. end
  170. ESP()
  171. end)
  172.  
  173. local RenderTeam = addButton("Render Team",ESP)
  174. RenderTeam.MouseButton1Click:Connect(function()
  175. options.RenderTeam = not options.RenderTeam
  176. if options.RenderTeam then
  177. RenderTeam.TextColor3 = Color3.new(0,1,0)
  178. else
  179. RenderTeam.TextColor3 = Color3.new(1,1,1)
  180. end
  181. ESP()
  182. end)
  183.  
  184. local SeeThroughWalls = addButton("See through walls",ESP)
  185. SeeThroughWalls.MouseButton1Click:Connect(function()
  186. options.SeeThroughWalls = not options.SeeThroughWalls
  187. if options.SeeThroughWalls then
  188. SeeThroughWalls.TextColor3 = Color3.new(0,1,0)
  189. else
  190. SeeThroughWalls.TextColor3 = Color3.new(1,1,1)
  191. end
  192. ESP()
  193. end)
  194.  
  195. local ChamsEnemyColor = addTextBox(ESP,"Enemy Color RGB")
  196. ChamsEnemyColor.Changed:Connect(function(property)
  197. if property ~= "Text" then return end
  198.  
  199. if convertToColor3(ChamsEnemyColor.Text) ~= nil then
  200. options.EnemyColor = convertToColor3(ChamsEnemyColor.Text)
  201. ESP()
  202. end
  203. end)
  204.  
  205. local ChamsAllyColor = addTextBox(ESP,"Ally Color RGB")
  206. ChamsAllyColor.Changed:Connect(function(property)
  207. if property ~= "Text" then return end
  208.  
  209. if convertToColor3(ChamsAllyColor.Text) ~= nil then
  210. options.AllyColor = convertToColor3(ChamsAllyColor.Text)
  211. ESP()
  212. end
  213. end)
  214.  
  215.  
  216. local Aimbot = addButton("Enabled",AIM)
  217. Aimbot.MouseButton1Click:Connect(function()
  218. options.Aimbot = not options.Aimbot
  219. if options.Aimbot then
  220. Aimbot.TextColor3 = Color3.new(0,1,0)
  221. else
  222. Aimbot.TextColor3 = Color3.new(1,1,1)
  223. end
  224. end)
  225.  
  226. local NoRecoil = addButton("No Recoil",AIM)
  227. NoRecoil.MouseButton1Click:Connect(function()
  228. options.NoRecoil = not options.NoRecoil
  229. if options.NoRecoil then
  230. NoRecoil.TextColor3 = Color3.new(0,1,0)
  231. else
  232. NoRecoil.TextColor3 = Color3.new(1,1,1)
  233. end
  234. end)
  235.  
  236. local InputKey = addTextBox(AIM,"Key")
  237. InputKey.Changed:Connect(function(property)
  238. if property ~= "Text" then return end
  239.  
  240. local success = pcall(function()
  241. local test = Enum.KeyCode[InputKey.Text]
  242. end)
  243.  
  244. if success or InputKey.Text == "M1" or InputKey.Text == "M2" then
  245. options.Key = InputKey.Text
  246. end
  247. end)
  248.  
  249. local AimTarget = addTextBox(AIM,"Target")
  250. AimTarget.Changed:Connect(function(property)
  251. if property ~= "Text" then return end
  252.  
  253. local inTable = false
  254.  
  255. for _,target in pairs(Targets)do
  256. if AimTarget.Text == target then
  257. inTable = true
  258. break
  259. end
  260. end
  261.  
  262. if inTable then
  263. options.AimTarget = AimTarget.Text
  264. end
  265. end)
  266.  
  267. local SpeedHack = addButton("Speed-Hack",MISC)
  268. SpeedHack.MouseButton1Click:Connect(function()
  269. options.SpeedEnabled = not options.SpeedEnabled
  270. if options.SpeedEnabled then
  271. getsenv(game.Players.LocalPlayer.PlayerGui.Client).speedupdate = newSpeed
  272. SpeedHack.TextColor3 = Color3.new(0,1,0)
  273. else
  274. getsenv(game.Players.LocalPlayer.PlayerGui.Client).speedupdate = orignalSpeed
  275. SpeedHack.TextColor3 = Color3.new(1,1,1)
  276. end
  277. end)
  278.  
  279. local WalkSpeedInput = addTextBox(MISC,"Speed")
  280. WalkSpeedInput.Changed:Connect(function(property)
  281. if property ~= "Text" then return end
  282.  
  283. if tonumber(WalkSpeedInput) ~= nil then
  284. options.Speed = tonumber(WalkSpeedInput)
  285. end
  286. end)
  287.  
  288. local NoClip = addButton("NoClip",MISC)
  289. NoClip.MouseButton1Click:Connect(function()
  290. options.NoClip = not options.NoClip
  291. if options.NoClip then
  292. NoClip.TextColor3 = Color3.new(0,1,0)
  293. for i,v in pairs(workspace.Map:GetDescendants())do
  294. if v:IsA("BasePart") then
  295. local Origin = v.Parent
  296. v.Parent = game.Workspace.Ray_Ignore
  297. spawn(function()
  298. NoClip.MouseButton1Click:Wait()
  299. v.Parent = Origin
  300. end)
  301. end
  302. end
  303. else
  304. NoClip.TextColor3 = Color3.new(1,1,1)
  305. end
  306. end)
  307. --//Input
  308. game.Players.LocalPlayer:GetMouse().Button1Down:Connect(function()
  309. if options.Key == "M1" then
  310. currentFrame = nil
  311. pressed = true
  312. end
  313. end)
  314.  
  315. game.Players.LocalPlayer:GetMouse().Button2Down:Connect(function()
  316. if options.Key == "M2" then
  317. currentFrame = nil
  318. pressed = true
  319. end
  320. end)
  321.  
  322. game.Players.LocalPlayer:GetMouse().Button1Up:Connect(function()
  323. if options.Key == "M1" then
  324. pressed = false
  325. end
  326. end)
  327.  
  328. game.Players.LocalPlayer:GetMouse().Button2Up:Connect(function()
  329. if options.Key == "M2" then
  330. pressed = false
  331. end
  332. end)
  333.  
  334.  
  335.  
  336. game:GetService("UserInputService").InputBegan:connect(function(key)
  337. pcall(function()
  338. if key.KeyCode == Enum.KeyCode[options.Key] then
  339. currentFrame = nil
  340. pressed = true
  341. end
  342. end)
  343. end)
  344.  
  345. game:GetService("UserInputService").InputEnded:connect(function(key)
  346. pcall(function()
  347. if key.KeyCode == Enum.KeyCode[options.Key] then
  348. pressed = false
  349. end
  350. end)
  351. end)
  352.  
  353. --//
  354.  
  355.  
  356. function espPart(part,player)
  357. local esp = Instance.new("BoxHandleAdornment",ESPLocation)
  358. esp.Adornee = part
  359. if options.SeeThroughWalls then
  360. esp.AlwaysOnTop = true
  361. end
  362. esp.ZIndex = 1
  363. if options.Chams and(player.Team ~= game.Players.LocalPlayer.Team or options.RenderTeam) then
  364. esp.Transparency = 0.5
  365. else
  366. esp.Transparency = 1
  367. end
  368. esp.Size = part.Size + Vector3.new(0.1,0.1,0.1)
  369. if player.Team == game.Players.LocalPlayer.Team then
  370. esp.Color3 = options.AllyColor
  371. else
  372. esp.Color3 = options.EnemyColor
  373. end
  374.  
  375. esp.MouseEnter:Connect(function()
  376. if player.Team ~= game.Players.LocalPlayer.Team then
  377. currentFrame = esp
  378. end
  379. end)
  380.  
  381. esp.MouseLeave:Connect(function()
  382. if not pressed then
  383. currentFrame = nil
  384. end
  385. end)
  386.  
  387. player.CharacterRemoving:Connect(function()
  388. esp:Destroy()
  389. end)
  390.  
  391. player.Team.PlayerRemoved:Connect(function(RemovedPlayer)
  392. if RemovedPlayer ~= player and RemovedPlayer ~= game.Players.LocalPlayer then
  393. return
  394. else
  395. if player.Team == game.Players.LocalPlayer.Team then
  396. esp.Color3 = options.AllyColor
  397. else
  398. esp.Color3 = options.EnemyColor
  399. end
  400. end
  401. end)
  402. end
  403.  
  404. function espPlayer(player)
  405. if player.Character ~= nil then
  406. for _,part in pairs(player.Character:GetChildren())do
  407. if part:IsA("BasePart")then
  408. espPart(part,player)
  409. end
  410. end
  411. end
  412. end
  413.  
  414. function ESP()
  415. ESPLocation:ClearAllChildren()
  416. for _,player in pairs(game.Players:GetPlayers())do
  417. if player ~= game.Players.LocalPlayer then
  418. espPlayer(player)
  419. end
  420. end
  421. end
  422.  
  423. game.workspace.Camera.Changed:Connect(function()
  424. if options.NoRecoil then
  425. pcall(function() getsenv(game.Players.LocalPlayer.PlayerGui.Client).resetaccuracy() end)
  426. end
  427.  
  428. if pressed and options.Aimbot then
  429. if currentFrame ~= nil then
  430. if currentFrame.Adornee ~= nil and currentFrame.Adornee:FindFirstAncestorWhichIsA("Model"):FindFirstChild(options.AimTarget) then
  431. local target = currentFrame.Adornee:FindFirstAncestorWhichIsA("Model"):FindFirstChild(options.AimTarget)
  432. camera.CFrame = CFrame.new(camera.CFrame.p,target.CFrame.p+Vector3.new(0.01,0.01,0.01))
  433. end
  434. end
  435. end
  436. end)
  437.  
  438.  
  439.  
  440. local function WaitUntilCharacterLoaded(Char)
  441. for _,Part in pairs(Targets)do
  442. Char:WaitForChild(Part)
  443. end
  444. end
  445.  
  446. game.Players.PlayerAdded:Connect(function(Player)
  447. Player.CharacterAdded:Connect(function(Char)
  448. WaitUntilCharacterLoaded(Char)
  449. espPlayer(Player)
  450. end)
  451. end)
  452.  
  453. for _,Player in pairs(game.Players:GetPlayers())do
  454. Player.CharacterAdded:Connect(function(Char)
  455. WaitUntilCharacterLoaded(Char)
  456. espPlayer(Player)
  457. end)
  458. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement