Advertisement
RoScripter

Rank Join Message Client

Jul 22nd, 2020 (edited)
8,571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. local StarterGUI = game:GetService("StarterGui")
  2.  
  3. local function SendNotification(Title, Text, Icon)
  4.     StarterGUI:SetCore("SendNotification", {
  5.         Title = Title,
  6.         Text = Text,
  7.         Icon = Icon
  8.     })
  9. end
  10.  
  11. game.ReplicatedStorage.PlayerJoinEvent.OnClientEvent:Connect(function(PlayerName, PlayerUserId)
  12.     SendNotification("Join Message", PlayerName .. " has joined the game!", game.Players:GetUserThumbnailAsync(PlayerUserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420))
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement