Hello devs currently i made an animated door using tween service but it is not working.
Could anyone help me?
Scripts
open = false
door1 = script.Parent.Parent.Parent.Door1
local Open2 = TweenService:Create(door2,tweenInfo,Door2Open)
local Close1 = TweenService:Create(door1,tweenInfo,Door1Close)
local Close2 = TweenService:Create(door2,tweenInfo,Door2Close)
script.Parent.MouseClick:connect(function()
if open == false then
Open1:Play()
Open2:Play()
wait(2)
open = true
else
Close1:Play()
Close2:Play()
wait(2)
open = false
end
end)
Please debug your own code and attempt to fix it yourself first before posting threads to the forums. As well, âitâs not workingâ is not a sufficient enough explanation regarding the problems in your code. You need to identify the exact problem and isolate the code so itâs easier to help you.
Hehe, no worries! Iâve stared at my code for hours sometimes wondering why it wasnât working & trying all sorts of âfixesâ then finally notice a spelling error or fault. No apologies necessary.