#Cant walk through door

1 messages · Page 1 of 1 (latest)

sacred spear
#

So im kinda new to this so i dont know how to fix it, but i added a simple script where you interact with ProximityPrompt it opens the door but the problem is that even when the door is open i cant walk through it, its like there is an invisible wall.

chrome karma
#

Show script

silk kite
#

Yo, I guess you would have to make RenderFidelity to Precise

sacred spear
# chrome karma Show script
local door = script.Parent
local prompt = door:FindFirstChild("ProximityPrompt")
local TweenService = game:GetService("TweenService")

local isOpen = false
local closedCFrame = door.CFrame
local openCFrame = closedCFrame * CFrame.Angles(0, math.rad(90), 0)

local tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)

prompt.Triggered:Connect(function()
    local goalCFrame = isOpen and closedCFrame or openCFrame
    local tween = TweenService:Create(door, tweenInfo, {CFrame = goalCFrame})
    tween:Play()

    if not isOpen then
        wait(0.5)
        door.CanCollide = false
    else
        door.CanCollide = true
    end

    isOpen = not isOpen
end)
full lakeBOT
#

studio** You are now Level 1! **studio

sacred spear
chrome karma
#

what the fuck

#

you wouldn't need to change the cancollide

#

i think its all cuz u made the tween in a super werid way

sacred spear
#

yeah lol im kinda new so yeh