Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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?

2 comments

0

Just listen to the studio, you're missing an end.

0

I know that. But. Where do I put it?

1 answer

✓ Accepted answer
14	     CGUI.Parent = game.Workspace:WaitForChild(player.Name).Head
15          end
16	     end)
17	    end)

hope this'll work

2 comments

0

It worked. Thank you. i also referenced the teams wrong, but that didn't show up in output.

0

no problem, my pleasure.

This discussion is preserved as it was. New answers, comments, and votes are closed.