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

Error is in line 12 but what is it?

local white = ("Institutional white")
local black = ("Really black")
local teams = game:GetService("Teams"):GetTeams()

script.Parent.Touched:connect(function(hit)
	player = game.Players:GetPlayerFromCharacter(hit.Parent)
	if player then
		for i = 1, #teams do
			team = teams[i]
			if team.TeamColor == player.TeamColor then
				script.Parent.BrickColor = BrickColor.new(team.TeamColor)
				script.Parent.Material = "Neon"
			end
		end
	end
end)

2 answers

You tell us.

We are not a substitute for your brain.

2 comments

0

No need to be rude. I am only asking for help, I am learning scripting all I want is help and people have to be sassy about it. I was told that people who are learning are treated nicely.

0

You told us nothing. Nothing. Nada. Nowt. Nil. Squat.

Team.TeamColor is not an object. You can't make a new one of that since it is a property

1 comment

0

Wrong :c

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