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: What is wrong with this script?

Previous Thread :: Next Thread 
camperxD is not online. camperxD
Joined: 03 Jun 2012
Total Posts: 493
30 Oct 2012 11:56 PM
local Humanoid = script.Parent.Humanoid -- Change Enemy to the name of your Monsters Humanoid
function PwntX_X()
local tag = Humanoid:findFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
local Leaderstats = tag.Value:findFirstChild("leaderstats")
if Leaderstats ~= nil then
Leaderstats.Gold.Value = Leaderstats.Gold.Value + 80 --How Much Money Given
wait(0.1)
script:remove()
end
end
end
end
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
31 Oct 2012 12:03 AM
Make sure all scripts are in the right location, make sure the parent of the script is a humanoid. Make sure that the creator value is located in the humanoid, and then we can help you a bit more considering nothing looks wrong at a quick glance.
Report Abuse
Vultraz is not online. Vultraz
Joined: 03 Jul 2008
Total Posts: 1289
31 Oct 2012 12:21 AM
Does anything show up in the output?
Report Abuse
Vultraz is not online. Vultraz
Joined: 03 Jul 2008
Total Posts: 1289
31 Oct 2012 12:22 AM
Also, is the function ever called in the script?
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