So I have this script for a tycoon, and when you click this button it dispenses the brick. At the moment it dispenses Medium Stone Gray colored bricks. I am wondering how I can change the color on it (I am trying to get the color brown)
wait(2)
workspace:WaitForChild("PartStorage")
while true do
wait(0.5) -- How long in between drops
local part = Instance.new("Part",workspace.PartStorage)
part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
local cash = Instance.new("IntValue",part)
cash.Name = "Cash"
cash.Value = 1 -- How much the drops are worth
part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1,0)
part.Size=Vector3.new(1,1,1)
game.Debris:AddItem(part,20)
end
This is the script.
I think it has something to do with part.BrickColor=script.Parent.
Please help, thanks |