R

notif plus spanish

public
rrixh Apr 04, 2024 Never 111
Clone
Lua bylulaslollipop.m4a 39 lines (32 loc) | 1.19 KB
1
local player = game.Players.LocalPlayer
2
local playerGui = player:WaitForChild("PlayerGui")
3
local notification = Instance.new("ScreenGui")
4
notification.Name = "notification"
5
notification.Parent = playerGui
6
7
local Background = Instance.new("Frame")
8
Background.Size = UDim2.new(0, 200, 0, 33)
9
Background.Position = UDim2.new(0.65, -200, 0.4, -50) --1:position,high=right,low=left
10
--3:low=up,high=down
11
Background.BackgroundColor3 = Color3.new(0, 0, 0)
12
Background.Parent = notification
13
14
local countdownText = Instance.new("TextLabel")
15
countdownText.Text = "by lulas🍭 enjoy! (5)"
16
countdownText.TextColor3 = Color3.new(1, 1, 1)
17
countdownText.BackgroundColor3 = Color3.new(0, 0, 0, 0)
18
countdownText.TextSize = 15
19
countdownText.Size = UDim2.new(1, 0, 1, 0)
20
countdownText.Parent = Background
21
22
local countdown = 4
23
local countdownInterval = 1
24
25
local function updateCountdown()
26
countdown = countdown - 1
27
countdownText.Text = "by lulaslollipop🍭 (" .. countdown .. ")"
28
29
if countdown <= 0 then
30
-- código para executar quando atingir (0)
31
notification:Destroy()
32
else
33
34
wait(countdownInterval)
35
updateCountdown()
36
end
37
end
38
39
updateCountdown()