Why won't this script work?

Hello!

So I have this code that I wrote for my Tycoon game but the remove part doesn’t work. I want to make it so that once the player who claimed the tycoon leaves the game, the tycoon becomes available again.

I already have a part for the removing but it doesn’t work.

Can anyone help me?

Here’s the current code:

Any help would be greatly appreciated!

1 Like

Error in Output? You can find the problem there.

I think you can delet ~= nil. It can be the problem

Try removing the “~= nil” in “FindFirstChild”

2 Likes