| |
|
Phynx
|
  |
| Joined: 25 Aug 2011 |
| Total Posts: 1405 |
|
| |
|
| |
|
xDvox
|
  |
| Joined: 27 Aug 2011 |
| Total Posts: 846 |
|
|
| 18 Jun 2012 04:15 PM |
> hp.humanoid
Do you mean health? |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 18 Jun 2012 04:29 PM |
| BrickColor.new("Bright green").Color |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 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 |
|
|