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
local BBGUI = game.ServerStorage.BillboardGui

local GID = 6209170

game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        if player.Team == "Inmate" then
            local CGUI = BBGUI:Clone()
        CGUI.TextLabel.Text = player.Name.."\n".."Inmate"
            CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
        elseif player.Team == "[CLASSIFIED]" then
            local CGUI = BBGUI:Clone()
        CGUI.TextLabel.Text = "[CLASSIFIED]".."\n"..player:GetRankInGroup(GID)
            CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
        end
    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
14       CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
15          end
16       end)
17      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