how do u add a orientation/rotatation to ur door so it turns if u go on the detector send edit of this script pls

local TweenService = game:GetService("TweenService")

local door1 = script.Parent:WaitForChild("Door1")

local tweeningInformation = TweenInfo.new(

0.5,   

Enum.EasingStyle.Linear,

Enum.EasingDirection.Out,

0,

false,

0

)

local door1Open = {CFrame = CFrame.new(-234.581, 28.465, -68.869)}

local door1Close = {CFrame = CFrame.new(-234.558, 27.716, -68.846)}

local tween1open = TweenService:Create(door1,tweeningInformation,door1Open)

local tween1close = TweenService:Create(door1,tweeningInformation,door1Close)

script.Parent.Detector1.Touched:Connect(function(hit)

tween1open:Play()

wait(2)

tween1close:Play()

end)

-31.72, -1.06, 2.04:orientation for open

28.25, 0.94, 1.97:orientation for close

2 comments

0

Um, can you put it in code block

0

UHHHHHH, what the hell I can read with my freaking eyes