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: Help Fix these scripts

Previous Thread :: Next Thread 
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
24 Oct 2012 11:08 PM
These scipts will not even work can you tell me why?

Function onClicked()
script.Parent.Parent.Parent.Character:Destroy()
end
script.Parent.MouseButton1Click:connect(onClicked)
"I am using this to close the gui's"
-------------------------------------------------------
local location = [game.StarterGui.ScreenGui.Instructions]
function toggle()
location.Visible = not location.Visible
end
script.Parent.MouseButton1Down:connect(toggle)

"This Is for The 3rd Frame.. I am using it to make a frame appear when a text button is pushed."
-----------------------------------------------------------------
Function onClicked()
script.Parent.Parent.Parent.Parent.Parent.Character:Destroy()
end
script.Parent.MouseButton1Click:connect(onClicked)

"This is if the person wants to exit the game"

Can you tell me why they will not work?
Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
25 Oct 2012 04:57 AM
function onClicked()
script.Parent.Parent.Parent.Character:remove()
end
script.Parent.MouseButton1Click:connect(onClicked)
"I am using this to close the gui's"
-------------------------------------------------------
local location = game.StarterGui.ScreenGui.Instructions
function toggle()
location.Visible = not location.Visible
end
script.Parent.MouseButton1Down:connect(toggle)

"This Is for The 3rd Frame.. I am using it to make a frame appear when a text button is pushed."
-----------------------------------------------------------------
function onClicked()
script.Parent.Parent.Parent.Parent.Parent.Character:remove()
end
script.Parent.MouseButton1Click:connect(onClicked)


Not familiar with toggle GUI buttons, tried correcting some capitals. I also tend to stick with :remove() rather than Destroy.

Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
25 Oct 2012 11:55 AM
Didn't work.
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
25 Oct 2012 04:46 PM
Bump
Report Abuse
churchdrummer2 is not online. churchdrummer2
Joined: 01 Aug 2011
Total Posts: 265
25 Oct 2012 06:01 PM
Your making this WAY more complex then what it needs to be. PM me if you actually want me to help.
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