Advertisement
marcelslibrary

visuals

Aug 1st, 2019
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.54 KB | None | 0 0
  1. --[[
  2. visuals library hahaaaaa
  3. ]]
  4.  
  5. local r = game:GetService("RunService")
  6. local Players = game:GetService("Players") or game.Players
  7. local Workspace = game:GetService("Workspace") or workspace or game.Workspace
  8. local L = game:GetService("Lighting") or game.Lighting
  9. local http = game:GetService("HttpService")
  10. local user = game:GetService("UserInputService")
  11. local RS = game:GetService("ReplicatedStorage") or game.ReplicatedStorage
  12. local TS = game:GetService("TweenService")
  13. local CG = game:GetService("CoreGui")
  14. local Teams = game:GetService("Teams") or game.Teams
  15. local Camera = Workspace.CurrentCamera or Workspace:FindFirstChild("Camera")
  16.  
  17. local LP = Players.LocalPlayer
  18. local PG = LP.PlayerGui or LP:FindFirstChild("PlayerGui")
  19. local BP = LP.Backpack or LP:FindFirstChild("Backpack")
  20. local PS = LP.PlayerScripts or LP:FindFirstChild("PlayerScripts")
  21. local Mouse = LP:GetMouse()
  22. local Character = LP:FindFirstChild("Character") or LP.Character
  23.  
  24. local Colors = {
  25. Red = Color3.fromRGB(100,0,0),
  26. Green = Color3.fromRGB(0,100,0),
  27. Blue = Color3.fromRGB(0,0,100),
  28. Tracers = Color3.fromRGB(170,0,255),
  29. ESP = Color3.fromRGB(100,0,255),
  30. HeadDot = Color3.fromRGB(100,0,255),
  31. ChamsColor = Color3.fromRGB(100,0,255),
  32. Boxes = Color3.fromRGB(100,0,255),
  33. Crosshair = Color3.fromRGB(100,0,255),
  34. }
  35.  
  36.  
  37. local functions = { }
  38. local visuals = {
  39. tracer_shit = {
  40. enabled = false,
  41. x = {},
  42. obj = {},
  43. },
  44.  
  45. esp_shit = {
  46. enabled = false,
  47. x = {},
  48. obj = {},
  49. },
  50.  
  51. headdot_shit = {
  52. enabled = false,
  53. x = {},
  54. },
  55.  
  56. chams_shit = {
  57. enabled = false,
  58. x = {},
  59. obj = {},
  60. },
  61.  
  62. box_shit = {
  63. x = {},
  64. enabled = false,
  65. },
  66.  
  67. crosshair_shit = {},
  68.  
  69. circlecrosshair_shit = {},
  70.  
  71. fullbright_shit = {
  72. enabled = false,
  73. x = {},
  74. },
  75.  
  76. Settings = {
  77. Enemy = false,
  78. Distance = false,
  79.  
  80. DistanceVal = 1000,
  81.  
  82. BoxFilled = false,
  83. CircleFilled = true,
  84.  
  85. TracerColors = true,
  86. ESPColors = true,
  87. HeadDotColors = true,
  88. BoxColors = true,
  89. },
  90. loops = {},
  91. }
  92.  
  93.  
  94. function functions:GetTeamColor(player)
  95. if LP.Team == player.Team then
  96. return Color3.new(0, 1, 0)
  97. end;
  98. if tostring(LP.Team) == "Prisoner" then
  99. if tostring(player.Team) == "Police" then
  100. return Color3.new(1, 0, 0)
  101. else
  102. return Color3.new(0, 1, 0)
  103. end
  104. elseif tostring(LP.Team) == "Criminal" then
  105. if tostring(player.Team) == "Police" then
  106. return Color3.new(1, 0, 0)
  107. else
  108. return Color3.new(0, 1, 0)
  109. end
  110. elseif tostring(LP.Team) == "Police" then
  111. if tostring(player.Team) == "Criminal" then
  112. return Color3.new(1, 0, 0)
  113. else
  114. return Color3.new(1, 1, 0)
  115. end
  116. end;
  117. return Color3.new(1, 0, 0)
  118. end
  119.  
  120. function functions:CreateLoop(name, func, waitt, canBeDestroyed, ...)
  121. if visuals.loops[name] ~= nil then return end
  122.  
  123. visuals.loops[name] = { }
  124. visuals.loops[name].Running = false
  125. visuals.loops[name].Destroy = false
  126. visuals.loops[name].CanBeDestroyed = canBeDestroyed
  127. visuals.loops[name].Loop = coroutine.create(function(...)
  128. while true do
  129. if visuals.loops[name].Running then
  130. func(...)
  131. end
  132.  
  133. if visuals.loops[name].Destroy then
  134. break
  135. end
  136.  
  137. if type(wait) == "userdata" then
  138. waitt:wait()
  139. else
  140. wait(waitt)
  141. end
  142. end
  143. end)
  144. end
  145.  
  146. function functions:RunLoop(name, func, waitt, canBeDestroyed, ...)
  147. if visuals.loops[name] == nil then
  148. if func ~= nil then
  149. self:CreateLoop(name, func, waitt, canBeDestroyed, ...)
  150. end
  151. end
  152.  
  153. visuals.loops[name].Running = true
  154. local succ, out = coroutine.resume(visuals.loops[name].Loop)
  155. if not succ then
  156. warn("Loop: " .. tostring(name) .. " ERROR: " .. tostring(out))
  157. end
  158. end
  159.  
  160. function functions:StopLoop(name)
  161. if visuals.loops[name] == nil then return end
  162.  
  163. visuals.loops[name].Running = false
  164. end
  165.  
  166. function functions:DestroyLoop(name)
  167. if visuals.loops[name] == nil then return end
  168.  
  169. self:StopLoop(name)
  170. visuals.loops[name].Destroy = true
  171.  
  172. visuals.loops[name] = nil
  173. end
  174.  
  175. function functions:DestroyAllLoops()
  176. for i, v in next, visuals.loops do
  177. self:DestroyLoop(i)
  178. end
  179. end
  180.  
  181. function functions:CreateFolder(name,parent)
  182. local x = Instance.new("Folder",parent)
  183. x.Name = name
  184. return x
  185. end
  186.  
  187. function functions:GetDistance(plr)
  188. if not visuals.Settings.Distance then return false end
  189.  
  190. local char = plr.Character or plr.CharacterAdded:wait()
  191. if char then
  192. local torso = char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart")
  193. if torso then
  194. local dist = (Camera.CFrame.p-torso.Position).magnitude
  195. return dist
  196. end
  197. end
  198. end
  199.  
  200.  
  201. do--tracer
  202.  
  203. function visuals.tracer_shit.obj:CreateTracer(obj)
  204. local x = Drawing.new("Line")
  205. self[tostring(obj)] = {}
  206. self[tostring(obj)].enabled = false
  207. self[tostring(obj)].obj = x
  208. x.Thickness = 2
  209. x.Visible = self.obj[tostring(obj)].enabled
  210. x.Color = Colors.Blue
  211. return x
  212. end
  213.  
  214. function visuals.tracer_shit.obj:RemoveTracer(obj)
  215. if self.obj[tostring(obj)] ~= nil then
  216. self.obj[tostring(obj)]:Remove()
  217. self[tostring(obj)] = nil
  218. end
  219. end
  220.  
  221. function visuals.tracer_shit.obj:UpdateTracer(obj)
  222. local x = self[tostring(obj)].obj
  223. if x then
  224. local x1, x2 = Camera:WorldToViewportPoint(obj.CFrame.p - Vector3.new(0, 3, 0))
  225. if x2 and isrbxactive() then
  226. x.Visible = true
  227. x.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
  228. x.To = Vector2.new(x1.X,x1.Y)
  229. else
  230. x.Visible = false
  231. end
  232. end
  233. end
  234.  
  235.  
  236.  
  237.  
  238. function visuals.tracer_shit:CreateTracer(plr)
  239. local x = Drawing.new("Line")
  240. x.Thickness = 2
  241. self.x[tostring(plr)] = x
  242. if visuals.Settings.Distance then
  243. local dist = functions:GetDistance(plr)
  244. if dist > visuals.Settings.DistanceVal then
  245. x.Visible = false
  246. end
  247. else
  248. x.Visible = self.enabled
  249. end
  250.  
  251. if visuals.Settings.TracerColors then
  252. x.Color = functions:GetTeamColor(plr)
  253. else
  254. x.Color = Colors.Tracers
  255. end
  256. return x
  257. end
  258.  
  259. function visuals.tracer_shit:RemoveTracer(plr)
  260. if self.x[tostring(plr)] ~= nil then
  261. self.x[tostring(plr)]:Remove()
  262. self.x[tostring(plr)] = nil
  263. end
  264. end
  265.  
  266. function visuals.tracer_shit:UpdateTracer(plr)
  267. local x = self.x[tostring(plr)]
  268. local char = plr.Character or plr.CharacterAdded:wait()
  269. if char and x then
  270.  
  271. if plr.Team == LP.Team and visuals.Settings.Enemy then
  272. x.Visible = false
  273. return
  274. end
  275. if plr.Name == LP.Name then return end
  276.  
  277. local t = char:FindFirstChild("HumanoidRootPart")
  278. if t then
  279. local x1, x2 = Camera:WorldToViewportPoint(t.CFrame.p - Vector3.new(0, 3, 0))
  280. if x2 and isrbxactive() then
  281. x.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y)
  282. x.To = Vector2.new(x1.X,x1.Y)
  283.  
  284. if visuals.Settings.Distance then
  285. local dist = functions:GetDistance(plr)
  286. if dist > visuals.Settings.DistanceVal then
  287. x.Visible = false
  288. end
  289. else
  290. x.Visible = self.enabled
  291. end
  292.  
  293. if visuals.Settings.TracerColors then
  294. x.Color = functions:GetTeamColor(plr)
  295. else
  296. x.Color = Colors.Tracers
  297. end
  298.  
  299. else
  300. x.Visible = false
  301. end
  302.  
  303. end
  304. end
  305. end
  306.  
  307. function visuals.tracer_shit:Init()
  308. functions:CreateLoop("UpdatePlayerTracers",function()
  309. for i,v in pairs(Players:GetPlayers()) do
  310. self:UpdateTracer(v)
  311. end
  312. end,r.RenderStepped)
  313.  
  314. for i,v in pairs(Players:GetPlayers()) do
  315. self:CreateTracer(v)
  316. end
  317.  
  318. Players.PlayerAdded:connect(function(x)
  319. self:CreateTracer(x)
  320. end)
  321.  
  322. Players.PlayerRemoving:connect(function(x)
  323. self:RemoveTracer(x)
  324. end)
  325. end
  326. end
  327.  
  328.  
  329.  
  330.  
  331. do--esp
  332.  
  333. function visuals.esp_shit.obj:CreateESP(obj)
  334. local x = Drawing.new("Text")
  335. self[tostring(obj)] = {}
  336. self[tostring(obj)].enabled = false
  337. self[tostring(obj)].obj = x
  338. x.Visible = self[tostring(obj)].enabled
  339. x.Color = Colors.Blue
  340. x.Center = true
  341. return x
  342. end
  343.  
  344. function visuals.esp_shit.obj:UpdateESP(obj,text)
  345. if obj then
  346. local x = self[tostring(obj)]
  347. x.Visible = x.enabled
  348. end
  349. end
  350.  
  351. function visuals.esp_shit.obj:RemoveESP(obj)
  352. if self[tostring(obj)].obj ~= nil then
  353. self[tostring(obj)].obj:Remove()
  354. self[tostring(obj)].obj = nil
  355. end
  356. end
  357.  
  358.  
  359. function visuals.esp_shit:CreateESP(plr)
  360. local char = plr.Character or plr.CharacterAdded:wait()
  361. if char then
  362. local tor = char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart")
  363. local head = char:FindFirstChild("Head") or char:WaitForChild("Head")
  364. if tor and head then
  365. local pos = Camera:WorldToScreenPoint(head.Position)
  366. local x = Drawing.new("Text")
  367. x.Text = tostring(plr)
  368. x.Size = 15
  369. x.Position = Vector2.new(pos.X, pos.Y+15)
  370. x.Center = true
  371. self.x[tostring(plr)] = x
  372.  
  373. if visuals.Settings.Distance then
  374. local dist = functions:GetDistance(plr)
  375. if dist > visuals.Settings.DistanceVal then
  376. x.Visible = false
  377. end
  378. else
  379. x.Visible = self.enabled
  380. end
  381.  
  382. if visuals.Settings.TracerColors then
  383. x.Color = functions:GetTeamColor(plr)
  384. else
  385. x.Color = Colors.ESP
  386. end
  387.  
  388. return x
  389. end
  390. end
  391. end
  392.  
  393. function visuals.esp_shit:RemoveESP(plr)
  394. if self.x[tostring(plr)] ~= nil then
  395. self.x[tostring(plr)]:Remove()
  396. self.x[tostring(plr)] = nil
  397. end
  398. end
  399.  
  400. function visuals.esp_shit:UpdateESP(plr)
  401. local x = self.x[tostring(plr)]
  402. local char = plr.Character or plr.CharacterAdded:wait()
  403. if char then
  404. local head = char:FindFirstChild("Head")
  405. local tor = char:FindFirstChild("HumanoidRootPart")
  406. if x and tor and head then
  407. local pos1, pos2 = Camera:WorldToScreenPoint(head.Position)
  408. if plr.Team == LP.Team and visuals.Settings.Enemy then
  409. x.Visible = false
  410. return
  411. end
  412. if plr.Name == LP.Name then return end
  413. if isrbxactive() and pos2 then
  414.  
  415. if visuals.Settings.Distance then
  416. local dist = functions:GetDistance(plr)
  417. if dist > visuals.Settings.DistanceVal then
  418. x.Visible = false
  419. end
  420. else
  421. x.Visible = self.enabled
  422. end
  423.  
  424. if visuals.Settings.TracerColors then
  425. x.Color = functions:GetTeamColor(plr)
  426. else
  427. x.Color = Colors.ESP
  428. end
  429.  
  430. x.Position = Vector2.new(pos1.X, pos1.Y)
  431. else
  432. x.Visible = false
  433. end
  434. end
  435. end
  436. end
  437.  
  438. function visuals.esp_shit:Init()
  439. functions:CreateLoop("UpdatePlayerESP",function()
  440. for i,v in pairs(Players:GetPlayers()) do
  441. self:UpdateESP(v)
  442. end
  443. end,r.RenderStepped)
  444.  
  445. for i,v in pairs(Players:GetPlayers()) do
  446. self:CreateESP(v)
  447. end
  448.  
  449. Players.PlayerAdded:connect(function(x)
  450. self:CreateESP(x)
  451. end)
  452.  
  453. Players.PlayerRemoving:connect(function(x)
  454. self:RemoveESP(x)
  455. end)
  456. end
  457. end
  458.  
  459. do--head dot
  460. function visuals.headdot_shit:CreateDot(plr)
  461. local char = plr.Character or plr.CharacterAdded:wait()
  462. if char then
  463. local head = char:FindFirstChild("Head")
  464. if head then
  465. local x = Drawing.new("Circle")
  466. if visuals.Settings.TracerColors then
  467. x.Color = functions:GetTeamColor(plr)
  468. else
  469. x.Color = Colors.HeadDot
  470. end
  471. x.Filled = visuals.Settings.CircleFilled
  472. x.Transparency = 0.4
  473.  
  474. if visuals.Settings.Distance then
  475. local dist = functions:GetDistance(plr)
  476. if dist > visuals.Settings.DistanceVal then
  477. x.Visible = false
  478. end
  479. else
  480. x.Visible = self.enabled
  481. end
  482.  
  483. self.x[tostring(plr)] = x
  484. end
  485. end
  486. end
  487.  
  488. function visuals.headdot_shit:UpdateDot(plr)
  489. local x = self.x[tostring(plr)]
  490. local char = plr.Character or plr.CharacterAdded:wait()
  491. if char then
  492. local head = char:FindFirstChild("Head")
  493. if x and head then
  494. local pos, scr = Camera:WorldToViewportPoint(head.Position)
  495. if plr.Team == LP.Team and visuals.Settings.Enemy then
  496. x.Visible = false
  497. return
  498. end
  499. if plr.Name == LP.Name then return end
  500. if isrbxactive() and scr then
  501. if visuals.Settings.TracerColors then
  502. x.Color = functions:GetTeamColor(plr)
  503. else
  504. x.Color = Colors.HeadDot
  505. end
  506. x.Radius = 700 / pos.Z
  507. x.Filled = visuals.Settings.CircleFilled
  508.  
  509. if visuals.Settings.Distance then
  510. local dist = functions:GetDistance(plr)
  511. if dist > visuals.Settings.DistanceVal then
  512. x.Visible = false
  513. end
  514. else
  515. x.Visible = self.enabled
  516. end
  517.  
  518. x.Position = Vector2.new(pos.X, pos.Y)
  519. else
  520. x.Visible = false
  521. end
  522. end
  523. end
  524. end
  525.  
  526. function visuals.headdot_shit:RemoveDot(plr)
  527. if self.x[tostring(plr)] ~= nil then
  528. self.x[tostring(plr)]:Remove()
  529. self.x[tostring(plr)] = nil
  530. end
  531. end
  532.  
  533. function visuals.headdot_shit:Init()
  534. functions:CreateLoop("UpdatePlayerDot",function()
  535. for i,v in pairs(Players:GetPlayers()) do
  536. self:UpdateDot(v)
  537. end
  538. end,r.RenderStepped)
  539.  
  540. for i,v in pairs(Players:GetPlayers()) do
  541. self:CreateDot(v)
  542. end
  543.  
  544. Players.PlayerAdded:connect(function(x)
  545. self:CreateDot(x)
  546. end)
  547.  
  548. Players.PlayerRemoving:connect(function(x)
  549. self:RemoveDot(x)
  550. end)
  551. end
  552. end
  553.  
  554. do--box
  555. function visuals.box_shit:CreateBox(plr)
  556. local char = plr.Character or plr.CharacterAdded:wait()
  557. if char then
  558. local head = char:FindFirstChild("Head") or char:WaitForChild("Head")
  559. local hum = char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart")
  560. if hum and head then
  561. local tleft = Drawing.new("Line")
  562. local tright = Drawing.new("Line")
  563. local bleft = Drawing.new("Line")
  564. local bright = Drawing.new("Line")
  565.  
  566. if visuals.Settings.Distance then
  567. local dist = functions:GetDistance(plr)
  568. if dist > visuals.Settings.DistanceVal then
  569. tleft.Visible = false
  570. tright.Visible = false
  571. bleft.Visible = false
  572. bright.Visible = false
  573. end
  574. else
  575. tleft.Visible = self.enabled
  576. tright.Visible = self.enabled
  577. bleft.Visible = self.enabled
  578. bright.Visible = self.enabled
  579. end
  580.  
  581.  
  582. self.x[tostring(plr)] = {}
  583. self.x[tostring(plr)].tleft = tleft
  584. self.x[tostring(plr)].tright = tright
  585. self.x[tostring(plr)].bleft = bleft
  586. self.x[tostring(plr)].bright = bright
  587. end
  588. end
  589. end
  590.  
  591. function visuals.box_shit:UpdateBox(plr)
  592. local x = self.x[tostring(plr)]
  593. if x ~= nil then
  594.  
  595. local char = plr.Character or plr.CharacterAdded:wait()
  596. if char then
  597. local hum = char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart")
  598. if hum then
  599.  
  600.  
  601.  
  602. local x,vis = Camera:WorldToScreenPoint((hum.CFrame * CFrame.new(2, 3, 0)).p)
  603. local x1,vis1 = Camera:WorldToScreenPoint((hum.CFrame * CFrame.new(-2, 3, 0)).p)
  604. local x2,vis2 = Camera:WorldToScreenPoint((hum.CFrame * CFrame.new(2, -3, 0)).p)
  605. local x3,vis3 = Camera:WorldToScreenPoint((hum.CFrame * CFrame.new(-2, -3, 0)).p)
  606.  
  607. local a = self.x[tostring(plr)].tleft
  608. local b = self.x[tostring(plr)].tright
  609. local c = self.x[tostring(plr)].bleft
  610. local d = self.x[tostring(plr)].bright
  611.  
  612. if a and b and c and d then
  613.  
  614.  
  615. if plr.Team == LP.Team and visuals.Settings.Enemy then
  616. a.Visible = false
  617. b.Visible = false
  618. c.Visible = false
  619. d.Visible = false
  620. return
  621. end
  622. if plr.Name == LP.Name then return end
  623.  
  624. if vis and isrbxactive() then
  625. if visuals.Settings.Distance then
  626. local dist = functions:GetDistance(plr)
  627. if dist > visuals.Settings.DistanceVal then
  628. a.Visible = false
  629. end
  630. else
  631. a.Visible = self.enabled
  632. end
  633.  
  634.  
  635.  
  636. a.From = Vector2.new(x.X,x.Y)
  637. a.To = Vector2.new(x1.X,x1.Y)
  638. if visuals.Settings.BoxColors then
  639. a.Color = functions:GetTeamColor(plr)
  640. else
  641. a.Color = Colors.Boxes
  642. end
  643. else
  644. a.Visible = false
  645. end
  646.  
  647. if vis1 and isrbxactive() then
  648.  
  649. if visuals.Settings.Distance then
  650. local dist = functions:GetDistance(plr)
  651. if dist > visuals.Settings.DistanceVal then
  652. b.Visible = false
  653. end
  654. else
  655. b.Visible = self.enabled
  656. end
  657.  
  658. b.From = Vector2.new(x1.X,x1.Y)
  659. b.To = Vector2.new(x3.X,x3.Y)
  660. if visuals.Settings.BoxColors then
  661. b.Color = functions:GetTeamColor(plr)
  662. else
  663. b.Color = Colors.Boxes
  664. end
  665. else
  666. b.Visible = false
  667. end
  668.  
  669. if vis2 and isrbxactive() then
  670.  
  671. if visuals.Settings.Distance then
  672. local dist = functions:GetDistance(plr)
  673. if dist > visuals.Settings.DistanceVal then
  674. c.Visible = false
  675. end
  676. else
  677. c.Visible = self.enabled
  678. end
  679.  
  680. c.From = Vector2.new(x2.X,x2.Y)
  681. c.To = Vector2.new(x.X,x.Y)
  682. if visuals.Settings.BoxColors then
  683. c.Color = functions:GetTeamColor(plr)
  684. else
  685. c.Color = Colors.Boxes
  686. end
  687. else
  688. c.Visible = false
  689. end
  690.  
  691. if vis3 and isrbxactive() then
  692.  
  693. if visuals.Settings.Distance then
  694. local dist = functions:GetDistance(plr)
  695. if dist > visuals.Settings.DistanceVal then
  696. d.Visible = false
  697. end
  698. else
  699. d.Visible = self.enabled
  700. end
  701.  
  702. d.From = Vector2.new(x3.X,x3.Y)
  703. d.To = Vector2.new(x2.X,x2.Y)
  704. if visuals.Settings.BoxColors then
  705. d.Color = functions:GetTeamColor(plr)
  706. else
  707. d.Color = Colors.Boxes
  708. end
  709. else
  710. d.Visible = false
  711. end
  712.  
  713.  
  714. end
  715. end
  716. end
  717. end
  718. end
  719.  
  720. function visuals.box_shit:RemoveBox(plr)
  721. if self.x[tostring(plr)] ~= nil then
  722. for i,v in pairs(self.x[tostring(plr)]) do
  723. v:Remove()
  724. end
  725. self.x[tostring(plr)] = nil
  726. end
  727. end
  728.  
  729. function visuals.box_shit:Init()
  730. functions:CreateLoop("UpdatePlayerBox",function()
  731. for i,v in pairs(Players:GetPlayers()) do
  732. self:UpdateBox(v)
  733. end
  734. end,r.RenderStepped)
  735.  
  736. for i,v in pairs(Players:GetPlayers()) do
  737. self:CreateBox(v)
  738. end
  739.  
  740. Players.PlayerAdded:connect(function(x)
  741. self:CreateBox(x)
  742. end)
  743.  
  744. Players.PlayerRemoving:connect(function(x)
  745. self:RemoveBox(x)
  746. end)
  747. end
  748.  
  749. end--box
  750.  
  751.  
  752.  
  753.  
  754. do--fullbright
  755. function visuals.fullbright_shit:Init()
  756. self.x["Ambient"] = L.Ambient
  757. self.x["Brightness"] = L.Brightness
  758. self.x["ColorShift_Bottom"] = L.ColorShift_Bottom
  759. self.x["ColorShift_Top"] = L.ColorShift_Top
  760. self.x["OutdoorAmbient"] = L.OutdoorAmbient
  761. visuals.Initialized.Fullbright = true;
  762. end
  763.  
  764. function visuals.fullbright_shit:Enabled()
  765. L.Ambient = Color3.new(1, 1, 1)
  766. L.Brightness = 2
  767. L.ColorShift_Bottom = Color3.new(1, 1, 1)
  768. L.ColorShift_Top = Color3.new(1, 1, 1)
  769. L.OutdoorAmbient = Color3.new(1, 1, 1)
  770. end
  771.  
  772. function visuals.fullbright_shit:Disable()
  773. for i,v in pairs(self.x) do
  774. L[i] = v
  775. end
  776. end
  777.  
  778. end--fullbright
  779.  
  780. do--crosshair
  781. function visuals.crosshair_shit:Enable()
  782. visuals.crosshair_shit.x.To = Vector2.new((Workspace.CurrentCamera.ViewportSize.X / 2) - 12, (Workspace.CurrentCamera.ViewportSize.Y / 2))
  783. visuals.crosshair_shit.x.From = Vector2.new((Workspace.CurrentCamera.ViewportSize.X / 2) + 12, (Workspace.CurrentCamera.ViewportSize.Y / 2))
  784. visuals.crosshair_shit.y.To = Vector2.new((Workspace.CurrentCamera.ViewportSize.X / 2), (Workspace.CurrentCamera.ViewportSize.Y / 2) - 12)
  785. visuals.crosshair_shit.y.From = Vector2.new((Workspace.CurrentCamera.ViewportSize.X / 2), (Workspace.CurrentCamera.ViewportSize.Y / 2) + 12)
  786. visuals.crosshair_shit.x.Visible = true
  787. visuals.crosshair_shit.y.Visible = true
  788. end
  789.  
  790. function visuals.crosshair_shit:Init()
  791. visuals.crosshair_shit.x = Drawing.new("Line")
  792. visuals.crosshair_shit.x.Visible = false
  793. visuals.crosshair_shit.x.Thickness = 1
  794. visuals.crosshair_shit.x.Color = Colors.Crosshair
  795.  
  796. visuals.crosshair_shit.y = Drawing.new("Line")
  797. visuals.crosshair_shit.y.Visible = false
  798. visuals.crosshair_shit.y.Thickness = 1
  799. visuals.crosshair_shit.y.Color = Colors.Crosshair
  800. end
  801.  
  802. function visuals.crosshair_shit:Disable()
  803. visuals.crosshair_shit.x.Visible = false
  804. visuals.crosshair_shit.y.Visible = false
  805. end
  806.  
  807. end--crosshair
  808.  
  809. do--circle crosshair
  810. function visuals.circlecrosshair_shit:Enable()
  811. visuals.circlecrosshair_shit.z.Position = Vector2.new(Workspace.CurrentCamera.ViewportSize.X / 2, Workspace.CurrentCamera.ViewportSize.Y / 2)
  812. visuals.circlecrosshair_shit.z.Visible = true
  813. end
  814.  
  815. function visuals.circlecrosshair_shit:Init()
  816. visuals.circlecrosshair_shit.z = Drawing.new("Circle")
  817. visuals.circlecrosshair_shit.z.Visible = false
  818. visuals.circlecrosshair_shit.z.Radius = 50
  819. visuals.circlecrosshair_shit.z.Filled = false
  820. visuals.circlecrosshair_shit.z.Transparency = 0.4
  821. visuals.circlecrosshair_shit.z.Thickness = 0.3
  822. visuals.circlecrosshair_shit.z.Color = Colors.Crosshair
  823. end
  824.  
  825. function visuals.circlecrosshair_shit:Disable()
  826. visuals.circlecrosshair_shit.z.Visible = false
  827. end
  828.  
  829. end--circle
  830.  
  831.  
  832. visuals.box_shit:Init()
  833. visuals.tracer_shit:Init()
  834. visuals.esp_shit:Init()
  835. visuals.headdot_shit:Init()
  836. visuals.crosshair_shit:Init()
  837. visuals.circlecrosshair_shit:Init()
  838. functions:RunLoop("UpdatePlayerBox")
  839. functions:RunLoop("UpdatePlayerDot")
  840. functions:RunLoop("UpdatePlayerTracers")
  841. functions:RunLoop("UpdatePlayerESP")
  842. return visuals
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement