So I'm working on making a little something-something for whatever reason, and it throws the "Expected identifier" error. I'm not sure where I went wrong and I'm probably making a rookie mistake.
Owner = "Placeholder"
if game:GetService("Players"):FindFirstChild(Owner) == false then
script.Parent:Destroy()
else end
game.Players.PlayerRemoving:connect(function(player)
if player.Name == Owner then
script.Parent:Destroy()
end) --error appears here |