Make a notification!

Make a notification (basic roblox style).

by Wiebe_vD

Author Avatar

Welcome to this toturial!

Hello all! This is my first toturial ever so don't judge me for any mistakes. Today I will be showing you all how to make a notification pop up in your screen. Follow all the steps below to make it work.

What do you need?

Is it hard? No, not really. If you just follow the steps it's not that hard, it's a simple message.


The RemoteEvent

We got a few steps. First, you add a remoteEvent to ReplicatedStorage, As you can see in the picture.

img|80x45

So what we're going to do now, is telling the game that if someone joins a message will pop up after 5 ( You can adjust the time by your wanting, just change the number. ) seconds. What you want to do, you want to go to ServerScriptService and add a Script (NOT a localscript ). You want to delete the "print("Hello world!")" part, and write the code down below.

game.Players.PlayerAdded:Connect(function(Player)
    wait(5)
    game.ReplicatedStorage.RemoteEvent:FireClient(Player)
end)

The notification itself!

Adding the script You want to go to ScreenGUI, and over there you add a localscript. Delete the "print("Hello World!")" part and write the script down below.

game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function()
    game.StarterGui:SetCore("SendNotification", {
        Title = "(Your title!)",
        Text = "(Your text!)"
    })
end)

What we did here is we got the RemoteEvent from the ReplicatedStorage, then we said SendNotification and told the game the title of the message, and the text it should contain.


If you did everything right, you should end up with a notification down right on your screen. Customize it any way you want! There are much more things to do with a notification, but I didn't want to get into that from the start so now we got a basic join message. Though, I advise to put the wait() of the message to 10 or 8. Some people with slow pc's might miss the message. If you send the message with another event, you can delete the wait() part. Then you won't have to wait for the player to load in.

Anyways, I hope this helped you guys! If yes, let me know! And if you ran into any problems, also please let me know. Then I might be able to help you. Have a nice day yall!

View in-game to comment, award, and more!