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 » Scripting Helpers
Home Search
 

Re: Surface GUI Door that opens/closes

Previous Thread :: Next Thread 
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
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
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
25 Oct 2014 07:44 PM
Any One with help?
Report Abuse
thermonuklear is not online. thermonuklear
Joined: 19 Oct 2014
Total Posts: 484
25 Oct 2014 07:50 PM
Lua is case sensitive, capitalize the W in Workspace.
Report Abuse
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
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
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
25 Oct 2014 08:19 PM
Please?
Report Abuse
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
25 Oct 2014 08:57 PM
bump
Report Abuse
thermonuklear is not online. thermonuklear
Joined: 19 Oct 2014
Total Posts: 484
25 Oct 2014 09:59 PM
Does it give you a blue underscore, if so use:
game.Workspace instead of just Workspace.
Report Abuse
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
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
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
25 Oct 2014 11:05 PM
KOT it didnt Work :(
Report Abuse
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
25 Oct 2014 11:34 PM
it didnt work
Report Abuse
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
26 Oct 2014 12:09 PM
bump, can anyone else help?
Report Abuse
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
26 Oct 2014 01:00 PM
Please i really need this thanks!
Report Abuse
GETLOWDUDE is not online. GETLOWDUDE
Joined: 03 Apr 2012
Total Posts: 89
26 Oct 2014 01:32 PM
:(
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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