if game.Workspace.open.Value == true then local tweenService = game:GetService("TweenService") local part = game.Workspace.Model.doors.door1 local tweeningInformation = TweenInfo.new( 2, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, false, 0) local tweeningProperties = { ["Position"] = Vector3.new(-17.204, 6.759, 27.608) } local Tween = tweenService:Create(part,tweeningInformation,tweeningProperties) Tween:Play() print("should be done by now.....") game.Workspace.open.Value = false wait(5) local tweenService = game:GetService("TweenService") local part = game.Workspace.Model.doors.door1 local tweeningInformation = TweenInfo.new( 2, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 1, false, 0) local tweeningProperties = { ["Position"] = Vector3.new(-10.132, 6.759, 27.608) } local Tween = tweenService:Create(part,tweeningInformation,tweeningProperties) Tween:Play() print("closed") end
Boolean value of Open is successfully set to true.....but the door doesnt open If you need more info let me know, there are detectors around the door that will make the value true, then the door opening script will set it back to before closing the door? am I supposed to add an else statement or put "do" after then? please help I think its running repeatedly or something Nothing happens, nothing prints and no errors