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: Creating a animated trapdoor

Previous Thread :: Next Thread 
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
16 Aug 2014 11:16 AM
I'm trying to create a trapdoor that opens and the player can go down into it, but its not working
active = false
rot = 0
script.Parent.Touched:connect(function(prt)
if active then return end
active = true
if not prt.Parent then return end
plr = game.Players:GetPlayerFromCharacter(prt.Parent)
if not plr then return end
for i = 1, 90 do
script.Parent.Rotation = Vector3.new(rot + 1, 0, 0)
rot = script.Parent.Rotation.X
wait(0.01)
end
wait(3)
for i = 1, 90 do
script.Parent.Rotation = Vector3.new(rot - 1, 0, 0)
rot = script.Parent.Rotation.X
wait(0.01)
end
active = false
end)




Here are the problems I'm having:
- The trapdoor only works once
- The trapdoor rotates into the center of the hole
- It sometimes "floats" up due to collision detection
- How would I make this using CFrame?
If anyone can create a example script that fixes these problems that would be awesome!
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
16 Aug 2014 03:25 PM
bump
Report Abuse
Zoink101 is not online. Zoink101
Joined: 19 Dec 2010
Total Posts: 2758
16 Aug 2014 03:26 PM
Like the one on TMM?
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
16 Aug 2014 03:52 PM
Yeah, similar to that one.
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
16 Aug 2014 03:53 PM
Pull this off, and give me a copy please.
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
16 Aug 2014 03:58 PM
I gave you a copy of the script. Look at the op.
Report Abuse
FireSliding is not online. FireSliding
Joined: 12 Jul 2014
Total Posts: 7938
16 Aug 2014 04:24 PM
It isn't a working one doe. D:
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
16 Aug 2014 05:32 PM
I'm asking how to fix my script so it is a working one.
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
16 Aug 2014 08:33 PM
bump
Report Abuse
Parlus is not online. Parlus
Joined: 06 Sep 2009
Total Posts: 7666
16 Aug 2014 09:02 PM
if i only works once then do:


while true do


at the top and make sure that after it opens it returns to its original position
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
16 Aug 2014 09:26 PM
That part has been fixed. What about my other problem?
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
17 Aug 2014 01:03 PM
bump
Report Abuse
Woofeblox is not online. Woofeblox
Joined: 11 Jan 2014
Total Posts: 131
18 Aug 2014 03:34 PM
bump

We Make Doge - http://www.roblox.com/My/Groups.aspx?gid=1151930
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