A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
naknak
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
Supernapalm
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
m27frogy
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
slayer9365
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
myrco919
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
branefreez
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
ninga95
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
CloneTrooper787
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
raboy117
Enum..... I Hate It...... Vote_lcapEnum..... I Hate It...... Voting_barEnum..... I Hate It...... Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
Enum..... I Hate It...... EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
Enum..... I Hate It...... EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
Enum..... I Hate It...... EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
Enum..... I Hate It...... EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
Enum..... I Hate It...... EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
Enum..... I Hate It...... EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
Enum..... I Hate It...... EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
Enum..... I Hate It...... EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
Enum..... I Hate It...... EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
Enum..... I Hate It...... EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
Enum..... I Hate It...... EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
Enum..... I Hate It...... EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
Enum..... I Hate It...... EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
Enum..... I Hate It...... EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
Enum..... I Hate It...... EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
Enum..... I Hate It...... EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
Enum..... I Hate It...... EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
Enum..... I Hate It...... EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
Enum..... I Hate It...... EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
Enum..... I Hate It...... EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 Enum..... I Hate It......

Go down 
3 posters
AuthorMessage
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

Enum..... I Hate It...... Empty
PostSubject: Enum..... I Hate It......   Enum..... I Hate It...... EmptyJuly 22nd 2011, 12:12 pm

Why cant it realize that these are two different enumerations!!!!!? I have been stumped for about an hour trying to figure this out... please help...


for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("TextButton") then
v.MouseButton1Down:connect(function ()
for i,button in pairs(script.Parent:GetChildren()) do
if button:IsA("TextButton") and child ~= v then
if button.Style == Enum.ButtonStyle.RobloxButtonDefault then
button.Style = "RobloxButton"
end
end
end
-->> if v.Style == Enum.ButtonStyle.RobloxButton then
v.Style = "RobloxButtonDefault"
print("Selected")
-->> elseif v.Style == Enum.ButtonStyle.RobloButtonDefault then
v.Style = "RobloxButton"
print("Deselected")
-->> else
v.Style = "RobloxButton"
print("Deselected & Fixed")
end
end)
end
end
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

Enum..... I Hate It...... Empty
PostSubject: Re: Enum..... I Hate It......   Enum..... I Hate It...... EmptyJuly 22nd 2011, 2:38 pm

I'm sorry, I don't work with enums... Ask Supernapalm.
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

Enum..... I Hate It...... Empty
PostSubject: Re: Enum..... I Hate It......   Enum..... I Hate It...... EmptyJuly 22nd 2011, 3:23 pm

I figured it out! Im sooo stupid! I had somthing that was nothing lol.

if .... and child ~= v

there is no child.... I should have said button. Its all fixed and works fine now! :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

Enum..... I Hate It...... Empty
PostSubject: Re: Enum..... I Hate It......   Enum..... I Hate It...... EmptyJuly 26th 2011, 10:45 am

Hehehheeh I should have seen that!
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 26

Enum..... I Hate It...... Empty
PostSubject: Re: Enum..... I Hate It......   Enum..... I Hate It...... EmptyFebruary 4th 2012, 7:37 am

I hate Enums too:

Enum = nil


now I don't have to worry about them because they don't exist anymore :)
Back to top Go down
Sponsored content





Enum..... I Hate It...... Empty
PostSubject: Re: Enum..... I Hate It......   Enum..... I Hate It...... Empty

Back to top Go down
 
Enum..... I Hate It......
Back to top 
Page 1 of 1
 Similar topics
-
» Just made a full enum system. :D

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: