#Can someone help me debug this code for a door?
11 messages · Page 1 of 1 (latest)
Also, TweenInfo.new(), I believe, line 8.
On line 5, position should be replaced with.
CFrame = CFrame.New(Vector3.new(19, 0, 0))
Yes, that too
Skibidy.
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?