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: What's up with this door script?

Previous Thread :: Next Thread 
Pieguardian is not online. Pieguardian
Joined: 22 Jul 2008
Total Posts: 15807
25 Sep 2011 06:21 PM
function onTouched(hit)
script.Parent.Parent.Door.Transparency= 0.5
script.Parent.Parent.Door.Cancollide= false
wait(3)
script.Parent.Parent.Door.Transparency= 0
Script.Parent.Parent.Door.Cancollide= true
end
script.Parent.Touched:connect(onTouched)



----


Perhaps the ='s?
Report Abuse
JonathanSwag is not online. JonathanSwag
Joined: 30 Aug 2011
Total Posts: 1012
25 Sep 2011 06:25 PM
It's CanCollide
Report Abuse
MattJon is not online. MattJon
Joined: 28 Apr 2009
Total Posts: 660
25 Sep 2011 06:27 PM
I tihnk it's supposed to be connect(onTouch)


function onTouched(hit)
script.Parent.Parent.Door.Transparency = 0.5
script.Parent.Parent.Door.CanCollide = false
wait(3)
script.Parent.Parent.Door.Transparency = 0
script.Parent.Parent.Door.Cancollide = true
end
script.Parent.Touched:connect(onTouch)
Report Abuse
Jagger19 is not online. Jagger19
Joined: 14 Jun 2008
Total Posts: 1877
25 Sep 2011 06:41 PM
function onTouch(hit)
script.Parent.Parent.Door.Transparency = 0.5
script.Parent.Parent.Door.CanCollide = false
wait(3)
script.Parent.Parent.Door.Transparency = 0
Script.Parent.Parent.Door.CanCollide = true
end
script.Parent.Touched:connect(onTouch)

The following statement is false. the previous statement is true.
Report Abuse
MattJon is not online. MattJon
Joined: 28 Apr 2009
Total Posts: 660
25 Sep 2011 07:01 PM
Fix this?


function onClicked()
b = 0.1
y = script.Parent.Parent.Door
if y.Transparency = 0 then do
y.Transparency = y.Transparency + b until
y.Transparency = 1
y.CanCollide = false
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
Pieguardian is not online. Pieguardian
Joined: 22 Jul 2008
Total Posts: 15807
25 Sep 2011 08:12 PM
Thanks guys.
Report Abuse
1Topcop is not online. 1Topcop
Joined: 09 Jun 2009
Total Posts: 6635
25 Sep 2011 08:14 PM
function onTouched(hit)
script.Parent.Parent.Door.Transparency= 0.5
script.Parent.Parent.Door.CanCollide= false -- Need's CanCollide not Cancollide
wait(3)
script.Parent.Parent.Door.Transparency= 0
Script.Parent.Parent.Door.CanCollide= true -- Need's CanCollide not Cancollide
end
script.Parent.Touched:connect(onTouched)

-- 1Topcop

+ You know me as CrumleButt. This account was banned for 3 days at that time. :L
Report Abuse
Pieguardian is not online. Pieguardian
Joined: 22 Jul 2008
Total Posts: 15807
25 Sep 2011 08:18 PM
@top


It's not working... Is it because you accidently capitalized script? I'll try that. Anyway, thanks again. You're much better at this than I.
Report Abuse
Pieguardian is not online. Pieguardian
Joined: 22 Jul 2008
Total Posts: 15807
25 Sep 2011 08:21 PM
Thanks for everyone who helped, I figured it out... It's kind of... um... humiliating that I couldn't see that I didn't change the brick's name to "Door."
Report Abuse
pwnedu46 is not online. pwnedu46
Joined: 23 May 2009
Total Posts: 7534
25 Sep 2011 08:32 PM
Lol. We've all done it.


~ pwnedu46 ~
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