I am trying to make a player invite button but if a player doesn’t exist or isn’t in the server I am trying to make a popup saying Player not in server or doesn’t exist.
I’m a small scripter and I started learning a few months ago
I am trying to make a player invite button but if a player doesn’t exist or isn’t in the server I am trying to make a popup saying Player not in server or doesn’t exist.
I’m a small scripter and I started learning a few months ago
Here is some pseudocode for what you are trying to achieve.
If you know the name of the player you can just do
local PlayerService = game:GetService("Players")
local playerName = "INSERT PLAYER NAME HERE"
if not PlayerService:FindFirstChild(playerName) then
-- Generate Popup
end
Thanks Ill try this soon, appreciate the help!