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

How to give a player leaderstat points when they touch a model with their tool? [closed]

Asked by
Popsock -8
3 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

I am busy making a simulator where you ,basically, hit trees to get wood which you sell for money. However I don't know how to check if the tree was hit by the tool so the player ,who is holding the tool, can receive points.

is it possible to give a player the same amount of points as the amount of damage that is taken?

E.g. a player hits a tree with a wooden axe ,which does 1 damage. Every hit the player receives 1 wood.

Can this be done?

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?