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

Fire a single event when value is 0?

Asked by 5 years ago

Well, I'm making a game that when you cut a tree you'll win XP. but I do not know how I do it, I can chop the tree and split it into several parts, but I want you to only gain XP when you "kill" the tree, like an RPG. I have a BoolValue in the tree model named "Dead" and another called IntValue "Life", when Life.Value <0, then the tree drops and is able to cut it. and the value "Dead" comes true, but I do not know what I should do now. I would appreciate any help. Yes, FE is enabled.

0
Put in the system that is removing the value of life to check that when it is less than one, call a function or fire the server with the xp info to add CryptoBloodXaos 13 — 5y

Answer this question