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: Help!

Previous Thread :: Next Thread 
jasondee1 is not online. jasondee1
Joined: 26 Jul 2008
Total Posts: 8002
10 Apr 2014 05:00 PM
So I am reviving builderman's old King of The Hill script and I am turning it into a sort of Juggernaut gamemode script. I fixed pretty much everything in the script except when the juggernaut is killed, the killer of the juggernaut doesn't become the new Juggernaut and the old juggernaut respawns.

Here is what I get in Output in a test server once the juggernaut kills another player. (testplayer x2)

11:03:58.381 - Script 'Workspace.GameScript', Line 26 - global onPlayerRespawn
11:03:58.385 - Script 'Workspace.GameScript', Line 166
11:03:58.386 - stack end
11:03:58.387 - Disconnected event because of exception
11:04:24.195 - New connection from 127.0.0.1|50554

Player -2 added
11:06:21.658 - Workspace.GameScript:165: attempt to call global 'onHumanoidDied' (a nil value)
11:06:21.660 - Script 'Workspace.GameScript', Line 165
11:06:21.660 - stack end
11:06:21.661 - Disconnected event because of exception
11:09:14.349 - httpGet https://api.roblox.com/marketplace/productinfo?assetId=132903627 failed. Trying again. Error: https://api.roblox.com/marketplace/productinfo?assetId=132903627: HttpSendRequest, err=0x2EE2. Elapsed time: 30.5292
11:09:14.362 - httpGet failed. Trying again. Elapsed time: 30.5292
11:10:41.291 - Disconnect from 127.0.0.1|56201
Player -1 leaving
11:10:41.369 - Touched is not a valid member of Tool
11:10:41.375 - Script 'Players.Player2.Backpack.MusicalChaingun.Paintball', Line 55
11:10:41.380 - stack end
11:10:41.450 - Knife is not a valid member of Backpack
11:10:41.455 - Script 'Workspace.GameScript', Line 26 - global onPlayerRespawn
11:10:41.461 - Script 'Workspace.GameScript', Line 166
11:10:41.467 - stack end
11:10:41.473 - Disconnected event because of exception
11:10:43.454 - Disconnect from 127.0.0.1|50554
Player -2 leaving
11:10:43.467 - Workspace.GameScript:178: bad argument #2 to 'random' (interval is empty)
11:10:43.473 - Script 'Workspace.GameScript', Line 178
11:10:43.481 - stack end

Here is the script in pastebin because roblox's filters wont let me post it

http://pastebin.com/NDx25DJM

I've so far pinned it down to the "onHumanoidDied" function but I can't seem to find a function named that so I'm stumped.


Any help?
Report Abuse
jasondee1 is not online. jasondee1
Joined: 26 Jul 2008
Total Posts: 8002
10 Apr 2014 06:04 PM
baump
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