Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make choppable trees?

Asked by 6 years ago

I want to make a game like Lumber Tycoon 2, but I do not want to copy it at all, so I will be using completely different trees/axes/features, etc. I also want to make this script myself with tips from other people. I know VERY basic scripting like variables and the onTouch feature, but I simply don't know how to do what I'm trying to do. I want people to be able to walk up to a tree, equip the axe, aim their cursor at the tree and click to cut, then an animation can be viewed as the character swings at the tree. As soon as someone has "claimed" that tree by starting to cut it, I need to make a number percentage on the tree to show how much it has been cut (At 100%, the leaves would disappear and the wood would fall to the ground). Finally, I wish that players can pick up this wood and sell it by placing it onto a conveyor (again, I will make it completely different from Defaultio's Wood Dropoff).

One more small detail, I will need certain axes to be able to do things faster. For example, a basic axe which mines trees slowly. A really good, (but difficult to get) axe would mine trees quickly. Also, specific axes would break specific wood, like a lava axe would break lava wood very quickly (again, I won't include lava wood in my game because Defaultio has done it already and I don't want to be blamed for copying his game).

Thanks :D

1 answer

Log in to vote
0
Answered by
dispeller 200 Moderation Voter
6 years ago
Edited 6 years ago

This isn't a script requesting website.

It is a script helping website.

Post about bugs and errors you get, not requests.

If you want to learn Roblox Lua, here is a set of videos made by Roblox themselves.

The Roblox wiki might thanks also be helpful.

Good luck!

EDIT:

It turns out, there are a bunch of tutorial videos on YouTube that show you how to do just that!

You would be surprised at how much information you can get with a single google search.

Here is one of them.

Ad

Answer this question