Advertisement
kids_on_a_bus

Counter Blox GUI

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