Hello I tried to make a SCPF door by using tween service but it is changing always the oriantation how can I fix this?
https://gyazo.com/97fb56adb2d2600068b90a5016741d97
My script:
local door1 = script.Parent.Door1
local move = script.Parent.DoorMove
local debounce = false
function open()
local tweeninformation = TweenInfo.new(
4,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
)
local pos = {CFrame = CFrame.new(move.Position)}
local tweencreate = game:GetService("TweenService"):Create(door1, tweeninformation, pos)
tweencreate:Play()
end
script.Parent.KeyCardReader1.Touched:Connect(function(Handle)
if Handle.Name == "Handle" and script:FindFirstChild(Handle.Parent.Name).Value == true then
open()
end
end)

2 comments
You're a Lua god and you're asking for help on a simple roblox script????
Exactly my thought when I saw this question.