Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Double Door, Horizontally, is not opening properly (C-Frame) how i fix this?

Asked by 4 years ago
Edited 4 years ago

Can Someone please help me with this? I dont know how to explain it well... so there is a print

(Let me know if the link is invisible)

(https://prnt.sc/tlekrn)

The SECOND Door Open/Close Script:

---OPEN

for i = 1, 23 do
        CDoor.Door1.CFrame = CFrame.new(CDoor.Door1.Position - Vector3.new(0, 0, 0.3))
        CDoor.Door2.CFrame = CFrame.new(CDoor.Door2.Position + Vector3.new(0, 0, 0.3))
        wait()  
        end 


----CLOSE

for i = 1, 23 do
        CDoor.Door1.CFrame = CFrame.new(CDoor.Door1.Position + Vector3.new(0, 0, 0.3))
        CDoor.Door2.CFrame = CFrame.new(CDoor.Door2.Position - Vector3.new(0, 0, 0.3))
        wait()
        end

0
first the link doesnt work, and second, please tell us what isnt working so we can solve you problem. raid6n 2196 — 4y
0
The link is working for me, is a PRINT, without the ( )  https://prnt.sc/tlekrn. zMadZeus 6 — 4y
0
ah ok raid6n 2196 — 4y
1
Why not use tweenservice? At least that way you can see your error more easily and it simplifies the math. https://developer.roblox.com/en-us/api-reference/class/TweenService uhi_o 417 — 4y
View all comments (2 more)
0
yeah ^ raid6n 2196 — 4y
0
Got it, i didnt know about this Tween thing, thank you! :D zMadZeus 6 — 4y

Answer this question