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 » Scripting Helpers
Home Search
 

Re: Checkpoint

Previous Thread :: Next Thread 
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
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
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
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
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
24 Feb 2014 12:20 PM
Bump
Report Abuse
BEART12 is not online. BEART12
Joined: 22 Oct 2008
Total Posts: 3190
24 Feb 2014 12:22 PM
English:Stage is not in IntValue
Report Abuse
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
24 Feb 2014 12:24 PM
I know that is what it means. But the question is, I fix that how...
Report Abuse
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
24 Feb 2014 12:55 PM
Bump
Report Abuse
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
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
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
25 Feb 2014 01:51 PM
Bump

Are people ignoring this because the answer is so obvious?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
25 Feb 2014 02:03 PM
"I'm really tired of trying to find a script that works."

Solution:

Create one.
Report Abuse
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
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
ObsessedwithMario is not online. ObsessedwithMario
Joined: 03 Mar 2012
Total Posts: 268
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
piratesfan21 is not online. piratesfan21
Joined: 26 Feb 2010
Total Posts: 777
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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