I have my script done for my door and it uses proximity prompts, it all works yet when the door opens it seems to first bounce and then closes so it looks bad, how would I fix that? Video below, including script.
local Door = script.Parent
local DoorEnd = script.Parent.Parent.DoorEnd
local TweenService = game:GetService("TweenService")
local prompt = script.Parent.ProximityPrompt
local Open = {CFrame = DoorEnd.CFrame}
local info = TweenInfo.new(
1,
Enum.EasingStyle.Back,
Enum.EasingDirection.Out,
0,
true,
0
)
local NewTween = TweenService:Create(Door, info, Open)
prompt.Triggered:Connect(function()
NewTween:Play()
end)
That’s because it’s using the Back tween effect for reversing it.
local Door = script.Parent
local DoorEnd = script.Parent.Parent.DoorEnd
local TweenService = game:GetService("TweenService")
local prompt = script.Parent.ProximityPrompt
local Open = {CFrame = DoorEnd.CFrame}
local info = TweenInfo.new(
1,
Enum.EasingStyle.Quint,
Enum.EasingDirection.Out,
0,
true,
0
)
local NewTween = TweenService:Create(Door, info, Open)
prompt.Triggered:Connect(function()
NewTween:Play()
end)