#broken doors

1 messages · Page 1 of 1 (latest)

fading fiber
#

these doors are supposed to open and close no matter where is the train is orientated, yet the doors still break

local TweenService = game:GetService("TweenService")

-- Constants
local TWEEN_DURATION = 1.5
local OPEN_WAIT_DURATION = 10
local SOUND_LEAD_IN = 2

-- References
local trainCar = script.Parent
local trainModel = trainCar.Parent
local leftSide = trainModel:WaitForChild("Left")
local openValue = trainModel:WaitForChild("Open")
local soundDO = trainCar:WaitForChild("DO")
local soundDC = trainCar:WaitForChild("DC")

-- State
local doorPanels = {}
local originalOffsets = {}
local cframeValues = {}
local isOperating = false
local activeTweens = {}

-- Logging
local function log(message)
    print("[DoorController] " .. message)
end

-- Anchoring Utility
local function setCarAnchored(state)
    for _, part in trainCar:GetDescendants() do
        if part:IsA("BasePart") and not part:IsA("Seat") then
            part.Anchored = state
        end
    end
end

-- Tween Management
local function cancelActiveTweens()
    for _, tween in activeTweens do
        tween:Cancel()
    end
    activeTweens = {}
end

iron venture
#

where is the open script?

fading fiber
#

i cant fit here

#

its 200 lines long

iron venture
#

well i cant help here

fading fiber
#

heres it

iron venture
#

...

fading fiber
#

bruh

#

"Get nitro"

iron venture
#

you sent the post with i think many more characters

fading fiber
#

bro

#

clyude or wth is named

#

is saying "your chat is harrasing"

#

okay

#

or yk what

#

im pasting this into a note file

iron venture
#

where is getpanelopenoffset() declared!?

fading fiber
#

its not all of the script

#

read it or download the txt file

iron venture
#

tween_duration is supposed to be a TweenInfo()

#

tweeninfo.new()

fading fiber
#

but wait

#

it works fine when its in the same position

#

but i rotate it 90 degrees

#

chaos

iron venture
#

just change it

fading fiber
#

change what

iron venture
#

oh wait nvm

#

i just realised you already made it a tweeninfo

#

i thought you were calling tweenservice there xd

fading fiber
#

wait

fading fiber
#

its going inward

iron venture
#

invert pop and slide distances

fading fiber
#

well what about other orientations

#

not all solutions work

#

its supposed to open based on the train model

#

not world space

iron venture
#

just invert them

fading fiber
fading fiber