while true do
script.Parent.BrickColor = BrickColor.random()
wait(0.1)
end
When I put this in the script, it works fine.
But when I put this in:
while true do
script.Parent.Material = Material.random()
wait(0.1)
end
I get this:
Workspace.Part.Script:2: attempt to index global 'Material' (a nil value)
Script "Workspace.Part.Script", Line 2
stack end
Please help, and Im a begginer scripter. |