So, lets say I wanted to make for example, a Health Potion. How would I make it and how would I code it's function?
You would have to plan out:
This is not small topic, so you'll have to try it out yourself and ask help on the way (as needed). A simpler project would be to make a healing brick that heals on touch. For that, you need only use an OnTouched function (with the brick's .Touch
event) to the function that (after making sure that what touched it is a player, not a projectile/weapon/other), grants the player health (ex by changing their Humanoid's .Health
).