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

Why does line 8 expect an identifier and get an equals sign?

The error says "Error: (8,16) Expected identifier, got '='"

game.Workspace.ChildAdded:connect(function(plr)
	local name = plr.Name
	local playerinplayers = game.Players:FindFirstChild(plr.Name)
	if playerinplayers ~= nil then
		game:GetTeams()
		local plrTeam = Instance.new("Team")
		plrTeam.Parent = 
		plrTeam.Name = (name .. "'s Team")
		plrTeam.TeamColor = BrickColor3.new(Color3.new(0,0,0))
		plrTeam.AutoAssignable = false
	end
end)

What am I doing wrong, and how do I get this equals to count as an equals instead of having it be an identifier?

1 answer

✓ Accepted answer

You didn't specify the Parent of plrTeam.

1 comment

0

oh, whoops

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