Advertisement
kill21_2

глаза

May 24th, 2025
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.65 KB | None | 0 0
  1. -- Eyes Detector with Beautiful GUI
  2. -- By YourName
  3.  
  4. local Players = game:GetService("Players")
  5. local LocalPlayer = Players.LocalPlayer
  6. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  7.  
  8. -- Create main screen GUI
  9. local EyesNotifier = Instance.new("ScreenGui")
  10. EyesNotifier.Name = "EyesNotifier"
  11. EyesNotifier.ResetOnSpawn = false
  12. EyesNotifier.ZIndexBehavior = Enum.ZIndexBehavior.Global
  13. EyesNotifier.Parent = PlayerGui
  14.  
  15. -- Notification frame
  16. local Notification = Instance.new("Frame")
  17. Notification.Name = "Notification"
  18. Notification.AnchorPoint = Vector2.new(0.5, 0.5)
  19. Notification.BackgroundColor3 = Color3.fromRGB(15, 15, 25)
  20. Notification.BackgroundTransparency = 0.15
  21. Notification.BorderSizePixel = 0
  22. Notification.Position = UDim2.new(0.5, 0, 0.2, -100)
  23. Notification.Size = UDim2.new(0, 0, 0, 0)
  24. Notification.Visible = false
  25. Notification.Parent = EyesNotifier
  26.  
  27. -- Corner rounding
  28. local UICorner = Instance.new("UICorner")
  29. UICorner.CornerRadius = UDim.new(0, 16)
  30. UICorner.Parent = Notification
  31.  
  32. -- Glow effect
  33. local UIStroke = Instance.new("UIStroke")
  34. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  35. UIStroke.Color = Color3.fromRGB(0, 200, 255)
  36. UIStroke.LineJoinMode = Enum.LineJoinMode.Round
  37. UIStroke.Thickness = 3
  38. UIStroke.Transparency = 0.7
  39. UIStroke.Parent = Notification
  40.  
  41. -- Title text
  42. local Title = Instance.new("TextLabel")
  43. Title.Name = "Title"
  44. Title.Font = Enum.Font.GothamBlack
  45. Title.Text = "ГЛАЗА ОСТОРОЖНО!"
  46. Title.TextColor3 = Color3.fromRGB(0, 200, 255)
  47. Title.TextScaled = true
  48. Title.TextSize = 28
  49. Title.TextWrapped = true
  50. Title.BackgroundTransparency = 1
  51. Title.Position = UDim2.new(0.5, 0, 0.2, 0)
  52. Title.Size = UDim2.new(0.9, 0, 0.2, 0)
  53. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  54. Title.Visible = false
  55. Title.Parent = Notification
  56.  
  57. -- Description text
  58. local Description = Instance.new("TextLabel")
  59. Description.Name = "Description"
  60. Description.Font = Enum.Font.GothamMedium
  61. Description.Text = "Рядом с вами появились глаза!"
  62. Description.TextColor3 = Color3.fromRGB(200, 230, 255)
  63. Description.TextScaled = true
  64. Description.TextSize = 18
  65. Description.TextWrapped = true
  66. Description.BackgroundTransparency = 1
  67. Description.Position = UDim2.new(0.5, 0, 0.5, 0)
  68. Description.Size = UDim2.new(0.8, 0, 0.4, 0)
  69. Description.AnchorPoint = Vector2.new(0.5, 0.5)
  70. Description.Visible = false
  71. Description.Parent = Notification
  72.  
  73. -- Icon (eye icon)
  74. local Icon = Instance.new("ImageLabel")
  75. Icon.Name = "Icon"
  76. Icon.Image = "rbxassetid://10888329684" -- Eye icon
  77. Icon.BackgroundTransparency = 1
  78. Icon.Position = UDim2.new(0.5, 0, -0.2, 0)
  79. Icon.Size = UDim2.new(0, 80, 0, 80)
  80. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  81. Icon.Visible = false
  82. Icon.Parent = Notification
  83.  
  84. -- Floating animation function
  85. local function floatAnimation()
  86. local startPos = Icon.Position
  87. local up = game:GetService("TweenService"):Create(
  88. Icon,
  89. TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut),
  90. {Position = UDim2.new(startPos.X.Scale, startPos.X.Offset, startPos.Y.Scale, startPos.Y.Offset - 10)}
  91. )
  92.  
  93. local down = game:GetService("TweenService"):Create(
  94. Icon,
  95. TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut),
  96. {Position = startPos}
  97. )
  98.  
  99. while true do
  100. up:Play()
  101. up.Completed:Wait()
  102. down:Play()
  103. down.Completed:Wait()
  104. end
  105. end
  106.  
  107. -- Glow pulse animation
  108. local function glowPulse()
  109. while true do
  110. local brighten = game:GetService("TweenService"):Create(
  111. UIStroke,
  112. TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  113. {Color = Color3.fromRGB(100, 255, 255), Transparency = 0.2}
  114. )
  115.  
  116. local dim = game:GetService("TweenService"):Create(
  117. UIStroke,
  118. TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  119. {Color = Color3.fromRGB(0, 200, 255), Transparency = 0.5}
  120. )
  121.  
  122. brighten:Play()
  123. brighten.Completed:Wait()
  124. dim:Play()
  125. dim.Completed:Wait()
  126. end
  127. end
  128.  
  129. -- Show notification function
  130. local function showNotification()
  131. -- Play sound effect
  132. local sound = Instance.new("Sound")
  133. sound.SoundId = "rbxassetid://138080048" -- Mysterious sound
  134. sound.Volume = 0.4
  135. sound.Parent = Notification
  136. sound:Play()
  137.  
  138. -- Make notification visible
  139. Notification.Visible = true
  140. Title.Visible = true
  141. Description.Visible = true
  142. Icon.Visible = true
  143.  
  144. -- Animation sequence
  145. local ts = game:GetService("TweenService")
  146.  
  147. -- Expand notification with smooth animation
  148. local expand = ts:Create(
  149. Notification,
  150. TweenInfo.new(0.7, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out),
  151. {Size = UDim2.new(0, 320, 0, 160)}
  152. )
  153. expand:Play()
  154.  
  155. -- Fade in stroke
  156. local strokeFadeIn = ts:Create(
  157. UIStroke,
  158. TweenInfo.new(0.5),
  159. {Transparency = 0.3}
  160. )
  161. strokeFadeIn:Play()
  162.  
  163. -- Start animations in separate threads
  164. coroutine.wrap(floatAnimation)()
  165. coroutine.wrap(glowPulse)()
  166.  
  167. -- Wait 6 seconds
  168. wait(6)
  169.  
  170. -- Shrink notification
  171. local shrink = ts:Create(
  172. Notification,
  173. TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In),
  174. {Size = UDim2.new(0, 0, 0, 0)}
  175. )
  176. shrink:Play()
  177.  
  178. -- Fade out stroke
  179. local strokeFadeOut = ts:Create(
  180. UIStroke,
  181. TweenInfo.new(0.5),
  182. {Transparency = 0.7}
  183. )
  184. strokeFadeOut:Play()
  185.  
  186. -- Hide elements after animation
  187. shrink.Completed:Wait()
  188. Notification.Visible = false
  189. Title.Visible = false
  190. Description.Visible = false
  191. Icon.Visible = false
  192. end
  193.  
  194. -- Check for Eyes in Workspace
  195. local function checkForEyes()
  196. while true do
  197. -- Check for any part named "Eyes" or with "Eyes" in the name
  198. for _, obj in pairs(game:GetService("Workspace"):GetDescendants()) do
  199. if obj:IsA("BasePart") and (obj.Name:lower():find("eyes") or obj.Name == "Eyes") then
  200. showNotification()
  201. -- Wait until Eyes is gone before checking again
  202. local connection
  203. connection = obj.AncestryChanged:Connect(function()
  204. if not obj:IsDescendantOf(game:GetService("Workspace")) then
  205. connection:Disconnect()
  206. end
  207. end)
  208. break
  209. end
  210. end
  211. wait(0.3) -- Check every 0.3 seconds
  212. end
  213. end
  214.  
  215. -- Start the detector
  216. coroutine.wrap(checkForEyes)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement