Welcome! I’m going to show you how to make a Notification system.
First you want to go into your Roblox game and make a Screen Gui in “StarterGui” and call it “Notification”.
Next your going to want to add a Frame into the screen gui, name it Notifications.
Then add in a TextLabel, and a local script.
You can ignore the other items in my Gui.
Next were going to want to go into our local script and code the Notification system.
local Event = game.ReplicatedStorage.Events.Notification
local ErrorSound = game.SoundService.Fail
Event.OnClientEvent:Connect(function(val)
if val == true then
ErrorSound:Play()
script.Parent.Visible = true
script.Parent.Text = "Your text here"
wait(3)
script.Parent.Visible = false
script.Parent.Text = ""
end
end)
You can make the text say whatever you want!
Next we need to make a RemoteEvent in ReplicatedStorage, Make a folder called “Events” Put the RemoteEvent in the folder.
Name the RemoteEvent “Notification”
Next we need to make the script that will send the message,
go into the script that you want to send a Notification.
Here is the script:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local EventsFolder = ReplicatedStorage:FindFirstChild("Events")
local Notification = EventsFolder:FindFirstChild("Notification")
Notification:FireClient(player, true)
Thats all!
If you need help, reply to this post.
Here is a link to the place with all the scripts: The Game