Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Dropcolor is not a valid member of Model?

Asked by 6 years ago

When i tried to run the game it alway's say Dropcolor is not a valid member of Model can someone help me please.

this is the script where i got it from and there is no error.

wait(2)
workspace:WaitForChild("PartStorage")

while true do
    wait(2.5) -- How long in between drops
    local part = Instance.new("Part",workspace.PartStorage)
    part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
    part.Material=script.Parent.Parent.Parent.MaterialValue.Value
    local cash = Instance.new("IntValue",part)
    cash.Name = "Cash"
    cash.Value = 10 -- How much the drops are worth
    part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.6,0)
    part.FormFactor = "Custom"
    part.Size=Vector3.new(1.4, 1.4, 1.4) -- Size of the drops
    part.TopSurface = "Smooth"
    part.BottomSurface = "Smooth"
    game.Debris:AddItem(part,20) -- How long until the drops expire
end

and this is my script with the error.

wait(2)
workspace:WaitForChild("PartStorage")

while true do
    wait(2.5)
    local part = Instance.new("Part",workspace.PartStorage)
    part.BrickColor=script.Parent.Parent.Parent.DropColor.Value
    part.Material=script.Parent.Parent.Parent.MaterialValue.Value
    local cash = Instance.new("IntValue", part)
    cash.Name = "Cash"
    cash.Value = 10
    part.CFrame = script.Parent.Drop.CFrame - Vector3.new(0,1.6,0)
    part.formFactor = "Custom"
    part.Size=Vector3.new(1.4, 1.4, 1.4)
    part.TopSurface = "Smooth"
    part.BottomSurface = "Smooth"
    game.Debris:AddItem(part,20)
end

0
The only explanation I have is that: There isn't an object called 'Drop Color' thesit123 509 — 6y
0
And how can i make one? bramieboy241 -19 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

there was indeed no object that was called DropColor so i made one and now it works tnx

Ad

Answer this question