|
| 25 Oct 2014 07:26 PM |
I Cant see to get my script to work im using this script below
script.Parent.MouseButton1Click:connect(function() script.Parent.Visible = false script.Parent.Active = false script.Parent.Parent.TextBox.Visible = true wait(.5) workspace.GUIDoor.GUI.Transparency= 1 workspace.GUIDoor.GUI.CanCollide= false wait(3) workspace.GUIDoor.GUI.Transparency= 0 workspace.GUIDoor.GUI.CanCollide= true wait(3) script.Parent.Visible = true script.Parent.Active = true script.Parent.Parent.TextBox.Visible = false
end)
The Model is grouped in a model Called "GUIDoor"
There is the door named "GUI" And there is a wall and inside it theres a "textbox" -That Displays Open/Close And a textButton that has this script above in it. But When i click the button it changes to Close and doesnt change back to open and the Door doesnt open/close
-Help please to change script or something?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Oct 2014 07:50 PM |
Lua is case sensitive, capitalize the W in Workspace.
|
|
|
| Report Abuse |
|
|
|
| 25 Oct 2014 07:55 PM |
Doesn't Like The Upper Case W in Workspace, Wants me to change back,
Also the same problem still occurs With the Open/Close button not changing and the Door not opening/closing
Anything else?
Sincerely
GETLOWDUDE |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 25 Oct 2014 09:59 PM |
Does it give you a blue underscore, if so use: game.Workspace instead of just Workspace. |
|
|
| Report Abuse |
|
|
|
| 25 Oct 2014 10:28 PM |
game.Workplace works but the problem still continues
maybe the part
-workspace.GUIDoor.GUI
Needs to be changed to locate the Door better? |
|
|
| Report Abuse |
|
|
|
| 25 Oct 2014 10:54 PM |
function findItem(n) for _,__ in next,game.Workspace:children'' do if(__.Name:lower():find(n)~=nil) then return __; end; end; end; local door = findItem('door'); local guipath = door.SurfaceGui.TextButton; -- change to path to button guipath.MouseButton1Down:connect(function() guipath.Visible = false; guipath.Active = false; script.Parent.Parent.TextBox.Visible = true; wait(.5); door.GUI.Transparency= 1; door.GUI.CanCollide= false; wait(3); door.GUI.Transparency= 0; door.GUI.CanCollide= true; wait(3); guipath.Visible = true; guipath.Active = true; script.Parent.Parent.TextBox.Visible = false; end);
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 26 Oct 2014 12:09 PM |
| bump, can anyone else help? |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2014 01:00 PM |
| Please i really need this thanks! |
|
|
| Report Abuse |
|
|
| |
|