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: dont know whats wrong with my script

Previous Thread :: Next Thread 
Brand0n123 is not online. Brand0n123
Joined: 25 Aug 2011
Total Posts: 11
20 Sep 2011 06:17 PM
Im making a trap door script and its not working i named the part TrapDoor and typed in this script

trapdoor = script.parent.TrapDoor

function onTouch(hit)
TrapDoor.Transparency = 0.5
TrapDoor.Transperancy = 1
TrapDoor.CanCollide = false
wait(3)
TrapDoor.Transperancy = 0.5
TrapDoor.Transperancy = 0
TrapDoor.CanCollide = true
end

script.Parent.Touched:connect(onTouched)

please help me
Report Abuse
SarahAngel is not online. SarahAngel
Joined: 12 Dec 2009
Total Posts: 2166
20 Sep 2011 06:23 PM
trapdoor = script.Parent.TrapDoor

function onTouch(hit)
TrapDoor.Transparency = 0.5
TrapDoor.Transparency = 1
TrapDoor.CanCollide = false
wait(3)
TrapDoor.Transparency = 0.5
TrapDoor.Transparency = 0
TrapDoor.CanCollide = true
end

script.Parent.Touched:connect(onTouch)
Report Abuse
Brand0n123 is not online. Brand0n123
Joined: 25 Aug 2011
Total Posts: 11
20 Sep 2011 06:29 PM
Is it the end where i said (onTouched)
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
20 Sep 2011 06:30 PM
Yes. It was both that, and because you set trapdoor to be 'script.parent.TrapDoor', instead of 'script.Parent.TrapDoor'.
Report Abuse
Brand0n123 is not online. Brand0n123
Joined: 25 Aug 2011
Total Posts: 11
20 Sep 2011 06:31 PM
ohhh thx
Report Abuse
Brand0n123 is not online. Brand0n123
Joined: 25 Aug 2011
Total Posts: 11
20 Sep 2011 06:32 PM
so other that that will it work
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
20 Sep 2011 06:33 PM
trapdoor = script.Parent.Trapdoor
function onTouch()
trapdoor.Transparency = 0.5
trapdoor.Transparency = 1
trapdoor.CanCollide = false
wait(3)
trapdoor.Transparency = 0.5
trapdoor.Transparency = 0
trapdoor.CanCollide = true
end
script.Parent.Touched:connect(onTouch)
Report Abuse
Brand0n123 is not online. Brand0n123
Joined: 25 Aug 2011
Total Posts: 11
20 Sep 2011 06:35 PM
WhT?????
Report Abuse
Brand0n123 is not online. Brand0n123
Joined: 25 Aug 2011
Total Posts: 11
20 Sep 2011 06:41 PM
please help it still dose not work
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
20 Sep 2011 06:44 PM
sorry, typo

trapdoor = script.Parent.TrapDoor
function onTouch()
trapdoor.Transparency = 0.5
trapdoor.Transparency = 1
trapdoor.CanCollide = false
wait(3)
trapdoor.Transparency = 0.5
trapdoor.Transparency = 0
trapdoor.CanCollide = true
end
script.Parent.Touched:connect(onTouch)

also, is teh TrapDoor a model or just one brick?
Report Abuse
Brand0n123 is not online. Brand0n123
Joined: 25 Aug 2011
Total Posts: 11
20 Sep 2011 06:45 PM
one brick
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