-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
62 lines (52 loc) · 1.53 KB
/
main.lua
File metadata and controls
62 lines (52 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
local gui = Instance.new("ScreenGui")
local frame = Instance.new("Frame")
local corner = Instance.new("UICorner")
local text = Instance.new("TextLabel")
local gradient = Instance.new("UIGradient")
gui.Name = "Watermark"
gui.Parent = game.CoreGui
gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
gui.ResetOnSpawn = false
frame.Parent = gui
frame.BackgroundColor3 = Color3.fromRGB(42, 42, 46)
frame.BorderSizePixel = 0
frame.Position = UDim2.new(0.5, -700, 0.5, -450)
frame.Size = UDim2.new(0, 283, 0, 25)
frame.ZIndex = 10
corner.Parent = frame
local textProperties = {
Name = "WatermarkText",
Parent = frame,
BackgroundTransparency = 1,
BorderSizePixel = 0,
Position = UDim2.new(0, 0, 0, 0),
Size = UDim2.new(1, 0, 1, 0),
Font = Enum.Font.Montserrat,
Text = "euphoria - dsc.gg/euphoria-rbx",
TextColor3 = Color3.fromRGB(255, 255, 255),
TextSize = 20,
ZIndex = 20
}
for prop, value in pairs(textProperties) do
text[prop] = value
end
gradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, Color3.fromRGB(118, 9, 227)),
ColorSequenceKeypoint.new(0.5, Color3.fromRGB(45, 20, 80)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(118, 9, 227))
}
gradient.Parent = text
gradient.Rotation = 0
local function animateGradient()
while true do
for i = 0, 1, 0.02 do
gradient.Offset = Vector2.new(i, 0)
wait(0.03)
end
for i = 1, 0, -0.02 do
gradient.Offset = Vector2.new(i, 0)
wait(0.03)
end
end
end
animateGradient()