l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
|
| 21 Aug 2011 01:09 PM |
Output: Players.Player.PlayerGui.Votes.StartVotes.Script:4: attempt to index field 'votedstart' (a number value)
Script:
_G.votedstart.Changed:connect(function() script.Parent.Text = _G.Votedstart end) |
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
|
| 21 Aug 2011 01:18 PM |
I'm not sure if this will make a difference, but, try:
_G.votedstart.Changed:connect(function() script.Parent.Text = tostring(_G.Votedstart) end)
______________________________________ -ElectricBlaze,
roblox.com/my/groups.aspx?gid=372 Join today for a scripting teacher!
|
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
|
| 21 Aug 2011 01:24 PM |
When I try in Server I get no output. When I put it in Workspace and click run I still get:
Workspace.Script:4: attempt to index field 'votedstart' (a number value)
|
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
| |
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
|
| 21 Aug 2011 01:29 PM |
| LOLOLOL. Im an idiot. Thanks. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2011 01:33 PM |
| I'm an Idiot! (Primary Group) |
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
|
| 21 Aug 2011 01:34 PM |
Hmm still not working....
_G.votedstart.Value.Changed:connect(function() script.Parent.Text = tostring(_G.Votedstart.Value) end)
|
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
|
| 21 Aug 2011 01:42 PM |
_G.votedstart.Changed:connect(function() script.Parent.Text = tostring(_G.Votedstart.Value) end)
|
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
|
| 22 Aug 2011 02:06 PM |
| Weren't global variables removed a couple updates before? |
|
|
| Report Abuse |
|
|
Mew903NBC
|
  |
| Joined: 02 Aug 2011 |
| Total Posts: 304 |
|
|
| 22 Aug 2011 02:07 PM |
| First tell us WHAT _G.whatever is |
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
|
| 22 Aug 2011 02:09 PM |
| No global varibles still work, I use them in my other scripts. If you don't know what _G. is don't answer. It is a numbervalue(Defined in script not an actual one) |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2011 02:10 PM |
_G.votedstart.Changed:connect(function() script.Parent.Text = tostring(_G.Votedstart.Value) end)
That should work......... |
|
|
| Report Abuse |
|
|
Mew903NBC
|
  |
| Joined: 02 Aug 2011 |
| Total Posts: 304 |
|
|
| 22 Aug 2011 02:12 PM |
| If it is a NumberValue I dont see why the above dosent work. |
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
|
| 22 Aug 2011 02:16 PM |
Its not an actual numbervalue.... I just do this
_G.votedstart = 0
thus making it a numbervalue. Still doesn't work, I have it in
StarterGui -Votes(ScreenGui) --StartVotes(TextLabel) |
|
|
| Report Abuse |
|
|
Mew903NBC
|
  |
| Joined: 02 Aug 2011 |
| Total Posts: 304 |
|
|
| 22 Aug 2011 02:18 PM |
_G.votedstart.Changed:connect(function() script.Parent.Text = tostring(_G.Votedstart) end) |
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
Mew903NBC
|
  |
| Joined: 02 Aug 2011 |
| Total Posts: 304 |
|
|
| 22 Aug 2011 02:25 PM |
_G.votedstart.Changed:connect(function() script.Parent.Text = tostring(_G.votedstart) end) |
|
|
| Report Abuse |
|
|
l0lzz
|
  |
| Joined: 05 Dec 2009 |
| Total Posts: 1529 |
|
| |
|
|
| 22 Aug 2011 02:45 PM |
_G.votedstart.value:connect(function() script.Parent.Text = tostring(_G.Votedstart) end)
Idk the one i posted earlier should of made it work |
|
|
| Report Abuse |
|
|