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: How Do You Do This?

Previous Thread :: Next Thread 
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 07:47 PM
How do you make it when you step on something, it falls beneath you? Like a trap door?
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
28 Jun 2012 07:50 PM
.Touched event
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
28 Jun 2012 07:52 PM
Personally,
I'd have a hinge on the trapdoor
Then when it is touched by a humanoid, I'd unanchor the brick.


-:massive
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:03 PM
@Massive
The reason I am asking is because I have a piece of wood over a hole and when people walk across it, they fall in.
Report Abuse
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
28 Jun 2012 09:13 PM
function onTouched(hit)
door.CanCollide = false
wait(2)
door.CanCollide = true
end
script.Parent.Touched:connect(onTouched)



I am pretty sure that will work. Just change door.
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:13 PM
It's not even a door, just a piece of wood.
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
28 Jun 2012 09:14 PM
Make the CanCollide false in the properties. (Uncheck the box)
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:27 PM
So then can fall through it.
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
28 Jun 2012 09:31 PM
script.Parent.Touched:connect(function(plr)
if plr.Parent:findFirstChild("Humanoid") then
script.Parent.CanCollide = false
wait(3)
script.Parent.CanCollide = true
end
end)

Put that in the wood.
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:32 PM
I hope it works.
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
28 Jun 2012 09:37 PM
if you just change the property its like a mirage. Its not even there but it is O_O
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:38 PM
That's kind of what I want, so it'll be a trick.
Report Abuse
dddylan98 is not online. dddylan98
Joined: 16 Jul 2008
Total Posts: 1497
28 Jun 2012 09:38 PM
Just change the CanCollide property.
FLOOOOOOOOOOD c:
Report Abuse
TwoBoo is not online. TwoBoo
Joined: 08 Feb 2011
Total Posts: 10790
28 Jun 2012 09:39 PM
Do you also want it to disappear then reappear?
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:42 PM
Maybe.
Report Abuse
Greengoldman is not online. Greengoldman
Joined: 09 May 2012
Total Posts: 3
28 Jun 2012 09:47 PM
function onTouched(hit)
if player.Humanoid then
CanCollide = false
transparency = 1
wait.(3)
end end end
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
28 Jun 2012 09:47 PM
^No
Get that free modeled chunk out of here please.
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:47 PM
That would cool.
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 09:55 PM
be
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
28 Jun 2012 10:10 PM
@TwoBoo
It worked :D
Report Abuse
doneyes is not online. doneyes
Joined: 21 Mar 2008
Total Posts: 3466
28 Jun 2012 10:34 PM
I dont care what it is. Change door to whatever the hell you want! How would I know what your stuff is called?
Report Abuse
Policecar79 is not online. Policecar79
Joined: 15 Nov 2010
Total Posts: 2295
29 Jun 2012 09:23 AM
Okay, no need to get an attitude with me.
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