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 » Scripters
Home Search
 

Re: How do I fix this easy error? ;-;

Previous Thread :: Next Thread 
noahrobs is not online. noahrobs
Joined: 06 Apr 2012
Total Posts: 26
31 Dec 2016 05:47 AM

function Value1()
print("Value1")

function Value2()
print("Value2)

repeat until wait()
if script.Parent.GUIValue.Value == 1 then
Value1()
end
if script.Parent.GUIValue.Value == 2 then
Value2()
end
wait(1)

I access Value 1 and 2 it works fine although when I try going back through
Value 1 and 2 it breaks Ex: 1 - [Working] [] 2 - [Working] [] 1 - [Breaks]


Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
31 Dec 2016 05:56 AM
function Value1()
print("Value1")
end
function Value2()
print("Value2)
end

while true do
if script.Parent.GUIValue.Value == 1 then
Value1()
end
if script.Parent.GUIValue.Value == 2 then
Value2()
end
wait(1)
end


what u were trying to do?
Report Abuse
noahrobs is not online. noahrobs
Joined: 06 Apr 2012
Total Posts: 26
31 Dec 2016 06:21 AM
But this is what I want I use value 1 and then I use value 2 but when I try using value 1 again it breaks:
but when I used what you done above it gets stuck in value 2 / a loop


Report Abuse
GreedTaka is not online. GreedTaka
Joined: 12 Dec 2014
Total Posts: 1503
31 Dec 2016 06:24 AM
because the values still value two just make it a .changed
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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