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: Roblox Lua Bug?

Previous Thread :: Next Thread 
gamemaker73 is not online. gamemaker73
Joined: 20 Aug 2008
Total Posts: 135
26 Nov 2011 11:29 AM
I got a simple vote GUI here and the first time I click on the button line 5 is ignored but every other time after that it runs fine, any ideas?

a=script.Parent

function Click()
if a.Voted.Value==false then
game.Workspace.Votes.Value = game.Workspace.Votes.Value + 1
a.Voted.Value = true
wait(1)
end
end

script.Parent.MouseButton1Down:connect(Click)
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
26 Nov 2011 11:34 AM
function MrChubbsissocoool()
if script.Parent.Voted.Value == false then -- Are you sure its a bool?
print("Gate One"..script.Parent.Voted.Value)
game.Workspace.Votes.Value = game.Workspace.Votes.Value + 1
script.Parent.Voted.Value = true
wait(1)
end
print("Gate One failed the value is: "..script.Parent.Voted.Value)
end

script.Parent.MouseButton1Click:connect(MrChubbsissocoool)
Report Abuse
gamemaker73 is not online. gamemaker73
Joined: 20 Aug 2008
Total Posts: 135
26 Nov 2011 11:39 AM
If it wasn't a bool the script would not work at all it just skips the line that adds the votes once.
Report Abuse
gamemaker73 is not online. gamemaker73
Joined: 20 Aug 2008
Total Posts: 135
26 Nov 2011 11:59 AM
So is it just a bug or can it be fixed?
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