How to chop down a tree script in roblox9/17/2023 I know how it feels to be learning scripting, its super confusing but everyone can learn and once you do its awesome. I dont wanna give you the entire answer I just wanna basically guide you to your answer. Infact coding a tree is very basic stuff I am sure you could learn it :) You'd then have a break joints portion and the tree would fall apart if the Health.Value = 0īut thats just the extreme basics of how it would run. This isnt including a debounce so it could run many times infact it probably would. It takes away 1 health from the tree for every hit. The damage line assumes that you have a IntValue inside the tree model the intvalue would be called Health. Features of Lumber Tycoon 2 Script Roblox Auto Farm Auto redeem codes Anti ban Move/Delete objects. It also assumes you named the tree model "Tree" if what you hit is a tree then it runs the damage line. To chop down a tree, you must obtain and use an axe. This line of code is assuming your tool has a blade. Inside the damage portion of the tools script you could use this code :connect(hit) Inside the tool youll have all the basic scripting for the tool like damage and swing animations. Well I dont exactly know how if you would want it to have an animation or anything when falling over.īut Ill give you a basic over view of how you may do this although I am not going to write the code :) That is your part, how will you learn if I just hand it to you.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |