Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- MADE BY scanlon7
- -- FOLLOW ME ON TWEETER : @scanlon7RBLX
- -- HOPE THIS SCRIPT WILL HELP YOU :)
- -- IF YOU HAVE ANNY QUESTION ABOUT THIS SCRIPT JUST DM ME ON TWEETER
- --FOLLOW ALL OF THE STEP FOR THE SCRIPT TO WORK !! ( after you done u can deleted this whole script )
- --Step 1 : Make a Script in Workspace and put this script
- local events = game.ReplicatedStorage.Events
- game.Players.PlayerAdded:Connect(function(plr) --When player joins the game
- events.Added:FireAllClients(plr)
- end)
- --
- game.Players.PlayerRemoving:Connect(function(plr) -- When player leaves the game
- events.Removing:FireAllClients(plr)
- end)
- --Step 2 : Make a folder then rename it Events in ReplicatedStorage and put 2 REMOTE EVENT IN THE FOLDER
- --Step 3 : Renamed the remote event "Added" and "Removing"
- --Step 4 : Make a Local Script in StarterGui and rename it Message then put this script in there
- local events = game.ReplicatedStorage.Events
- local starterGui = game.StarterGui
- events.Added.OnClientEvent:Connect(function(plr) -- Message when player joins the game
- starterGui:SetCore("ChatMakeSystemMessage",{
- Text = plr.Name.." has joined the game!";
- Color = Color3.fromRGB(0,255,255); --CHANGE THIS IF YOU WANT
- Font = Enum.Font.SourceSansBold;
- FontSize = Enum.FontSize.Size32;
- })
- end)
- ---
- events.Removing.OnClientEvent:Connect(function(plr) -- Message when player leaves the game
- starterGui:SetCore("ChatMakeSystemMessage",{
- Text = plr.Name.." has left the game!";
- Color = Color3.fromRGB(0,255,255); --CHANGE THIS IF YOU WANT
- Font = Enum.Font.SourceSansBold;
- FontSize = Enum.FontSize.Size32;
- })
- end)
- --Step 5 : Go try if the script work
Advertisement
Advertisement