Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 03:55 PM |
Lately every time ROBLOX has a major update it breaks many scripts in my best game, lately ROBLOX appears to have broken every possible way to restore a players health via script.
My script used to only require one line to heal a character. Now it's supposed to heal the player 81 times in the hope that even one will work. This only works 5% of the time randomly, probably depending on the servers conditions.
tl;dr version: SCRIPT Y U NO HEAL ------------------------ if key == "s" then if Player.Character.Humanoid.Health <= 50 then if script.Parent.Special.Value == 0 then script.Parent.Special.Value = 1 Player.Character.Humanoid.MaxHealth = 150 Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth Sparkles = game.Lighting.AobaSpecial.Sparkles:clone() Sparkles.Parent = Player.Character.Torso clone = game.Lighting.AobaSpecial:clone() Player.PlayerGui.DP.Char.Image = clone.Decal.Texture clone.Parent = game.Workspace for i = 1,80 do Player.Character.Humanoid.Health = 150 clone.CFrame = Player.Character.Torso.CFrame +Vector3.new(0, 5, 0) wait(0.01) end clone:remove() end end end
|
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 03:57 PM |
Only these two lines really matter.
Player.Character.Humanoid.MaxHealth = 150 Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
| |
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
| |
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:02 PM |
Immortality jutsu which keeps your health at the same number is broke also. Healing jutsu which slowly restores your heatlh 1 HP at a time broke too. and Awakened healing which instantly makes your HP max HP is broke too.
ROBLOX admin, do you just delete random scripts all day or what? |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 04:04 PM |
| Pretty sure Character isn't a Child of Player... |
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:05 PM |
Just get out of scripting helpers, this is part of the script idiot. I posted that only two lines matter.
The script doesn't break, it just doesn't heal the player. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 04:06 PM |
Friaza,
Your setting the health to something BEFORE you set you maxhealth
Try:
[source to character].Humanoid.MaxHealth=150 wait() [source to character].Health=MaxHealth |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 04:07 PM |
| Hate to break it to you, but if it wasn't broken it would heal the player. Therefore it is broken. Don't talk to me like I don't know how to script. You're the one with the broken script here... Once again, I don't think the Player part is right and the Character part either. |
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:11 PM |
Cody, stfu
Character is something inside player, you can't even programme. |
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:13 PM |
| Builderman, I did it in the right order, and I did it again in the loop anyway. |
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:13 PM |
Forget it, none of you fake scripters even know how to script, you disgust me.
|
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 04:14 PM |
| What did you define Player as... Still think that's your problem... |
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:18 PM |
| GET THE HECK OUT, YOU'RE CLEARLY A KID WHO CAN'T SCRIPT. THE SCRIPT WORKS, IT JUST DOESN'T WORK IN PLAY MODE MOST OF THE TIME, ARE YOU SERIOUSLY SOO ABSENT MINDED THAT YOU CAN'T EVEN READ? |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 01 Jan 2012 04:20 PM |
| Isn't that just a part of your script? |
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:21 PM |
| Yes, it is. The full script is over 1,000 lines long. |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 04:23 PM |
| Kid who can't script... Good joke. Guess haters gotta hate... |
|
|
| Report Abuse |
|
|
Wil2
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 728 |
|
|
| 01 Jan 2012 04:30 PM |
@C0D3Y
Character is a valid member of Player
ex: print(game.Players.Wil2.Character.Name) >Wil2 |
|
|
| Report Abuse |
|
|
Friaza
|
  |
| Joined: 26 Dec 2008 |
| Total Posts: 6229 |
|
|
| 01 Jan 2012 04:33 PM |
Now that you've been exposed as another fake scripter trying to troll somebody who can, get out COD3Y.
|
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 04:33 PM |
| Yea, I got that but I don't think the Player part is right... They have a broken script and they only post part of it and expect us to fix it, even if it's 1k lines we still need some of the variables and such... |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 04:34 PM |
| Late post, wasn't talking to Friz. I'm not a troll, if you've ever been on the ScriptHelpers forum before you'd see that I actually HELP PEOPLE WITH THEIR SCRIPTING PROBLEMS |
|
|
| Report Abuse |
|
|
Wil2
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 728 |
|
|
| 01 Jan 2012 04:34 PM |
| um c0d3y, WE ARE SUPPOSE TO POST LINES THAT MAY CAUSE THE PROBLEM NOT THE ENTIRE SCRIPT! Read the thread saying before you post |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 01 Jan 2012 04:40 PM |
| I have read the entire thing, I'm saying that when I look at a script line that starts off with Player, I think that's where the first mistake is. Without any previous variables I expect all lines to start with either script or game. Otherwise they won't work... |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2012 04:41 PM |
| Okay, we all should know that the Heal scripts break. Not out faults, but ROBLOX's. I made so many heal scripts that worked, but now... Broken without an output. XD. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|