-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotification.lua
43 lines (36 loc) · 1.19 KB
/
notification.lua
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
local module = {}
function module:notif(text,n)
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local TextLabel = Instance.new("TextLabel")
local Frame_2 = Instance.new("Frame")
local TextLabel_2 = Instance.new("TextLabel")
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Frame.Position = UDim2.new(0.500811696, -142, 0.33585164, 5)
Frame.Size = UDim2.new(0, 297, 0, 148)
TextLabel.Parent = Frame
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.Position = UDim2.new(0.161616161, -1, 0.32432431, 1)
TextLabel.Size = UDim2.new(0, 200, 0, 50)
TextLabel.Font = Enum.Font.SourceSans
TextLabel.Text = text
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.TextScaled = true
TextLabel.TextSize = 14.000
TextLabel.TextWrapped = true
wait(n)
ScreenGui:Destroy()
end
function module:postMsg(col: Color3,font: Enum,size: Number,text: Value)
local properties = {
Color = col;
Font = font;
TextSize = size;
Text = text
}
game.StarterGui:SetCore("ChatMakeSystemMessage", properties)
end
return module