Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Eyes Detector with Beautiful GUI
- -- By YourName
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
- -- Create main screen GUI
- local EyesNotifier = Instance.new("ScreenGui")
- EyesNotifier.Name = "EyesNotifier"
- EyesNotifier.ResetOnSpawn = false
- EyesNotifier.ZIndexBehavior = Enum.ZIndexBehavior.Global
- EyesNotifier.Parent = PlayerGui
- -- Notification frame
- local Notification = Instance.new("Frame")
- Notification.Name = "Notification"
- Notification.AnchorPoint = Vector2.new(0.5, 0.5)
- Notification.BackgroundColor3 = Color3.fromRGB(15, 15, 25)
- Notification.BackgroundTransparency = 0.15
- Notification.BorderSizePixel = 0
- Notification.Position = UDim2.new(0.5, 0, 0.2, -100)
- Notification.Size = UDim2.new(0, 0, 0, 0)
- Notification.Visible = false
- Notification.Parent = EyesNotifier
- -- Corner rounding
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 16)
- UICorner.Parent = Notification
- -- Glow effect
- local UIStroke = Instance.new("UIStroke")
- UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- UIStroke.Color = Color3.fromRGB(0, 200, 255)
- UIStroke.LineJoinMode = Enum.LineJoinMode.Round
- UIStroke.Thickness = 3
- UIStroke.Transparency = 0.7
- UIStroke.Parent = Notification
- -- Title text
- local Title = Instance.new("TextLabel")
- Title.Name = "Title"
- Title.Font = Enum.Font.GothamBlack
- Title.Text = "ГЛАЗА ОСТОРОЖНО!"
- Title.TextColor3 = Color3.fromRGB(0, 200, 255)
- Title.TextScaled = true
- Title.TextSize = 28
- Title.TextWrapped = true
- Title.BackgroundTransparency = 1
- Title.Position = UDim2.new(0.5, 0, 0.2, 0)
- Title.Size = UDim2.new(0.9, 0, 0.2, 0)
- Title.AnchorPoint = Vector2.new(0.5, 0.5)
- Title.Visible = false
- Title.Parent = Notification
- -- Description text
- local Description = Instance.new("TextLabel")
- Description.Name = "Description"
- Description.Font = Enum.Font.GothamMedium
- Description.Text = "Рядом с вами появились глаза!"
- Description.TextColor3 = Color3.fromRGB(200, 230, 255)
- Description.TextScaled = true
- Description.TextSize = 18
- Description.TextWrapped = true
- Description.BackgroundTransparency = 1
- Description.Position = UDim2.new(0.5, 0, 0.5, 0)
- Description.Size = UDim2.new(0.8, 0, 0.4, 0)
- Description.AnchorPoint = Vector2.new(0.5, 0.5)
- Description.Visible = false
- Description.Parent = Notification
- -- Icon (eye icon)
- local Icon = Instance.new("ImageLabel")
- Icon.Name = "Icon"
- Icon.Image = "rbxassetid://10888329684" -- Eye icon
- Icon.BackgroundTransparency = 1
- Icon.Position = UDim2.new(0.5, 0, -0.2, 0)
- Icon.Size = UDim2.new(0, 80, 0, 80)
- Icon.AnchorPoint = Vector2.new(0.5, 0.5)
- Icon.Visible = false
- Icon.Parent = Notification
- -- Floating animation function
- local function floatAnimation()
- local startPos = Icon.Position
- local up = game:GetService("TweenService"):Create(
- Icon,
- TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut),
- {Position = UDim2.new(startPos.X.Scale, startPos.X.Offset, startPos.Y.Scale, startPos.Y.Offset - 10)}
- )
- local down = game:GetService("TweenService"):Create(
- Icon,
- TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut),
- {Position = startPos}
- )
- while true do
- up:Play()
- up.Completed:Wait()
- down:Play()
- down.Completed:Wait()
- end
- end
- -- Glow pulse animation
- local function glowPulse()
- while true do
- local brighten = game:GetService("TweenService"):Create(
- UIStroke,
- TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
- {Color = Color3.fromRGB(100, 255, 255), Transparency = 0.2}
- )
- local dim = game:GetService("TweenService"):Create(
- UIStroke,
- TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
- {Color = Color3.fromRGB(0, 200, 255), Transparency = 0.5}
- )
- brighten:Play()
- brighten.Completed:Wait()
- dim:Play()
- dim.Completed:Wait()
- end
- end
- -- Show notification function
- local function showNotification()
- -- Play sound effect
- local sound = Instance.new("Sound")
- sound.SoundId = "rbxassetid://138080048" -- Mysterious sound
- sound.Volume = 0.4
- sound.Parent = Notification
- sound:Play()
- -- Make notification visible
- Notification.Visible = true
- Title.Visible = true
- Description.Visible = true
- Icon.Visible = true
- -- Animation sequence
- local ts = game:GetService("TweenService")
- -- Expand notification with smooth animation
- local expand = ts:Create(
- Notification,
- TweenInfo.new(0.7, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out),
- {Size = UDim2.new(0, 320, 0, 160)}
- )
- expand:Play()
- -- Fade in stroke
- local strokeFadeIn = ts:Create(
- UIStroke,
- TweenInfo.new(0.5),
- {Transparency = 0.3}
- )
- strokeFadeIn:Play()
- -- Start animations in separate threads
- coroutine.wrap(floatAnimation)()
- coroutine.wrap(glowPulse)()
- -- Wait 6 seconds
- wait(6)
- -- Shrink notification
- local shrink = ts:Create(
- Notification,
- TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In),
- {Size = UDim2.new(0, 0, 0, 0)}
- )
- shrink:Play()
- -- Fade out stroke
- local strokeFadeOut = ts:Create(
- UIStroke,
- TweenInfo.new(0.5),
- {Transparency = 0.7}
- )
- strokeFadeOut:Play()
- -- Hide elements after animation
- shrink.Completed:Wait()
- Notification.Visible = false
- Title.Visible = false
- Description.Visible = false
- Icon.Visible = false
- end
- -- Check for Eyes in Workspace
- local function checkForEyes()
- while true do
- -- Check for any part named "Eyes" or with "Eyes" in the name
- for _, obj in pairs(game:GetService("Workspace"):GetDescendants()) do
- if obj:IsA("BasePart") and (obj.Name:lower():find("eyes") or obj.Name == "Eyes") then
- showNotification()
- -- Wait until Eyes is gone before checking again
- local connection
- connection = obj.AncestryChanged:Connect(function()
- if not obj:IsDescendantOf(game:GetService("Workspace")) then
- connection:Disconnect()
- end
- end)
- break
- end
- end
- wait(0.3) -- Check every 0.3 seconds
- end
- end
- -- Start the detector
- coroutine.wrap(checkForEyes)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement