1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 18 Aug 2012 06:14 PM |
Commands = { Hint = { Command = {"Hint"}, Admin = true, OAdmin = true, Players = false, Action = [[ local Hint = Instance.new("Hint",Workspace) game.Debris:AddItem(Hint,10) Hint.Text=tostring(Player) ]]}} Command = Hint local Player = game.Players["1Topcop"] loadstring(Command.Action)()
No output. |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Aug 2012 06:21 PM |
| i think the problem is local player because what if they dont live near |
|
|
| Report Abuse |
|
|
ShoeBox4
|
  |
| Joined: 06 Apr 2011 |
| Total Posts: 890 |
|
|
| 18 Aug 2012 06:26 PM |
| I just died from laughter. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 18 Aug 2012 06:26 PM |
| The Command = Hint isn't the problem, I edited that in, these are just pieces of the script. |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 18 Aug 2012 06:41 PM |
Command = Commands.Hint
Try that. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 18 Aug 2012 06:44 PM |
Command = Hint Is the equivilent of Command = nil
You are indexing a nil value when you use Command.Action. |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
|
| 18 Aug 2012 06:45 PM |
I know.. I said it's Command = Commands.Hint
The real script runs a for loop through the Commands table and checks the variables
so like
for Nerm,Command in pairs(Commands)do if(Command.Command[1]=="Hint")then loadstring(Command.Action)() end end |
|
|
| Report Abuse |
|
|
1Topcop
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 6635 |
|
| |
|