#Im trying to make a kind of growing system for trees, but i cant seem to get it right
1 messages · Page 1 of 1 (latest)
The script here is for the wood on the tree
This is the one for the leaves
What i think it is it might be a collision problem cause i wanted it to not go downwards but only upwards
What's the size of it
The Wood or the trunk whatever you may call it is 0.5, 2, 0.5
while the leave is 1, 1, 1
i think i have to change the wood to 2, 8 ,2 for the new heights
but the tree still manages to expand downwards i wanna make it go up only
local goalSize = Vector3.new(2, 8, 2)
local heightDiff = goalSize.Y - originalSize.Y
local newPosition = originalPosition + Vector3.new(0, heightDiff / 2, 0)
Try this
i might just be stupid tho
i dont know
also i assume this was made with ai
it is lol
** You are now Level 1! **
It works but the leaves should push upward as well
cause the tree is turning upside down
lmao
It goes through the leaves
ah didnt see they were 2 different scripts
yeah
i think its the same thing
but then it glitches between both objects at the top of the tree
is there a way for it to grow differently?
like grow a garden does it
by switching it by states
every % it changes size instead of a smooth transition
using tween
im not really familiar with something like this, id recommend looking up a tutorial or atleast learning the basics before you take on smthing like this
alright
i think you need multiple grow stages and twee bethween them slowly or just ine tween if it is just a straight tree no extra instances added when older
that would make sense, but i assume hes trying to add variety
what do you mean by a variety multiple trees or adding instances when growing older
I would do this growth but its way too smooth and i dont like its style, i want it to be like at 0% growth its tiny, at 25% it gets a bit bigger, 50% it gets a bit bigger and yk the rest. But not by transitioning it smoothly
like instant change
you want me to script that real quik for you ?
2 scripts or 1?
If you can that would be great
ok wait 5/10 min
so would i need to have 2 parts in a model
or
no repstorage folder
is it fine if i just make a realy simple model so you have at least theory
Sure
If you want you can be part of the game but youd have to wait for my friend to get on cause hes the owner
Yes
** You are now Level 2! **
Im new to scripting thats why i used AI to make the code
It makes me learn it easier
fair enough, i used ai to begin and help me learn. Just dont become too dependant on it. as you make scripts learn how it works, variables, functions tweening
oh yeah ofc
im assuming since you used ai that fixing the code is a lost cause, you should perhaps seperate growth into stages and have those stages marked in replicatedstorage//serverstorage; as the stage increments just replace the model
so basically what @rugged horizon said
got it
actualy instead of what you thought a model you need a folder with all stages to tween to you can make more stages to have more detail so use a folder like this but in rep storage let me do the scripting real quik now
oh sorry, i didnt go through chat logs i just saw an active thread and thought it was unsolved 🥲 ; yes pretty much!
Yeah dont worry
your good
so i union the parts?
that is just to have both parts in a part instead of multiple if you made it on blender you probably wont need it since it is an object instead of multiple parts to build sculpture
nah im too lazy to make it in blender i rather make it like that
me too XD but i try to force through even if i dont understand anything for now
you need a planting system too or just the growing one?
oh yeah if you could do that
ok il take some time because i dont realy know how but im gonna learn it i guess it is some type of tool system with a part serving as plant area
** You are now Level 4! **
You wanna be part of the game maybE?
maybe?
since your available for free
yes sure it isn't free you pay me in experience since im new i started scripting only 5 days ago
pay you in experience?
i realy need some kind of real job experience where i need to link multiple elements wich each other to make a complex system
like i win on ground experience by doing this
i dont know if you get what i mean
also i think you just need to make some kind of little tree union it and paste it into the starterpack and server storage
like you learn how to script?
yes
no il try to explain it with examples when im done
experience robux?
like if it gets players you get robux and you get a share of it?
o i mean it learns me how to work on a game instead of just coding appart systems i dont realy get anything physical or digital
oh ok
** You are now Level 3! **