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

Property of a item is not changing and did i do repeat command right?

the problem is i tried changing a value and what value what i wanted to change was VertexColor in mesh. and i don't know how to use repeat. here's the code.

game.Workspace.Felipe.Torso.head.HeadWeld.Piece.Mesh.VertexColor(0,0,0)
wait(3)
game.Workspace.Felipe.Torso.head.HeadWeld.Piece.Mesh.VertexColor(1,0,0)
wait(0.3)
repeat(99)

what i tried is using = or () and =(). can somebody help?

1 answer

✓ Accepted answer
for i = 1, 90 do
game.Workspace.Felipe.Torso.head.HeadWeld.Piece.Mesh.VertexColor = Color3.fromRGB(0, 0, 0)
wait(3) 
game.Workspace.Felipe.Torso.head.HeadWeld.Piece.Mesh.VertexColor = Color3.fromRGB(255, 0, 0)
wait(0.3)
end

There are a few mistakes. For one, you are using repeat wrong. If you wanted to do a loop a specific number of times, I'd suggest using "for". You also were assigning color wrong. You need to use a = and a Color3.new or any other variation of a Color3.new to change the color.

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