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

0

is this an old free model you found?

0

this is an fe script

0

@DinozCreates No, I made it myself.

0

@Imperialy It doesn't seem to work in my game, just in the studio.

0

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

0

@insane_r This actually helped me, thank you!

0

Does this mean he has to use a WaitForChild?

0

@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.