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

How do I change this into a MODEL insert? [closed]

Asked by 9 years ago

See here this delivers a group called Part Storage into workspace and I want it set so it can store the Part Storage inside a model. Script:

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) -- Size of the drops
    game.Debris:AddItem(part,20) -- How long until the drops expire
end

I want it to be delivered in a certain MODEL. I tried editing the "Part",workspace function but it doesnt work

Closed as Too Broad by EzraNehemiah_TF2, woodengop, and YellowoTide

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?