Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I have a FE Home Buyer door. Help please? :3

Asked by 6 years ago
Edited 6 years ago

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
0
Please use a code block lukeb50 631 — 6y
0
There you go dude. ValueHero -5 — 6y
0
Can you show the structure of a home? H4X0MSYT 536 — 6y
0
That is not FE... RootEntry 111 — 6y

Answer this question