IRyan70Join Date: 2011-06-08 Post Count: 484 |
script.Parent.Menu2.updatelog2.MouseButton1Click:connect(function()
updatelog.Visible = true
menu2.Visible = false
end)
All variables are set perfect, no errors in output, and it just wont do ANYTHING, like at all. :( Anyone see an error? |
|
|
Try using MouseButton1Down instead of MouseButton1Click
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
MouseButton1Down is for when you hold it, MouseButton1Click is when you click the Left mouse button.
The life of a man, can be taken so quickly. |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
Ahhh, i tried both, no error, no problem. It just like stays there as if they are text labels instead of textbuttons, but even output would tell me about that stupid mistake. Im getting annoyed...
Any other solutions? |
|
|
Unfortunately not, I'm having the same problem except with Tweening. No error, nothing happens.
The life of a man, can be taken so quickly. |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
|
|
|
I say "Unfortuantely not" but there is probably some kind of work around to it.
The life of a man, can be taken so quickly. |
|
|
@ziruto
MouseButton1Down can be used for clicks too. I actually don't ever use Click because it's not as reliable as Down (at least that's how it was when GUI's were new, it's probably different now)
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
Wait, is this a TextLabel? If so, it would not work. |
|
MHebesJoin Date: 2013-01-04 Post Count: 2278 |
@Hyroad
it would also throw an error :P
Show us where you're defining your variables. |
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
I don't think your path to the variables arn't right or your variables don't exist. |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
Alright let me layout my setup here
StarterGui
_Game-ScreenGUI
CameraSetup>-ScreenGUI
ViewClass[LocalScript]
ViewPlayer[LocalScript
Intro>-ScreenGUI
Localscript
black
title
Menu>-ScreenGUI
Localscript[The Problem area] -again there are no errors and all variables are set.
-------------------------------------------------------------------------The script---------------------------------------------------------------
game1 = script.Parent.Parent
menu2 = script.Parent.Menu2
updatelog = script.Parent.updatelog
script.Parent.Menu2.play.MouseButton1Click:connect(function()
script.Parent.Parent.CameraSetup.ViewPlayer.Disabled = false
script.Parent:Remove()
script.Parent.Parent.Intro:Remove()
end)
script.Parent.Menu2.updatelog2.MouseButton1Click:connect(function()
updatelog.Visible = true
menu2.Visible = false
end)
script.Parent.updatelog.Exit1.MouseButton1Click:connect(function()
updatelog.Visible = false
menu2.Visible = true
end)
----------------------------------------------------------------------------------------------------------------
Menu2>Frame
play
updatelog2
updatelog>Frame
Exit1
|
|
KipykoJoin Date: 2014-06-01 Post Count: 249 |
Look up a Player named Friaza on youtube some of his scripting tutorials might help you out. |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
I dont need to watch friaza Lol, I have this all setup, and the 2 buttons arent working. I honestly blame roblox. I have just clicked on all the paths for my variables, everything is named and capitaliazed perfectly. |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
Look for yourself everyone, The buttons are BROKEN.
http://www.roblox.com/Ignis-MMORPG-place?id=167109879
-Give it a sec to Load
But i honestly think these buttons are broken due to roblox.
|
|
C_SharperJoin Date: 2011-10-03 Post Count: 9405 |
You can't blame roblox. I have in the past, but I was wrong with my statement. It was something I did. Same applies to you. |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
You may be right, Maybe the studio just glitched the buttons. I made a new test place, with a textbutton that deletes the baseplate and removes the gui. It worked fine. I think my other 2 buttons are glitched since they dont even flicker when you put your mouse over the button. |
|
MHebesJoin Date: 2013-01-04 Post Count: 2278 |
You're problem MAY be that they are behind another GUI. Try making sure 'Active' is checked for both of them? |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
There all active, im gonna redo all the variables so i guess i better start typing... |
|
|
Just to confirm: You are using a LocalScript, right? |
|
IRyan70Join Date: 2011-06-08 Post Count: 484 |
Yes Localscripts |
|
|
Everything works fine for me, something wrong on your side. |
|