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 is much appreciated, I've been trying to figure this out for an hour, but I haven't been able to.

1 comment
Thank you for this, however it still shows up for people that are not on the list. If you have a different fix it is much appreciated.