of     1   

darkboeda
#36757928Tuesday, November 09, 2010 5:30 PM GMT

Ive made this Small GUI (Its my first time.) and i used Wiki to find out what to do. now ive used the script function onClick() print("Clicked") end element.MouseButton1Click:connect(onClick) and put function onClick() print("Clicked") end Script.Parent.Parent.EnergyG1.TextTransparency = 0 element.MouseButton1Click:connect(onClick) In it. Though whenever i click the TextButton Nothing happens. The Layout in my Workspace is : GuiMain-->Frame-->ImageLabel and EnergyG1(TextButton)-->Script Thank you if you want to help :D
Sil3ntScript3r
#36757953Tuesday, November 09, 2010 5:31 PM GMT

function onClick() print("Clicked") Script.Parent.Parent.EnergyG1.TextTransparency = 0 end
Sil3ntScript3r
#36757963Tuesday, November 09, 2010 5:32 PM GMT

Oh, and the connection line. ~-(Floodcheck)-~
darkboeda
#36758042Tuesday, November 09, 2010 5:35 PM GMT

Its Probably Again some dumb problem but whenever i test the script in solo i cant hit the button. it just makes me walk to where i clicked. How can i click it? :D (I Hit Random things in property mayby that has to do with it :S)
BloxBuilder900
#36758044Tuesday, November 09, 2010 5:35 PM GMT

function onClick() print("Clicked") --Anything else you want to happen goes INSIDE the function, right under here: Script.Parent.Parent.EnergyG1.TextTransparency = 0 end --element it's not a specified variable, but since you gave me the Layout, I can do that script.Parent.MouseButton1Down:connect(onClick) --Also, it's MouseButton1Down, not Click :D --Why script.Parent ? Assuming what you called 'element' it's the button (from the event MouseButton1Clicked, that is 'Down'), and since I had the layout, EnergyG1 (the button) holds the script, this means that the script it's the button's parent.
darkboeda
#36758201Tuesday, November 09, 2010 5:42 PM GMT

:o i did alot wrong :o Sneaky Wiki...
darkboeda
#36758356Tuesday, November 09, 2010 5:48 PM GMT

Ok i put it all in and when i press the button nothing still happens :C i have in properties the Frame and Button Active as true but =/ I have absoluteley no idea what im doing wrong :[
Sil3ntScript3r
#36758399Tuesday, November 09, 2010 5:50 PM GMT

Make it like this: StarterGui >ScreenGui >>Gui >>>Script
CrniOrao
#36758432Tuesday, November 09, 2010 5:51 PM GMT

There is no such property of GUI to make transparent text, just set text of the button to "" --nothing That should solve the problem!
Sil3ntScript3r
#36758453Tuesday, November 09, 2010 5:52 PM GMT

I didn't really look. XD
darkboeda
#36758492Tuesday, November 09, 2010 5:54 PM GMT

Meh, No work
darkboeda
#36758510Tuesday, November 09, 2010 5:55 PM GMT

Nvm, i ment that for 3 above :P You guys post fast o.o
Sil3ntScript3r
#36758528Tuesday, November 09, 2010 5:55 PM GMT

Why, thank you! :D Floodcheck hates me for posting fast. O.o
darkboeda
#36759078Tuesday, November 09, 2010 6:16 PM GMT

Ok ife Done the stuff you guys said and i go into solo and click on it and even Output wont bother to spit out the error =/
Notunknown99
#36759642Tuesday, November 09, 2010 6:40 PM GMT

'script' is capitolised...
Sil3ntScript3r
#36759731Tuesday, November 09, 2010 6:43 PM GMT

No, it's not. -(FLOODCHECK)-
Notunknown99
#36760311Tuesday, November 09, 2010 7:09 PM GMT

function onClick() print("Clicked") Script.Parent.Parent.EnergyG1.TextTransparency = 0 --ORLY NAO? end
Sil3ntScript3r
#36764223Tuesday, November 09, 2010 9:07 PM GMT

Script is never captialized. It's script.Parent. And did you even try that script?
pwnedu46
#36778973Wednesday, November 10, 2010 1:00 AM GMT

function onClick() print("Clicked") script.Parent.Parent.EnergyG1.Text = "" end script.Parent.MouseButton1Click:connect(onClick)
Sil3ntScript3r
#36784974Wednesday, November 10, 2010 2:32 AM GMT

^ | See?
darkboeda
#36792093Wednesday, November 10, 2010 8:18 AM GMT

Ok it Worked Finally ^.^ Oki. While you guys are still here :P I Tried to learn from a couple of free models how to make a script that gives you the GUI when you go in a seat and remove it when you jump out but without succes D: Could anyone Help me with this? This would be the last thing i need to know on this Thread :P
Sil3ntScript3r
#36794274Wednesday, November 10, 2010 1:54 PM GMT

---Put this in the character function onValueChange(Val) if (Val == "Sit") then if (Val == true) then --Show gui stuff elseif (Val == false) then --Hide gui stuff end end end script.Parent.Humanoid.ValueChanged:connect(onValueChange)--Might be wrong
darkboeda
#36794517Wednesday, November 10, 2010 2:14 PM GMT

Put it in character?
Sil3ntScript3r
#36794534Wednesday, November 10, 2010 2:15 PM GMT

Yes.
darkboeda
#36797432Wednesday, November 10, 2010 5:20 PM GMT

How :D

    of     1