Advertisement
memecreater

Private cheats / fake haha

Jan 23rd, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.82 KB | None | 0 0
  1. --//Jans UI Library\\--
  2.  
  3. --[[
  4. This was a REMASTER of PFX: https://v3rmillion.net/showthread.php?tid=876733&pid=6179455#pid6179455
  5. Phantom-Ware: https://v3rmillion.net/showthread.php?tid=895416
  6. Discord: https://discord.gg/MyjGtee
  7. ]]
  8.  
  9. local TweenService, RunService, UserInputService,gui,dragging,dragInput,dragStart,startPos,cpt,cpf,cppicking,cppickingVal,cppickingAlpha,cphue,cpsat,cpval,focused,highest,focusedBox = game:GetService("TweenService"),game:GetService("RunService"), game:GetService("UserInputService")
  10. local cpalpha = 0
  11.  
  12. --custom functions used for all the options
  13.  
  14. --drag function
  15. local function updateDrag(input)
  16. local delta = input.Position - dragStart
  17. gui.Position = UDim2.new(0, startPos.X.Offset + delta.X, 0, startPos.Y.Offset + delta.Y)
  18. end
  19.  
  20. --color picker
  21. local function updateHueSat(input, obj, hue, sat)
  22. hue = (obj.AbsoluteSize.X-(input.Position.X-obj.AbsolutePosition.X))/obj.AbsoluteSize.X
  23. sat = (obj.AbsoluteSize.Y-(input.Position.Y-obj.AbsolutePosition.Y))/obj.AbsoluteSize.Y
  24. return (input.Position.X-obj.AbsolutePosition.X)/obj.AbsoluteSize.X, (input.Position.Y-obj.AbsolutePosition.Y)/obj.AbsoluteSize.Y, hue, sat
  25. end
  26.  
  27. local function updateValue(input, obj, val)
  28. val = (obj.AbsoluteSize.Y-(input.Position.Y-obj.AbsolutePosition.Y))/obj.AbsoluteSize.Y
  29. return (input.Position.Y-obj.AbsolutePosition.Y)/obj.AbsoluteSize.Y, val
  30. end
  31.  
  32. local function updateAlpha(input, obj, alpha)
  33. alpha = (obj.AbsoluteSize.X-(input.Position.X-obj.AbsolutePosition.X))/obj.AbsoluteSize.X
  34. return (input.Position.X-obj.AbsolutePosition.X)/obj.AbsoluteSize.X, alpha
  35. end
  36.  
  37. local function rgbToHsv(r, g, b)
  38. r, g, b = r / 255, g / 255, b / 255
  39. local max, min = math.max(r, g, b), math.min(r, g, b)
  40. local h, s, v
  41. v = max
  42.  
  43. local d = max - min
  44. if max == 0 then
  45. s = 0
  46. else
  47. s = d / max
  48. end
  49.  
  50. if max == min then
  51. h = 0 -- achromatic
  52. else
  53. if max == r then
  54. h = (g - b) / d
  55. if g < b then
  56. h = h + 6
  57. end
  58. elseif max == g then
  59. h = (b - r) / d + 2
  60. elseif max == b then
  61. h = (r - g) / d + 4
  62. end
  63. h = h / 6
  64. end
  65.  
  66. return h, s, v
  67. end
  68.  
  69. --drag function and color picker
  70. UserInputService.InputChanged:connect(function(input)
  71. if input == dragInput and dragging then
  72. updateDrag(input)
  73. end
  74. if input.UserInputType == Enum.UserInputType.MouseMovement then
  75. if cppicking then
  76. x, y, cphue, cpsat = updateHueSat(input, cpt.HueSat, cphue, cpsat)
  77. if x <= 0 then
  78. x = 0
  79. cphue = 1
  80. end
  81. if x >= 1 then
  82. x = 1
  83. cphue = 0
  84. end
  85. if y <= 0 then
  86. y = 0
  87. cpsat = 1
  88. end
  89. if y >= 1 then
  90. y = 1
  91. cpsat = 0
  92. end
  93. cpt.pointer.Position = UDim2.new(x,0,y,0)
  94. cpt.color = Color3.fromHSV(cphue,cpsat,cpval)
  95. cpt.visualize.BackgroundColor3 = cpt.color
  96. cpt.Alpha.ImageColor3 = cpt.color
  97. return cpf(cpt.color, cpt.alpha)
  98. end
  99. if cppickingVal then
  100. y, cpval = updateValue(input, cpt.Value, cpval)
  101. if y <= 0 then
  102. y = 0
  103. cpval = 1
  104. end
  105. if y >= 1 then
  106. y = 1
  107. cpval = 0
  108. end
  109. cpt.pointer2.Position = UDim2.new(1,-10,y,0)
  110. cpt.color = Color3.fromHSV(cphue,cpsat,cpval)
  111. cpt.visualize.BackgroundColor3 = cpt.color
  112. cpt.Alpha.ImageColor3 = cpt.color
  113. return cpf(cpt.color, cpt.alpha)
  114. end
  115. if cppickingAlpha then
  116. x, cpalpha = updateAlpha(input, cpt.Alpha, cpalpha)
  117. if x <= 0 then
  118. x = 0
  119. cpalpha = 1
  120. end
  121. if x >= 1 then
  122. x = 1
  123. cpalpha = 0
  124. end
  125. cpt.pointer3.Position = UDim2.new(x,0,1,-10)
  126. cpt.alpha = 1-cpalpha
  127. cpt.visualize.BackgroundTransparency = cpt.alpha
  128. return cpf(cpt.color, cpt.alpha)
  129. end
  130. end
  131. end)
  132.  
  133. --slider
  134. local function round(num, bracket)
  135. bracket = bracket or 1
  136. return math.floor(num/bracket + math.sign(num) * 0.5) * bracket
  137. end
  138.  
  139. --keybind
  140. local blacklistedKeys = { --add or remove keys if you find the need to
  141. Enum.KeyCode.Unknown,Enum.KeyCode.W,Enum.KeyCode.A,Enum.KeyCode.S,Enum.KeyCode.D,Enum.KeyCode.Slash,Enum.KeyCode.Tab,Enum.KeyCode.Backspace,Enum.KeyCode.One,Enum.KeyCode.Two,Enum.KeyCode.Three,Enum.KeyCode.Four,Enum.KeyCode.Five,Enum.KeyCode.Six,Enum.KeyCode.Seven,Enum.KeyCode.Eight,Enum.KeyCode.Nine,Enum.KeyCode.Zero,Enum.KeyCode.Escape,Enum.KeyCode.F1,Enum.KeyCode.F2,Enum.KeyCode.F3,Enum.KeyCode.F4,Enum.KeyCode.F5,Enum.KeyCode.F6,Enum.KeyCode.F7,Enum.KeyCode.F8,Enum.KeyCode.F9,Enum.KeyCode.F10,Enum.KeyCode.F11,Enum.KeyCode.F12
  142. }
  143.  
  144. local whitelistedMouse = { --add or remove mouse inputs if you find the need to
  145. Enum.UserInputType.MouseButton1,Enum.UserInputType.MouseButton2,Enum.UserInputType.MouseButton3
  146. }
  147.  
  148. local function keyCheck(x,x1) -- used for keybinding
  149. for _,v in next, x1 do
  150. if v == x then
  151. return true
  152. end
  153. end
  154. end
  155.  
  156. --zindex stuff
  157. local function focusOnOption(obj)
  158. if highest then
  159. highest.ZIndex = highest.ZIndex - 5
  160. for _,v in next, highest:GetDescendants() do
  161. pcall(function()
  162. v.ZIndex = v.ZIndex +- 5
  163. end)
  164. end
  165. end
  166. highest = obj
  167. highest.ZIndex = highest.ZIndex + 5
  168. for _,v in next, highest:GetDescendants() do
  169. pcall(function()
  170. v.ZIndex = v.ZIndex + 5
  171. end)
  172. end
  173. end
  174.  
  175. local function focusOnWindow(obj)
  176. if focused then
  177. focused.ZIndex = focused.ZIndex - 10
  178. for _,v in next, focused:GetDescendants() do
  179. pcall(function()
  180. v.ZIndex = v.ZIndex - 10
  181. end)
  182. end
  183. end
  184. focused = obj
  185. focused.ZIndex = focused.ZIndex + 10
  186. for _,v in next, focused:GetDescendants() do
  187. pcall(function()
  188. v.ZIndex = v.ZIndex + 10
  189. end)
  190. end
  191. end
  192.  
  193. local ddcheck
  194. local extframes = {}
  195. for i=1,4 do
  196. local frame = Instance.new("Frame")
  197. frame.ZIndex = 50
  198. frame.BackgroundTransparency = 1
  199. frame.Visible = false
  200. if i == 1 then
  201. frame.Size = UDim2.new(0,1000,0,-1000)
  202. elseif i == 2 then
  203. frame.Size = UDim2.new(0,1000,0,1000)
  204. frame.Position = UDim2.new(1,0,0,0)
  205. elseif i == 3 then
  206. frame.Size = UDim2.new(0,-1000,0,1000)
  207. frame.Position = UDim2.new(1,0,1,0)
  208. elseif i == 4 then
  209. frame.Size = UDim2.new(0,-1000,0,-1000)
  210. frame.Position = UDim2.new(0,0,1,0)
  211. end
  212. table.insert(extframes, frame)
  213. frame.InputBegan:connect(function(input)
  214. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  215. frame.Parent.Visible = false
  216. if ddcheck then
  217. ddcheck.arrow.Text = ">"
  218. ddcheck.closed = not ddcheck.closed
  219. end
  220. for _,v in next, extframes do
  221. v.Visible = false
  222. end
  223. end
  224. end)
  225. end
  226.  
  227. local function closeWindow(obj)
  228. for _,v in next, extframes do
  229. v.Visible = true
  230. v.Parent = obj
  231. end
  232. end
  233.  
  234. --start of library
  235. local library = {windows = {}}
  236.  
  237. library.settings = {
  238. title = "Title text",
  239. footer = "Footer text",
  240. modal = true,
  241. toggle = Enum.KeyCode.F8,
  242. font = Enum.Font.Code,
  243. textsize = 14,
  244. textstroke = true
  245. }
  246.  
  247. library.colors = {
  248. theme = Color3.fromRGB(218,137,6),
  249. text = Color3.fromRGB(255,255,255),
  250. main = Color3.fromRGB(30,30,30),
  251. fade = Color3.fromRGB(50,50,50),
  252. outline = Color3.fromRGB(10,10,10),
  253. tabholder = Color3.fromRGB(60,60,60),
  254. tabbutton = Color3.fromRGB(40,40,40),
  255. tabselected = Color3.fromRGB(50,50,50)
  256. }
  257.  
  258. function library:create(class, properties)
  259. local inst = Instance.new(class)
  260. for property, value in pairs(properties) do
  261. inst[property] = value
  262. end
  263. return inst
  264. end
  265.  
  266. function library:CreateWindow(ctitle, csize, cpos)
  267. if ctitle then
  268. if typeof(ctitle) == "Vector2" then
  269. cpos = csize
  270. csize = ctitle
  271. ctitle = library.settings.title
  272. end
  273. end
  274. cpos = cpos or Vector2.new(40,40)
  275. csize = csize or Vector2.new(460,500)
  276. local window = {xpos = 0, close = true, draggable = true}
  277. table.insert(self.windows, window)
  278.  
  279. self.base = self.base or self:create("ScreenGui", {
  280. Parent = game.CoreGui
  281. })
  282.  
  283. self.pointer = self.pointer or self:create("Frame", {
  284. ZIndex = 100,
  285. Size = UDim2.new(0,4,0,4),
  286. BackgroundColor3 = Color3.fromRGB(255,255,255),
  287. Parent = self.base
  288. })
  289.  
  290. self.pointer1 = self.pointer1 or self:create("Frame", {
  291. ZIndex = 100,
  292. Size = UDim2.new(0,1,0,1),
  293. BackgroundColor3 = Color3.fromRGB(255,0,0),
  294. BorderColor3 = Color3.fromRGB(255,0,0),
  295. Parent = self.pointer
  296. })
  297.  
  298. window.main = self:create("TextButton", {
  299. Position = UDim2.new(0,cpos.X,0,cpos.Y),
  300. Size = UDim2.new(0,csize.X,0,csize.Y),
  301. BackgroundColor3 = self.colors.main,
  302. BorderColor3 = self.colors.outline,
  303. Text = "",
  304. AutoButtonColor = false,
  305. Parent = self.base
  306. })
  307.  
  308. window.shade = self:create("ImageLabel", {
  309. Size = UDim2.new(1,0,0,18),
  310. BackgroundTransparency = 1,
  311. Image = "rbxassetid://2916745254",
  312. ImageColor3 = self.colors.fade,
  313. ImageTransparency = 0.2,
  314. Parent = window.main
  315. })
  316.  
  317. window.title = self:create("TextLabel", {
  318. Size = UDim2.new(1,0,0,18),
  319. BackgroundTransparency = 1,
  320. Text = ctitle or self.settings.title,
  321. TextColor3 = self.colors.text,
  322. TextStrokeTransparency = self.settings.textstroke and 0 or 1,
  323. Font = self.settings.font,
  324. TextSize = self.settings.textsize,
  325. Parent = window.main
  326. })
  327.  
  328. window.title.InputBegan:connect(function(input)
  329. if input.UserInputType == Enum.UserInputType.MouseButton1 and window.draggable then
  330. gui = window.main
  331. dragging = true
  332. dragStart = input.Position
  333. startPos = gui.Position
  334.  
  335. input.Changed:Connect(function()
  336. if input.UserInputState == Enum.UserInputState.End then
  337. dragging = false
  338. end
  339. end)
  340. end
  341. end)
  342.  
  343. window.title.InputChanged:connect(function(input)
  344. if input.UserInputType == Enum.UserInputType.MouseMovement then
  345. dragInput = input
  346. end
  347. end)
  348.  
  349. window.main.InputBegan:connect(function(input)
  350. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  351. focusOnWindow(window.main)
  352. end
  353. end)
  354.  
  355. function window:CreateTab(name)
  356. local tab = {}
  357. local bounds = game:GetService('TextService'):GetTextSize(name, library.settings.textsize, library.settings.font, Vector2.new(math.huge, math.huge))
  358. tab.rows = {}
  359.  
  360. local function createNewRow()
  361. tab.row = library:create("Frame", {
  362. Position = UDim2.new(0,csize.X/2 * #tab.rows - (#tab.rows * 10),0,0),
  363. Size = UDim2.new(0,csize.X/2 - 10,1,0),
  364. BackgroundTransparency = 1,
  365. Parent = tab.main
  366. })
  367. tab.layout = library:create("UIListLayout", {
  368. Padding = UDim.new(0,8),
  369. Parent = tab.row
  370. })
  371.  
  372. tab.padding = library:create("UIPadding", {
  373. PaddingLeft = UDim.new(0,4),
  374. PaddingRight = UDim.new(0,4),
  375. PaddingTop = UDim.new(0,12),
  376. Parent = tab.row
  377. })
  378. table.insert(tab.rows, tab)
  379. if #tab.rows > 2 then
  380. self.main.Size = self.main.Size + UDim2.new(0,csize.X/2 - 10,0,0)
  381. end
  382. end
  383. local function checkRow()
  384. if tab.row then
  385. for _,row in pairs(tab.rows) do
  386. if row.layout.AbsoluteContentSize.Y > row.row.AbsoluteSize.Y - 20 then
  387. createNewRow()
  388. else
  389. tab = row
  390. end
  391. end
  392. else
  393. createNewRow()
  394. end
  395. end
  396.  
  397. self.tabholder = self.tabholder or library:create("Frame", {
  398. Position = UDim2.new(0,10,0,25),
  399. Size = UDim2.new(1,-20,1,-55),
  400. BackgroundColor3 = library.colors.tabholder,
  401. BorderColor3 = library.colors.outline,
  402. Parent = self.main
  403. })
  404.  
  405. self.footer = self.footer or library:create("TextLabel", {
  406. Position = UDim2.new(0,0,1,0),
  407. Size = UDim2.new(1,0,0,-18),
  408. BackgroundColor3 = library.colors.tabbutton,
  409. BorderColor3 = library.colors.outline,
  410. Text = " "..library.settings.footer,
  411. TextColor3 = library.colors.text,
  412. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  413. Font = library.settings.font,
  414. TextSize = library.settings.textsize,
  415. TextXAlignment = Enum.TextXAlignment.Left,
  416. Parent = self.main
  417. })
  418.  
  419. tab.main = library:create("Frame", {
  420. Position = UDim2.new(0,0,0,20),
  421. Size = UDim2.new(1,0,1,-20),
  422. BackgroundColor3 = library.colors.tabselected,
  423. BorderColor3 = library.colors.outline,
  424. Visible = false,
  425. Parent = self.tabholder
  426. })
  427.  
  428. tab.button = library:create("Frame", {
  429.  
  430. Position = UDim2.new(0,self.xpos,0,0),
  431. Size = UDim2.new(0,bounds.X+8,0,19),
  432. BorderColor3 = library.colors.outline,
  433. Parent = self.tabholder
  434. })
  435.  
  436. tab.buttontop = library:create("Frame", {
  437. Size = UDim2.new(1,0,1,0),
  438. BackgroundColor3 = library.colors.tabbutton,
  439. BorderSizePixel = 0,
  440. BorderColor3 = library.colors.outline,
  441. Parent = tab.button
  442. })
  443.  
  444. tab.label = library:create("TextLabel", {
  445.  
  446. Size = UDim2.new(1,0,1,0),
  447. BackgroundTransparency = 1,
  448. Text = name,
  449. TextColor3 = library.colors.text,
  450. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  451. Font = library.settings.font,
  452. TextSize = library.settings.textsize,
  453. Parent = tab.button
  454. })
  455.  
  456. if self.xpos == 0 then
  457. self.focused = tab
  458. self.focused.main.Visible = true
  459. self.focused.buttontop.Size = self.focused.buttontop.Size + UDim2.new(0,0,0,1)
  460. tab.buttontop.BackgroundColor3 = library.colors.tabselected
  461. end
  462. self.xpos = self.xpos + bounds.X + 8
  463.  
  464. tab.label.InputBegan:connect(function(input)
  465. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  466. self.focused.main.Visible = false
  467. self.focused.buttontop.Size = self.focused.buttontop.Size - UDim2.new(0,0,0,1)
  468. self.focused.buttontop.BackgroundColor3 = library.colors.tabbutton
  469. self.focused = tab
  470. self.focused.main.Visible = true
  471. self.focused.buttontop.Size = self.focused.buttontop.Size + UDim2.new(0,0,0,1)
  472. self.focused.buttontop.BackgroundColor3 = library.colors.tabselected
  473. end
  474. end)
  475.  
  476. function tab:AddLocalTab(title)
  477. local LocalTab = {order = 0}
  478. local bounds = game:GetService('TextService'):GetTextSize(title, library.settings.textsize, library.settings.font, Vector2.new(math.huge, math.huge))
  479. checkRow()
  480.  
  481. LocalTab.main = library:create("Frame", {
  482. Size = UDim2.new(1,0,0,0),
  483. BackgroundColor3 = library.colors.tabselected,
  484. BorderColor3 = library.colors.outline,
  485. Parent = self.row
  486. })
  487.  
  488. LocalTab.title = library:create("TextLabel", {
  489. AnchorPoint = Vector2.new(0,0.5),
  490. Position = UDim2.new(0,12,0,0),
  491. Size = UDim2.new(0,bounds.X + 8,0,2),
  492. BackgroundColor3 = library.colors.tabselected,
  493. BorderSizePixel = 0,
  494. Text = title,
  495. TextColor3 = library.colors.text,
  496. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  497. Font = library.settings.font,
  498. TextSize = library.settings.textsize,
  499. Parent = LocalTab.main
  500. })
  501.  
  502. LocalTab.content = library:create("Frame", {
  503.  
  504. Size = UDim2.new(1,0,1,0),
  505. BackgroundTransparency = 1,
  506. Parent = LocalTab.main
  507. })
  508.  
  509. LocalTab.layout = library:create("UIListLayout", {
  510. Padding = UDim.new(0,4),
  511. SortOrder = Enum.SortOrder.LayoutOrder,
  512. Parent = LocalTab.content
  513. })
  514.  
  515. LocalTab.padding = library:create("UIPadding", {
  516. PaddingLeft = UDim.new(0,6),
  517. PaddingRight = UDim.new(0,6),
  518. PaddingTop = UDim.new(0,12),
  519. Parent = LocalTab.content
  520. })
  521.  
  522. function LocalTab:AddLabel(text)
  523. local label = {}
  524. label.text = text
  525. checkRow()
  526. LocalTab.main.Parent = tab.row
  527.  
  528. label.label = library:create("TextLabel", {
  529. LayoutOrder = self.order,
  530. Size = UDim2.new(1,0,0,library.settings.textsize + 2),
  531. BackgroundTransparency = 1,
  532. Text = tostring(text),
  533. TextColor3 = library.colors.text,
  534. Font = library.settings.font,
  535. TextSize = library.settings.textsize,
  536. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  537. TextWrapped = true,
  538. TextXAlignment = Enum.TextXAlignment.Left,
  539. Parent = LocalTab.content
  540. })
  541.  
  542. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+16)
  543.  
  544. self.order = self.order + 1
  545.  
  546. return label
  547. end
  548.  
  549. function LocalTab:AddButton(text, _function)
  550. local button = {}
  551. _function = _function or function() end
  552. checkRow()
  553. LocalTab.main.Parent = tab.row
  554.  
  555. button.button = library:create("TextButton", {
  556. LayoutOrder = self.order,
  557. Size = UDim2.new(1,0,0,library.settings.textsize + 2),
  558. BackgroundTransparency = 1,
  559. Text = tostring(text),
  560. TextColor3 = library.colors.text,
  561. Font = library.settings.font,
  562. TextSize = library.settings.textsize,
  563. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  564. TextXAlignment = Enum.TextXAlignment.Left,
  565. Parent = self.content,
  566. })
  567.  
  568. self.order = self.order + 1
  569.  
  570. button.button.InputBegan:connect(function(input)
  571. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  572. _function()
  573. end
  574. end)
  575.  
  576. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+16)
  577.  
  578. return button
  579. end
  580.  
  581. function LocalTab:AddToggle(text, _function)
  582. local toggle = {state = false}
  583. _function = _function or function() end
  584. checkRow()
  585. LocalTab.main.Parent = tab.row
  586.  
  587. toggle.button = library:create("TextButton", {
  588. LayoutOrder = self.order,
  589. Size = UDim2.new(1,0,0,library.settings.textsize + 2),
  590. BackgroundTransparency = 1,
  591. Text = tostring(text),
  592. TextColor3 = library.colors.text,
  593. Font = library.settings.font,
  594. TextSize = library.settings.textsize,
  595. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  596. TextXAlignment = Enum.TextXAlignment.Left,
  597. Parent = self.content,
  598. })
  599.  
  600. toggle.holder = library:create("Frame", {
  601. AnchorPoint = Vector2.new(0,0.5),
  602. Position = UDim2.new(1,-1,0.5,0),
  603. Size = UDim2.new(0,-library.settings.textsize+4,0,library.settings.textsize-4),
  604. BackgroundColor3 = library.colors.tabholder,
  605. BorderSizePixel = 2,
  606. BorderColor3 = library.colors.main,
  607. Parent = toggle.button,
  608. })
  609.  
  610. toggle.visualize = library:create("Frame", {
  611. Position = UDim2.new(0,0,0,0),
  612. Size = UDim2.new(1,0,1,0),
  613. BackgroundTransparency = 1,
  614. BackgroundColor3 = library.colors.theme,
  615. BorderSizePixel = 0,
  616. Parent = toggle.holder,
  617. })
  618.  
  619. self.order = self.order + 1
  620.  
  621. function toggle:SetToggle(state)
  622. toggle.state = state
  623. if toggle.state then
  624. toggle.visualize.BackgroundTransparency = 0
  625. else
  626. toggle.visualize.BackgroundTransparency = 1
  627. end
  628. return _function(toggle.state)
  629. end
  630.  
  631. toggle.button.InputBegan:connect(function(input)
  632. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  633. toggle.state = not toggle.state
  634. toggle:SetToggle(toggle.state)
  635. end
  636. end)
  637.  
  638. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+16)
  639.  
  640. return toggle
  641. end
  642.  
  643. function LocalTab:AddBox(text, txtval, _function, keep)
  644. local box = {value = ""}
  645. if txtval then
  646. if typeof(txtval) == "function" then
  647. _function = txtval
  648. txtval = ""
  649. elseif typeof(txtval) == "string" then
  650. box.value = txtval
  651. end
  652. end
  653. if keep then
  654. if typeof(keep) == "string" then
  655. keep = false
  656. end
  657. end
  658. _function = _function or function() end
  659. checkRow()
  660. LocalTab.main.Parent = tab.row
  661.  
  662. box.button = library:create("TextButton", {
  663. LayoutOrder = self.order,
  664. Size = UDim2.new(1,0,0,library.settings.textsize + 22),
  665. BackgroundTransparency = 1,
  666. Text = tostring(text),
  667. TextColor3 = library.colors.text,
  668. Font = library.settings.font,
  669. TextSize = library.settings.textsize,
  670. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  671. TextXAlignment = Enum.TextXAlignment.Left,
  672. TextYAlignment = Enum.TextYAlignment.Top,
  673. Parent = self.content,
  674. })
  675.  
  676. box.box = library:create("TextBox", {
  677. Position = UDim2.new(0,0,0,19),
  678. Size = UDim2.new(1,0,0,17),
  679. BackgroundTransparency = 0,
  680. BackgroundColor3 = library.colors.tabholder,
  681. BorderColor3 = library.colors.main,
  682. Text = txtval,
  683. TextColor3 = library.colors.text,
  684. PlaceholderText = "",
  685. PlaceholderColor3 = library.colors.tabbutton,
  686. Font = library.settings.font,
  687. TextSize = library.settings.textsize-2,
  688. TextWrapped = true,
  689. Parent = box.button,
  690. })
  691.  
  692. self.order = self.order + 1
  693.  
  694. box.button.InputBegan:connect(function(input)
  695. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  696. box.box:CaptureFocus()
  697. end
  698. end)
  699.  
  700. box.box.FocusLost:connect(function(enter)
  701. if keep then
  702. if box.box.Text == "" then
  703. box.box.Text = box.value
  704. return
  705. else
  706. box.value = box.box.Text
  707. end
  708. end
  709. return _function(box.box.Text, enter)
  710. end)
  711.  
  712. UserInputService.InputBegan:connect(function(input)
  713. if input.KeyCode == Enum.KeyCode.Escape and box.box:IsFocused() then
  714. box.box:ReleaseFocus()
  715. end
  716. end)
  717.  
  718. function box:SetValue(value)
  719. box.value = value
  720. box.box.Text = box.value
  721. return _function(box)
  722. end
  723.  
  724. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+18)
  725.  
  726. return box
  727. end
  728.  
  729. function LocalTab:AddDropdown(text, options, _function, push)
  730. _function = _function or function() end
  731. local dropdown = {order = 0, closed = true, value = options[1]}
  732. dropdown.content = {}
  733. checkRow()
  734. LocalTab.main.Parent = tab.row
  735.  
  736. dropdown.button = library:create("TextButton", {
  737. LayoutOrder = self.order,
  738. Size = UDim2.new(1,0,0,library.settings.textsize + 22),
  739. BackgroundTransparency = 1,
  740. Text = tostring(text),
  741. TextColor3 = library.colors.text,
  742. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  743. Font = library.settings.font,
  744. TextSize = library.settings.textsize,
  745. TextXAlignment = Enum.TextXAlignment.Left,
  746. TextYAlignment = Enum.TextYAlignment.Top,
  747. Parent = self.content,
  748. })
  749.  
  750. dropdown.label = library:create("TextLabel", {
  751. Position = UDim2.new(0,0,0,19),
  752. Size = UDim2.new(1,0,0,17),
  753. BackgroundTransparency = 0,
  754. BackgroundColor3 = library.colors.tabholder,
  755. BorderColor3 = library.colors.main,
  756. Text = dropdown.value,
  757. TextColor3 = library.colors.text,
  758. Font = library.settings.font,
  759. TextSize = library.settings.textsize,
  760. Parent = dropdown.button,
  761. })
  762.  
  763. dropdown.arrow = library:create("TextLabel", {
  764. Position = UDim2.new(1,0,0,2),
  765. Size = UDim2.new(0,-16,0,16),
  766. Rotation = 90,
  767. BackgroundTransparency = 1,
  768. Text = ">",
  769. TextColor3 = library.colors.tabbutton,
  770. Font = Enum.Font.Arcade,
  771. TextSize = 18,
  772. Parent = dropdown.label,
  773. })
  774.  
  775. dropdown.container = library:create("Frame", {
  776. ZIndex = 2,
  777. Position = UDim2.new(0,0,1,3),
  778. BackgroundTransparency = 1,
  779. Visible = false,
  780. Parent = dropdown.label,
  781. })
  782.  
  783. dropdown.contentholder = library:create("ScrollingFrame", {
  784. ZIndex = 2,
  785. ClipsDescendants = true,
  786. Size = UDim2.new(1,0,1,0),
  787. BackgroundTransparency = 0,
  788. BorderSizePixel = 1,
  789. BackgroundColor3 = library.colors.tabholder,
  790. BorderColor3 = library.colors.outline,
  791. CanvasSize = UDim2.new(0,0,0,0),
  792. ScrollBarThickness = 0,
  793. Visible = true,
  794. Parent = dropdown.container,
  795. })
  796.  
  797. dropdown.layout = library:create("UIListLayout", {
  798. Padding = UDim.new(0,0),
  799. SortOrder = Enum.SortOrder.LayoutOrder,
  800. Parent = dropdown.contentholder
  801. })
  802.  
  803. self.order = self.order + 1
  804.  
  805. dropdown.button.InputBegan:connect(function(input)
  806. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  807. focusOnOption(dropdown.container)
  808. closeWindow(dropdown.container)
  809. ddcheck = dropdown
  810. dropdown.closed = not dropdown.closed
  811. if dropdown.closed then
  812. dropdown.arrow.Text = ">"
  813. dropdown.container.Visible = false
  814. else
  815. dropdown.arrow.Text = "<"
  816. dropdown.container.Visible = true
  817. end
  818. end
  819. end)
  820.  
  821. local function addOptions(options)
  822. for _,value in pairs(options) do
  823. dropdown.order = dropdown.order+1
  824.  
  825. local option = library:create("TextButton", {
  826. ZIndex = dropdown.contentholder.ZIndex,
  827. LayoutOrder = dropdown.order,
  828. Size = UDim2.new(1,0,0,18),
  829. BackgroundTransparency = 0,
  830. BackgroundColor3 = library.colors.tabholder,
  831. BorderColor3 = library.colors.tabbutton,
  832. Text = value,
  833. TextColor3 = library.colors.text,
  834. Font = library.settings.font,
  835. TextSize = library.settings.textsize,
  836. AutoButtonColor = false,
  837. Parent = dropdown.contentholder,
  838. })
  839.  
  840. option.MouseButton1Click:connect(function()
  841. dropdown.value = value
  842. if push then
  843. for _,v in pairs(dropdown.content) do
  844. if v.LayoutOrder < option.LayoutOrder then
  845. v.LayoutOrder = v.LayoutOrder + 1
  846. end
  847. end
  848. option.LayoutOrder = 1
  849. end
  850. dropdown.label.Text = dropdown.value
  851. dropdown.closed = true
  852. dropdown.arrow.Text = ">"
  853. dropdown.container.Visible = false
  854. return _function(dropdown.value)
  855. end)
  856.  
  857. if dropdown.order > 5 then
  858. dropdown.contentholder.CanvasSize = UDim2.new(0,0,0,dropdown.layout.AbsoluteContentSize.Y)
  859. else
  860. dropdown.container.Size = UDim2.new(1,0,0,dropdown.layout.AbsoluteContentSize.Y)
  861. end
  862.  
  863. table.insert(dropdown.content, dropdown.order, option)
  864. end
  865. end
  866.  
  867. addOptions(options)
  868.  
  869. function dropdown:Refresh(options, keep)
  870. if not keep then
  871. for _,v in pairs(dropdown.contentholder:GetChildren()) do
  872. if v:IsA"TextButton" then
  873. v:Destroy()
  874. dropdown.order = dropdown.order - 1
  875. dropdown.contentholder.CanvasSize = UDim2.new(0,0,0,dropdown.layout.AbsoluteContentSize.Y)
  876. end
  877. end
  878. end
  879. addOptions(options)
  880. end
  881.  
  882. function dropdown:SetValue(value)
  883. dropdown.value = value
  884. dropdown.label.Text = dropdown.value
  885. return _function(dropdown.value)
  886. end
  887.  
  888. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+18)
  889.  
  890. return dropdown
  891. end
  892.  
  893. function LocalTab:AddSlider(text, maxVal, setVal, _function, float, incrementalMode)
  894. if setVal then
  895. if typeof(setVal) == "function" then
  896. if _function then
  897. if typeof(_function) == "number" then
  898. incrementalMode = float
  899. float = _function
  900. elseif typeof(_function) == "boolean" then
  901. incrementalMode = _function
  902. float = nil
  903. end
  904. end
  905. _function = setVal
  906. setVal = 0
  907. else
  908. if float then
  909. if typeof(float) == "boolean" then
  910. incrementalMode = float
  911. float = nil
  912. end
  913. end
  914. end
  915. end
  916. if setVal > maxVal then
  917. setVal = maxVal
  918. end
  919. if setVal < 0 then
  920. setVal = 0
  921. end
  922. _function = _function or function() end
  923. local slider = {value = setVal}
  924. checkRow()
  925. LocalTab.main.Parent = tab.row
  926.  
  927. slider.button = library:create("TextButton", {
  928. LayoutOrder = self.order,
  929. Size = UDim2.new(1,0,0,library.settings.textsize + 22),
  930. BackgroundTransparency = 1,
  931. Text = tostring(text),
  932. TextColor3 = library.colors.text,
  933. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  934. Font = library.settings.font,
  935. TextSize = library.settings.textsize,
  936. TextXAlignment = Enum.TextXAlignment.Left,
  937. TextYAlignment = Enum.TextYAlignment.Top,
  938. Parent = self.content,
  939. })
  940.  
  941. slider.holder = library:create("Frame", {
  942. Position = UDim2.new(0,0,0,18),
  943. Size = UDim2.new(1,0,0,17),
  944. BackgroundTransparency = 1,
  945. Parent = slider.button,
  946. })
  947.  
  948. slider.visualize = library:create("TextBox", {
  949. Position = UDim2.new(0,0,0.5,0),
  950. Size = UDim2.new(1,0,0.5,0),
  951. BackgroundTransparency = 1,
  952. Text = tostring(slider.value),
  953. TextColor3 = library.colors.text,
  954. Font = library.settings.font,
  955. TextSize = library.settings.textsize-2,
  956. TextWrapped = true,
  957. Parent = slider.holder,
  958. })
  959.  
  960. slider.sliderbar = library:create("Frame", {
  961. AnchorPoint = Vector2.new(0.5,0.5),
  962. Position = UDim2.new(0.5,0,0.2,0),
  963. Size = UDim2.new(1,-6,0,4),
  964. BackgroundColor3 = library.colors.tabholder,
  965. BorderColor3 = library.colors.main,
  966. Parent = slider.holder,
  967. })
  968.  
  969. slider.sliderfill = library:create("Frame", {
  970. Size = UDim2.new(slider.value/maxVal,0,1,0),
  971. BackgroundColor3 = library.colors.theme,
  972. BorderSizePixel = 0,
  973. Parent = slider.sliderbar,
  974. })
  975.  
  976. slider.sliderbox = library:create("Frame", {
  977. AnchorPoint = Vector2.new(0.5,0.5),
  978. Position = UDim2.new(slider.value/maxVal,0,0.5,0),
  979. Size = UDim2.new(0,4,0,12),
  980. BackgroundColor3 = library.colors.main,
  981. BorderSizePixel = 0,
  982. Parent = slider.sliderbar,
  983. })
  984.  
  985. self.order = self.order + 1
  986.  
  987. local function updateValue()
  988. slider.value = round(slider.value*maxVal, float)
  989. if slider.value > maxVal then
  990. slider.value = maxVal
  991. end
  992. if slider.value < 0 then
  993. slider.value = 0
  994. end
  995. if incrementalMode then
  996. slider.sliderbox.Position = UDim2.new(slider.value/maxVal,0,0.5,0)
  997. slider.sliderfill.Size = UDim2.new(slider.value/maxVal,0,1,0)
  998. else
  999. slider.sliderbox:TweenPosition(UDim2.new(slider.value/maxVal,0,0.5,0), "Out", "Quad", 0.1, true)
  1000. slider.sliderfill:TweenSize(UDim2.new(slider.value/maxVal,0,1,0), "Out", "Quad", 0.1, true)
  1001. end
  1002. slider.visualize.Text = slider.value
  1003. _function(slider.value)
  1004. end
  1005.  
  1006. local function updateSlider(input)
  1007. local relativePos = input.Position.X- slider.sliderbar.AbsolutePosition.X
  1008. if input.Position.X < slider.sliderbar.AbsolutePosition.X then
  1009. relativePos = 0
  1010. end
  1011. if relativePos > slider.sliderbar.AbsoluteSize.X then
  1012. relativePos = slider.sliderbar.AbsoluteSize.X
  1013. end
  1014. slider.value = relativePos/slider.sliderbar.AbsoluteSize.X
  1015. updateValue()
  1016. end
  1017.  
  1018. local sliding
  1019. local modifying
  1020. slider.button.InputBegan:connect(function(input)
  1021. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1022. if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
  1023. modifying = true
  1024. slider.visualize:CaptureFocus()
  1025. else
  1026. sliding = true
  1027. updateSlider(input)
  1028. end
  1029. end
  1030. end)
  1031.  
  1032. slider.visualize.Focused:connect(function()
  1033. if not modifying then
  1034. slider.visualize:ReleaseFocus()
  1035. end
  1036. end)
  1037.  
  1038. slider.visualize.FocusLost:connect(function()
  1039. if modifying then
  1040. slider.value = (tonumber(slider.visualize.Text) or 0)/maxVal
  1041. updateValue()
  1042. end
  1043. modifying = false
  1044. end)
  1045.  
  1046. slider.button.InputEnded:connect(function(input)
  1047. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1048. sliding = false
  1049. end
  1050. end)
  1051.  
  1052. UserInputService.InputChanged:connect(function(input)
  1053. if modifying then
  1054. if input == Enum.KeyCode.Escape or input.KeyCode == Enum.KeyCode.Space then
  1055. slider.visualize:ReleaseFocus()
  1056. end
  1057. end
  1058. if input.UserInputType == Enum.UserInputType.MouseMovement then
  1059. if sliding then
  1060. updateSlider(input)
  1061. end
  1062. end
  1063. end)
  1064.  
  1065. function slider:SetValue(num)
  1066. slider.value = num/maxVal
  1067. updateValue()
  1068. end
  1069.  
  1070. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+18)
  1071.  
  1072. return slider
  1073. end
  1074.  
  1075. function LocalTab:AddKeybind(text, key, _function, hold)
  1076. if key and typeof(key) == "function" then
  1077. hold = _function
  1078. _function = key
  1079. key = Enum.KeyCode.F
  1080. end
  1081. if typeof(key) == "string" then
  1082. if not keyCheck(Enum.KeyCode[key:upper()], blacklistedKeys) then
  1083. key = Enum.KeyCode[key:upper()]
  1084. end
  1085. if keyCheck(key, whitelistedMouse) then
  1086. key = Enum.UserInputType[key:upper()]
  1087. end
  1088. end
  1089. _function = _function or function() end
  1090. local bind = {binding = false, holding = false, key = key, hold = hold}
  1091. local bounds = game:GetService('TextService'):GetTextSize(bind.key.Name, library.settings.textsize, library.settings.font, Vector2.new(math.huge, math.huge))
  1092. checkRow()
  1093. LocalTab.main.Parent = tab.row
  1094.  
  1095. bind.button = library:create("TextButton", {
  1096. LayoutOrder = self.order,
  1097. Size = UDim2.new(1,0,0,library.settings.textsize + 4),
  1098. BackgroundTransparency = 1,
  1099. Text = tostring(text),
  1100. TextColor3 = library.colors.text,
  1101. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  1102. Font = library.settings.font,
  1103. TextSize = library.settings.textsize,
  1104. TextXAlignment = Enum.TextXAlignment.Left,
  1105. AutoButtonColor = false,
  1106. Parent = self.content,
  1107. })
  1108.  
  1109. bind.label = library:create("TextLabel", {
  1110. Position = UDim2.new(1,0,0,2),
  1111. Size = UDim2.new(0,-bounds.X-8,1,-4),
  1112. BackgroundColor3 = library.colors.tabholder,
  1113. BorderColor3 = library.colors.main,
  1114. Text = bind.key.Name,
  1115. TextColor3 = library.colors.text,
  1116. Font = library.settings.font,
  1117. TextSize = library.settings.textsize,
  1118. Parent = bind.button,
  1119. })
  1120.  
  1121. self.order = self.order + 1
  1122.  
  1123. bind.button.InputBegan:connect(function(input)
  1124. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1125. bind.label.Text = "..."
  1126. bind.label.Size = UDim2.new(0,-bind.label.TextBounds.X-8,1,-4)
  1127. end
  1128. end)
  1129.  
  1130. bind.button.InputEnded:connect(function(input)
  1131. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1132. bind.binding = true
  1133. end
  1134. end)
  1135. local function setKey(key)
  1136. bind.key = key
  1137. bind.label.Text = bind.key.Name
  1138. bind.label.Size = UDim2.new(0,-bind.label.TextBounds.X-8,1,-4)
  1139. end
  1140.  
  1141. local a = tick()
  1142. local function holdKey()
  1143. RunService:BindToRenderStep(a .. bind.key.Name, 1, function()
  1144. if bind.holding == false or not bind.hold then
  1145. RunService:UnbindFromRenderStep(a .. bind.key.Name)
  1146. end
  1147. _function()
  1148. end)
  1149. return _function(true)
  1150. end
  1151.  
  1152. UserInputService.InputBegan:connect(function(input)
  1153. if bind.binding then
  1154. if input.KeyCode == Enum.KeyCode.Backspace then
  1155. setKey(bind.key)
  1156. bind.binding = false
  1157. else
  1158. if not keyCheck(input.KeyCode, blacklistedKeys) then
  1159. setKey(input.KeyCode)
  1160. bind.binding = false
  1161. end
  1162. if keyCheck(input.UserInputType, whitelistedMouse) then
  1163. setKey(input.UserInputType)
  1164. bind.binding = false
  1165. end
  1166. end
  1167. else
  1168. if library.settings.modal and window.main.Visible then
  1169. return
  1170. end
  1171. if input.KeyCode.Name == bind.key.Name or input.UserInputType.Name == bind.key.Name then
  1172. bind.holding = true
  1173. if bind.hold then
  1174. holdKey()
  1175. else
  1176. _function()
  1177. end
  1178. end
  1179. end
  1180. end)
  1181.  
  1182. UserInputService.InputEnded:connect(function(input)
  1183. if input.KeyCode.Name == bind.key.Name then
  1184. bind.holding = false
  1185. end
  1186. if input.UserInputType.Name == bind.key.Name then
  1187. bind.holding = false
  1188. end
  1189. end)
  1190.  
  1191. function bind:SetKeybind(key)
  1192. if typeof(key) == "string" then
  1193. if not keyCheck(Enum.KeyCode[key:upper()], blacklistedKeys) then
  1194. key = Enum.KeyCode[key:upper()]
  1195. end
  1196. if keyCheck(key, whitelistedMouse) then
  1197. key = Enum.UserInputType[key:upper()]
  1198. end
  1199. end
  1200. if key ~= bind.key then
  1201. RunService:UnbindFromRenderStep(a .. bind.key.Name)
  1202. end
  1203. setKey(key)
  1204. end
  1205.  
  1206. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+16)
  1207.  
  1208. return bind
  1209. end
  1210.  
  1211. function LocalTab:AddCP(text, color3, _function, alpha)
  1212. if color3 then
  1213. if typeof(color3) == "function" then
  1214. _function = color3
  1215. color3 = Color3.fromRGB()
  1216. end
  1217. end
  1218. _function = _function or function() end
  1219. local red, green, blue = color3.r*255, color3.g*255, color3.b*255
  1220. _function = _function or function() end
  1221. local color = {color = color3, alpha = alpha}
  1222. cphue, cpsat, cpval = rgbToHsv(red,green,blue)
  1223. checkRow()
  1224. LocalTab.main.Parent = tab.row
  1225.  
  1226. color.button = library:create("TextButton", {
  1227. LayoutOrder = self.order,
  1228. Size = UDim2.new(1,0,0,library.settings.textsize + 4),
  1229. BackgroundTransparency = 1,
  1230. Text = tostring(text),
  1231. TextColor3 = library.colors.text,
  1232. TextStrokeTransparency = library.settings.textstroke and 0 or 1,
  1233. Font = library.settings.font,
  1234. TextSize = library.settings.textsize,
  1235. TextXAlignment = Enum.TextXAlignment.Left,
  1236. AutoButtonColor = false,
  1237. Parent = self.content,
  1238. })
  1239.  
  1240. color.visualizebg = library:create("ImageLabel", {
  1241. Position = UDim2.new(1,-1,0,3),
  1242. Size = UDim2.new(0,-24,0,12),
  1243. BorderSizePixel = 2,
  1244. BorderColor3 = library.colors.main,
  1245. Image = "rbxassetid://3887014957",
  1246. ScaleType = Enum.ScaleType.Tile,
  1247. TileSize = UDim2.new(0,8,0,8),
  1248. Parent = color.button
  1249. })
  1250.  
  1251. color.visualize = library:create("Frame", {
  1252. Size = UDim2.new(1,0,1,0),
  1253. BackgroundTransparency = color.alpha,
  1254. BackgroundColor3 = color.color,
  1255. BorderSizePixel = 0,
  1256. Parent = color.visualizebg,
  1257. })
  1258.  
  1259. color.container = library:create("TextButton", {
  1260. ZIndex = 2,
  1261. Position = UDim2.new(0,-3,0,0),
  1262. Size = UDim2.new(0,-150,0,150),
  1263. BackgroundColor3 = library.colors.tabholder,
  1264. BorderColor3 = library.colors.outline,
  1265. AutoButtonColor = false,
  1266. Visible = false,
  1267. Parent = color.visualize
  1268. })
  1269.  
  1270. color.HueSat = library:create("ImageLabel", {
  1271. ZIndex = 2,
  1272. Position = UDim2.new(0,5,0,5),
  1273. Size = UDim2.new(1,-25,1,-25),
  1274. BorderColor3 = library.colors.outline,
  1275. Image = "rbxassetid://698052001",
  1276. Parent = color.container
  1277. })
  1278.  
  1279. color.pointer = library:create("Frame", {
  1280. ZIndex = 2,
  1281. AnchorPoint = Vector2.new(0.5,0.5),
  1282. Position = UDim2.new(1-cphue,0,1-cpsat,0),
  1283. Size = UDim2.new(0,4,0,4),
  1284. Rotation = 45,
  1285. BackgroundColor3 = Color3.fromRGB(255,255,255),
  1286. BorderColor3 = Color3.fromRGB(0,0,0),
  1287. Parent = color.HueSat
  1288. })
  1289.  
  1290. color.Value = library:create("ImageLabel", {
  1291. ZIndex = 2,
  1292. Position = UDim2.new(1,-15,0,5),
  1293. Size = UDim2.new(0,10,1,-25),
  1294. BorderColor3 = library.colors.outline,
  1295. Image = "rbxassetid://3641079629",
  1296. Parent = color.container
  1297. })
  1298.  
  1299. color.pointer2 = library:create("TextLabel", {
  1300. ZIndex = 2,
  1301. AnchorPoint = Vector2.new(0,0.5),
  1302. Position = UDim2.new(1,-10,1-cpval,0),
  1303. Size = UDim2.new(0,16,0,16),
  1304. BackgroundTransparency = 1,
  1305. Text = "◄",
  1306. TextColor3 = Color3.fromRGB(0,0,0),
  1307. TextStrokeTransparency = 0,
  1308. TextStrokeColor3 = Color3.fromRGB(130,130,130),
  1309. TextSize = 6,
  1310. Parent = color.Value
  1311. })
  1312.  
  1313. color.alphabg = library:create("ImageLabel", {
  1314. ZIndex = 2,
  1315. Position = UDim2.new(0,5,1,-15),
  1316. Size = UDim2.new(1,-25,0,10),
  1317. BorderColor3 = library.colors.outline,
  1318. Image = "rbxassetid://3887014957",
  1319. ScaleType = Enum.ScaleType.Tile,
  1320. TileSize = UDim2.new(0,10,0,10),
  1321. Parent = color.container
  1322. })
  1323.  
  1324. color.Alpha = library:create("ImageLabel", {
  1325. ZIndex = 2,
  1326. Size = UDim2.new(1,0,1,0),
  1327. BackgroundTransparency = 1,
  1328. Image = "rbxassetid://3887017050",
  1329. ImageColor3 = color3,
  1330. Parent = color.alphabg
  1331. })
  1332.  
  1333. color.pointer3 = library:create("TextLabel", {
  1334. ZIndex = 2,
  1335. AnchorPoint = Vector2.new(0.5,0),
  1336. Position = UDim2.new(color.alpha,0,1,-10),
  1337. Size = UDim2.new(0,16,0,16),
  1338. BackgroundTransparency = 1,
  1339. Text = "▲",
  1340. TextColor3 = Color3.fromRGB(0,0,0),
  1341. TextStrokeTransparency = 0,
  1342. TextStrokeColor3 = Color3.fromRGB(130,130,130),
  1343. TextSize = 6,
  1344. Parent = color.Alpha
  1345. })
  1346.  
  1347. self.order = self.order + 1
  1348.  
  1349. color.button.InputBegan:connect(function(input)
  1350. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1351. focusOnOption(color.container)
  1352. closeWindow(color.container)
  1353. color.container.Visible = not color.container.Visible
  1354. if color.container.Visible then
  1355. cphue, cpsat, cpval = rgbToHsv(red,green,blue)
  1356. end
  1357. end
  1358. end)
  1359.  
  1360. color.container.InputBegan:connect(function(input)
  1361. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1362. focusOnOption(color.container)
  1363. end
  1364. end)
  1365.  
  1366. color.HueSat.InputBegan:connect(function(input)
  1367. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1368. cppicking = true
  1369. input.Changed:connect(function()
  1370. if input.UserInputState == Enum.UserInputState.End then
  1371. cppicking = false
  1372. end
  1373. end)
  1374. x, y, cphue, cpsat = updateHueSat(input, color.HueSat, cphue, cpsat)
  1375. color.pointer.Position = UDim2.new(x,0,y,0)
  1376. color.color = Color3.fromHSV(cphue,cpsat,cpval)
  1377. color.visualize.BackgroundColor3 = color.color
  1378. color.Alpha.ImageColor3 = color.color
  1379. cpt = color
  1380. cpf = _function
  1381. return _function(color.color)
  1382. end
  1383. end)
  1384.  
  1385. color.Value.InputBegan:connect(function(input)
  1386. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1387. cppickingVal = true
  1388. input.Changed:connect(function()
  1389. if input.UserInputState == Enum.UserInputState.End then
  1390. cppickingVal = false
  1391. end
  1392. end)
  1393. local y, cpval = updateValue(input, color.Value, cpval)
  1394. color.pointer2.Position = UDim2.new(1,-10,y,0)
  1395. color.color = Color3.fromHSV(cphue,cpsat,cpval)
  1396. color.visualize.BackgroundColor3 = color.color
  1397. color.Alpha.ImageColor3 = color.color
  1398. cpt = color
  1399. cpf = _function
  1400. return _function(color.color)
  1401. end
  1402. end)
  1403.  
  1404. color.Alpha.InputBegan:connect(function(input)
  1405. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1406. cppickingAlpha = true
  1407. input.Changed:connect(function()
  1408. if input.UserInputState == Enum.UserInputState.End then
  1409. cppickingAlpha = false
  1410. end
  1411. end)
  1412. local x, cpalpha = updateAlpha(input, color.Alpha, cpalpha)
  1413. color.pointer3.Position = UDim2.new(x,0,1,-10)
  1414. color.alpha = 1-cpalpha
  1415. cpt = color
  1416. cpf = _function
  1417. return _function(color.color, color.alpha)
  1418. end
  1419. end)
  1420.  
  1421. function color:SetColor(newColor)
  1422. color.color = newColor
  1423. local red, green, blue = newColor.r*255, newColor.g*255, newColor.b*255
  1424. local hue, sat, val = rgbToHsv(red,green,blue)
  1425. color.pointer.Position = UDim2.new(1-hue,0,1-sat,0)
  1426. color.pointer2.Position = UDim2.new(1,-10,1-val,0)
  1427. color.visualize.BackgroundColor3 = color.color
  1428. color.Alpha.ImageColor3 = color.color
  1429. _function(color.color)
  1430. end
  1431.  
  1432. function color:SetAlpha(newAlpha)
  1433. color.alpha = newAlpha
  1434. color.pointer3.Position = UDim2.new(color.alpha,0,1,-10)
  1435. color.visualize.BackgroundTransparency = color.alpha
  1436. _function(color.color, color.alpha)
  1437. end
  1438.  
  1439. LocalTab.main.Size = UDim2.new(1,0,0,self.layout.AbsoluteContentSize.Y+16)
  1440.  
  1441. return color
  1442. end
  1443.  
  1444. return LocalTab
  1445. end
  1446.  
  1447. return tab
  1448. end
  1449.  
  1450. return window
  1451. end
  1452.  
  1453. UserInputService.InputBegan:connect(function(input)
  1454. if input.KeyCode == library.settings.toggle then
  1455. library.pointer.Visible = not library.pointer.Visible
  1456. for _, window in next, library.windows do
  1457. if window.close == true then
  1458. window.main.Visible = not window.main.Visible
  1459. else
  1460. if not window.main.Visible then
  1461. window.main.Visible = true
  1462. end
  1463. end
  1464. end
  1465. if library.windows[1].main.Visible and library.settings.modal then
  1466. library.windows[1].main.Modal = library.windows[1].main.Visible
  1467. end
  1468. end
  1469. end)
  1470.  
  1471. UserInputService.InputChanged:connect(function(input)
  1472. if input.UserInputType == Enum.UserInputType.MouseMovement and library.pointer then
  1473. library.pointer.Position = UDim2.new(0,UserInputService:GetMouseLocation().X,0,UserInputService:GetMouseLocation().Y-36)
  1474. end
  1475. end)
  1476.  
  1477. --//tHe LitEraL sTaRt\\--
  1478. if game:GetService('CoreGui'):FindFirstChild('ScreenGui') then
  1479. game:GetService('CoreGui').ScreenGui:Destroy()
  1480. end
  1481.  
  1482. if PROTOSMASHER_LOADED and (not shared.repair) then
  1483. warn("Loading ProtoSmasher Fixes, Ty wally and Classy")--credits to wally
  1484. coroutine.wrap(function()
  1485. pcall(function()
  1486. loadstring(game:HttpGet("https://pastebin.com/raw/m8zyuQMv", true))()
  1487. end)
  1488. end)()
  1489. repeat wait() until shared.repair
  1490. end
  1491.  
  1492. local Services = setmetatable({},{__index = function(self,req) return game:GetService(req) end});
  1493.  
  1494. local Clients = Services.Players;
  1495. local Self = Services.Players.LocalPlayer;
  1496.  
  1497. local getgc = (getgc or get_gc_objects);
  1498. local getupvalues = (getupvalues or debug.getupvalues);
  1499. local setupvalue = (setupvalue or debug.setupvalue);
  1500. local getreg = (getreg or debug.getregistry);
  1501.  
  1502. local Windows = {}
  1503. local Spotted = {}
  1504.  
  1505. local V = Vector3.new()
  1506. local Client = {}
  1507.  
  1508. for i,v in next, getgc() do
  1509. if network and gamelogic and effects and char then
  1510. break
  1511. end
  1512.  
  1513. if type(v) == "function" then
  1514. for k,x in next, getupvalues(v) do
  1515. if type(x) == "table" then
  1516. for Func, Name in next, x do
  1517. if Func == "loadgrenade" and "loadgun" then
  1518. Client.char = x
  1519. elseif Func == "breakwindows" then
  1520. Client.effects = x
  1521. elseif Func == "add" then
  1522. Client.network = x
  1523. Client.Funcs = x
  1524. elseif Func == 'aim' then
  1525. Client.NetRecv = x
  1526. end
  1527. end
  1528. end
  1529. end
  1530. end
  1531. end
  1532.  
  1533. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  1534.  
  1535. local counter1 = 1
  1536. local openups = 1
  1537.  
  1538. local Char_Settings = {
  1539. FallDamage = false,
  1540. BreakWindows = false,
  1541. InfJump = false,
  1542. TimescaleMulti = false,
  1543. NoClip = false,
  1544. InstaSpot = false
  1545. }
  1546.  
  1547. local walktimescale = {
  1548. MaxSpeed = false,
  1549. regspeed = false
  1550. }
  1551.  
  1552. local Gun_Settings = {
  1553. NoRecoil = false,
  1554. NoFlash = false,
  1555. NoSway = false,
  1556. NoSpread = false,
  1557. InstaReload = false,
  1558. RapidFire = false,
  1559. FullAuto = false,
  1560. FireRate = false,
  1561. InstaAim = false,
  1562. BulletSet = false,
  1563. OneShot = false,
  1564. NoAnimation = false
  1565. }
  1566.  
  1567. --[[local melee_settings = {
  1568. NoDelay = false,
  1569. KnifeAnimation = false
  1570. }]]
  1571.  
  1572. local Render_Settings = {
  1573. SpotAll = false,
  1574. Esp = false
  1575. }
  1576.  
  1577. local in_progress = {
  1578. InfCreds = false,
  1579. InfFrags = false
  1580. }
  1581.  
  1582. local players = game:GetService('Players')
  1583. local local_player = players.LocalPlayer
  1584. local local_name = local_player.Name
  1585. local mouse = local_player:GetMouse()
  1586.  
  1587. local version = 'v.2.0.9.b'
  1588. local Updated = '9/6/19'
  1589. local DiscordLink = 'https://discord.gg/MyjGtee'
  1590.  
  1591. local P = game:GetService'Players'
  1592. local client = game:GetService'Players'.LocalPlayer
  1593.  
  1594. if Client then
  1595. local LoadGun = Client.char.loadgun
  1596. local LoadFrag = Client.char.loadgrenade
  1597. local LoadKnife = Client.char.loadknife
  1598.  
  1599. local Char = Client.char
  1600.  
  1601. local Network = Client.network
  1602.  
  1603. local Effects = Client.effects
  1604.  
  1605. local Send = Network.send
  1606.  
  1607. local SpotPlayer = Client.NetRecv.spotplayer
  1608.  
  1609. local function PlayerData()
  1610. for i, v in ipairs(game:GetService'Players':GetPlayers'') do
  1611. if v.TeamColor ~= client.TeamColor then
  1612. table.insert(Spotted, v);
  1613. end;
  1614. end;
  1615. return Spotted
  1616. end
  1617.  
  1618. function BreakWindex()--llol
  1619. for i,v in next, workspace:GetDescendants() do
  1620. if v.Name:lower() == "window" then
  1621. table.insert(Windows,v)
  1622. end
  1623. end
  1624. Effects:breakwindows(Windows)
  1625. end
  1626.  
  1627. do
  1628. if Render_Settings.SpotAll then
  1629. SpotPlayer(PlayerData())
  1630. end
  1631. end
  1632.  
  1633. do
  1634. Network.send = function(self, ...)
  1635. local Args = {...};
  1636. if #Args > 0 then
  1637. local Name = Args[1];
  1638. if Name == 'changehealthx' and Char_Settings.FallDamage then
  1639. if #Args > 4 and Args[5] == 'Falling' then
  1640. return
  1641. else
  1642. if args[1] == 'equip' then
  1643. openups = args[2]
  1644. end
  1645. end
  1646. end
  1647. return Send(self, ...)
  1648. end
  1649. end
  1650.  
  1651. --[[
  1652. [TO DO LIST]
  1653. {finished}
  1654. ]]
  1655. Char.loadgun = function(...)
  1656. local args = {...}
  1657. local data = args[2]
  1658. local data2 = args[1]
  1659.  
  1660. if Gun_Settings.NoRecoil then
  1661. data.camkickmin = V
  1662. data.camkickmax = V
  1663. data.aimcamkickmin = V
  1664. data.aimcamkickmax = V
  1665. data.aimtranskickmin = V
  1666. data.aimtranskickmax = V
  1667. data.transkickmin = V
  1668. data.transkickmax = V
  1669. data.rotkickmin = V
  1670. data.rotkickmax = V
  1671. data.aimrotkickmin = V
  1672. data.aimrotkickmax = V
  1673. end
  1674.  
  1675. if Gun_Settings.NoFlash then
  1676. data.hideflash = true
  1677. data.hideminimap = true
  1678. end
  1679.  
  1680. if Gun_Settings.NoSway then
  1681. data.swayamp = 0
  1682. data.swayspeed = 0
  1683. data.steadyspeed = 0
  1684. data.breathspeed = 0
  1685. end
  1686.  
  1687. if Gun_Settings.NoSpread then
  1688. data.hipfirespreadrecover = 100
  1689. data.hipfirespread = 0
  1690. data.hipfirestability = 0
  1691. end
  1692.  
  1693. if Gun_Settings.RapidFire then
  1694. data.firerate = 1500
  1695. data.variablefirerate = false
  1696. data.firemodes = {true, 3, 1}
  1697. data.requirechamber = false
  1698. end
  1699.  
  1700. if Gun_Settings.FullAuto then
  1701. data.variablefirerate = false
  1702. data.firemodes = {true, 3, 1}
  1703. data.requirechamber = false
  1704. end
  1705.  
  1706. if Gun_Settings.InstaAim then
  1707. data.aimspeed = 100
  1708. data.magnifyspeed = 100
  1709. end
  1710.  
  1711. if Gun_Settings.OneShot then
  1712. data.damage0 = 99999;
  1713. data.damage1 = 99999;
  1714. end
  1715.  
  1716. if Gun_Settings.BulletSet then
  1717. data.bulletspeed = 999;
  1718. end
  1719.  
  1720. --[[if Gun_Settings.FireRate then
  1721. data.firerate = Value
  1722. data.variablefirerate = false
  1723. data.firemodes = {true}
  1724. data.requirechamber = false
  1725. end]]
  1726.  
  1727. if walktimescale.MaxSpeed then
  1728. data.walkspeed = 30
  1729. end
  1730.  
  1731. if walktimescale.regspeed then
  1732. data.walkspeed = 22
  1733. end
  1734.  
  1735. if Gun_Settings.InstaReload then
  1736. for i, v in next, data.animations do
  1737. if string.find(string.lower(i), "reload") then
  1738. data.animations[i].timescale = 0.0
  1739. end
  1740. end
  1741. end
  1742.  
  1743. if Gun_Settings.NoAnimation then
  1744. for i, v in next, data.animations do
  1745. if string.find(string.lower(i), "pullbolt") then
  1746. data.animations[i].timescale = 0.0
  1747. elseif string.find(string.lower(i), "tacticalreload") then
  1748. data.animations[i].timescale = 0.0
  1749. elseif string.find(string.lower(i), "onfire") then
  1750. data.animations[i].timescale = 0.0
  1751. elseif string.find(string.lower(i), "inspect") then
  1752. data.animations[i].timescale = 0.0
  1753. elseif string.find(string.lower(i), "spot") then
  1754. data.animations[i].timescale = 0.0
  1755. elseif string.find(string.lower(i), "parkour") then
  1756. data.animations[i].timescale = 0.0
  1757. end
  1758. end
  1759. end
  1760.  
  1761. if Gun_Settings.RapidFire then
  1762. data.firerate = 2000
  1763. data.variablefirerate = false
  1764. data.firemodes = {true}
  1765. data.requirechamber = false
  1766. end
  1767.  
  1768. args[2] = data
  1769. return LoadGun(unpack(args))
  1770. end
  1771.  
  1772. --[[do
  1773. Char.loadknife = function(...)
  1774. local args = {...}
  1775. local data = args[2]
  1776.  
  1777. if melee_settings.NoDelay then
  1778. data.hitdelay.stab2 = V;
  1779. data.hitdelay.stab1 = V;
  1780.  
  1781. for k, x in next, data.animations do
  1782. if string.find(string.lower(x), "stab1") then
  1783. data.animations[x].timescale = 0.0
  1784. if string.find(string.lower(x), "stab2") then
  1785. data.animations[x].timescale = 0.0
  1786. end
  1787. end
  1788. end
  1789. end
  1790. end
  1791. args[2] = data
  1792. return LoadKnife(unpack(args))
  1793. end]]
  1794.  
  1795. local window = library:CreateWindow'Spooky Phantom Ware 2.1.1 Beta'
  1796. library.settings.footer = 'Programmed by ThisW0ntGetBanned'
  1797.  
  1798. local ScreenGui = game:GetService'CoreGui'.ScreenGui
  1799. local TxT = ScreenGui.TextButton.TextLabel
  1800.  
  1801. local tab = window:CreateTab("Main Cheats")
  1802.  
  1803. window.footer.BorderColor3 = Color3.fromRGB(70,70,70)
  1804. window.main.BorderColor3 = Color3.fromRGB(70,70,70)
  1805.  
  1806. library.colors.outline = Color3.fromRGB(70,70,70)
  1807. library.colors.tabselected = Color3.fromRGB(24, 24, 24)
  1808.  
  1809. tab.main.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1810. tab.main.BorderSizePixel = 1
  1811. tab.main.BorderColor3 = Color3.fromRGB(70,70,70)
  1812.  
  1813. window.tabholder.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1814. window.tabholder.BorderColor3 = Color3.fromRGB(70,70,70)
  1815.  
  1816. tab.button.BorderColor3 = Color3.fromRGB(70,70,70)
  1817.  
  1818. --//Tab Selection\\--
  1819. local RenderCheats = tab:AddLocalTab("Rendering/Visual Cheats")
  1820. local CharCheats = tab:AddLocalTab("Character Cheats")
  1821. local WeaponCheats = tab:AddLocalTab("Weapon Modifications")
  1822. local WeaponCheats2 = tab:AddLocalTab("Extra Weapon Modifications")
  1823. local ServerCheats = tab:AddLocalTab("Server Cheats")
  1824. --local MeleeCheats = tab:AddLocalTab("Melee Modifications")
  1825.  
  1826. --//Render Section\\--
  1827. RenderCheats:AddToggle("Chams", function(state) if state then
  1828. for _,p in pairs(game:GetChildren()) do
  1829. if p.ClassName == ("Players") then
  1830. plrs = p
  1831. end
  1832. end
  1833. wait(0.1)
  1834. for _, v in pairs(plrs:GetChildren()) do
  1835. if v.TeamColor ~= plrs.LocalPlayer.TeamColor then
  1836. i = Instance.new("BillboardGui",v.Character.Head)
  1837. i.Active = true
  1838. i.AlwaysOnTop = true
  1839. i.Size = UDim2.new(1,0,1,0)
  1840. h = Instance.new("Frame",i)
  1841. h.Size = UDim2.new(2,0,1,0)
  1842. h.AnchorPoint = Vector2.new(0.25, 0)
  1843. h.BackgroundColor3 = Color3.new(1,0,0)
  1844. h.BorderSizePixel = 0
  1845. h.BackgroundTransparency = 0.4
  1846.  
  1847. i2 = Instance.new("BillboardGui",v.Character.Torso)
  1848. i2.Active = true
  1849. i2.AlwaysOnTop = true
  1850. i2.Size = UDim2.new(2,0,2,0)
  1851. t = Instance.new("Frame",i2)
  1852. t.Size = UDim2.new(1,0,1,0)
  1853. t.AnchorPoint = Vector2.new(0, 0)
  1854. t.BackgroundColor3 = Color3.new(0,1,0)
  1855. t.BorderSizePixel = 0
  1856. t.BackgroundTransparency = 0.4
  1857.  
  1858. i3 = Instance.new("BillboardGui",v.Character["Left Arm"])
  1859. i3.Active = true
  1860. i3.AlwaysOnTop = true
  1861. i3.Size = UDim2.new(1,0,2,0)
  1862. la = Instance.new("Frame",i3)
  1863. la.Size = UDim2.new(1,0,1,0)
  1864. la.AnchorPoint = Vector2.new(0, 0)
  1865. la.BackgroundColor3 = Color3.new(0,0,1)
  1866. la.BorderSizePixel = 0
  1867. la.BackgroundTransparency = 0.4
  1868.  
  1869. i4 = Instance.new("BillboardGui",v.Character["Right Arm"])
  1870. i4.Active = true
  1871. i4.AlwaysOnTop = true
  1872. i4.Size = UDim2.new(1,0,2,0)
  1873. ra = Instance.new("Frame",i4)
  1874. ra.Size = UDim2.new(1,0,1,0)
  1875. ra.AnchorPoint = Vector2.new(0, 0)
  1876. ra.BackgroundColor3 = Color3.new(0,0,1)
  1877. ra.BorderSizePixel = 0
  1878. ra.BackgroundTransparency = 0.4
  1879.  
  1880. i5 = Instance.new("BillboardGui",v.Character["Left Leg"])
  1881. i5.Active = true
  1882. i5.AlwaysOnTop = true
  1883. i5.Size = UDim2.new(1,0,2,0)
  1884. ll = Instance.new("Frame",i5)
  1885. ll.Size = UDim2.new(1,0,1,0)
  1886. ll.AnchorPoint = Vector2.new(0, 0)
  1887. ll.BackgroundColor3 = Color3.new(0,0,1)
  1888. ll.BorderSizePixel = 0
  1889. ll.BackgroundTransparency = 0.4
  1890.  
  1891. i6 = Instance.new("BillboardGui",v.Character["Right Leg"])
  1892. i6.Active = true
  1893. i6.AlwaysOnTop = true
  1894. i6.Size = UDim2.new(1,0,2,0)
  1895. rl = Instance.new("Frame",i6)
  1896. rl.Size = UDim2.new(1,0,1,0)
  1897. rl.AnchorPoint = Vector2.new(0, 0)
  1898. rl.BackgroundColor3 = Color3.new(0,0,1)
  1899. rl.BorderSizePixel = 0
  1900. rl.BackgroundTransparency = 0.4
  1901. end
  1902. end
  1903. else
  1904. for k, x in next, workspace:GetChildren() do
  1905. for i, v in next, x:GetChildren() do
  1906. for a, b in next, v:GetChildren() do
  1907. if b.ClassName == 'BillboardGui' then
  1908. b:Destroy()
  1909. end
  1910. end
  1911. end
  1912. end
  1913. end
  1914. end)
  1915.  
  1916. RenderCheats:AddToggle("Distance & Name", function(state) if state then
  1917. local function AddEsp(Players, ...)
  1918. local CharacterEsp = Instance.new('BillboardGui', Players.Character.Head)
  1919. CharacterEsp.Adornee = Players.Character.Head;
  1920. CharacterEsp.AlwaysOnTop = true
  1921. CharacterEsp.Enabled = true
  1922. CharacterEsp.Active = false
  1923. CharacterEsp.Size = UDim2.new(0, 25, 0, 12.5)
  1924.  
  1925. local CharDistance = Instance.new('TextLabel', CharacterEsp)
  1926. CharDistance.Size = UDim2.new(0, 25, 0, 12.5)
  1927. CharDistance.BackgroundColor3 = Color3.new(0, 255, 0)
  1928. CharDistance.TextColor3 = Color3.new(0,255,0)
  1929. CharDistance.BackgroundTransparency = 1
  1930. CharDistance.TextScaled = false
  1931.  
  1932. spawn(function()
  1933. while true do
  1934. for i = 1, 30 do
  1935. wait(0.1)
  1936. CharDistance.Text = math.floor((Self.Character.Head.Position - Players.Character.Head.Position).magnitude).." "..Players.Name;
  1937. end;
  1938. wait(0.1)
  1939. end
  1940. end)
  1941. end
  1942.  
  1943. for k, x in next, Services.Players:GetChildren() do
  1944. if x.TeamColor ~= Self.TeamColor then
  1945. AddEsp(x)
  1946. end
  1947. end
  1948. else
  1949. for k, x in next, workspace:GetChildren() do
  1950. for i, v in next, x:GetChildren() do
  1951. for a, b in next, v:GetChildren() do
  1952. if b.ClassName == 'BillboardGui' then
  1953. b:Destroy()
  1954. end
  1955. end
  1956. end
  1957. end
  1958. end
  1959. end)
  1960.  
  1961. --//Char Section\\--
  1962. --[[CharCheats:AddToggle("No Clip", function(state) if state then
  1963. Stepped = game:GetService("RunService").Stepped:Connect(function()
  1964. for a, b in next, workspace:GetChildren() do
  1965. if b.Name == client.Name then
  1966. for k, x in next, workspace[client.Name]:GetChildren() do
  1967. if x:IsA'BasePart' then
  1968. x.CanCollide = false
  1969. end
  1970. end
  1971. end
  1972. end
  1973. end)
  1974. else
  1975. Stepped:Disconnect()
  1976. end
  1977. end)]]
  1978.  
  1979. CharCheats:AddToggle("No Fall Damage", function(state)
  1980. Char_Settings.FallDamage = not Char_Settings.FallDamage
  1981. if Char_Settings.FallDamage then
  1982. else
  1983. end
  1984. end)
  1985.  
  1986. CharCheats:AddSlider("Walk Speed[Buggy]", 30, 0, function(Value)
  1987. Char.loadgun = function(...)
  1988. local args = {...}
  1989. local data = args[2]
  1990. local data2 = args[1]
  1991.  
  1992. data.walkspeed = Value
  1993.  
  1994. args[2] = data
  1995. return LoadGun(unpack(args))
  1996. end
  1997. end)
  1998.  
  1999. --//Wep Modification Section\\--
  2000. WeaponCheats:AddToggle("No Recoil", function(state)
  2001. Gun_Settings.NoRecoil = not Gun_Settings.NoRecoil
  2002. if Gun_Settings.NoRecoil then
  2003. else
  2004. end
  2005. end)
  2006.  
  2007. WeaponCheats:AddToggle("No Sway", function(state)
  2008. Gun_Settings.NoSway = not Gun_Settings.NoSway
  2009. if Gun_Settings.NoSway then
  2010. else
  2011. end
  2012. end)
  2013.  
  2014. WeaponCheats:AddToggle("No Flash", function(state)
  2015. Gun_Settings.NoFlash = not Gun_Settings.NoFlash
  2016. if Gun_Settings.NoFlash then
  2017. else
  2018. end
  2019. end)
  2020.  
  2021. WeaponCheats:AddToggle("No Spread", function(state)
  2022. Gun_Settings.NoSpread = not Gun_Settings.NoSpread
  2023. if Gun_Settings.NoSpread then
  2024. else
  2025. end
  2026. end)
  2027.  
  2028. WeaponCheats:AddToggle("Full Auto", function(state)
  2029. Gun_Settings.FullAuto = not Gun_Settings.FullAuto
  2030. if Gun_Settings.FullAuto then
  2031. else
  2032. end
  2033. end)
  2034.  
  2035. WeaponCheats:AddToggle("Rapid Fire", function(state)
  2036. Gun_Settings.RapidFire = not Gun_Settings.RapidFire
  2037. if Gun_Settings.RapidFire then
  2038. else
  2039. end
  2040. end)
  2041. --//Server Section\\--
  2042. ServerCheats:AddButton("Break Windows", function()
  2043. Char_Settings.BreakWindows = not Char_Settings.BreakWindows
  2044. if Char_Settings.BreakWindows then
  2045. BreakWindex()
  2046. end
  2047. end)
  2048.  
  2049. ServerCheats:AddButton("0.7 Transparency - Map", function()
  2050. for k, x in next, workspace:GetDescendants() do
  2051. if x.ClassName == 'Part' and 'UnionOperation' then
  2052. x.Transparency = 0.7
  2053. end
  2054. end
  2055. end)
  2056.  
  2057. ServerCheats:AddButton("0 Transparency(Regular) - Map", function()
  2058. for k, x in next, workspace:GetDescendants() do
  2059. if x.ClassName == 'Part' and 'UnionOperation' then
  2060. x.Transparency = 0
  2061. end
  2062. end
  2063. end)
  2064.  
  2065. ServerCheats:AddButton("Unlock All - Weapons", function()
  2066. loadstring(game:HttpGet('https://pastebin.com/raw/YxDdQaUR', true))()
  2067. end)
  2068. --//Weapon Section 2\\--
  2069.  
  2070. WeaponCheats2:AddToggle("Instant Reload", function(state)
  2071. Gun_Settings.InstaReload = not Gun_Settings.InstaReload
  2072. if Gun_Settings.InstaReload then
  2073. else
  2074. end
  2075. end)
  2076.  
  2077. WeaponCheats2:AddToggle("Insta Aim", function(state)
  2078. Gun_Settings.InstaAim = not Gun_Settings.InstaAim
  2079. if Gun_Settings.InstaAim then
  2080. else
  2081. end
  2082. end)
  2083.  
  2084. WeaponCheats2:AddToggle("No Animation", function(state)
  2085. Gun_Settings.NoAnimation = not Gun_Settings.NoAnimation
  2086. if Gun_Settings.NoAnimation then
  2087. else
  2088. end
  2089. end)
  2090.  
  2091. WeaponCheats2:AddToggle("Bullet Speed", function(state)
  2092. Gun_Settings.BulletSet = not Gun_Settings.BulletSet
  2093. if Gun_Settings.BulletSet then
  2094. else
  2095. end
  2096. end)
  2097.  
  2098.  
  2099. --//Melee Section\\--
  2100. --[[MeleeCheats:AddToggle("No Delay", function(state) if state then
  2101. melee_settings.NoDelay = not melee_settings.NoDelay
  2102. if melee_settings.NoDelay then
  2103. end
  2104. else
  2105. end
  2106. end)
  2107.  
  2108. MeleeCheats:AddToggle("No Animation", function(state) if state then
  2109. melee_settings.NoDelay = not melee_settings.NoDelay
  2110. if melee_settings.NoDelay then
  2111. end
  2112. else
  2113. end
  2114. end)]]
  2115.  
  2116.  
  2117. game:GetService("UserInputService").InputBegan:Connect(function(key,ischat)
  2118. if ischat then return end
  2119. if key.KeyCode == Enum.KeyCode.P then
  2120. ScreenGui.Enabled = not ScreenGui.Enabled
  2121. end
  2122. end)
  2123.  
  2124. while wait() do
  2125. TxT.TextColor3 = Color3.fromHSV(zigzag(counter1),1,1)
  2126. counter1 = counter1 + 0.01
  2127. end
  2128.  
  2129. window.close = false
  2130. end
  2131. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement