GieseMan
|
  |
| Joined: 25 Oct 2008 |
| Total Posts: 199 |
|
|
| 11 Mar 2012 11:07 PM |
player = script.Parent.Parent.Parent.Parent.Parent gold = player.leaderstats.KOs upgradeStuff = game.Lighting.Taco function buy() if gold.Value >= 2 then gold.Value = gold.Value - 2 local a = upgradeStuff:clone() a.Parent = player.Backpack end end script.Parent.MouseButton1Down:connect(buy)
I placed the Taco in Lighting and this still doesn't work. Can anyone tell me why?? |
|
|
| Report Abuse |
|
|
Abillityx
|
  |
| Joined: 26 Feb 2011 |
| Total Posts: 3938 |
|
|
| 11 Mar 2012 11:39 PM |
| You used way to many parents. Try using :findFirstChild("WhatTheChildIsHere") method. |
|
|
| Report Abuse |
|
|
GieseMan
|
  |
| Joined: 25 Oct 2008 |
| Total Posts: 199 |
|
|
| 12 Mar 2012 06:27 PM |
| What would I put in the parenthesis? I want it to find the player that is using it...but idk how to do it. |
|
|
| Report Abuse |
|
|
GieseMan
|
  |
| Joined: 25 Oct 2008 |
| Total Posts: 199 |
|
| |
|
kools
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 1659 |
|
|
| 12 Mar 2012 07:49 PM |
You could insert a Local Script in it. Automaticly you could make the Player a variable by saying:
local Player = game.Players.LocalPlayer --Not sure if the spelling is right.
That should make things easier.
But remeber it has to be in a Local Script , in a Player to work. |
|
|
| Report Abuse |
|
|
Abillityx
|
  |
| Joined: 26 Feb 2011 |
| Total Posts: 3938 |
|
|
| 12 Mar 2012 09:53 PM |
| Sorry, I meant to remove parenthesis. Just use only quotation marks for that part. |
|
|
| Report Abuse |
|
|