I’m Making a Crop system But it Never prints After The Crop grows (Repeat until loop)
Here is the Script
local Crop = script.Parent
local WaitTime = 2
local PlantPercentage = Crop.Size.Y/1.5
local PlantGrown = Crop:WaitForChild("Grown")
local function GrowPlant()
repeat
wait(WaitTime)
PlantPercentage = PlantPercentage + 20
Crop.Size = Vector3.new(Crop.Size.X, Crop.Size.Y + 1/5, Crop.Size.Z)
until PlantPercentage == 100
print("Croo Fully Grown")
PlantGrown.Value = true
Crop.Size = Vector3.new(Crop.Size.X, math.ceil(Crop.Size.Y), Crop.Size.Z)
end
if PlantGrow.Value == false then
GrowPlant()
end