I made this tween function to open an oven door, its not working, the output says the tween is playing however the oven door never moves. please help.
Here is everything to do with the tween:
--Lid
local hinge = script.Parent.OvenInside.Hinge
local ovenLid = script.Parent.OvenInside.OvenLid
local open = false
local function openOvenLid()
print("clicked")
if open == false then
print("closed")
lidGoal.CFrame = hinge.CFrame * CFrame.Angles(math.rad(-90),0,0)
print("goal gotten")
tween = tweenService:Create(hinge, TweenInfo.new(1, Enum.EasingStyle.Exponential), lidGoal)
print("tween found")
tween:Play()
print("tween played")
else
lidGoal.CFrame = hinge.CFrame * CFrame.Angles(0,0,0)
tween = tweenService:Create(hinge, TweenInfo.new(1, Enum.EasingStyle.Exponential), lidGoal)
tween:Play()
end
end
ovenLid.ClickDetector.MouseClick:Connect(openOvenLid)
The output says that all the prints are printing so the tween had to of played but nothing moves when I run the function.
thanks in advance.