Hello, I am trying to make a local script that (let's say that "Player1" and "Player2" joins) gives Player1 and Player2 specific GUI and not Player3. I found something like this on the internet, but it was a script to only give the gui to you. I tried to modify it, but it turns out that it will give everyone the Gui in game, so the script that I tried to make changes to doesn't work. Here is the local script:
while true do
if game.Players.LocalPlayer.Name == "Player1" or "Player2" then
wait()
else
script.Parent:Destroy()
end
end
Doing this makes all players get the gui, and I don't want that to happen. How would I make it so that only (lets say) Player1 and Player2 get the gui? Sorry if it is really simple because I don't really know how to write scripts.

2 comments
Where is the LocalScript placed?
Its under >StarterGui > ScreenGui > LocalScript