WeAreDevNetPastebin

CBRO

Feb 17th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.80 KB | None | 0 0
  1. wait(1)
  2.  
  3. local load
  4. local gamelist = {[301549746] = {n="Counter Blox", b="1"}}
  5. if gamelist[game.PlaceId] then
  6. par = game:GetService("CoreGui")
  7. load = true
  8. end
  9. if load then
  10. function mouse1down()
  11. if syn or SENTINEL_LOADED then
  12. mouse1press()
  13. elseif PROTOSMASHER_LOADED then
  14. Input.LeftClick(MOUSE_DOWN)
  15. end
  16. end
  17. function mouse1up()
  18. if syn or SENTINEL_LOADED then
  19. mouse1release()
  20. elseif PROTOSMASHER_LOADED then
  21. Input.LeftClick(MOUSE_UP)
  22. end
  23. end
  24. getrenv().print("loading")
  25. --// SERVICES \\--
  26. local playerser = game:GetService("Players")
  27. local repstor = game:GetService("ReplicatedStorage")
  28. local repfirst = game:GetService("ReplicatedFirst")
  29. local inputser = game:GetService("UserInputService")
  30. local runser = game:GetService("RunService")
  31. local coregui = game:GetService("CoreGui")
  32. local tweenser = game:GetService("TweenService")
  33.  
  34. --// VARIABLES \\--
  35. local client = playerser.LocalPlayer
  36. local camera = workspace.CurrentCamera
  37. local playergui = client:WaitForChild("PlayerGui")
  38. playergui:SetTopbarTransparency(1)
  39. local backpack = client:WaitForChild("Backpack")
  40. local clientscripts = client:WaitForChild("PlayerScripts")
  41. local mouse = client:GetMouse()
  42. local heartbeat = runser.Heartbeat
  43. local renderstep = runser.RenderStepped
  44. --local renv = getrenv()
  45.  
  46. local window_count = 0
  47. local focusedtab
  48. local dragging
  49. local draggingObj
  50.  
  51. local weps = repstor.Weapons
  52. local hui = repstor.HUInfo
  53.  
  54. local hitPartRemote = repstor.Events['HitPart']
  55.  
  56. --tables
  57. local colors = {
  58. esp_t = Color3.fromRGB(240,40,40),
  59. esp_ct = Color3.fromRGB(40,240,40),
  60. esp_t_vis = Color3.fromRGB(240,40,240),
  61. esp_ct_vis = Color3.fromRGB(40,240,240),
  62. bomb_carrier = Color3.fromRGB(240,140,40),
  63. bomb_carrier_vis = Color3.fromRGB(240,240,40),
  64. bomb = Color3.fromRGB(255,255,255),
  65. weapon = Color3.fromRGB(0,0,255),
  66. worldColor = Color3.fromRGB(240,140,140),
  67. aimTargetColor = Color3.fromRGB(255,255,255),
  68. backtrack_start = Color3.fromRGB(75,230,67),
  69. backtrack_end = Color3.fromRGB(230,79,79),
  70. }
  71. local lightingDefaults = {
  72. ambient = game.Lighting.Ambient,
  73. brightness = game.Lighting.Brightness,
  74. colorBottom = game.Lighting.ColorShift_Bottom,
  75. colorTop = game.Lighting.ColorShift_Top,
  76. outdoor = game.Lighting.OutdoorAmbient,
  77. }
  78. local partPriorities = {
  79. ["HeadHB"] = {priority = 5},
  80. ["LeftHand"] = {priority = 4},
  81. ["RightHand"] = {priority = 3},
  82. ["LeftFoot"] = {priority = 2},
  83. ["RightFoot"] = {priority = 1},
  84. }
  85. local mapProps = {}
  86. local charProps = {}
  87. local weaponSpeeds = {}
  88. local scopedSpeeds = {}
  89. local normalSpreads = {}
  90. local normalRecoils = {}
  91. local normalDivisors = {}
  92. local nonAutos = {}
  93. local fireRates = {}
  94. local ammoValues = {}
  95. local ammoValues2 = {}
  96. local reloadValues = {}
  97. local equipValues = {}
  98. local viewmodelProps = {}
  99.  
  100. --bools
  101. local fovSize = 200
  102. local customFov = 90
  103. local crosshairGap, crosshairThickness = 5, 2
  104. local asusToggle
  105. local worldTransparency = 0.8
  106. local worldColorToggle
  107. local playerEspToggle
  108. local playerChamsToggle
  109. local visEspToggle
  110. local visAimToggle
  111. local autoHop
  112. local enemyOnlyEsp
  113. local inputting
  114. local inputTo
  115. local inputObj
  116. local dragStart
  117. local startPos
  118. local settingColorFor
  119. local fuckallToggle
  120. local worldEspToggle
  121. local bombInfo
  122. local ignoreSmokes
  123. local sniperCrosshair
  124. local silentAim
  125. local silentAimPart
  126. local autoShoot
  127. local canShoot = true
  128. local canAutoWall = true
  129. local noFlash
  130. local viewmodelTransparency = 0.8
  131. local infCash
  132.  
  133. --gui part 1
  134. local sg = Instance.new("ScreenGui", par)
  135. sg.Name = "wiitrap"
  136. sg.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  137.  
  138. local main = Instance.new("Frame", sg)
  139. main.Name = "main"
  140. main.Size = UDim2.new(1,0,1,0)
  141. main.BackgroundTransparency = 1
  142.  
  143. local mouseicon = Instance.new("Frame", main)
  144.  
  145. local crosshair = Instance.new("Frame", sg)
  146. crosshair.Name = "crosshair"
  147. crosshair.AnchorPoint = Vector2.new(0.5,0.5)
  148. crosshair.Position = UDim2.new(0.5,0,0.5,-18)
  149. crosshair.Size = UDim2.new(0,50,0,50)
  150. crosshair.BackgroundTransparency = 1
  151. crosshair.Visible = false
  152. local vertTop = Instance.new("Frame", crosshair)
  153. vertTop.Size = UDim2.new(0,crosshairThickness,0.5,-crosshairGap)
  154. vertTop.Position = UDim2.new(0.5,-1,0,0)
  155. vertTop.BorderSizePixel = 0
  156. local vertBottom = Instance.new("Frame", crosshair)
  157. vertBottom.Size = UDim2.new(0,crosshairThickness,0.5,-crosshairGap)
  158. vertBottom.Position = UDim2.new(0.5,-1,1,0)
  159. vertBottom.AnchorPoint = Vector2.new(0,1)
  160. vertBottom.BorderSizePixel = 0
  161. local horzLeft = Instance.new("Frame", crosshair)
  162. horzLeft.Size = UDim2.new(0.5,-crosshairGap,0,crosshairThickness)
  163. horzLeft.Position = UDim2.new(0,0,0.5,-1)
  164. horzLeft.BorderSizePixel = 0
  165. local horzRight = Instance.new("Frame", crosshair)
  166. horzRight.Size = UDim2.new(0.5,-crosshairGap,0,crosshairThickness)
  167. horzRight.Position = UDim2.new(1,0,0.5,-1)
  168. horzRight.AnchorPoint = Vector2.new(1,0)
  169. horzRight.BorderSizePixel = 0
  170.  
  171. local espfolder = Instance.new("Folder", sg)
  172. espfolder.Name = "esp"
  173. local playerfolder = Instance.new("Folder", espfolder)
  174. playerfolder.Name = "players"
  175. local worldesp = Instance.new("Folder", espfolder)
  176. worldesp.Name = "world"
  177.  
  178. --// MAIN FUNCTIONS \\--
  179. function updateDrag(input)
  180. local delta = input.Position - dragStart
  181. draggingObj:TweenPosition(UDim2.new(0, startPos.X.Offset + delta.X, 0, startPos.Y.Offset + delta.Y), "Out", "Quad", 0.2, true)
  182. end
  183.  
  184. function rainbow(obj)
  185. spawn(function()
  186. while true do
  187. for i = 0,1,0.004 do
  188. obj.BackgroundColor3 = Color3.fromHSV(i,1,1)
  189. if obj:IsA"TextLabel" then
  190. obj.TextColor3 = Color3.fromHSV(i,1,1)
  191. end
  192. wait(0.01)
  193. end
  194. end
  195. end)
  196. end
  197.  
  198. function enableMouse(toggle)
  199. if toggle then
  200. runser:BindToRenderStep("mousemove", 6,
  201. function()
  202. inputser.MouseBehavior = Enum.MouseBehavior.Default
  203. mouseicon.Position = UDim2.new(0,mouse.X,0,mouse.Y)
  204. end)
  205. else
  206. runser:UnbindFromRenderStep("mousemove")
  207. end
  208. end
  209. enableMouse(true)
  210.  
  211. function addInput(toggle, ginput, func)
  212. inputser.InputBegan:connect(function(input, gamep)
  213. if not inputting and ginput and input.KeyCode == Enum.KeyCode[ginput[4]] then
  214. if toggle then
  215. toggle = false
  216. else
  217. toggle = true
  218. end
  219. func(toggle)
  220. end
  221. end)
  222. end
  223.  
  224. function thirdp()
  225. client.CameraMaxZoomDistance = 20
  226. client.CameraMinZoomDistance = 20
  227. end
  228.  
  229. function addFolders(player)
  230. local folder = Instance.new("Folder", playerfolder)
  231. folder.Name = player.Name
  232. local chams = Instance.new("Folder", folder)
  233. chams.Name = "chams"
  234. end
  235. for _, player in pairs(playerser:GetChildren()) do
  236. if player.Name ~= client.Name then
  237. addFolders(player)
  238. end
  239. end
  240. local backtrackFolder = Instance.new("Folder", workspace)
  241.  
  242. function loadMap()
  243. for _,v in pairs(workspace.Map:GetDescendants()) do
  244. if v:IsA"Part" or v:IsA"BasePart" or v:IsA"MeshPart" or v:IsA"UnionOperation" then
  245. if v:IsA"UnionOperation" then
  246. mapProps[v] = {transparency = v.Transparency, color = v.Color, upc = v.UsePartColor}
  247. else
  248. mapProps[v] = {transparency = v.Transparency, color = v.Color}
  249. end
  250. end
  251. end
  252. end
  253. loadMap()
  254.  
  255. function applyWalls(toggle, info, folder, tablee, value)
  256. if toggle then
  257. for _,v in pairs(folder:GetDescendants()) do
  258. if v:IsA"Part" or v:IsA"BasePart" or v:IsA"MeshPart" or v:IsA"UnionOperation" then
  259. if not tablee[v] then
  260. if v:IsA"UnionOperation" then
  261. tablee[v] = {transparency = v.Transparency, color = v.Color, upc = v.UsePartColor}
  262. else
  263. tablee[v] = {transparency = v.Transparency, color = v.Color}
  264. end
  265. end
  266. if info == "glass" then
  267. if v.Transparency < 0.6 then
  268. v.Transparency = value
  269. end
  270. end
  271. if info == "color" then
  272. v.Color = value
  273. if v:IsA"UnionOperation" then
  274. v.UsePartColor = true
  275. end
  276. end
  277. end
  278. end
  279. else
  280. for _,v in pairs(folder:GetDescendants()) do
  281. if info == "glass" and tablee[v] then
  282. asusToggle = false
  283. v.Transparency = tablee[v].transparency
  284. end
  285. if info == "color" and tablee[v] then
  286. worldColorToggle = false
  287. v.Color = tablee[v].color
  288. if v:IsA"UnionOperation" then
  289. v.UsePartColor = tablee[v].upc
  290. end
  291. end
  292. end
  293. end
  294. end
  295.  
  296. function makeEsp(props)
  297. local function update()
  298. local char = playerser[props.parent.Name].Character
  299. local clientchar = client.Character
  300. local color
  301. local suffix = ""
  302. if char and char:FindFirstChild"Humanoid" and char.Humanoid.Health ~= 0 and char:FindFirstChild"HeadHB" and not char:FindFirstChildOfClass"ForceField" then
  303. local humpart = char:FindFirstChild("HumanoidRootPart")
  304. local ray = Ray.new(camera.CFrame.Position, (humpart.CFrame.p-camera.CFrame.Position).unit * 2000)
  305. local ignores = {}
  306. if ignoreSmokes then
  307. ignores = {workspace.Ray_Ignore ,clientchar, camera:FindFirstChild("Arms"), char:FindFirstChild("Gun")}
  308. else
  309. ignores = {clientchar, camera:FindFirstChild("Arms"), char:FindFirstChild("Gun")}
  310. end
  311. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, ignores)
  312. local screenPos, onScreen = camera:WorldToScreenPoint(char.HeadHB.Position)
  313. if hit and hit.Parent == char then
  314. if visEspToggle then
  315. suffix = "_vis"
  316. end
  317. end
  318. if onScreen then
  319. playerfolder[props.parent.Name].nametag.Visible = true
  320. playerfolder[props.parent.Name].nametag.Position = UDim2.new(0,screenPos.X,0,screenPos.Y-(camera.CFrame.Position-screenPos).magnitude*0.02)
  321. else
  322. playerfolder[props.parent.Name].nametag.Visible = false
  323. end
  324. if playerser[props.parent.Name].Team == client.Team then
  325. if not enemyOnlyEsp then
  326. playerfolder[props.parent.Name].esp.Adornee = char.LowerTorso
  327. playerfolder[props.parent.Name].esp.Enabled = true
  328. playerfolder[props.parent.Name].nametag.Visible = true
  329. else
  330. playerfolder[props.parent.Name].esp.Adornee = nil
  331. playerfolder[props.parent.Name].esp.Enabled = false
  332. playerfolder[props.parent.Name].nametag.Visible = false
  333. end
  334. else
  335. playerfolder[props.parent.Name].esp.Adornee = char.LowerTorso
  336. playerfolder[props.parent.Name].esp.Enabled = true
  337. playerfolder[props.parent.Name].nametag.Visible = true
  338. end
  339. if playerser[props.parent.Name].Team.Name == "Terrorists" then
  340. if bombInfo and workspace.Status.HasBomb.Value == props.parent.Name then
  341. color = colors["bomb_carrier"..suffix]
  342. else
  343. color = colors["esp_t"..suffix]
  344. end
  345. elseif playerser[props.parent.Name].Team.Name == "Counter-Terrorists" then
  346. color = colors["esp_ct"..suffix]
  347. end
  348. for _,line in pairs(playerfolder[props.parent.Name].esp.lines.inlines:GetChildren()) do
  349. line.BackgroundColor3 = color
  350. end
  351. else
  352. playerfolder[props.parent.Name].nametag.Visible = false
  353. end
  354. end
  355. if props.esptype == "player" and playerfolder[props.parent.Name]:FindFirstChildOfClass"BillboardGui" then
  356. runser:BindToRenderStep(props.parent.Name..", esp", 1, update)
  357. return
  358. else
  359. local esp = Instance.new("BillboardGui")
  360. esp.AlwaysOnTop = true
  361. esp.ClipsDescendants = false
  362. local lines = Instance.new("Frame", esp)
  363. lines.Name = "lines"
  364. lines.Size = UDim2.new(1,-2,1,-2)
  365. lines.Position = UDim2.new(0,1,0,1)
  366. lines.BackgroundTransparency = 1
  367.  
  368. local outlines = Instance.new("Folder", lines)
  369. outlines.Name = "outlines"
  370. local inlines = Instance.new("Folder", lines)
  371. inlines.Name = "inlines"
  372.  
  373. local outline1 = Instance.new("Frame", outlines)
  374. outline1.Name = "left"
  375. outline1.BorderSizePixel = 0
  376. outline1.BackgroundColor3 = Color3.new(0,0,0)
  377. outline1.Size = UDim2.new(0,-1,1,0)
  378.  
  379. local outline2 = Instance.new("Frame", outlines)
  380. outline2.Name = "right"
  381. outline2.BorderSizePixel = 0
  382. outline2.BackgroundColor3 = Color3.new(0,0,0)
  383. outline2.Position = UDim2.new(1,0,0,0)
  384. outline2.Size = UDim2.new(0,1,1,0)
  385.  
  386. local outline3 = Instance.new("Frame", outlines)
  387. outline3.Name = "up"
  388. outline3.BorderSizePixel = 0
  389. outline3.BackgroundColor3 = Color3.new(0,0,0)
  390. outline3.Size = UDim2.new(1,0,0,-1)
  391.  
  392. local outline4 = Instance.new("Frame", outlines)
  393. outline4.Name = "down"
  394. outline4.BorderSizePixel = 0
  395. outline4.BackgroundColor3 = Color3.new(0,0,0)
  396. outline4.Position = UDim2.new(0,0,1,0)
  397. outline4.Size = UDim2.new(1,0,0,1)
  398.  
  399. local inline1 = Instance.new("Frame", inlines)
  400. inline1.Name = "left"
  401. inline1.BorderSizePixel = 0
  402. inline1.Size = UDim2.new(0,1,1,0)
  403.  
  404. local inline2 = Instance.new("Frame", inlines)
  405. inline2.Name = "right"
  406. inline2.BorderSizePixel = 0
  407. inline2.Position = UDim2.new(1,0,0,0)
  408. inline2.Size = UDim2.new(0,-1,1,0)
  409.  
  410. local inline3 = Instance.new("Frame", inlines)
  411. inline3.Name = "up"
  412. inline3.BorderSizePixel = 0
  413. inline3.Size = UDim2.new(1,0,0,1)
  414.  
  415. local inline4 = Instance.new("Frame", inlines)
  416. inline4.Name = "down"
  417. inline4.BorderSizePixel = 0
  418. inline4.Position = UDim2.new(0,0,1,0)
  419. inline4.Size = UDim2.new(1,0,0,-1)
  420.  
  421. local text = Instance.new("TextLabel")
  422. text.Name = "nametag"
  423. text.Position = UDim2.new(0.5,0,0,-9)
  424. text.Size = UDim2.new(0,100,0,-20)
  425. text.AnchorPoint = Vector2.new(0.5,0.5)
  426. text.BackgroundTransparency = 1
  427. text.TextColor3 = Color3.new(1,1,1)
  428. text.Font = Enum.Font.Code
  429. text.TextSize = 16
  430. text.TextStrokeTransparency = 0
  431. if props.esptype == "player" then
  432. esp.Parent = playerfolder[props.parent.Name]
  433. esp.Size = UDim2.new(3.8,0,5.6,0)
  434. esp.Name = props.name
  435. text.Text = props.parent.Name
  436. text.Parent = playerfolder[props.parent.Name]
  437. runser:BindToRenderStep(props.parent.Name..", esp", 1, update)
  438. elseif props.esptype == "world" then
  439. esp.Size = UDim2.new(1,0,1,0)
  440. esp.Parent = props.parent
  441. esp.Name = props.name
  442. text.Parent = esp
  443. text.Text = props.parent.Name
  444. text.TextColor3 = colors.weapon
  445. for _,v in pairs(inlines:GetChildren()) do
  446. v.BackgroundColor3 = colors.weapon
  447. end
  448. elseif props.esptype == "bomb" then
  449. esp.Size = UDim2.new(1,0,1,0)
  450. esp.Name = props.name
  451. esp.Parent = worldesp
  452. text.Parent = esp
  453. text.Text = "C4"
  454. text.TextColor3 = colors.bomb
  455. for _,v in pairs(inlines:GetChildren()) do
  456. v.BackgroundColor3 = colors.bomb
  457. end
  458. end
  459. end
  460. end
  461. makeEsp({esptype = "bomb", parent = worldesp, name = "bomb"})
  462.  
  463. playergui.Blnd.Blind.Changed:connect(function()
  464. if noFlash then
  465. playergui.Blnd.Enabled = false
  466. end
  467. end)
  468.  
  469. function resetLighting()
  470. game.Lighting.Ambient = lightingDefaults.ambient
  471. game.Lighting.Brightness = 1
  472. game.Lighting.ColorShift_Bottom = lightingDefaults.colorBottom
  473. game.Lighting.ColorShift_Top = lightingDefaults.colorTop
  474. game.Lighting.GlobalShadows = true
  475. game.Lighting.OutdoorAmbient = lightingDefaults.outdoor
  476. end
  477.  
  478. workspace.DescendantAdded:connect(function(c)
  479. if c.Name == "C4" and c.Parent ~= workspace.Debris and bombInfo then
  480. worldesp.bomb.Adornee = c
  481. for i=38,1,-1 do
  482. worldesp.bomb.nametag.Text = i
  483. wait(1)
  484. end
  485. worldesp.bomb.Adornee = nil
  486. end
  487. if c.Name == "Map" then
  488. wait(5)
  489. if asusToggle then
  490. applyWalls(true, "glass", workspace.Map, mapProps, worldTransparency)
  491. end
  492. if worldColorToggle then
  493. applyWalls(true, "color", workspace.Map, mapProps, colors.worldColor)
  494. end
  495. lightingDefaults.ambient = game.Lighting.Ambient
  496. lightingDefaults.brightness = game.Lighting.Brightness
  497. lightingDefaults.colorBottom = game.Lighting.ColorShift_Bottom
  498. lightingDefaults.colorTop = game.Lighting.ColorShift_Top
  499. lightingDefaults.outdoor = game.Lighting.OutdoorAmbient
  500. end
  501. end)
  502.  
  503. workspace.Debris.ChildAdded:connect(function(c)
  504. if c:IsA"Part" or c:IsA"MeshPart" then
  505. if c.Name == "C4" then
  506. if bombInfo and not workspace.Status.Armed then
  507. worldesp.bomb.Adornee = c
  508. end
  509. else
  510. if worldEspToggle then
  511. makeEsp({esptype = "world", parent = c, name = "debris"})
  512. end
  513. end
  514. end
  515. end)
  516.  
  517. function applyValue(toggle, name, folder, tablee, value)
  518. if toggle then
  519. for i,v in pairs(folder:GetDescendants()) do
  520. if v.Name == name then
  521. tablee[v] = {value = v.Value}
  522. v.Value = value
  523. for ii,vv in pairs(v:GetChildren()) do
  524. tablee[vv] = {value = vv.Value}
  525. vv.Value = value
  526. end
  527. end
  528. end
  529. else
  530. for i,v in pairs(folder:GetDescendants()) do
  531. if v.Name == name then
  532. v.Value = tablee[v].value
  533. for ii,vv in pairs(v:GetChildren()) do
  534. vv.Value = tablee[vv].value
  535. end
  536. end
  537. end
  538. end
  539. end
  540.  
  541. function fuckplayer(part, mult, walled)
  542. if client.Character and client.Character:FindFirstChild"Gun" then
  543. local numberFour
  544. if weps[client.Character.EquippedTool.Value]:FindFirstChild"RangeModifier" then
  545. numberFour = weps[client.Character.EquippedTool.Value].RangeModifier.Value
  546. else
  547. numberFour = 69
  548. end
  549. local Arguments = {
  550. [1] = part,
  551. [2] = part.Position,
  552. [3] = client.Character.EquippedTool.Value,
  553. [4] = numberFour,
  554. [5] = client.Character.Gun,
  555. [8] = mult,
  556. [9] = false,
  557. [10] = walled,
  558. [11] = part.Position,
  559. [12] = workspace.DistributedGameTime,
  560. [13] = Vector3.new(0,0,0)
  561. }
  562. hitPartRemote:FireServer(unpack(Arguments))
  563. end
  564. end
  565.  
  566. local AAangles = {
  567. 4.5, 4.6,4.7,4.8,4.9,5,5.1,5.2,5.3,5.4,5.5
  568. }
  569. local int = 1
  570. function antiAim()
  571. if int == table.getn(AAangles) then
  572. int = 1
  573. end
  574. if client.Character then
  575. repstor.Events.actualAntiAim:FireServer(AAangles[int], false)
  576. end
  577. int = int+1
  578. end
  579.  
  580. function resolver()
  581. if client.Character then
  582. for _,player in pairs(playerser:GetChildren()) do
  583. if player.Team ~= client.Team and player.Character and player.Character:FindFirstChild"UpperTorso" and player.Character.UpperTorso:FindFirstChild"Waist" then
  584. player.Character.UpperTorso.Waist.C0 = CFrame.Angles(0,0,0)
  585. end
  586. end
  587. end
  588. end
  589.  
  590. function fovChanger()
  591. camera.FieldOfView = customFov
  592. end
  593.  
  594. client.Cash.Changed:connect(function()
  595. if infCash then
  596. client.Cash.Value = 69420
  597. end
  598. end)
  599.  
  600. local penetrationpower = 0
  601. local maxpartpenetration = 4
  602. local hammerunit2stud = 0.0694
  603.  
  604. local Player = game.Players.LocalPlayer
  605.  
  606. local tinsert = table.insert
  607. local _Run = game:GetService("RunService")
  608. local bulletpertrail = 0
  609. local Camera = workspace.CurrentCamera
  610.  
  611. function autoWall()
  612. if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild"EquippedTool" and game.Players.LocalPlayer.Character.EquippedTool.Value ~= "" and game.Players.LocalPlayer.Character:FindFirstChild"Gun" then
  613. local Character = Player.Character
  614. local waitgun = Character.EquippedTool.Value
  615. local gun = game.ReplicatedStorage.Weapons[waitgun]
  616. local range = gun.Range.Value
  617. local Spread = CFrame.new()
  618. local CHOSENONE = waitgun
  619. penetrationpower = gun.Penetration.Value * 0.01
  620. local hitlist = {
  621. game.Workspace.Debris,
  622. Character,
  623. game.Workspace.Ray_Ignore,
  624. Camera,
  625. game.Workspace.Map:FindFirstChild("Clips"),
  626. game.Workspace.Map:FindFirstChild("SpawnPoints")
  627. }
  628. local crud = game.Players:GetPlayers()
  629. for _,target in pairs(game.Players:GetChildren()) do
  630. if target.Team ~= Player.Team and target.Character and target.Character:FindFirstChild"HeadHB" and not target.Character:FindFirstChildOfClass"ForceField" then
  631. local direction = Vector3.new()
  632. local Mouse = Camera.CoordinateFrame.p + Camera.CoordinateFrame.lookVector * 999
  633. direction = (CFrame.new(Camera.CFrame.p,
  634. Mouse) *
  635. Spread).lookVector.unit *
  636. range *
  637. hammerunit2stud
  638.  
  639. local RayCasted = Ray.new(Camera.CoordinateFrame.p, (target.Character.HeadHB.Position-Camera.CoordinateFrame.p).unit*1000)
  640. local Hit12, Pos12
  641. local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(RayCasted, hitlist, false, true)
  642. local startpos
  643.  
  644. bulletpertrail = bulletpertrail + 1
  645.  
  646. local partpenetrated = 0
  647. local limit = 0
  648. local PartHit, PositionHit, NormalHit
  649. local partmodifier = 1
  650. local damagemodifier = 0
  651. local Held2
  652. if gun and gun.Name == "R8" then
  653. Held2 = false
  654. end
  655. if not game:GetService"UserInputService".MouseIconEnabled then
  656. Held2 = true
  657. end
  658. pcall(function()
  659. repeat
  660. PartHit, PositionHit, NormalHit = workspace:FindPartOnRayWithIgnoreList(RayCasted, hitlist, false, true)
  661. if not PartHit then
  662. end
  663. if PartHit and PartHit.Parent then
  664. local screenPos, vis = camera:WorldToScreenPoint(Hit.Position)
  665. partmodifier = 1
  666. if PartHit.Material == Enum.Material.DiamondPlate then
  667. partmodifier = 3
  668. end
  669. if PartHit.Material == Enum.Material.CorrodedMetal or PartHit.Material == Enum.Material.Metal or PartHit.Material == Enum.Material.Concrete or PartHit.Material == Enum.Material.Brick then
  670. partmodifier = 2
  671. end
  672. if PartHit.Name == "Grate" or PartHit.Material == Enum.Material.Wood or PartHit.Material == Enum.Material.WoodPlanks or PartHit and PartHit.Parent and PartHit.Parent:FindFirstChild("Humanoid") then
  673. partmodifier = 0.1
  674. end
  675. if PartHit.Transparency == 1 or PartHit.CanCollide == false or PartHit.Name == "Glass" or PartHit.Name == "Cardboard" or PartHit:IsDescendantOf(game.Workspace.Ray_Ignore) or PartHit:IsDescendantOf(game.Workspace.Debris) or PartHit and PartHit.Parent and PartHit.Parent.Name == "Hitboxes" then
  676. partmodifier = 0
  677. end
  678. if PartHit.Name == "nowallbang" then
  679. partmodifier = 100
  680. end
  681. if PartHit:FindFirstChild("PartModifier") then
  682. partmodifier = PartHit.PartModifier.Value
  683. end
  684. local fakehit, Endposition = game.Workspace:FindPartOnRayWithWhitelist(Ray.new(PositionHit + direction * 1, direction * -2), {PartHit}, true)
  685. local PenetrationDistance = (Endposition - PositionHit).magnitude
  686. PenetrationDistance = PenetrationDistance * partmodifier
  687. limit = math.min(penetrationpower, limit + PenetrationDistance)
  688. local wallbang = false
  689. if partpenetrated >= 1 then
  690. wallbang = true
  691. end
  692. if PartHit and PartHit.Parent and PartHit.Parent.Name == "Hitboxes" or PartHit and PartHit.Parent.className == "Accessory" or PartHit and PartHit.Parent.className == "Hat" or PartHit.Name == "HumanoidRootPart" and PartHit.Parent.Name ~= "Door" or PartHit.Name == "Head" and PartHit.Parent:FindFirstChild("Hostage") == nil then
  693. else
  694. local partToHit
  695. if vis and PartHit and PartHit:FindFirstAncestor(target.Name) and PartHit.Parent:FindFirstChild"Humanoid" and PartHit.Parent.Humanoid.Health ~= 0 then
  696. partToHit = PartHit
  697. else
  698. partToHit = nil
  699. end
  700. if partToHit then
  701. fuckplayer(partToHit, damagemodifier, wallbang)
  702. canAutoWall = false
  703. wait(gun.FireRate.Value)
  704. canAutoWall = true
  705. end
  706. end
  707. if partmodifier > 0.1 then
  708. partpenetrated = partpenetrated + 1
  709. end
  710. damagemodifier = 1 - limit / penetrationpower
  711. if PartHit and PartHit.Parent and PartHit.Parent.Name == "Hitboxes" or PartHit and PartHit.Parent and PartHit.Parent.Parent and PartHit.Parent.Parent:FindFirstChild("Humanoid2") or PartHit and PartHit.Parent and PartHit.Parent:FindFirstChild("Humanoid2") or PartHit and PartHit.Parent and PartHit.Parent:FindFirstChild("Humanoid") and (1 > PartHit.Transparency or PartHit.Name == "HeadHB") and PartHit.Parent:IsA("Model") then
  712. table.insert(hitlist, PartHit.Parent)
  713. else
  714. table.insert(hitlist, PartHit)
  715. end
  716. end
  717. until PartHit == nil or target.Character == nil or limit >= penetrationpower or partpenetrated >= maxpartpenetration or 0 >= damagemodifier
  718. end)
  719. end
  720. end
  721. end
  722. end
  723.  
  724. function updateAim()
  725. if client.Character and client.Character:FindFirstChild"LowerTorso" then
  726. local clientchar = client.Character
  727. local equippedtool = clientchar:FindFirstChild"EquippedTool"
  728. for _,player in pairs(playerser:GetChildren()) do
  729. if player.Team ~= client.Team and player.Character and not player.Character:FindFirstChildOfClass"ForceField" then
  730. local ignore = {clientchar, camera, workspace.Ray_Ignore, camera:FindFirstChild("Arms"), clientchar:FindFirstChild("Gun"), workspace.Map}
  731. if visAimToggle then
  732. ignore = {clientchar, camera, workspace.Ray_Ignore, camera:FindFirstChild("Arms"), clientchar:FindFirstChild("Gun")}
  733. end
  734. local currentPriority = 0
  735. for _,v in pairs(player.Character:GetChildren()) do
  736. if (partPriorities[v.Name] and partPriorities[v.Name].priority >= currentPriority) then
  737. currentPriority = partPriorities[v.Name].priority
  738. local ray = Ray.new(camera.CFrame.p, (v.Position-camera.CFrame.p).unit*1000)
  739. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, ignore, false, false)
  740. local screenPos, vis = camera:WorldToScreenPoint(v.Position)
  741. if equippedtool and equippedtool.Value ~= "" and vis and hit and hit:FindFirstAncestor(player.Name) and (Vector2.new(screenPos.X, screenPos.Y)-Vector2.new(mouse.X, mouse.Y)).magnitude < fovSize then
  742. if v then
  743. silentAimPart = v
  744. if silentAimPart and not silentAim then
  745. workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.p, silentAimPart.Position)
  746. end
  747. if autoShoot and canShoot then
  748. mouse1down()
  749. canShoot = false
  750. wait(weps[equippedtool.Value].FireRate.Value)
  751. mouse1up()
  752. canShoot = true
  753. end
  754. end
  755. else
  756. silentAimPart = nil
  757. end
  758. end
  759. end
  760. end
  761. end
  762. end
  763. end
  764.  
  765. function backtrack()
  766. if client.Character and client.Character:FindFirstChild"LowerTorso" then
  767. local clientchar = client.Character
  768. local equippedtool = clientchar:FindFirstChild"EquippedTool"
  769. for _,player in pairs(playerser:GetChildren()) do
  770. if player.Team ~= client.Team and player.Character and player.Character:FindFirstChild"HeadHB" then
  771. local part = Instance.new("Part", backtrackFolder)
  772. part.Name = player.Name
  773. part.Size = Vector3.new(1,1,1)
  774. part.Position = player.Character.HeadHB.Position
  775. part.CanCollide = false
  776. part.Anchored = true
  777. part.Material = Enum.Material.SmoothPlastic
  778. part.Color = colors.backtrack_start
  779. tweenser:Create(part, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false), {Color = colors.backtrack_end}):Play()
  780. spawn(function()
  781. wait(1)
  782. part:Destroy()
  783. end)
  784. end
  785. end
  786. end
  787. end
  788.  
  789. local cheats = {
  790. [0] = {
  791. name = "Aimbot",
  792. open = false,
  793. contents = {
  794. [1] = {"Active", "toggle", false, func = function(toggle)
  795. if toggle then
  796. runser:BindToRenderStep("aimbot", 3, updateAim)
  797. else
  798. runser:UnbindFromRenderStep("aimbot")
  799. end
  800. end},
  801. [2] = {"FOV size", "box", fovSize, func = function(value)
  802. fovSize = tonumber(value)
  803. return value
  804. end},
  805. [3] = {"Silent", "toggle", false, func = function(toggle)
  806. silentAim = toggle
  807. end},
  808. [4] = {"Auto shoot", "toggle", false, func = function(toggle)
  809. autoShoot = toggle
  810. end},
  811. [5] = {"Auto wall (hvh only)", "toggle", false, func = function(toggle)
  812. if toggle then
  813. runser:BindToRenderStep("autowall", 8, autoWall)
  814. else
  815. runser:UnbindFromRenderStep("autowall")
  816. end
  817. end},
  818. [6] = {"Visible check", "toggle", false, func = function(toggle)
  819. visAimToggle = toggle
  820. end},
  821. [7] = {"Resolver", "toggle", false, func = function(toggle)
  822. if toggle then
  823. runser:BindToRenderStep("resolver", 7, resolver)
  824. else
  825. runser:UnbindFromRenderStep("resolver")
  826. end
  827. end},
  828. [8] = {"Anti-aim", "toggle", false, func = function(toggle)
  829. if toggle then
  830. repstor.Events['ControlTurn'].Name = "actualAntiAim"
  831. local fakeRemote = Instance.new("RemoteEvent", repstor.Events)
  832. fakeRemote.Name = "ControlTurn"
  833. runser:BindToRenderStep("antiaim", 5, antiAim)
  834. else
  835. runser:UnbindFromRenderStep("antiaim")
  836. repstor.Events['ControlTurn']:Destroy()
  837. repstor.Events['actualAntiAim'].Name = "ControlTurn"
  838. end
  839. end},
  840. [9] = {"Backtrack", "toggle", false, func = function(toggle)
  841. if toggle then
  842. runser:BindToRenderStep("backtrack", 9, backtrack)
  843. else
  844. runser:UnbindFromRenderStep("backtrack")
  845. backtrackFolder:ClearAllChildren()
  846. end
  847. end},
  848. }
  849. },
  850. [1] = {
  851. name = "Visuals",
  852. open = false,
  853. contents = {
  854. [1] = {"Players", "toggle", false, func = function(toggle)
  855. playerEspToggle = toggle
  856. if toggle then
  857. for _, player in pairs(playerser:GetChildren()) do
  858. if player.Name ~= client.Name then
  859. makeEsp({esptype = "player", parent = player, name = "esp"})
  860. end
  861. end
  862. else
  863. for _, player in pairs(playerser:GetChildren()) do
  864. if playerfolder:FindFirstChild(player.Name) then
  865. runser:UnbindFromRenderStep(player.Name..", esp")
  866. playerfolder[player.Name].esp.Adornee = nil
  867. end
  868. end
  869. end
  870. end},
  871. [2] = {"Enemy only", "toggle", false, func = function(toggle)
  872. enemyOnlyEsp = toggle
  873. end},
  874. [3] = {"Visible check", "toggle", false, func = function(toggle)
  875. visEspToggle = toggle
  876. end},
  877. [4] = {"Ignore smokes", "toggle", false, func = function(toggle)
  878. ignoreSmokes = toggle
  879. end},
  880. [5] = {"Asus walls", "toggle", false, func = function(toggle)
  881. asusToggle = toggle
  882. applyWalls(toggle, "glass", workspace.Map, mapProps, worldTransparency)
  883. end},
  884. [6] = {"Transparency", "box", worldTransparency, func = function(value)
  885. worldTransparency = tonumber(value)
  886. return value
  887. end},
  888. [7] = {"World color", "toggle", false, func = function(toggle)
  889. worldColorToggle = toggle
  890. applyWalls(toggle, "color", workspace.Map, mapProps, colors.worldColor)
  891. end},
  892. [8] = {"Bomb info", "toggle", false, func = function(toggle)
  893. bombInfo = toggle
  894. end},
  895. [9] = {"Weapons", "toggle", false, func = function(toggle)
  896. worldEspToggle = toggle
  897. end},
  898. [10] = {"No flash", "toggle", false, func = function(toggle)
  899. noFlash = toggle
  900. if toggle then
  901. playergui.Blnd.Enabled = false
  902. else
  903. playergui.Blnd.Enabled = true
  904. end
  905. end},
  906. [11] = {"Viewmodel trans", "toggle", false, func = function(toggle)
  907. if camera:FindFirstChild("Arms") then
  908. applyWalls(toggle, "glass", camera.Arms, viewmodelProps, viewmodelTransparency)
  909. end
  910. applyWalls(toggle, "glass", repstor.Viewmodels, viewmodelProps, viewmodelTransparency)
  911. end},
  912. [12] = {"Transparency", "box", viewmodelTransparency, func = function(value)
  913. viewmodelTransparency = tonumber(value)
  914. return value
  915. end},
  916. [13] = {"Night mode", "toggle", false, func = function(toggle)
  917. if toggle then
  918. game.Lighting.Ambient = Color3.fromRGB(0,0,0)
  919. game.Lighting.Brightness = 0.1
  920. game.Lighting.GlobalShadows = false
  921. else
  922. resetLighting()
  923. end
  924. end},
  925. [14] = {"Bright mode", "toggle", false, func = function(toggle)
  926. if toggle then
  927. game.Lighting.Ambient = Color3.fromRGB(255,255,255)
  928. game.Lighting.Brightness = 2
  929. game.Lighting.GlobalShadows = false
  930. else
  931. resetLighting()
  932. end
  933. end}
  934. }
  935. },
  936. [2] = {
  937. name = "Misc",
  938. open = false,
  939. contents = {
  940. [1] = {"Auto hop", "toggle", false, func = function(toggle)
  941. autoHop = toggle
  942. applyValue(toggle, "Scoped", hui, scopedSpeeds, 999)
  943. applyValue(toggle, "WalkSpeed", hui, weaponSpeeds, 999)
  944. end},
  945. [2] = {"Respawn", "button", false, func = function()
  946. repstor.Events.Spawnme:FireServer()
  947. end},
  948. [3] = {"Thirdperson", "input", false, "X", func = function(toggle)
  949. if toggle then
  950. runser:BindToRenderStep("thirdperson", 2, thirdp)
  951. else
  952. runser:UnbindFromRenderStep("thirdperson")
  953. if client.Character then
  954. client.CameraMinZoomDistance = 0.5
  955. client.CameraMaxZoomDistance = 0.5
  956. else
  957. client.CameraMinZoomDistance = 10
  958. client.CameraMaxZoomDistance = 10
  959. end
  960. end
  961. end},
  962. [4] = {"Infinite cash", "toggle", false, func = function(toggle)
  963. infCash = toggle
  964. if toggle then
  965. client.Cash.Value = 69420
  966. end
  967. end},
  968. [5] = {"FOV changer", "toggle", false, func = function(toggle)
  969. if toggle then
  970. runser:BindToRenderStep("fovchanger", 10, fovChanger)
  971. else
  972. runser:UnbindFromRenderStep("fovchanger")
  973. camera.FieldOfView = 70
  974. end
  975. end},
  976. [6] = {"Custom FOV", "box", customFov, func = function(value)
  977. customFov = value
  978. return value
  979. end},
  980. [7] = {"Crosshair", "list", "None", items = {
  981. ["None"] = function()
  982. sniperCrosshair = false
  983. crosshair.Visible = false
  984. end,
  985. ["Crosshair"] = function()
  986. sniperCrosshair = false
  987. crosshair.Visible = true
  988. crosshair.Rotation = 0
  989. end,
  990. ["Xhair"] = function()
  991. sniperCrosshair = false
  992. crosshair.Visible = true
  993. crosshair.Rotation = 45
  994. end,
  995. ["Snipers"] = function()
  996. sniperCrosshair = true
  997. if client.Character and client.Character:FindFirstChild"EquippedTool" and weps[client.Character.EquippedTool.Value]:FindFirstChild"snipo" then
  998. crosshair.Visible = true
  999. end
  1000. crosshair.Rotation = 0
  1001. end}
  1002. },
  1003. }
  1004. },
  1005. [3] = {
  1006. name = "Weapons",
  1007. open = false,
  1008. contents = {
  1009. [1] = {"No spread", "toggle", false, func = function(toggle)
  1010. applyValue(toggle, "Spread", weps, normalSpreads, 0)
  1011. applyValue(toggle, "AccuracyDivisor", weps, normalDivisors, -1)
  1012. end},
  1013. [2] = {"Auto pistol", "toggle", false, func = function(toggle)
  1014. applyValue(toggle, "Auto", weps, nonAutos, true)
  1015. end},
  1016. [3] = {"Rapid fire", "toggle", false, func = function(toggle)
  1017. applyValue(toggle, "FireRate", weps, fireRates, true)
  1018. end},
  1019. [4] = {"Infinite ammo", "toggle", false, func = function(toggle)
  1020. applyValue(toggle, "Ammo", weps, ammoValues, 9999)
  1021. applyValue(toggle, "StoredAmmo", weps, ammoValues2, 9999)
  1022. end},
  1023. [5] = {"Fast reload", "toggle", false, func = function(toggle)
  1024. applyValue(toggle, "ReloadTime", weps, reloadValues, 0.1)
  1025. end},
  1026. [6] = {"Quickdraw", "toggle", false, func = function(toggle)
  1027. applyValue(toggle, "EquipTime", weps, equipValues, 0.1)
  1028. end},
  1029. }
  1030. },
  1031. }
  1032.  
  1033. --gui part 2
  1034. rainbow(vertTop)
  1035. rainbow(vertBottom)
  1036. rainbow(horzLeft)
  1037. rainbow(horzRight)
  1038. mouseicon.Name = "mouse"
  1039. mouseicon.ZIndex = 20
  1040. mouseicon.Size = UDim2.new(0,4,0,4)
  1041. mouseicon.BorderColor3 = Color3.new(0,0,0)
  1042. mouseicon.BorderSizePixel = 2
  1043. mouseicon.AnchorPoint = Vector2.new(0.5,0.5)
  1044. rainbow(mouseicon)
  1045. local topbar = Instance.new("TextButton", main)
  1046. topbar.Name = "topbar"
  1047. topbar.Size = UDim2.new(1,0,0,36)
  1048. topbar.Position = UDim2.new(0,0,0,-36)
  1049. topbar.BackgroundColor3 = Color3.fromRGB(30,30,30)
  1050. topbar.BorderSizePixel = 0
  1051. topbar.Text = ""
  1052. topbar.ZIndex = 16
  1053. topbar.ClipsDescendants = true
  1054. topbar.AutoButtonColor = false
  1055. topbar.MouseEnter:connect(function()
  1056. topbar:TweenSize(UDim2.new(1,0,0,246), "Out", "Quad", 0.2, true)
  1057. end)
  1058. topbar.MouseLeave:connect(function()
  1059. topbar:TweenSize(UDim2.new(1,0,0,36), "In", "Quad", 0.2, true)
  1060. end)
  1061. local title = Instance.new("TextLabel", topbar)
  1062. title.Name = "title"
  1063. title.Size = UDim2.new(1,0,0,24)
  1064. title.BackgroundTransparency = 1
  1065. title.Font = Enum.Font.Code
  1066. title.TextScaled = true
  1067. rainbow(title)
  1068. local version = Instance.new("TextLabel", topbar)
  1069. version.Name = "version"
  1070. version.Size = UDim2.new(1,0,0,10)
  1071. version.Position = UDim2.new(0,0,0,25)
  1072. version.BackgroundTransparency = 1
  1073. version.TextColor3 = Color3.new(1,1,1)
  1074. version.Font = Enum.Font.Code
  1075. version.TextSize = 14
  1076. local line = Instance.new("Frame", topbar)
  1077. line.Name = "line"
  1078. line.Size = UDim2.new(1,0,0,-1)
  1079. line.Position = UDim2.new(0,0,1,0)
  1080. line.BorderSizePixel = 0
  1081. rainbow(line)
  1082. title.Text = "WiiTrap"
  1083. version.Text = "version 0.1"
  1084. title.Text = "WiiTrap "..gamelist[game.PlaceId].n
  1085. version.Text = gamelist[game.PlaceId].b
  1086. --color picker
  1087. local scframe = Instance.new("ScrollingFrame", topbar)
  1088. scframe.Name = "colorPicker"
  1089. scframe.Size = UDim2.new(0,160,0,200)
  1090. scframe.Position = UDim2.new(0,9,0,36)
  1091. scframe.ClipsDescendants = true
  1092. scframe.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1093. scframe.BorderColor3 = Color3.fromRGB(40,40,40)
  1094. scframe.ScrollBarThickness = 6
  1095. scframe.ScrollBarImageColor3 = Color3.fromRGB(0,0,0)
  1096. scframe.BottomImage = scframe.MidImage
  1097. scframe.TopImage = scframe.MidImage
  1098. scframe.CanvasSize = UDim2.new(0,0,0,300)
  1099. scframe.ScrollingDirection = Enum.ScrollingDirection.Y
  1100. scframe.VerticalScrollBarInset = Enum.ScrollBarInset.None
  1101. scframe.HorizontalScrollBarInset = Enum.ScrollBarInset.None
  1102. local setColorR = Instance.new("TextBox", topbar)
  1103. setColorR.Name = "setColorR"
  1104. setColorR.Size = UDim2.new(0,100,0,18)
  1105. setColorR.Position = UDim2.new(0,180,0,114)
  1106. setColorR.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1107. setColorR.BorderColor3 = Color3.fromRGB(20,20,20)
  1108. setColorR.TextColor3 = Color3.fromRGB(255,255,255)
  1109. setColorR.Text = math.floor(1+(255*colors.esp_t.r))-1
  1110. setColorR.PlaceholderText = "Red"
  1111. setColorR.PlaceholderColor3 = Color3.fromRGB(100,100,100)
  1112. local setColorG = Instance.new("TextBox", topbar)
  1113. setColorG.Name = "setColorG"
  1114. setColorG.Size = UDim2.new(0,100,0,18)
  1115. setColorG.Position = UDim2.new(0,180,0,144)
  1116. setColorG.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1117. setColorG.BorderColor3 = Color3.fromRGB(20,20,20)
  1118. setColorG.TextColor3 = Color3.fromRGB(255,255,255)
  1119. setColorG.Text = math.floor(1+(255*colors.esp_t.g))-1
  1120. setColorG.PlaceholderText = "Green"
  1121. setColorG.PlaceholderColor3 = Color3.fromRGB(100,100,100)
  1122. local setColorB = Instance.new("TextBox", topbar)
  1123. setColorB.Name = "setColorB"
  1124. setColorB.Size = UDim2.new(0,100,0,18)
  1125. setColorB.Position = UDim2.new(0,180,0,174)
  1126. setColorB.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1127. setColorB.BorderColor3 = Color3.fromRGB(20,20,20)
  1128. setColorB.TextColor3 = Color3.fromRGB(255,255,255)
  1129. setColorB.Text = math.floor(1+(255*colors.esp_t.b))-1
  1130. setColorB.PlaceholderText = "Blue"
  1131. setColorB.PlaceholderColor3 = Color3.fromRGB(100,100,100)
  1132.  
  1133. listpos = 0
  1134. for this,color in pairs(colors) do
  1135. local colorButton = Instance.new("TextButton", scframe)
  1136. colorButton.Size = UDim2.new(1,-6,0,20)
  1137. colorButton.Position = UDim2.new(0,0,0,20*listpos)
  1138. colorButton.BackgroundColor3 = Color3.fromRGB(20,20,20)
  1139. colorButton.BorderSizePixel = 0
  1140. colorButton.TextColor3 = Color3.fromRGB(255,255,255)
  1141. colorButton.Text = this
  1142.  
  1143. colorButton.MouseButton1Click:connect(function()
  1144. settingColorFor = colorButton.Text
  1145. setColorR.Text = math.floor(1+(255*colors[this].r))-1
  1146. setColorG.Text = math.floor(1+(255*colors[this].g))-1
  1147. setColorB.Text = math.floor(1+(255*colors[this].b))-1
  1148. end)
  1149. listpos = listpos + 1
  1150. end
  1151. local applyButton = Instance.new("TextButton", topbar)
  1152. applyButton.Name = "applyButton"
  1153. applyButton.Size = UDim2.new(0,100,0,18)
  1154. applyButton.Position = UDim2.new(0,180,0,218)
  1155. applyButton.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1156. applyButton.BorderColor3 = Color3.fromRGB(20,20,20)
  1157. applyButton.TextColor3 = Color3.fromRGB(255,255,255)
  1158. applyButton.Text = "Apply"
  1159. applyButton.AutoButtonColor = false
  1160. applyButton.MouseButton1Click:connect(function()
  1161. colors[settingColorFor] = Color3.fromRGB(tonumber(setColorR.Text), tonumber(setColorG.Text), tonumber(setColorB.Text))
  1162. end)
  1163.  
  1164. for this,tab in pairs(cheats) do
  1165. local textb = Instance.new("TextButton", main)
  1166. textb.Name = tab.name
  1167. textb.Size = UDim2.new(0,160,0,24)
  1168. textb.Position = UDim2.new(0,40+(180*this),0,40)
  1169. textb.BorderSizePixel = 0
  1170. textb.Font = Enum.Font.SourceSans
  1171. textb.TextColor3 = Color3.new(1,1,1)
  1172. textb.TextSize = 18
  1173. textb.Text = tab.name
  1174. textb.BackgroundColor3 = Color3.fromRGB(30,30,30)
  1175. textb.AutoButtonColor = false
  1176. textb.Active = false
  1177. local tweeninfo = TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false)
  1178. local fadeIn = tweenser:Create(textb, tweeninfo, {BackgroundColor3 = Color3.fromRGB(50,50,50)})
  1179. local fadeOut = tweenser:Create(textb, tweeninfo, {BackgroundColor3 = Color3.fromRGB(30,30,30)})
  1180. local click = tweenser:Create(textb, tweeninfo, {BackgroundColor3 = Color3.fromRGB(70,70,70)})
  1181. textb.InputBegan:Connect(function(input)
  1182. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1183. dragging = true
  1184. dragStart = input.Position
  1185. startPos = textb.Position
  1186. input.Changed:Connect(function()
  1187. if input.UserInputState == Enum.UserInputState.End then
  1188. dragging = false
  1189. end
  1190. end)
  1191. end
  1192. end)
  1193. textb.InputChanged:Connect(function(input)
  1194. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  1195. dragInput = input
  1196. end
  1197. end)
  1198. textb.MouseButton1Down:connect(function()
  1199. draggingObj = textb
  1200. click:Play()
  1201. if focusedtab then
  1202. focusedtab.ZIndex = focusedtab.ZIndex - 1
  1203. end
  1204. focusedtab = textb
  1205. focusedtab.ZIndex = focusedtab.ZIndex + 1
  1206. end)
  1207. textb.MouseButton1Up:connect(function()
  1208. draggingObj = nil
  1209. fadeIn:Play()
  1210. end)
  1211. textb.MouseEnter:connect(function()
  1212. fadeIn:Play()
  1213. end)
  1214. textb.MouseLeave:connect(function()
  1215. fadeOut:Play()
  1216. end)
  1217.  
  1218. local line = Instance.new("Frame", textb)
  1219. line.Name = "line"
  1220. line.Size = UDim2.new(1,0,0,-1)
  1221. line.Position = UDim2.new(0,0,1,0)
  1222. line.BorderSizePixel = 0
  1223. rainbow(line)
  1224.  
  1225. local closeb = Instance.new("TextButton", textb)
  1226. closeb.Name = "close"
  1227. closeb.Size = UDim2.new(0,16,0,16)
  1228. closeb.Position = UDim2.new(1,-20,0,4)
  1229. closeb.BackgroundTransparency = 1
  1230. closeb.Font = Enum.Font.SourceSans
  1231. closeb.TextColor3 = Color3.new(1,1,1)
  1232. closeb.TextSize = 16
  1233. closeb.Text = "-"
  1234.  
  1235. local option_count = 0
  1236. local content = Instance.new("Frame", textb)
  1237. local uill = Instance.new("UIListLayout", content)
  1238. uill.SortOrder = Enum.SortOrder.LayoutOrder
  1239. for lo,option in pairs(tab.contents) do
  1240. if option[2] == "toggle" or option[2] == "button" then
  1241. local cheat = Instance.new("TextButton", content)
  1242. cheat.Size = UDim2.new(1,0,0,20)
  1243. cheat.LayoutOrder = lo
  1244. cheat.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1245. cheat.BorderSizePixel = 0
  1246. cheat.Font = Enum.Font.SourceSans
  1247. cheat.TextColor3 = Color3.new(1,1,1)
  1248. cheat.TextSize = 16
  1249. cheat.Text = " "..option[1]
  1250. cheat.TextXAlignment = Enum.TextXAlignment.Left
  1251. cheat.AutoButtonColor = false
  1252. if option[2] == "toggle" then
  1253. local box = Instance.new("TextLabel", cheat)
  1254. box.Name = "box"
  1255. box.BackgroundTransparency = 1
  1256. box.TextColor3 = Color3.new(1,1,1)
  1257. box.Size = UDim2.new(0,16,0,16)
  1258. box.Position = UDim2.new(1,-22,0,0)
  1259. box.TextSize = 14
  1260. box.Font = Enum.Font.SourceSans
  1261. if option[3] then
  1262. box.Text = "ON"
  1263. box.TextColor3 = Color3.fromRGB(40,240,40)
  1264. option.func(option[3])
  1265. else
  1266. box.Text = "OFF"
  1267. box.TextColor3 = Color3.fromRGB(240,40,40)
  1268. end
  1269. end
  1270. cheat.MouseButton1Click:connect(function()
  1271. if option[2] == "toggle" then
  1272. if option[3] then
  1273. option[3] = false
  1274. cheat.box.Text = "OFF"
  1275. cheat.box.TextColor3 = Color3.fromRGB(240,40,40)
  1276. else
  1277. option[3] = true
  1278. cheat.box.Text = "ON"
  1279. cheat.box.TextColor3 = Color3.fromRGB(40,240,40)
  1280. end
  1281. option.func(option[3])
  1282. elseif option[2] == "button" then
  1283. option.func()
  1284. end
  1285. end)
  1286. if option[3] then
  1287. option.func(true)
  1288. end
  1289. elseif option[2] == "box" or option[2] == "list" or option[2] == "input" then
  1290. local holder = Instance.new("Frame", content)
  1291. holder.Size = UDim2.new(1,0,0,20)
  1292. holder.LayoutOrder = lo
  1293. holder.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1294. holder.BorderSizePixel = 0
  1295. local label = Instance.new("TextLabel", holder)
  1296. label.Size = UDim2.new(1,-82,0,14)
  1297. label.Position = UDim2.new(0,0,0,2)
  1298. label.BackgroundTransparency = 1
  1299. label.Font = Enum.Font.SourceSans
  1300. label.TextColor3 = Color3.new(1,1,1)
  1301. label.TextSize = 16
  1302. label.Text = " "..option[1]
  1303. label.TextXAlignment = Enum.TextXAlignment.Left
  1304. local cheat
  1305. if option[2] == "box" then
  1306. cheat = Instance.new("TextBox", holder)
  1307. cheat.FocusLost:connect(function(enter)
  1308. if enter then
  1309. cheat.Text = option.func(cheat.Text)
  1310. else
  1311. cheat.Text = option.func("")
  1312. end
  1313. end)
  1314. if option[3] then
  1315. cheat.Text = option.func(option[3])
  1316. end
  1317. else
  1318. cheat = Instance.new("TextButton", holder)
  1319. cheat.AutoButtonColor = false
  1320. if option[2] == "list" then
  1321. if option[3] then
  1322. cheat.Text = option[3]
  1323. else
  1324. cheat.Text = ""
  1325. end
  1326. local list = Instance.new("Frame", cheat)
  1327. list.Position = UDim2.new(0,0,1,2)
  1328. list.BackgroundTransparency = 1
  1329. list.BorderSizePixel = 0
  1330. list.Visible = false
  1331. list.ClipsDescendants = true
  1332. local listsize = 0
  1333. for text,func in pairs(option.items) do
  1334. local list_option = Instance.new("TextButton", list)
  1335. list_option.Size = UDim2.new(1,0,0,16)
  1336. list_option.Position = UDim2.new(0,0,0,16*listsize)
  1337. list_option.BackgroundColor3 = Color3.fromRGB(40,40,40)
  1338. list_option.BorderColor3 = Color3.fromRGB(20,20,20)
  1339. list_option.Font = Enum.Font.SourceSans
  1340. list_option.TextColor3 = Color3.new(1,1,1)
  1341. list_option.TextSize = 14
  1342. list_option.Text = text
  1343. list_option.AutoButtonColor = false
  1344. list_option.MouseButton1Click:connect(function()
  1345. cheat.Text = list_option.Text
  1346. list.Visible = false
  1347. func()
  1348. end)
  1349. listsize = listsize + 1
  1350. end
  1351. list.Size = UDim2.new(1,0,0,16*listsize)
  1352. cheat.MouseButton1Click:connect(function()
  1353. list.Visible = not list.Visible
  1354. end)
  1355. if option[3] then
  1356. option.items[option[3]]()
  1357. end
  1358. elseif option[2] == "input" then
  1359. if option[4] then
  1360. cheat.Text = option[4]
  1361. else
  1362. cheat.Text = ""
  1363. end
  1364. if option[3] then
  1365. option.func(true)
  1366. end
  1367. addInput(option[3], option, option.func)
  1368. cheat.MouseButton1Click:connect(function()
  1369. inputting = true
  1370. inputTo = option
  1371. inputObj = cheat
  1372. end)
  1373. end
  1374. end
  1375. cheat.Size = UDim2.new(1,-90,0,14)
  1376. cheat.Position = UDim2.new(1,-74,0,2)
  1377. cheat.BackgroundColor3 = Color3.fromRGB(70,70,70)
  1378. cheat.BorderSizePixel = 0
  1379. cheat.Font = Enum.Font.SourceSans
  1380. cheat.TextColor3 = Color3.new(1,1,1)
  1381. cheat.TextSize = 14
  1382. end
  1383. option_count = option_count + 1
  1384. end
  1385. content.Name = "content"
  1386. content.Size = UDim2.new(1,0,0,option_count*20)
  1387. content.Position = UDim2.new(0,0,1,0)
  1388. content.BackgroundTransparency = 1
  1389. content.ClipsDescendants = false
  1390.  
  1391. closeb.MouseButton1Click:connect(function()
  1392. if tab.open then
  1393. tab.open = false
  1394. closeb.Text = "-"
  1395. content:TweenSize(UDim2.new(1,0,0,option_count*20), "Out", "Quad", 0.2, true)
  1396. wait(0.2)
  1397. content.ClipsDescendants = false
  1398. else
  1399. tab.open = true
  1400. closeb.Text = "+"
  1401. content.ClipsDescendants = true
  1402. content:TweenSize(UDim2.new(1,0,0,0), "In", "Quad", 0.2, true)
  1403. end
  1404. end)
  1405.  
  1406. window_count = window_count + 1
  1407. end
  1408.  
  1409. playerser.PlayerAdded:connect(function(player)
  1410. addFolders(player)
  1411. if playerEspToggle then
  1412. makeEsp({esptype = "player", parent = player, name = "esp"})
  1413. end
  1414. end)
  1415.  
  1416. playerser.PlayerRemoving:connect(function(player)
  1417. runser:UnbindFromRenderStep(player.Name..", esp")
  1418. playerfolder[player.Name]:Destroy()
  1419. end)
  1420.  
  1421. inputser.InputBegan:connect(function(input, gamep)
  1422. if not gamep then
  1423. if input.KeyCode == Enum.KeyCode.F8 then
  1424. if main.Visible then
  1425. enableMouse(false)
  1426. main.Visible = false
  1427. inputser.MouseBehavior = Enum.MouseBehavior.LockCenter
  1428. else
  1429. enableMouse(true)
  1430. main.Visible = true
  1431. end
  1432. elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
  1433. if fuckallToggle then
  1434. runser:BindToRenderStep("killall", 4, function()
  1435. for _,player in pairs(playerser:GetChildren()) do
  1436. if client.Character and player.Team ~= client.Team and player.Character and player.Character:FindFirstChild"HeadHB" then
  1437. fuckplayer(player.Character.HeadHB, 8, true)
  1438. end
  1439. end
  1440. end)
  1441. end
  1442. if mouse.Target and mouse.Target.Parent == backtrackFolder then
  1443. if playerser[mouse.Target.Name] and playerser[mouse.Target.Name].Character and playerser[mouse.Target.Name].Character:FindFirstChild"HeadHB" then
  1444. fuckplayer(playerser[mouse.Target.Name].Character.HeadHB, 1, false)
  1445. end
  1446. end
  1447. if silentAim and silentAimPart and silentAimPart.Parent then
  1448. fuckplayer(silentAimPart, 1, false)
  1449. end
  1450. end
  1451. if inputting and input.KeyCode then
  1452. inputTo[4] = input.KeyCode.Name
  1453. inputObj.Text = input.KeyCode.Name
  1454. inputTo = nil
  1455. inputObj = nil
  1456. inputting = false
  1457. end
  1458. end
  1459. end)
  1460.  
  1461. inputser.InputEnded:connect(function(input, gamep)
  1462. if not gamep then
  1463. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1464. runser:UnbindFromRenderStep("killall")
  1465. end
  1466. end
  1467. end)
  1468.  
  1469. inputser.InputChanged:Connect(function(input, gamep)
  1470. if input == dragInput and dragging then
  1471. updateDrag(input)
  1472. end
  1473. end)
  1474.  
  1475. client.CharacterAdded:connect(function()
  1476. canShoot = false
  1477. canAutoWall = false
  1478. wait(1)
  1479. canShoot = true
  1480. if infCash then
  1481. client.Cash.Value = 69420
  1482. end
  1483. applyWalls(true, "glass", client.Character, charProps, 0.9)
  1484. client.Character.Humanoid.StateChanged:connect(function(new)
  1485. if new == Enum.HumanoidStateType.Landed and inputser:IsKeyDown(Enum.KeyCode.Space) and autoHop then
  1486. client.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  1487. end
  1488. end)
  1489. client.Character.Humanoid.Died:connect(function()
  1490. backtrackFolder:ClearAllChildren()
  1491. end)
  1492. client.Character.EquippedTool.Changed:connect(function()
  1493. if sniperCrosshair then
  1494. if weps[client.Character.EquippedTool.Value]:FindFirstChild"snipo" then
  1495. crosshair.Visible = true
  1496. else
  1497. crosshair.Visible = false
  1498. end
  1499. end
  1500. end)
  1501. end)
  1502. getrenv().warn([[
  1503. --// WiiTrap \\--
  1504.  
  1505. version 0.2
  1506. developed by Jan#5106
  1507. bit of help from Sigma, wally, TaskManager and Inori
  1508. ]])
  1509. getrenv().print("loaded "..gamelist[game.PlaceId].n,"build "..gamelist[game.PlaceId].b)
  1510. end
Add Comment
Please, Sign In to add comment