SHARE
TWEET

Untitled

NotUser147_YT May 26th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Add This Script To The Workspace--
  2. local events = game.ReplicatedStorage.Events
  3.  
  4. game.Players.PlayerAdded:connect(function(plr)
  5.     events.Added:FireAllClients(plr)
  6. end)
  7.  
  8. game.Players.PlayerRemoving:connect(function(plr)
  9.     events.Removing:FireAllClients(plr)
  10. end)
  11.  
  12.  
  13. --Don't Forget To Add A Folder Into ReplicatedStorage Then Add 2 Remote Events (1 Named 'Added' & 1 Named 'Removing)
  14. --I Hope My Script Works
  15.  
  16.  
  17.  
  18.  
  19. --Add This Script As A LocalScript To StarterGui--
  20. local events = game.ReplicatedStorage.Events
  21. local starterGui = game.StarterGui
  22.  
  23. events.Added.OnClientEvent:connect(function(plr)
  24.     starterGui:SetCore("ChatMakeSystemMessage",{
  25.         Text = plr.Name.." has joined the game";
  26.         Color = Color3.fromRGB(0,255,255);
  27.         Font = Enum.Font.SourceSansBold;
  28.         FontSize = Enum.FontSize.Size32;
  29.     })
  30. end)
  31.  
  32. events.Removing.OnClientEvent:connect(function(plr)
  33.     starterGui:SetCore("ChatMakeSystemMessage",{
  34.         Text = plr.Name.." has left the game";
  35.         Color = Color3.fromRGB(0,255,255);
  36.         Font = Enum.Font.SourceSansBold;
  37.         FontSize = Enum.FontSize.Size32;
  38.     })
  39. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top