jackstrap
|
  |
| Joined: 20 Dec 2009 |
| Total Posts: 551 |
|
|
| 24 Feb 2012 11:43 PM |
Ok maybe it was a mistake, even if i'm just learning to script, i writed that script into a local script. Every thing prints like normaly, the output says i have no problems but the script is supposed to change the name of the tool... but doesnt work and doesnt break.
function equip() print("Equipped") if game.Players.LocalPlayer ~= nil then script.Parent.Parent.Name = "GL2("..script.Parent.Amo.Value..")" end end
function unequip() print("Unequipped") if game.Players.LocalPlayer ~= nil then print("localplayer found") script.Parent.Parent.Name = "GL2" end end
script.Parent.Equipped:connect(equip) script.Parent.Unequipped:connect(unequip)
Maybe it needs a loop so i can uptade but i don't really think it would work cause it doesnt change the name at all. |
|
|
| Report Abuse |
|
|
jackstrap
|
  |
| Joined: 20 Dec 2009 |
| Total Posts: 551 |
|
| |
|
|
| 24 Feb 2012 11:50 PM |
| Try putting a print after this line: if game.Players.LocalPlayer ~= nil then |
|
|
| Report Abuse |
|
|
jackstrap
|
  |
| Joined: 20 Dec 2009 |
| Total Posts: 551 |
|
| |
|