i need help making a script so when i plant a seed it grows and changes from different models here are each of the models.
#Seed Placing Mechanism
1 messages · Page 1 of 1 (latest)
hello i see you're making a grow a garden clone, please take a ticket and wait your turn. currently serving ticket # 570 out of 9999999999999999999999999999999999999999999999999999999999999999999999999993
how to make ticket
oh
take ticket
wait are you being serious about the 9999999999999999999999999999999999999999999999999999999999999999999999999993 part?
Oh yeah i gotchu heres a functional script just for you while true do local Plant = Instance.new("Part") local PlantClone = Plant:Clone() PlantClone.Parent = workspace end and this script shoulldd work making it change different models
no need to thank me
great script if you wanna crash your game
please don’t run this
crazy
infinitely spawning parts to crash your game 💔
game:GetService("Debris"):AddItem(workspace:GetDescendants(), 0.1)
local growthSpeed = 5 --"Path to your growthspeed variable"
local growthStages = game.ReplicatedStorage:Waitforchild("Growthstages"):GetChildren() --Make sure there is a file called growthstages, and the stages are also in order within the folder.
local currentGrowingPlant = nil --This will act as the storage of your "current growing plant"
--The function to grow the plant
local function GrowPlant()
for i = 1, #growthStages do
--Check if there already is a plant at the previous growth stage, if so delete it to prevent spawning multiple instances of the same plant
if currentGrowingPlant ~= nil
currentGrowingPlant:Destroy()
end
--Spawn the plant, and initialize it
local plant = growthStages[i]:Clone()
plant.Parent = game.WorkSpace --Set the parent to prevent "despawning"
currentGrowingPlant = plant --Set the previous variable to make sure it gets deleted afterwards
wait(growthSpeed) --Finaly wait till the next stage
end
GrowPlant() --Call the function so it actually does something(lols)
Code written by Sed_ket, any further questions either dm me or justin
@gilded ridge
saying yuh is so tuff