Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local GroupId = 1234567 -- REPLACE 1234567 WITH YOUR GROUP ID
- local MinimumRankIdForJoinMessage = 255 -- REPLACE 255 WITH THE MINIMUM RANK PLAYERS HAVE TO BE FOR A MESSAGE TO GET SENT WHEN THEY JOIN THE GAME
- game.Players.PlayerAdded:Connect(function(Player)
- if Player:GetRankInGroup(GroupId) >= MinimumRankIdForJoinMessage then
- game.ReplicatedStorage.PlayerJoinEvent:FireAllClients(Player.Name, Player.UserId)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement