game.Players.PlayerAdded:Connect(function(plr) plr.CharacterAdded:Connect(function(char) if not plr then warn("an error occured fetching the plr") end wait(1) local ui = script.Rank:Clone() ui.Parent = char ui.Adornee = char.Head while not plr.Character.Humanoid do wait() end plr.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None local frame = ui.Frame local name = frame.Name1 local rank = frame.TextLabel name.Text = plr.Name rank.Text = "Guest" local GroupService = game:GetService('GroupService') for i,v in pairs(GroupService:GetGroupsAsync(plr.UserId))do if v.Id == 1127093 then rank.Text = v.Role break else rank.Text = "Guest" end end wait(1) end) end)
How would I turn this script into a fe compatible script?