#it doesnt work it is supposed to drop a part from the dropper

1 messages · Page 1 of 1 (latest)

austere imp
#

local tycoon = script.Parent.Parent.Parent

local dropperPartFloder =tycoon:FindFirstChild("DropperParts")
local dropColorValue = tycoon:FindFirstChild("Values").DropColorValue
local materialValue = tycoon:FindFirstChild("Values").MaterialValue

local billboardGui = game.ReplicatedStorage:FindFirstChild("BillboardGui")

while wait(3) do
local cloneGui = billboardGui:Clone()

local part = Instance.new("Part", dropperPartFloder)
part.Size = Vector3.new(1,1,1)
part.BrickColor = dropColorValue.Value
part.Material = materialValue.Value
part.Name = "DropperPart"
part.CFrame = script.Parent.Spawner.CFrame

local cashValue = Instance.new("IntValue", part)
cashValue.Value = 5
cashValue.Name = "CashValue"

cloneGui.Parent = part
cloneGui.Frame.TextLabel.Text = "$"..cashValue.Value.. " Cash"

game.Debris:AddItem(part, 15)

end

vocal geyser
austere imp
#

idk what that means

vocal geyser
#

do you have DropColorValue inside of the Values folder?

#

add it

austere imp
#

wrong pic

vocal geyser
#

this said "DorpColorValue"

#

it needs to be "DropColorValue"

#

fix that and test it again

austere imp
#

omg i feel so stupid

#

thanks

austere imp
rigid tulipBOT
#

studio** You are now Level 2! **studio

vocal geyser
#

put .Value at the end to get the actual number in the value

#

like

#

values.MoneyValue += hit:FindFirstChild("CashValue").Value

vocal geyser
# austere imp

i highly recommend learning basic lua before following a tutorial

#

replace line 5 with the line i sent

#

values.MoneyValue += hit:FindFirstChild("CashValue").Value

austere imp