Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 65.67 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 function PlayerData()
  1608. for i, v in ipairs(game:GetService'Players':GetPlayers'') do
  1609. if v.TeamColor ~= client.TeamColor then
  1610. table.insert(Spotted, v);
  1611. end;
  1612. end;
  1613. return Spotted
  1614. end
  1615.  
  1616. function BreakWindex()--llol
  1617. for i,v in next, workspace:GetDescendants() do
  1618. if v.Name:lower() == "window" then
  1619. table.insert(Windows,v)
  1620. end
  1621. end
  1622. Effects:breakwindows(Windows)
  1623. end
  1624.  
  1625. do
  1626. Network.send = function(self, ...)
  1627. local Args = {...};
  1628. if #Args > 0 then
  1629. local Name = Args[1];
  1630. if Name == 'changehealthx' and Char_Settings.FallDamage then
  1631. if #Args > 4 and Args[5] == 'Falling' then
  1632. return
  1633. else
  1634. if args[1] == 'equip' then
  1635. openups = args[2]
  1636. end
  1637. end
  1638. end
  1639. return Send(self, ...)
  1640. end
  1641. end
  1642.  
  1643. --[[
  1644. [TO DO LIST]
  1645. {finished}
  1646. ]]
  1647. Char.loadgun = function(...)
  1648. local args = {...}
  1649. local data = args[2]
  1650. local data2 = args[1]
  1651.  
  1652. if Gun_Settings.NoRecoil then
  1653. data.camkickmin = V
  1654. data.camkickmax = V
  1655. data.aimcamkickmin = V
  1656. data.aimcamkickmax = V
  1657. data.aimtranskickmin = V
  1658. data.aimtranskickmax = V
  1659. data.transkickmin = V
  1660. data.transkickmax = V
  1661. data.rotkickmin = V
  1662. data.rotkickmax = V
  1663. data.aimrotkickmin = V
  1664. data.aimrotkickmax = V
  1665. end
  1666.  
  1667. if Gun_Settings.NoFlash then
  1668. data.hideflash = true
  1669. data.hideminimap = true
  1670. end
  1671.  
  1672. if Gun_Settings.NoSway then
  1673. data.swayamp = 0
  1674. data.swayspeed = 0
  1675. data.steadyspeed = 0
  1676. data.breathspeed = 0
  1677. end
  1678.  
  1679. if Gun_Settings.NoSpread then
  1680. data.hipfirespreadrecover = 100
  1681. data.hipfirespread = 0
  1682. data.hipfirestability = 0
  1683. end
  1684.  
  1685. if Gun_Settings.RapidFire then
  1686. data.firerate = 1500
  1687. data.variablefirerate = false
  1688. data.firemodes = {true, 3, 1}
  1689. data.requirechamber = false
  1690. end
  1691.  
  1692. if Gun_Settings.FullAuto then
  1693. data.variablefirerate = false
  1694. data.firemodes = {true, 3, 1}
  1695. data.requirechamber = false
  1696. end
  1697.  
  1698. if Gun_Settings.InstaAim then
  1699. data.aimspeed = 100
  1700. data.magnifyspeed = 100
  1701. end
  1702.  
  1703. if Gun_Settings.OneShot then
  1704. data.damage0 = 99999;
  1705. data.damage1 = 99999;
  1706. end
  1707.  
  1708. if Gun_Settings.BulletSet then
  1709. data.bulletspeed = 999;
  1710. end
  1711.  
  1712. --[[if Gun_Settings.FireRate then
  1713. data.firerate = Value
  1714. data.variablefirerate = false
  1715. data.firemodes = {true}
  1716. data.requirechamber = false
  1717. end]]
  1718.  
  1719. if walktimescale.MaxSpeed then
  1720. data.walkspeed = 30
  1721. end
  1722.  
  1723. if walktimescale.regspeed then
  1724. data.walkspeed = 22
  1725. end
  1726.  
  1727. if Gun_Settings.InstaReload then
  1728. for i, v in next, data.animations do
  1729. if string.find(string.lower(i), "reload") then
  1730. data.animations[i].timescale = 0.0
  1731. end
  1732. end
  1733. end
  1734.  
  1735. if Gun_Settings.NoAnimation then
  1736. for i, v in next, data.animations do
  1737. if string.find(string.lower(i), "pullbolt") then
  1738. data.animations[i].timescale = 0.0
  1739. elseif string.find(string.lower(i), "tacticalreload") then
  1740. data.animations[i].timescale = 0.0
  1741. elseif string.find(string.lower(i), "onfire") then
  1742. data.animations[i].timescale = 0.0
  1743. elseif string.find(string.lower(i), "inspect") then
  1744. data.animations[i].timescale = 0.0
  1745. elseif string.find(string.lower(i), "spot") then
  1746. data.animations[i].timescale = 0.0
  1747. elseif string.find(string.lower(i), "parkour") then
  1748. data.animations[i].timescale = 0.0
  1749. end
  1750. end
  1751. end
  1752.  
  1753. if Gun_Settings.RapidFire then
  1754. data.firerate = 2000
  1755. data.variablefirerate = false
  1756. data.firemodes = {true}
  1757. data.requirechamber = false
  1758. end
  1759.  
  1760. args[2] = data
  1761. return LoadGun(unpack(args))
  1762. end
  1763.  
  1764. --[[do
  1765. Char.loadknife = function(...)
  1766. local args = {...}
  1767. local data = args[2]
  1768.  
  1769. if melee_settings.NoDelay then
  1770. data.hitdelay.stab2 = V;
  1771. data.hitdelay.stab1 = V;
  1772.  
  1773. for k, x in next, data.animations do
  1774. if string.find(string.lower(x), "stab1") then
  1775. data.animations[x].timescale = 0.0
  1776. if string.find(string.lower(x), "stab2") then
  1777. data.animations[x].timescale = 0.0
  1778. end
  1779. end
  1780. end
  1781. end
  1782. end
  1783. args[2] = data
  1784. return LoadKnife(unpack(args))
  1785. end]]
  1786.  
  1787. local window = library:CreateWindow'Spooky Phantom Ware 2.1.1 Beta'
  1788. library.settings.footer = 'Programmed by ThisW0ntGetBanned'
  1789.  
  1790. local ScreenGui = game:GetService'CoreGui'.ScreenGui
  1791. local TxT = ScreenGui.TextButton.TextLabel
  1792.  
  1793. local tab = window:CreateTab("Main Cheats")
  1794.  
  1795. window.footer.BorderColor3 = Color3.fromRGB(70,70,70)
  1796. window.main.BorderColor3 = Color3.fromRGB(70,70,70)
  1797.  
  1798. library.colors.outline = Color3.fromRGB(70,70,70)
  1799. library.colors.tabselected = Color3.fromRGB(24, 24, 24)
  1800.  
  1801. tab.main.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1802. tab.main.BorderSizePixel = 1
  1803. tab.main.BorderColor3 = Color3.fromRGB(70,70,70)
  1804.  
  1805. window.tabholder.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1806. window.tabholder.BorderColor3 = Color3.fromRGB(70,70,70)
  1807.  
  1808. tab.button.BorderColor3 = Color3.fromRGB(70,70,70)
  1809.  
  1810. --//Tab Selection\\--
  1811. local RenderCheats = tab:AddLocalTab("Rendering/Visual Cheats")
  1812. local CharCheats = tab:AddLocalTab("Character Cheats")
  1813. local WeaponCheats = tab:AddLocalTab("Weapon Modifications")
  1814. local WeaponCheats2 = tab:AddLocalTab("Extra Weapon Modifications")
  1815. local ServerCheats = tab:AddLocalTab("Server Cheats")
  1816. --local MeleeCheats = tab:AddLocalTab("Melee Modifications")
  1817.  
  1818. --//Render Section\\--
  1819. RenderCheats:AddToggle("Chams", function(state) if state then
  1820. for _,p in pairs(game:GetChildren()) do
  1821. if p.ClassName == ("Players") then
  1822. plrs = p
  1823. end
  1824. end
  1825. wait(0.1)
  1826. for _, v in pairs(plrs:GetChildren()) do
  1827. if v.TeamColor ~= plrs.LocalPlayer.TeamColor then
  1828. pcall(function() i = Instance.new("BillboardGui",v.Character.Head)
  1829. i.Active = true
  1830. i.AlwaysOnTop = true
  1831. i.Size = UDim2.new(1,0,1,0)
  1832. h = Instance.new("Frame",i)
  1833. h.Size = UDim2.new(2,0,1,0)
  1834. h.AnchorPoint = Vector2.new(0.25, 0)
  1835. h.BackgroundColor3 = Color3.new(1,0,0)
  1836. h.BorderSizePixel = 0
  1837. h.BackgroundTransparency = 0.4
  1838.  
  1839. i2 = Instance.new("BillboardGui",v.Character.Torso)
  1840. i2.Active = true
  1841. i2.AlwaysOnTop = true
  1842. i2.Size = UDim2.new(2,0,2,0)
  1843. t = Instance.new("Frame",i2)
  1844. t.Size = UDim2.new(1,0,1,0)
  1845. t.AnchorPoint = Vector2.new(0, 0)
  1846. t.BackgroundColor3 = Color3.new(0,1,0)
  1847. t.BorderSizePixel = 0
  1848. t.BackgroundTransparency = 0.4
  1849.  
  1850. i3 = Instance.new("BillboardGui",v.Character["Left Arm"])
  1851. i3.Active = true
  1852. i3.AlwaysOnTop = true
  1853. i3.Size = UDim2.new(1,0,2,0)
  1854. la = Instance.new("Frame",i3)
  1855. la.Size = UDim2.new(1,0,1,0)
  1856. la.AnchorPoint = Vector2.new(0, 0)
  1857. la.BackgroundColor3 = Color3.new(0,0,1)
  1858. la.BorderSizePixel = 0
  1859. la.BackgroundTransparency = 0.4
  1860.  
  1861. i4 = Instance.new("BillboardGui",v.Character["Right Arm"])
  1862. i4.Active = true
  1863. i4.AlwaysOnTop = true
  1864. i4.Size = UDim2.new(1,0,2,0)
  1865. ra = Instance.new("Frame",i4)
  1866. ra.Size = UDim2.new(1,0,1,0)
  1867. ra.AnchorPoint = Vector2.new(0, 0)
  1868. ra.BackgroundColor3 = Color3.new(0,0,1)
  1869. ra.BorderSizePixel = 0
  1870. ra.BackgroundTransparency = 0.4
  1871.  
  1872. i5 = Instance.new("BillboardGui",v.Character["Left Leg"])
  1873. i5.Active = true
  1874. i5.AlwaysOnTop = true
  1875. i5.Size = UDim2.new(1,0,2,0)
  1876. ll = Instance.new("Frame",i5)
  1877. ll.Size = UDim2.new(1,0,1,0)
  1878. ll.AnchorPoint = Vector2.new(0, 0)
  1879. ll.BackgroundColor3 = Color3.new(0,0,1)
  1880. ll.BorderSizePixel = 0
  1881. ll.BackgroundTransparency = 0.4
  1882.  
  1883. i6 = Instance.new("BillboardGui",v.Character["Right Leg"])
  1884. i6.Active = true
  1885. i6.AlwaysOnTop = true
  1886. i6.Size = UDim2.new(1,0,2,0)
  1887. rl = Instance.new("Frame",i6)
  1888. rl.Size = UDim2.new(1,0,1,0)
  1889. rl.AnchorPoint = Vector2.new(0, 0)
  1890. rl.BackgroundColor3 = Color3.new(0,0,1)
  1891. rl.BorderSizePixel = 0
  1892. rl.BackgroundTransparency = 0.4 end)
  1893. end
  1894. end
  1895. else
  1896. for k, x in next, workspace:GetChildren() do
  1897. for i, v in next, x:GetChildren() do
  1898. for a, b in next, v:GetChildren() do
  1899. if b.ClassName == 'BillboardGui' then
  1900. b:Destroy()
  1901. end
  1902. end
  1903. end
  1904. end
  1905. end
  1906. end)
  1907.  
  1908. RenderCheats:AddToggle("Distance & Name", function(state) if state then
  1909. local function AddEsp(Players, ...)
  1910. local CharacterEsp = Instance.new('BillboardGui', Players.Character.Head)
  1911. CharacterEsp.Adornee = Players.Character.Head;
  1912. CharacterEsp.AlwaysOnTop = true
  1913. CharacterEsp.Enabled = true
  1914. CharacterEsp.Active = false
  1915. CharacterEsp.Size = UDim2.new(0, 25, 0, 12.5)
  1916.  
  1917. local CharDistance = Instance.new('TextLabel', CharacterEsp)
  1918. CharDistance.Size = UDim2.new(0, 25, 0, 12.5)
  1919. CharDistance.BackgroundColor3 = Color3.new(0, 255, 0)
  1920. CharDistance.TextColor3 = Color3.new(0,255,0)
  1921. CharDistance.BackgroundTransparency = 1
  1922. CharDistance.TextScaled = false
  1923.  
  1924. spawn(function()
  1925. while true do
  1926. for i = 1, 30 do
  1927. wait(0.1)
  1928. CharDistance.Text = math.floor((Self.Character.Head.Position - Players.Character.Head.Position).magnitude).." "..Players.Name;
  1929. end;
  1930. wait(0.1)
  1931. end
  1932. end)
  1933. end
  1934.  
  1935. for k, x in next, Services.Players:GetChildren() do
  1936. if x.TeamColor ~= Self.TeamColor then
  1937. AddEsp(x)
  1938. end
  1939. end
  1940. else
  1941. for k, x in next, workspace:GetChildren() do
  1942. for i, v in next, x:GetChildren() do
  1943. for a, b in next, v:GetChildren() do
  1944. if b.ClassName == 'BillboardGui' then
  1945. b:Destroy()
  1946. end
  1947. end
  1948. end
  1949. end
  1950. end
  1951. end)
  1952.  
  1953. --//Char Section\\--
  1954. --[[CharCheats:AddToggle("No Clip", function(state) if state then
  1955. Stepped = game:GetService("RunService").Stepped:Connect(function()
  1956. for a, b in next, workspace:GetChildren() do
  1957. if b.Name == client.Name then
  1958. for k, x in next, workspace[client.Name]:GetChildren() do
  1959. if x:IsA'BasePart' then
  1960. x.CanCollide = false
  1961. end
  1962. end
  1963. end
  1964. end
  1965. end)
  1966. else
  1967. Stepped:Disconnect()
  1968. end
  1969. end)]]
  1970.  
  1971. CharCheats:AddToggle("No Fall Damage", function(state)
  1972. Char_Settings.FallDamage = not Char_Settings.FallDamage
  1973. if Char_Settings.FallDamage then
  1974. else
  1975. end
  1976. end)
  1977.  
  1978. CharCheats:AddSlider("Walk Speed[Buggy]", 30, 0, function(Value)
  1979. Char.loadgun = function(...)
  1980. local args = {...}
  1981. local data = args[2]
  1982. local data2 = args[1]
  1983.  
  1984. data.walkspeed = Value
  1985.  
  1986. args[2] = data
  1987. return LoadGun(unpack(args))
  1988. end
  1989. end)
  1990.  
  1991. --//Wep Modification Section\\--
  1992. WeaponCheats:AddToggle("No Recoil", function(state)
  1993. Gun_Settings.NoRecoil = not Gun_Settings.NoRecoil
  1994. if Gun_Settings.NoRecoil then
  1995. else
  1996. end
  1997. end)
  1998.  
  1999. WeaponCheats:AddToggle("No Sway", function(state)
  2000. Gun_Settings.NoSway = not Gun_Settings.NoSway
  2001. if Gun_Settings.NoSway then
  2002. else
  2003. end
  2004. end)
  2005.  
  2006. WeaponCheats:AddToggle("No Flash", function(state)
  2007. Gun_Settings.NoFlash = not Gun_Settings.NoFlash
  2008. if Gun_Settings.NoFlash then
  2009. else
  2010. end
  2011. end)
  2012.  
  2013. WeaponCheats:AddToggle("No Spread", function(state)
  2014. Gun_Settings.NoSpread = not Gun_Settings.NoSpread
  2015. if Gun_Settings.NoSpread then
  2016. else
  2017. end
  2018. end)
  2019.  
  2020. WeaponCheats:AddToggle("Full Auto", function(state)
  2021. Gun_Settings.FullAuto = not Gun_Settings.FullAuto
  2022. if Gun_Settings.FullAuto then
  2023. else
  2024. end
  2025. end)
  2026.  
  2027. WeaponCheats:AddToggle("Rapid Fire", function(state)
  2028. Gun_Settings.RapidFire = not Gun_Settings.RapidFire
  2029. if Gun_Settings.RapidFire then
  2030. else
  2031. end
  2032. end)
  2033. --//Server Section\\--
  2034. ServerCheats:AddButton("Break Windows", function()
  2035. Char_Settings.BreakWindows = not Char_Settings.BreakWindows
  2036. if Char_Settings.BreakWindows then
  2037. BreakWindex()
  2038. end
  2039. end)
  2040.  
  2041. ServerCheats:AddButton("0.7 Transparency - Map", function()
  2042. for k, x in next, workspace:GetDescendants() do
  2043. if x.ClassName == 'Part' and 'UnionOperation' then
  2044. x.Transparency = 0.7
  2045. end
  2046. end
  2047. end)
  2048.  
  2049. ServerCheats:AddButton("0 Transparency(Regular) - Map", function()
  2050. for k, x in next, workspace:GetDescendants() do
  2051. if x.ClassName == 'Part' and 'UnionOperation' then
  2052. x.Transparency = 0
  2053. end
  2054. end
  2055. end)
  2056.  
  2057. ServerCheats:AddButton("Unlock All - Weapons", function()
  2058. loadstring(game:HttpGet('https://pastebin.com/raw/YxDdQaUR', true))()
  2059. end)
  2060. --//Weapon Section 2\\--
  2061.  
  2062. WeaponCheats2:AddToggle("Instant Reload", function(state)
  2063. Gun_Settings.InstaReload = not Gun_Settings.InstaReload
  2064. if Gun_Settings.InstaReload then
  2065. else
  2066. end
  2067. end)
  2068.  
  2069. WeaponCheats2:AddToggle("Insta Aim", function(state)
  2070. Gun_Settings.InstaAim = not Gun_Settings.InstaAim
  2071. if Gun_Settings.InstaAim then
  2072. else
  2073. end
  2074. end)
  2075.  
  2076. WeaponCheats2:AddToggle("No Animation", function(state)
  2077. Gun_Settings.NoAnimation = not Gun_Settings.NoAnimation
  2078. if Gun_Settings.NoAnimation then
  2079. else
  2080. end
  2081. end)
  2082.  
  2083. WeaponCheats2:AddToggle("Bullet Speed", function(state)
  2084. Gun_Settings.BulletSet = not Gun_Settings.BulletSet
  2085. if Gun_Settings.BulletSet then
  2086. else
  2087. end
  2088. end)
  2089.  
  2090.  
  2091. --//Melee Section\\--
  2092. --[[MeleeCheats:AddToggle("No Delay", function(state) if state then
  2093. melee_settings.NoDelay = not melee_settings.NoDelay
  2094. if melee_settings.NoDelay then
  2095. end
  2096. else
  2097. end
  2098. end)
  2099.  
  2100. MeleeCheats:AddToggle("No Animation", 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.  
  2109. game:GetService("UserInputService").InputBegan:Connect(function(key,ischat)
  2110. if ischat then return end
  2111. if key.KeyCode == Enum.KeyCode.P then
  2112. ScreenGui.Enabled = not ScreenGui.Enabled
  2113. end
  2114. end)
  2115.  
  2116. while wait() do
  2117. TxT.TextColor3 = Color3.fromHSV(zigzag(counter1),1,1)
  2118. counter1 = counter1 + 0.01
  2119. end
  2120.  
  2121. window.close = false
  2122. end
  2123. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement