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

6 comments
https://prnt.sc/1kh802k the success script for the touch function works, so its not a problem witht that
Is this if statement ran only once as shown here?
If open's value = true it will run then set it to false and close (havent scripted that yet) @deeskaalstickman649
I scripted that part and it says the script ran , ("closed" print at the end) well but the door doesnt open
I put newly edited script in the question
Can you put an Else in the If statement and put a print in the Else statement? If the print gets activated that means the server thinks the open Value is false. Tell me if it does that.