|
| 24 Feb 2014 12:10 PM |
Ok, yes, this script is a free model. But it doesn't want to work. It throws out the error "Disconnected event because of exception". I'm really tired of trying to find a script that works. If I could make one myself, I would. Here's the script. Thanks!
function ot(hit) if hit.Parent ~= nil then local player = game.Players:playerFromCharacter(hit.Parent) if player ~= nil then if player.leaderstats.Stage.Value == script.Parent.Name - 1 then local h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil then if h.Health ~= 0 then player.leaderstats.Stage.Value = script.Parent.Name end end end end end end
script.Parent.Touched:connect(ot) |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2014 12:14 PM |
Oh, forgot to mention. It's throwing this aswell: "Stage is not a valid member of IntValue"
|
|
|
| Report Abuse |
|
|
| |
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 24 Feb 2014 12:22 PM |
| English:Stage is not in IntValue |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2014 12:24 PM |
| I know that is what it means. But the question is, I fix that how... |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Feb 2014 12:59 PM |
| This should be displaying it in the Leaderstats, but nothing shows up. Please help. This is probably the 3rd time that I've tried to fix this thing, but no one wants to help. |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 01:51 PM |
Bump
Are people ignoring this because the answer is so obvious? |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 02:03 PM |
"I'm really tired of trying to find a script that works."
Solution:
Create one. |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 02:09 PM |
| If you would read the next scentence, you would see: "If I could make one myself, I would." |
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 02:10 PM |
Not: if player.leaderstats.Stage.Value == script.Parent.Name - 1 then Try (if the name of the script is a number): if player.leaderstats.Stage.Value == tonumber(script.Parent.Name) - 1 then
|
|
|
| Report Abuse |
|
|
|
| 25 Feb 2014 02:21 PM |
| Yes, the name of a script is a number. Thanks for the help, I'll see if it works. |
|
|
| Report Abuse |
|
|