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

Inserting a value to a part that has been inserted through script??

Asked by
oliras3 15
8 years ago

I have the part inserted but I need it to have a value in it when its inserted, this is how it looks: function drop() local p = Instance.new("Part") p.formFactor = "Symmetric" p.Position = script.Parent.Position p.Size = Vector3.new(1,1,1) p.BrickColor = BrickColor.new("White") p.BottomSurface = 0 p.TopSurface = 0 p.Parent = script.Parent local cash = Instance.new("NumberValue",p) cash.Name = "Cash"

while true do wait(1) drop() end end

everything works but the inserting numbervalue to the part how do i do this?

0
nevermind! figured it out myself :) oliras3 15 — 8y

Answer this question