#Can someone help me debug this code for a door?

11 messages · Page 1 of 1 (latest)

lilac quiver
#

Can someone give me a hand on how to debug this code / use Tween + CFrame or Vector3 to make moving doors?

wraith mica
#

you get any errors?

#

in line 5 it should be leftDoor.Position

silver jolt
#

Also, TweenInfo.new(), I believe, line 8.

left skiff
left skiff
silver jolt
#

Skibidy.

lilac quiver
#

Guys I changed the code and it didn't work, so I rewrote it and it still doesn't work 😭

#
local leftDoor = script.Parent
local Prompt = game.Workspace.DoubleDoors1.KeyCardReader.RedPart.Attachment.ProximityPrompt
local TweenService = game:GetService("TweenService")
local TweenInfo = TweenInfo.new(1,Enum.EasingStyle.Exponential,Enum.EasingDirection.Out, 0, false, 0)
local Property1 = {
    
    CFrame = leftDoor.CFrame.new(36.461,9.95,11)
    
}
Prompt.Triggered:Connect(function()
    TweenService.new(leftDoor,TweenInfo,Property1):Play()
    
end)
#

Did i code it right?