I'm trying to make a roblox gui only visible to me and a few friends, however the first comma in the script has an error. The error says "Expected 'then' when parsing if statement, got ',' .
Here is the Code:
if game.Players.LocalPlayer == {"ThrashIsDead","poophead27272","darkslayer741"} then
script.Parent.Visible = true
else
script.Parent.Visible = false
Help would be greatly appreciated. I've been struggling with this for some time now, but can't seem to figure it out.

1 comment
Thank you so much. This is the only method that worked. I've tried literally over a dozen different things, but it never worked for me. I'm so glad for this. I'm somewhat of a noob to scripting, I've only done it for a few months, but this gave me some insight on new methods I could try. Thank you once again for this.