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
|
  |
| Joined: 11 Jan 2014 |
| Total Posts: 131 |
|
| |
|
Zoink101
|
  |
| Joined: 19 Dec 2010 |
| Total Posts: 2758 |
|
| |
|
Woofeblox
|
  |
| Joined: 11 Jan 2014 |
| Total Posts: 131 |
|
|
| 16 Aug 2014 03:52 PM |
| Yeah, similar to that one. |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2014 03:53 PM |
| Pull this off, and give me a copy please. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 16 Aug 2014 04:24 PM |
| It isn't a working one doe. D: |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 11 Jan 2014 |
| Total Posts: 131 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 11 Jan 2014 |
| Total Posts: 131 |
|
| |
|
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 |
|
|