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 » Scripters
Home Search
 

Re: Just a little bit of help please.

Previous Thread :: Next Thread 
Shadowknight619 is not online. Shadowknight619
Joined: 28 Sep 2010
Total Posts: 2453
30 Jul 2011 02:35 PM
I'm not a scripting "noob." I can correctly script a simple model and make it work. Well, I was trying to make a button door. One where you click the red button to close it and the green button to open it. I scripted it correctly, but I still can't get it to work. And yes, I did use a ClickDetector.
Here are the scritps:

Close Script:

function onClicked()
script.Parent.Parent.Door.Transparency= 0
script.Parent.Parent.Door.CanCollide= true
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)


Open Script:

function onClicked()
script.Parent.Parent.Door.Transparency= 0.4
script.Parent.Parent.Door.CanCollide= false

script.Parent.ClickDetector.MouseClick:connect(onClicked)


I can't see what's wrong with them. Do I have to pause the game when scripting it for it to work? I've tried saving it as a model, leaving the studio and re-entering it. I've also tried it on Test. I did it on build mode. Do I have to go on edit?

Any help will be much appreciated. I want to learn to use as little free models as possible. They take the fun out of building and almost always give you a virus!
Report Abuse
GigsD4X is not online. GigsD4X
Joined: 06 Jun 2008
Total Posts: 3794
30 Jul 2011 02:37 PM
Output?
Report Abuse
MrYofYof is not online. MrYofYof
Joined: 10 Jul 2011
Total Posts: 29
30 Jul 2011 02:37 PM
Output please.
Report Abuse
Shadowknight619 is not online. Shadowknight619
Joined: 28 Sep 2010
Total Posts: 2453
30 Jul 2011 02:41 PM
I tried reading about output on the Wiki. Could you explain how to use it, or what it is? Sorry if I'm sounding like a complete noob; it's better to ask than to fail :P
Report Abuse
dapbetatester is not online. dapbetatester
Joined: 18 Jan 2010
Total Posts: 1321
30 Jul 2011 02:44 PM
Your sure there is a clickdetector inside the model you want to open / close?

~~ RT and scripters ~~
Report Abuse
Shadowknight619 is not online. Shadowknight619
Joined: 28 Sep 2010
Total Posts: 2453
30 Jul 2011 02:47 PM
Dont worry, I got it to work. I opened output and it pretty much explained itself. The problem was I forgot an 'end' on the green button. Thanks anyway :)
Report Abuse
CRUSHER4003 is not online. CRUSHER4003
Joined: 01 Jul 2009
Total Posts: 648
30 Jul 2011 03:41 PM
GET OUTA THIS FORUM U NEED TO BE SCRIPTER HELPERS :D
Report Abuse
Nikolas5411 is not online. Nikolas5411
Joined: 03 Apr 2010
Total Posts: 2117
30 Jul 2011 03:42 PM
More like...
GOWBEY.
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
30 Jul 2011 03:43 PM
Close script works, but the open one is fixed below:

function onClicked()
script.Parent.Parent.Door.Transparency= 0.4
script.Parent.Parent.Door.CanCollide= false
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

-Turtles will hunt you down!
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
30 Jul 2011 03:43 PM
Crusher, you're the guy who said you were a "pre-admin".

-Wiki.roblox.com, the RBX.Lua reference
Report Abuse
CRUSHER4003 is not online. CRUSHER4003
Joined: 01 Jul 2009
Total Posts: 648
31 Jul 2011 10:09 AM
i didnt say i was a pre admin...
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
31 Jul 2011 10:13 AM
@CRUSHER (I got an ITS FREEEEEE voice from your name lol)

*Looks at primary*

*Shove into C&G*

~We don't script, we type random letters, symbols, and numbers then hope it works!
Report Abuse
CRUSHER4003 is not online. CRUSHER4003
Joined: 01 Jul 2009
Total Posts: 648
31 Jul 2011 11:57 AM
OMG ABY THE C & G IS ONLY FOR ME AND GIZMOTHEBOO!!
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
31 Jul 2011 12:00 PM
Yes you did, you tried to arrogantly trick me.

-[Insert witty comment here]
Report Abuse
CRUSHER4003 is not online. CRUSHER4003
Joined: 01 Jul 2009
Total Posts: 648
31 Jul 2011 01:26 PM
Exzactly when did i?
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
31 Jul 2011 01:39 PM
A year or so ago. :3

-[Insert witty comment here]
Report Abuse
CRUSHER4003 is not online. CRUSHER4003
Joined: 01 Jul 2009
Total Posts: 648
31 Jul 2011 02:47 PM
a year ago or so i was hacked ya know...
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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