I have this door that is a FDoor and it is the home buyer "Buy Home" When someone leaves the game it sells the house Problem is when Player leaves the door stays locked if they have the Lock house doors gui clicked... I have some But its not correct..
okay i'm going to show the the script i have to work on and then im going to show you my junky work of trying to fix it!
local door = game.Workspace.Home.FDoor
function onPlayerExited(Player)
if Player.Name == script.Parent.OwnerName.Value then
wait(10)
door.CanCollide = false
end
end
game.Players.ChildRemoved:connect(onPlayerExited)
function onPlayerLeave(Player)
local w = game.Workspace:FindFirstChild("Home"..Player.Name)
if not (w) then return end
if w ~= nil then
x = w
x.Home:Remove()
x.Name = "Home"
wait(1)
s = game.Lighting["Home"..Player.Name]
s.Parent = x
s.Name = "Home"
end
end
game.Players.ChildRemoved:connect(onPlayerLeave)then
x.FDoor.CanCollide = false
x.BDoor.CanCollide = false
x.GDoor.CanCollide = false
end

4 comments
Please use a code block
There you go dude.
Can you show the structure of a home?
That is not FE...