of     1   

SundownMKII
#163413165Sunday, May 31, 2015 2:24 PM GMT

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
SundownMKII
#163414418Sunday, May 31, 2015 2:46 PM GMT

everybody everybody everybody everybody bump
chimmihc
#163414750Sunday, May 31, 2015 2:51 PM GMT

1. FindFirstChild will never return false, it will either return the object or nil 2. If statements needs "end"s too. I script -~ chimmihc
LongKillKreations
#163432404Sunday, May 31, 2015 6:42 PM GMT

Exactly what chim said. Here's the fixed code: local Owner="Placeholder" if not game:GetService("Players"):FindFirstChild(Owner) then script.Parent:Destroy() end game.Players.PlayerRemoving:connect(function(player) if player.Name==Owner then script.Parent:Destroy() end end)

    of     1