generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Simple script. Not working.

Previous Thread :: Next Thread 
l0lzz is not online. 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 is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
21 Aug 2011 01:18 PM
Help..
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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 is not online. 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 is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
21 Aug 2011 01:26 PM
votedstart.Value much?
Report Abuse
l0lzz is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
21 Aug 2011 01:29 PM
LOLOLOL. Im an idiot. Thanks.
Report Abuse
marioblox1094 is not online. marioblox1094
Joined: 14 Aug 2010
Total Posts: 1839
21 Aug 2011 01:33 PM
I'm an Idiot! (Primary Group)
Report Abuse
l0lzz is not online. 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 is not online. 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 is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
21 Aug 2011 02:01 PM
Still doesn't work...
Report Abuse
l0lzz is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
21 Aug 2011 02:12 PM
Bump
Report Abuse
l0lzz is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
21 Aug 2011 02:30 PM
Bumpers
Report Abuse
l0lzz is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
21 Aug 2011 03:02 PM
Bump O_O
Report Abuse
l0lzz is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
22 Aug 2011 02:04 PM
Bump
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
22 Aug 2011 02:06 PM
Weren't global variables removed a couple updates before?
Report Abuse
Mew903NBC is not online. Mew903NBC
Joined: 02 Aug 2011
Total Posts: 304
22 Aug 2011 02:07 PM
First tell us WHAT _G.whatever is
Report Abuse
l0lzz is not online. 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
SirRichyMcRichston is not online. SirRichyMcRichston
Joined: 17 Oct 2010
Total Posts: 1283
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 is not online. 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 is not online. 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 is not online. 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 is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
22 Aug 2011 02:23 PM
Nope. Doesn't Work.
Report Abuse
Mew903NBC is not online. 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 is not online. l0lzz
Joined: 05 Dec 2009
Total Posts: 1529
22 Aug 2011 02:30 PM
Nothing...
Report Abuse
SirRichyMcRichston is not online. SirRichyMcRichston
Joined: 17 Oct 2010
Total Posts: 1283
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image