Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I turn my script into a fe-compatible one?

Asked by
hopup 15
5 years ago
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?

0
is this an old free model you found? DinozCreates 1070 — 5y
0
this is an fe script Imperialy 149 — 5y
0
@DinozCreates No, I made it myself. hopup 15 — 5y
0
@Imperialy It doesn't seem to work in my game, just in the studio. hopup 15 — 5y
View all comments (4 more)
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 rokedev 71 — 5y
0
@insane_r This actually helped me, thank you! hopup 15 — 5y
0
Does this mean he has to use a WaitForChild? TheOnlySmarts 233 — 5y
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. hopup 15 — 5y

Answer this question