Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I know this is really stupid but.. How do I make a choppable tree. That regrows?

I am making a game like Old School Runescape on Roblox. I am in need of help of making a tree when you click it with the axe equipped it will play a animation for a time limit like 20 -15 seconds. When the time limit is done it will give you a log. (That you can sell for coins. I promise this isn't a simulator) You could (It will be really helpful) To make it that the tree changes transparency when chopped and (regrows every 20 seconds) I don't have a script because I don't know how to do it. I tried tutorials but they we either outdated or Doesn't have the thing I need. If you see this and know how it will be very helpful! :)

(Sorry if there are grammar mistakes)

2 comments

0

make a tool and when it touches the tree and you click it will deal damage to the tree(you can put an int value in the tree as its health) and you can check if the health is 0 every time it hits and if it is 0 make it destroy itself (make sure you have the log / tree in a storage thing and not workspace) and then make it wait 15 - 20 seconds and clone it out of there

0

Thanks! I'll see if it works!

1 answer

So I'm assuming that you have all the scripts besides the respawn one? All I can understand is that you'd need the tree to run as a Humanoid. Hide the health bar on Humanoid, then write something like this:

if z.Tree.Health == 0 then
		z:Remove()
		wait(20)

2 comments

0

No I don't have all the scripts (Sorry) But I'll keep your script in mind.

0

or use something like a int value instead of a humanoid value. idk

This discussion is preserved as it was. New answers, comments, and votes are closed.