Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 02 May 2016 02:07 AM |
So, for the help I need I need a script that increases the damage for every level. Including the health. Does anyone know how to do that?
Here is my game though so you can just check it out. https://www.roblox.com/games/366700936/First-boss-Bleach-Resurrecci-n-Pre-Alpha-V-1-12 |
|
|
| Report Abuse |
|
|
|
| 02 May 2016 02:55 AM |
I don't understand your game well, as there are no NPC's or instructions to the game, but try this in a localscript in the tool:
local start = script.Parent.Parent:WaitForChild("Humanoid").Health while wait() do local multi = (game.Players.LocalPlayer.leaderstats.Lvl.Value)/10+1 -- multiplier for health and damage script.Parent.Parent:WaitForChild("Humanoid").Health = start * multi -- wait for human to set it's health end
What it does is for every level the player has, the player's health is increased by a multiplier. .1 times more every level. For the damage, you would have to allow me to see the sword script, team create would work for that. Make sure the localscript is in the tool. Also try not to use so many free models, they can be harmful in ways such as lag.
|
|
|
| Report Abuse |
|
|
Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 02 May 2016 10:23 PM |
| Okay thank you so much! I will try to not use free models I'm still new to scripting and building! |
|
|
| Report Abuse |
|
|
| |
|
Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 05 May 2016 03:18 AM |
I tried the script I placed the script in the Starterpack it ain't working though.
|
|
|
| Report Abuse |
|
|
|
| 05 May 2016 09:37 PM |
Oh oh, sorry I was confused when you asked me about the script in game. I forgot it was you who asked. Put it in the player's character I believe... I will look at my code again real quick and tell you.
|
|
|
| Report Abuse |
|
|
|
| 05 May 2016 09:38 PM |
Yes place it in the sword in the starter pack.
|
|
|
| Report Abuse |
|
|
Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 06 May 2016 08:31 PM |
| What if you don't use the sword in the starterpack? |
|
|
| Report Abuse |
|
|
Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 06 May 2016 09:18 PM |
| My sword is in the Lighting and in the team. |
|
|
| Report Abuse |
|
|
|
| 08 May 2016 02:45 AM |
The script needs to be in the sword, because if the sword is where the player can select it at some point, than it should run.
R$29 |
|
|
| Report Abuse |
|
|
Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 08 May 2016 01:55 PM |
| Hmmm I tried that hold on.. is it suppose to be local script or the normal script? |
|
|
| Report Abuse |
|
|
|
| 08 May 2016 02:54 PM |
localscript in the sword that goes in the player's sword
R$44 |
|
|
| Report Abuse |
|
|
|
| 08 May 2016 02:54 PM |
AH! Change .Health to .MaxHealth!
R$44 |
|
|
| Report Abuse |
|
|
Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 09 May 2016 10:04 PM |
| The weapon is unusable when I inputted the localscript. Like it is invisible. |
|
|
| Report Abuse |
|
|
Cabasag11
|
  |
| Joined: 07 Sep 2014 |
| Total Posts: 72 |
|
|
| 09 May 2016 10:27 PM |
| Never mind but its still not working. |
|
|
| Report Abuse |
|
|