Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

?ive made a code but it moves a block up and down and idk how to make it turn

Asked by 4 years ago
Edited 4 years ago

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

0
Um, can you put it in code block Block_manvn 395 — 4y
0
UHHHHHH, what the hell I can read with my freaking eyes Xapelize 2658 — 4y

Answer this question