Disclamer: This is a Beginner Tutorial, DO NOT come running into the reply section shoving all your messages to me saying how this is the most basic thing ever.
Okay, now we got the Disclaimer out of the way, Hello! thanks for reading my Tutorial. This tutorial is very quick, this could take less than 5 minutes to do. Let’s not waste any more time, lol.
Section 1: Setting up.
First of, we need to set up where everything is going to be, make sure to have Explorer open.
click the + next to ‘ReplicatedStorage’ and add a little thing called ‘RemoteEvent’ rename this to ‘PlayerJoinedRE’
Second of all, click the + next to ‘ServerScriptService’ and add a ‘script’ rename this to ‘PlayerJoined’
Lastly, open the ‘StarterPlayer’ folder by clicking on the > icon near to the left of StarterPlayer, you should see two folders named ‘StarterCharacterScripts’ and ‘StarterPlayerScripts’. Click the + next to ‘StarterPlayerScripts’ and add a ‘Local Script’ rename this to ‘System Message + Print’.
Well done! We have set up the required resources to make this possible, this is what your Explorer should look like, if this doesn’t, please fix up the required, if it does, well done! moving on.
Section 2: Scripting.
In this part, you need to be more focused to make sure you don’t make any mistakes here. Go near ‘ServerScriptService’ and double-click the script named ‘PlayerJoined’. CTRL + A, Backspace everything and put this into the text.
game.Players.PlayerAdded:Connect(function(plr) -- Player Joins
game.ReplicatedStorage.PlayerJoinedRE:FireAllClients(plr.Name) -- Fires Event.
end)
After this, go near ‘StarterPlayer’ > ‘StarterPlayerScripts’ and CTRL + A, Backspace everything and insert this code into the text.
game.ReplicatedStorage.PlayerJoinedRE.OnClientEvent:Connect(function(plrName) -- Connect Event
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = plrName .. " joined the game.", -- [Username] joined the game.
Color = Color3.fromRGB(255, 0, 0), -- Click 'x, x, x' to change the color.
Font = Enum.Font.SourceSansBold,
TextSize = 18,
})
print(plrName .. " joined the game.") -- Prints out the game as Text.
end)
After all this, you’re all done! This should be the final product once you launch the game:
P.S Click F9 on your Keyboard or type in ‘/console’ to see the Developer Console.