I'm making a Rpg in Roblox based off of Runescape, and I need a tree I'm working on a system where you buy a axe then you cut down a tree and the tree gives you logs, which you sell for money.
(It would be nice if I can get help on a regen script!)
I'm making a Rpg in Roblox based off of Runescape, and I need a tree I'm working on a system where you buy a axe then you cut down a tree and the tree gives you logs, which you sell for money.
(It would be nice if I can get help on a regen script!)
I'd say
health each time it comes in contact with the axehealth reaches 0 you can spawn in a "felled tree" from replicated storage, and either hide the main tree underground, or hide it with Transparency and cancollide - For regen, when the tree is "cut" wait a second, then add 1 to health until the variable is back to max - Once health is max, "cut" is no longer true, and move the tree back up to where it used to be. That's how I'd go about doing it, good luck!This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
https://m.youtube.com/watch?v=e4ddtkUJuII
To regen you make a loop and clone it by using the function :clone().
Didn't work
If something doesn't work correctly, then look for another one, that's how you learn to script, and by appling the things you've learnt from watching youtube tutorials also, by practising not giving up etc.