Advertisement
roblox3008game

Advanced esp script

Aug 9th, 2024 (edited)
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.09 KB | None | 0 0
  1. -- Load Orion Library
  2. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  3.  
  4. -- Variables
  5. local ESPEnabled = true
  6. local ESPColor = Color3.fromRGB(255, 182, 193) -- Pastel Pink color
  7. local ESPOutlineColor = Color3.fromRGB(238, 174, 202) -- Pastel Pink outline
  8. local ESPGlowColor = Color3.fromRGB(255, 209, 220) -- Light pastel pink glow
  9.  
  10. local RunService = game:GetService("RunService")
  11. local Camera = workspace.CurrentCamera
  12. local UserInputService = game:GetService("UserInputService")
  13. local Mouse = game.Players.LocalPlayer:GetMouse()
  14. local ESPObjects = {}
  15.  
  16. -- Function to create a soft neon glow effect
  17. local function CreateGlowEffect(espObject, color)
  18. espObject.GlowLayers = {}
  19. for i = 1, 6 do
  20. local GlowText = Drawing.new("Text")
  21. GlowText.Size = espObject.MainText.Size + i * 2
  22. GlowText.Center = true
  23. GlowText.Outline = false
  24. GlowText.Color = color
  25. GlowText.Transparency = 0.1 / i -- Creates a soft, fading glow
  26. GlowText.Visible = false
  27. table.insert(espObject.GlowLayers, GlowText)
  28.  
  29. -- Updating glow each frame
  30. RunService.RenderStepped:Connect(function()
  31. if ESPEnabled and espObject.MainText.Visible then
  32. GlowText.Position = espObject.MainText.Position
  33. GlowText.Text = espObject.MainText.Text
  34. GlowText.Visible = true
  35. else
  36. GlowText.Visible = false
  37. end
  38. end)
  39. end
  40. end
  41.  
  42. -- Function to create ESP for a specific item named "cardScanner"
  43. local function CreateESPForItem(item)
  44. local ItemESP = {}
  45.  
  46. -- Main Text Layer (Pastel Neon)
  47. ItemESP.MainText = Drawing.new("Text")
  48. ItemESP.MainText.Size = 20
  49. ItemESP.MainText.Center = true
  50. ItemESP.MainText.Outline = true
  51. ItemESP.MainText.Color = ESPColor
  52. ItemESP.MainText.Visible = false
  53.  
  54. -- Reflection Shine Effect (Moving Highlight)
  55. ItemESP.ReflectionText = Drawing.new("Text")
  56. ItemESP.ReflectionText.Size = 20
  57. ItemESP.ReflectionText.Center = true
  58. ItemESP.ReflectionText.Outline = false
  59. ItemESP.ReflectionText.Color = Color3.new(1, 1, 1) -- White for reflective shine
  60. ItemESP.ReflectionText.Transparency = 0.5 -- Semi-transparent for gloss effect
  61. ItemESP.ReflectionText.Visible = false
  62.  
  63. -- Soft Colored Outline
  64. ItemESP.SoftOutline = Drawing.new("Text")
  65. ItemESP.SoftOutline.Size = 22
  66. ItemESP.SoftOutline.Center = true
  67. ItemESP.SoftOutline.Outline = false
  68. ItemESP.SoftOutline.Color = ESPOutlineColor
  69. ItemESP.SoftOutline.Transparency = 0.8
  70. ItemESP.SoftOutline.Visible = false
  71.  
  72. -- Animated Gradient Background Box
  73. ItemESP.BackgroundBox = Drawing.new("Square")
  74. ItemESP.BackgroundBox.Size = Vector2.new(200, 50) -- Size of the background box
  75. ItemESP.BackgroundBox.Filled = true
  76. ItemESP.BackgroundBox.Transparency = 0.4 -- Semi-transparent
  77. ItemESP.BackgroundBox.Color = Color3.fromRGB(250, 214, 255) -- Start with light pastel purple
  78. ItemESP.BackgroundBox.Visible = false
  79.  
  80. ESPObjects[item] = ItemESP
  81.  
  82. -- Create Soft Neon Glow Effect
  83. CreateGlowEffect(ItemESP, ESPGlowColor) -- Pastel Pink glow
  84.  
  85. -- Pulsing Animation Variables
  86. local pulseDirection = 1
  87. local pulseScale = 0
  88.  
  89. -- Update ESP each frame
  90. local animationTime = 0 -- Used for animating the reflective shine
  91. local colorCycleTime = 0 -- Used for color cycling
  92. RunService.RenderStepped:Connect(function()
  93. if item:IsDescendantOf(workspace) and ESPEnabled then
  94. local ItemPos, OnScreen = Camera:WorldToViewportPoint(item.Position)
  95. local Distance = (Camera.CFrame.Position - item.Position).Magnitude
  96.  
  97. if OnScreen then
  98. -- Pulsing Animation
  99. pulseScale = pulseScale + pulseDirection * 0.005
  100. if pulseScale > 0.1 or pulseScale < 0 then
  101. pulseDirection = -pulseDirection
  102. end
  103.  
  104. -- Position the background box
  105. ItemESP.BackgroundBox.Position = Vector2.new(ItemPos.X - 100, ItemPos.Y - 25)
  106. ItemESP.BackgroundBox.Visible = true
  107.  
  108. -- Position the soft outline
  109. ItemESP.SoftOutline.Position = Vector2.new(ItemPos.X, ItemPos.Y)
  110. ItemESP.SoftOutline.Text = "cardScanner [" .. math.floor(Distance) .. "m]"
  111. ItemESP.SoftOutline.Size = 18 * (1 + pulseScale) -- Apply pulsing effect
  112. ItemESP.SoftOutline.Visible = true
  113.  
  114. -- Position the main text
  115. ItemESP.MainText.Position = Vector2.new(ItemPos.X, ItemPos.Y)
  116. ItemESP.MainText.Text = ItemESP.SoftOutline.Text
  117. ItemESP.MainText.Size = 18 * (1 + pulseScale) -- Apply pulsing effect
  118. ItemESP.MainText.Visible = true
  119.  
  120. -- Position the reflection shine
  121. ItemESP.ReflectionText.Position = Vector2.new(ItemPos.X + 5, ItemPos.Y - 5)
  122. ItemESP.ReflectionText.Text = ItemESP.MainText.Text
  123. ItemESP.ReflectionText.Size = ItemESP.MainText.Size
  124. ItemESP.ReflectionText.Visible = true
  125.  
  126. -- Animate Background Box Color
  127. colorCycleTime = colorCycleTime + RunService.RenderStepped:Wait()
  128. local hue = colorCycleTime % 1
  129. ItemESP.BackgroundBox.Color = Color3.fromHSV(hue, 0.4, 1) -- Soft pastel gradient animation
  130.  
  131. -- Interactive Element (Click to Reveal)
  132. if Mouse.X >= ItemPos.X - 100 and Mouse.X <= ItemPos.X + 100 and Mouse.Y >= ItemPos.Y - 25 and Mouse.Y <= ItemPos.Y + 25 then
  133. if UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton1) then
  134. print("Clicked on ESP for cardScanner: " .. item.Name)
  135. -- Add additional actions here, like revealing more information
  136. end
  137. end
  138. else
  139. ItemESP.MainText.Visible = false
  140. ItemESP.ReflectionText.Visible = false
  141. ItemESP.SoftOutline.Visible = false
  142. ItemESP.BackgroundBox.Visible = false
  143. for _, glow in pairs(ItemESP.GlowLayers) do
  144. glow.Visible = false
  145. end
  146. end
  147. else
  148. ItemESP.MainText.Visible = false
  149. ItemESP.ReflectionText.Visible = false
  150. ItemESP.SoftOutline.Visible = false
  151. ItemESP.BackgroundBox.Visible = false
  152. for _, glow in pairs(ItemESP.GlowLayers) do
  153. glow.Visible = false
  154. end
  155. end
  156. end)
  157. end
  158.  
  159. -- Initialize ESP for all objects named "cardScanner" in the game
  160. local function InitializeESP()
  161. for _, item in ipairs(workspace:GetDescendants()) do
  162. if item:IsA("BasePart") and item.Name == "cardScanner" then
  163. CreateESPForItem(item)
  164. end
  165. end
  166. end
  167.  
  168. -- Handle new "cardScanner" objects
  169. workspace.DescendantAdded:Connect(function(item)
  170. if item:IsA("BasePart") and item.Name == "cardScanner" then
  171. CreateESPForItem(item)
  172. end
  173. end)
  174.  
  175. -- Handle objects being removed
  176. workspace.DescendantRemoving:Connect(function(item)
  177. if ESPObjects[item] then
  178. ESPObjects[item].MainText:Remove()
  179. ESPObjects[item].ReflectionText:Remove()
  180. ESPObjects[item].SoftOutline:Remove()
  181. ESPObjects[item].BackgroundBox:Remove()
  182. for _, glow in pairs(ESPObjects[item].GlowLayers) do
  183. glow:Remove()
  184. end
  185. ESPObjects[item] = nil
  186. end
  187. end)
  188.  
  189. -- Initialize the ESP when the script runs
  190. InitializeESP()
  191.  
  192. -- Orion UI Library Configuration
  193. local Window = OrionLib:MakeWindow({Name = "ESP Script", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  194.  
  195. local ESPTab = Window:MakeTab({
  196. Name = "ESP Settings",
  197. Icon = "rbxassetid://4483345998",
  198. PremiumOnly = false
  199. })
  200.  
  201. ESPTab:AddToggle({
  202. Name = "Enable ESP",
  203. Default = ESPEnabled,
  204. Callback = function(Value)
  205. ESPEnabled = Value
  206. end
  207. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement