generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Script help

Previous Thread :: Next Thread 
Cabasag11 is not online. 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
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
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 is not online. 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
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
03 May 2016 09:13 PM
Cool!


Report Abuse
Cabasag11 is not online. 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
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
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
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
05 May 2016 09:38 PM
Yes place it in the sword in the starter pack.


Report Abuse
Cabasag11 is not online. 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 is not online. 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
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
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 is not online. 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
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
08 May 2016 02:54 PM
localscript in the sword that goes in the player's sword


R$44
Report Abuse
crazycittykat is not online. crazycittykat
Joined: 22 Dec 2012
Total Posts: 195
08 May 2016 02:54 PM
AH! Change .Health to .MaxHealth!


R$44
Report Abuse
Cabasag11 is not online. 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 is not online. Cabasag11
Joined: 07 Sep 2014
Total Posts: 72
09 May 2016 10:27 PM
Never mind but its still not working.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image