Advertisement
C-H-4-0-S

Bandndhshshdfjiejwbajsoidhajf

Sep 25th, 2024
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.99 KB | None | 0 0
  1. -- ESP
  2.  
  3. local DepthMode = "AlwaysOnTop"
  4. local FillTransparency = 0.5
  5. local OutlineColor = Color3.fromRGB(255, 255, 255)
  6. local OutlineTransparency = 0
  7. local RainbowSpeed = 0.05 -- Speed of the rainbow effect
  8.  
  9. local CoreGui = game:GetService("CoreGui")
  10. local Players = game:GetService("Players")
  11. local lp = Players.LocalPlayer
  12. local connections = {}
  13.  
  14. local showUsernames = false
  15. local usernameLabels = {}
  16.  
  17. -- Table for specific players with custom highlight and titles
  18. local specificPlayers = {
  19. ["ARAMPOGI_007"] = {Color = Color3.fromRGB(255, 165, 0), Title = "Owner"}, -- Orange for Owner
  20. ["M4YH3M_ANT1V1RUS"] = {Color = Color3.fromRGB(255, 165, 0), Title = "Owner"}, -- Orange for Owner
  21. ["pvppogi_007"] = {Color = Color3.fromRGB(255, 165, 0), Title = "Co-owner"} -- Orange for Co-owner
  22. }
  23.  
  24. -- Storage for highlights
  25. local Storage = Instance.new("Folder")
  26. Storage.Parent = CoreGui
  27. Storage.Name = "Highlight_Storage"
  28.  
  29. -- Rainbow effect function
  30. local function RainbowEffect(Highlight)
  31. -- Ensure the rainbow effect smoothly stops if the Highlight is removed
  32. while Highlight and Highlight.Parent do
  33. for hue = 0, 1, 0.01 do
  34. if not Highlight or not Highlight.Parent then return end -- Stop if highlight is removed
  35. Highlight.FillColor = Color3.fromHSV(hue, 1, 1) -- Cycle through colors
  36. wait(RainbowSpeed)
  37. end
  38. end
  39. end
  40.  
  41. -- Function to highlight a player
  42. local function HighlightPlayer(plr)
  43. -- Create highlight for the player
  44. local Highlight = Instance.new("Highlight")
  45. Highlight.Name = plr.Name
  46. Highlight.DepthMode = DepthMode
  47. Highlight.FillTransparency = FillTransparency
  48. Highlight.OutlineColor = OutlineColor
  49. Highlight.OutlineTransparency = OutlineTransparency
  50. Highlight.Parent = Storage
  51.  
  52. -- Set highlight color based on the player's name
  53. if specificPlayers[plr.Name] then
  54. Highlight.FillColor = specificPlayers[plr.Name].Color -- Specific player color
  55. else
  56. coroutine.wrap(RainbowEffect)(Highlight) -- Apply rainbow effect to non-specific players
  57. end
  58.  
  59. -- Set the Adornee (target object) to the player's character
  60. local plrchar = plr.Character
  61. if plrchar then
  62. Highlight.Adornee = plrchar
  63. end
  64.  
  65. -- Update highlight if the player's character respawns
  66. connections[plr] = plr.CharacterAdded:Connect(function(char)
  67. Highlight.Adornee = char
  68. end)
  69. end
  70.  
  71. -- Function to create a username label (only for specific players)
  72. local function CreateUsernameLabel(plr)
  73. if specificPlayers[plr.Name] then
  74. local char = plr.Character
  75. if not char or usernameLabels[plr] then return end
  76.  
  77. local head = char:FindFirstChild("Head")
  78. if head then
  79. local billboard = Instance.new("BillboardGui")
  80. billboard.Name = "UsernameLabel"
  81. billboard.Adornee = head
  82. billboard.Size = UDim2.new(2, 0, 1, 0)
  83. billboard.StudsOffset = Vector3.new(0, 2, 0)
  84. billboard.Parent = head
  85.  
  86. local textLabel = Instance.new("TextLabel")
  87. textLabel.Size = UDim2.new(1, 0, 1, 0)
  88. textLabel.BackgroundTransparency = 1
  89. textLabel.TextScaled = true
  90. textLabel.TextColor3 = Color3.new(1, 1, 1)
  91. textLabel.Parent = billboard
  92.  
  93. -- Set the title for the specific players
  94. textLabel.Text = specificPlayers[plr.Name].Title -- "Owner" or "Co-owner"
  95.  
  96. usernameLabels[plr] = billboard
  97. end
  98. end
  99. end
  100.  
  101. -- Function to toggle username visibility
  102. local function ToggleUsernames()
  103. showUsernames = not showUsernames
  104.  
  105. if showUsernames then
  106. for _, player in ipairs(Players:GetPlayers()) do
  107. CreateUsernameLabel(player)
  108. end
  109. else
  110. for _, label in pairs(usernameLabels) do
  111. if label then
  112. label:Destroy()
  113. end
  114. end
  115. usernameLabels = {}
  116. end
  117. end
  118.  
  119. -- Function to clean up when a player leaves
  120. local function CleanupPlayer(plr)
  121. local plrHighlight = Storage:FindFirstChild(plr.Name)
  122. if plrHighlight then
  123. plrHighlight:Destroy()
  124. end
  125. if connections[plr] then
  126. connections[plr]:Disconnect()
  127. connections[plr] = nil
  128. end
  129.  
  130. if usernameLabels[plr] then
  131. usernameLabels[plr]:Destroy()
  132. usernameLabels[plr] = nil
  133. end
  134. end
  135.  
  136. -- Apply highlights to players as they join
  137. Players.PlayerAdded:Connect(HighlightPlayer)
  138.  
  139. -- Clean up when a player leaves
  140. Players.PlayerRemoving:Connect(CleanupPlayer)
  141.  
  142. -- Apply highlights to all current players
  143. for _, player in ipairs(Players:GetPlayers()) do
  144. HighlightPlayer(player)
  145. end
  146.  
  147. -- Other
  148.  
  149. getgenv().CrosshairSettings = {
  150. Color = Color3.fromRGB(255,0,0),
  151. RainbowColor = true,
  152. Opacity = 9,
  153. Length = 10,-- Length of each line
  154. Thickness = 2,-- Thickness of each line
  155. Offset = 4, -- Offset from the middle point
  156. Dot = true, -- not recommended
  157. FollowCursor = false, -- Crosshair follows the cursor
  158. HideMouseIcon = true, -- Hides the mouse icon, set to 0 to ignore
  159. HideGameCrosshair = true, -- Hides the current game's crosshair (if its supported)
  160. ToggleKey = Enum.KeyCode.RightAlt, -- Toggles crosshair visibility
  161. } -- v1.2.1
  162. loadstring(game:HttpGet("https://raw.githubusercontent.com/zzerexx/scripts/main/CustomCrosshair.lua", true))()
  163.  
  164. _G.HeadSize = 25
  165. _G.Disabled = true
  166.  
  167. game:GetService('RunService').RenderStepped:connect(function()
  168. if _G.Disabled then
  169. for i,v in next, game:GetService('Players'):GetPlayers() do
  170. if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  171. pcall(function()
  172. v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
  173. v.Character.HumanoidRootPart.Transparency = 100
  174. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("medium stone grey")
  175. v.Character.HumanoidRootPart.Material = "Neon"
  176. v.Character.HumanoidRootPart.CanCollide = false
  177. end)
  178. end
  179. end
  180. end
  181. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement