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 
buddyBob231 is not online. buddyBob231
Joined: 22 Nov 2010
Total Posts: 297
18 Jun 2012 03:45 PM
[ Content Deleted ]
Report Abuse
Phynx is not online. Phynx
Joined: 25 Aug 2011
Total Posts: 1405
18 Jun 2012 03:47 PM
idk.
Report Abuse
buddyBob231 is not online. buddyBob231
Joined: 22 Nov 2010
Total Posts: 297
18 Jun 2012 04:12 PM
[ Content Deleted ]
Report Abuse
xDvox is not online. xDvox
Joined: 27 Aug 2011
Total Posts: 846
18 Jun 2012 04:15 PM
> hp.humanoid


Do you mean health?
Report Abuse
xDvox is not online. xDvox
Joined: 27 Aug 2011
Total Posts: 846
18 Jun 2012 04:16 PM
I believe

>BrickColors.Green()
I don't think it needs parentheses.
Report Abuse
buddyBob231 is not online. buddyBob231
Joined: 22 Nov 2010
Total Posts: 297
18 Jun 2012 04:27 PM
[ Content Deleted ]
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
18 Jun 2012 04:29 PM
BrickColor.new("Bright green").Color
Report Abuse
buddyBob231 is not online. buddyBob231
Joined: 22 Nov 2010
Total Posts: 297
18 Jun 2012 04:47 PM
[ Content Deleted ]
Report Abuse
buddyBob231 is not online. buddyBob231
Joined: 22 Nov 2010
Total Posts: 297
18 Jun 2012 07:39 PM
[ Content Deleted ]
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
18 Jun 2012 07:56 PM
Let me make this intelligent looking. So many problems...

GUI = game.Lighting.hintGui
Cost = 10
Button = script.Parent.button.BrickColor = BrickColor.new("Bright yellow")
function onTouched(hit)
if Button.BrickColor == "Bright yellow" then
hp = hit.Parent
if hp:findFirstChild("Humanoid") then
pc = game.Players:GetPlayerFromCharacter(hp)
c = pc.leaderstats.Points
if c.Value >= Cost then
Button.BrickColor = BrickColor.new("Bright red")
c.Value = c.Value - Cost
GUI:clone().Parent = c.Parent.Parent.PlayerGui
wait(1)
Button.BrickColor = BrickColor.new("Bright yellow")
end end end end
Button.Touched:connect(onTouched)




~thedestroyer115, master RPG maker~
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