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?

8 comments
is this an old free model you found?
this is an fe script
@DinozCreates No, I made it myself.
@Imperialy It doesn't seem to work in my game, just in the studio.
Check to make sure that everything is loaded at the correct times, sometimes the latency of the server is worse then it is in studio which results in you attempting to use objects before they're loaded
@insane_r This actually helped me, thank you!
Does this mean he has to use a WaitForChild?
@TheOnlySmarts Nah, I had another script which was using the same Rank gui and I didn't do the timing and it broke the script as a whole.