I am making a tycoon and I am stuch with this line:

local object = script.Parent.Purchases:FindFirstChild(v.Object.Value)

Object is not a valid member of Model

all code till error

objects = {}
wait(1)
script.Parent:WaitForChild("Buttons")
for i,v in pairs(script.Parent.Buttons:GetChildren()) do
	if v:FindFirstChild("Head") then
		
		local object = script.Parent.Purchases:FindFirstChild(v.Object.Value)

2 comments

0

What are you attempting to do?

0

just use berezaa's tycoon tutorial, thats where this is from.....