One thing that you might want to consider is storing the âGetRankInGroup(YourGroupId)â part in a variable. This will help with performance down the road as each time you call the GetRankInGroup function, itâs taking time to gather that data. Since those two calls are fractions of a second apart, you might as well trust the first call and use the same data for your notification.
I think this is related to the comment above but try adding in a text saying the rank of the HR! Example: âA Chief Executive Officer Has Joined The Game!â With the username above of course
This is what I Was looking for around on the Internet. so people would be notified when a High rank joins the game. But I am confused as to how you set this up?
I have created a RemoteEvent named JoinNotify in ReplicatedStorage, Added a Script into ServerScriptService and changed it so instead of GetRankInGroup itâs GetRoleInGroup, also I have added the Localscript into StarterGui
However nothing comes up when I start the game did I miss something?
I used a pcall since the CoreGui has not loaded the Notification yet, so there a error that says
âSendNotification is not registered by the core scriptsâ
--[[
Replace:
Player:GetRankInGroup(YourGroupId) >= HrRank [HrRank is for the people that are alloud on the Join Message!]
Player:GetRoleInGroup(YourGroupId)..', Has joined the game!'
Change "Has joined the game!" to anything you want!
"Enum.ThumbnailType.HeadShot" You can change it to anything you want
Samples:
Enum.ThumbnailType.AvatarThumbnail
Enum.ThumbnailType.HeadShot --Default
Enum.ThumbnailType.AvatarBust
Examples
local AdminText = Player:GetRoleInGroup(YourGroupId)..', Has joined the party!' --Change it to what ever you want.
local Type = Enum.ThumbnailType.AvatarThumbnail --Change it to what ever you want.
--If theres any bugs contact me on discord helpqs#5249--
--]]