BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 14 Apr 2012 05:14 PM |
Gun = "" Player = game.Players.LocalPlayer PlayerC = game.Players.LocalPlayer.Character ---------------------------- if script.Parent.InUse.Value == true then Locate = PlayerC:GetChildren() for i = 1, #Locate do if Locate[i].className == "Tool" then Locate[i].Name = Gun
HoldingGun = Information.Gun script.Current_gun.Text = "..HoldingGun.."
is something wrong with this splice of code because my script is not working, located in the gui |
|
|
| Report Abuse |
|
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 14 Apr 2012 05:40 PM |
Players.Player.PlayerGui.UpgradeGUI.LocalScript:20: attempt to index global 'HoldingGun' (a nil value)
---HoldingGun = Information.Gun |
|
|
| Report Abuse |
|
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 14 Apr 2012 06:12 PM |
Realy 10 looks.. -_- i added a print but its still not working]
Information = {["M9"] = {Dam = 200, Rate = 300 , Relo = 20}}
PlayerC = game.Players.LocalPlayer.Character
Locate = PlayerC:GetChildren() for i = 1, #Locate do if Locate[i].className == "Tool" then Locate[i].Name = Gun print("1" ..Gun )
HoldingGun = Information.Gun |
|
|
| Report Abuse |
|
|