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

Why Doesn't Work?

	Part = script.Parent

	function Touced
		Part.BrickColor = BrickColor.new("Really black")
	end

2 answers

✓ Accepted answer

Were you trying to make it so the brick changed color on touch? If so, then you need to add an event listener, so that the script knows when to run (when it is touched).

Part = script.Parent

function Touched()
    Part.BrickColor = BrickColor.new("Really black")
end
Part.Touched:connect(Touched)

You forgot to add parentheses after the function.

Part = script.Parent

function Touced() -- This is the problem
    Part.BrickColor = BrickColor.new("Really black")
end

Touced() -- If you want it to make this part black when you start up the game

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