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: Need Help...

Previous Thread :: Next Thread 
TheBoss2213 is not online. TheBoss2213
Joined: 17 Jun 2011
Total Posts: 100
29 Aug 2011 06:19 AM
Hi I am building a new type of door. Basically it is a button door with vip lazors. The door is working perfectly but one setting isnt working halfway. When you press the open button the first door gets cancolide turned off and the transparency goes to .5, but on the secong door the transparecy stays the same. But I want the transparency for the second door to go down also. I used this scrip on both doors changing only the parent of the button in each script so it would work with two doors:
function onClicked() script.Parent.Parent.Door.Transparency=0.5 script.Parent.Parent.Secondary.CanCollide= false
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
(The close button works perfectly so Im not including the script) Plz help me I really want my new door to be a success! THX ~TheBoss2213
Report Abuse
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
29 Aug 2011 06:51 AM
function onClicked()
script.Parent.Parent.Door.Transparency=0.5 script.Parent.Parent.Secondary.CanCollide= false
script.Parent.Parent.Secondary.Transparency=0.5 script.Parent.Parent.Door.CanCollide= false
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)


I don't know what you mean with CanCollide off but i think this should work?
Report Abuse
demonskul777 is not online. demonskul777
Joined: 28 May 2010
Total Posts: 3716
29 Aug 2011 06:55 AM
Stupid forum posts...

script.Parent.Parent.Door.Transparency=0.5

script.Parent.Parent.Secondary.CanCollide= false

script.Parent.Parent.Secondary.Transparency=0.5

script.Parent.Parent.Door.CanCollide= false

end

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

But i don't get what you mean with vip lazers?
Report Abuse
TheBoss2213 is not online. TheBoss2213
Joined: 17 Jun 2011
Total Posts: 100
29 Aug 2011 03:12 PM
Thx I will try it out :D btw the vip lazors are a separate script that I wrote.
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