Hey guys, I can’t seem to make a script where when a weapon is activated, the damage of the weapon increases and the health increases by 1.
The script I did is just a local script in StarterGui where a function starts and I tried to make the health and damage gain with a ‘Player.humanoid’ statement. I do not have any screenshots, but can someone help?
This is my first time looking for the solution
Sorry for not providing screenshots, it might be hard for some people to understand what I’m saying.
Are you getting any errors? If so please specify.
Screenshots aren’t always needed. Just type ``` in the beginning of a line and press enter to open a script box. Example:
-- This is a script box where you can copy and paste your own scripts
Also, what’s the problem with your script and what are you not satisfied with?
Edit: I understand that you’re trying to use a function within a localscript to change the player’s health, but what went wrong with it?