Hi,
I am trying to make a brick grow like a crop. When the planter brick hits the plant it will grow a little, wait, grow a little and so on.
This is what I have right now. I don't know where to go from here... Im only beginner that's why.
Also is the Vector the size I want it to grow by??
function onTouched(Hit) if Hit.Name == "Seeder" then script.Parent.Size = script.Parent.Size + Vector3.new (1, 1, 1) wait(60) end end script.Parent.Touched:connect(onTouched)
I also would like to know if I can grow a model that has 2 bricks in it.
yes do Vector3
also your code is a bit wrong for waiting how bout give this a try
local time_to_wait = 60 -- goes by seconds local waiting = false function Touched(hit) if waiting == false then waiting = true if hit.Name == "Seeder" then script.Parent.Size = script.Parent.Size + Vector3.new(1,1,1) end end end while wait(time_to_wait) do waiting = false end