|
| 25 Nov 2012 03:52 PM |
local Humanoid = script.Parent.Human function PwntX_X() local tag = Humanoid:findFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then local Leaderstats = tag.Value:findFirstChild("StarterGui") if Leaderstats.Quest1 ~= nil then Leaderstats.Quest1.Frame.slain.Value = Leaderstats.Quest1.Frame.slain.Value + 1 wait(0.1) script:remove() end end end end Humanoid.Died:connect(PwntX_X)
Would this be able to detect if the startergui is not nil, then find a gui if it's not nil, then add 1 to the value "slain" inside that gui? Could you fix it please. It's not that long nor time consuming. |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Nov 2012 04:09 PM |
Changed script: [not tested] local Humanoid = script.Parent.Human function PwntX_X() local tag = Humanoid:findFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then local Leaderstats = tag:findFirstChild("StarterGui") if Leaderstats.Quest1 ~= nil then Leaderstats.Quest1.Frame.slain.Value = Leaderstats.Quest1.Frame.slain.Value + 1 wait(0.1) script:remove() end end end end Humanoid.Died:connect(PwntX_X)
Would this be able to detect if the startergui is not nil, then find a gui if it's not nil, then add 1 to the value "slain" inside that gui? Could you fix it please. It's not that long nor time consuming. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 25 Nov 2012 04:22 PM |
| I'm sick of this. You guys ignore me completely on purpose. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:24 PM |
| ._. you guys are seriously trying to troll for no reason. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 25 Nov 2012 04:35 PM |
| WHAT THE HECK!? THIS HAS BEENN UP FOR HOURS YET NOBODY COMES TO ANSWER! |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:37 PM |
I don't quite understand what the problem is. Can you please explain it more clearly?
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:38 PM |
| I need it to add 1+ to a value in the gui.The gui is inside the player. The script checks if it exists, then adds the value if it does. It won't give me the value after I kill the humanoid. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:39 PM |
Is there an output?
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:40 PM |
| Let me check eet. Please don't abadandon. I had to post this thread twenty times in the past month and got no answer but insults. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:41 PM |
RULE #1 OF SCRIPT DEBUGGING: IF THERE IS AN OUTPUT, LOOK AT IT
i cannot stress that enough -_-
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:44 PM |
| There is no output. Plus stop it. I'm tired of that BS every time I ask something, even if it is just changing a brick's position. I see everyone else getting answered without anyone asking that. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:47 PM |
beggars can't be choosers
goodbye
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:49 PM |
| I'm not a beggar. I actually took the time to script this. Stop trying to troll. It's real BS what you did right there. It's annoying how idiots like you insult me for no reason. Maybe if you didn't act like that you would have respect... |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:53 PM |
i'm going to go out on a limb and respond to this thread once more.
first off, nobody cares if you took the time to script it. there is no obligation for people to help you here besides their own personal motivation. people are selfish by nature.
second off, i'm not trolling, nor did i insult you... i said beggars can't be choosers because you act like you have the right to attack people who want to help you... it's only natural that you're not getting help.
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:54 PM |
I did not attack you. I simply stated that you were pulling BS like the other people did. #arguement end |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:56 PM |
LOL uhm yeah you did. but you're that simple-minded i'll leave you to yourself.
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:57 PM |
but if you're*
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 04:59 PM |
| Dude. Stating that you were about to pull off BS isn't an attack. If I attacked you you would have been flaming. Resorting to insults isn't a smart way to show intellect either. It shows how "simple minded YOU ARE." everything you say reflects how you act. Since that was a quote and I repositioned some words, it does not apply to me. It reflects how YOU act. Stop trying to insult people when they are trying to be logical. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 05:01 PM |
let's break this quote down.
"I'm not a beggar. I actually took the time to script this. Stop trying to troll. It's real BS what you did right there. It's annoying how idiots like you insult me for no reason. Maybe if you didn't act like that you would have respect..."
first off the notion that i'm a troll is personally offensive. i'm trying to help you.
secondly you implied that i'm an idiot... is that not an attack?
and lastly you implied that i have no respect... that is most definitely an attack.
¬ SHG Scripter Tier-2 ♣ LuaLearners Elite |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 05:04 PM |
second off, i'm not trolling, nor did i insult you... (i said beggars can't be choosers because you act like you have the right to attack people who want to help you...) it's only natural that you're not getting help.
First of all, I did not post insults toward you before you posted that crap. You are arguing with someone who can build on facts. |
|
|
| Report Abuse |
|
|