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

How can I get this script to work? Studios keeps telling me i'm not properly putting my ends.

Asked by 4 years ago
Edited 4 years ago
01local BBGUI = game.ServerStorage.BillboardGui
02 
03local GID = 6209170
04 
05game.Players.PlayerAdded:Connect(function(player)
06    player.CharacterAdded:Connect(function(character)
07        if player.Team == "Inmate" then
08            local CGUI = BBGUI:Clone()
09        CGUI.TextLabel.Text = player.Name.."\n".."Inmate"
10            CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
11        elseif player.Team == "[CLASSIFIED]" then
12            local CGUI = BBGUI:Clone()
13        CGUI.TextLabel.Text = "[CLASSIFIED]".."\n"..player:GetRankInGroup(GID)
14            CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
15        end
16    end)

Where do I need to put my end?

0
Just listen to the studio, you're missing an end. SteamG00B 1633 — 4y
0
I know that. But. Where do I put it? MrOinkerzYT 87 — 4y

1 answer

Log in to vote
0
Answered by
Ali_MTR 30
4 years ago
114       CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
215          end
316       end)
417      end)

hope this'll work

0
It worked. Thank you. i also referenced the teams wrong, but that didn't show up in output. MrOinkerzYT 87 — 4y
0
no problem, my pleasure. Ali_MTR 30 — 4y
Ad

Answer this question