local inviteplayer = game.Players:WaitForChild(PartyList.InviteMe.Text)
local invitedgui = inviteplayer.PlayerGui.RealMenu.Frame.Social.PartyInvite
if plr.Name == not (sender name) then
invitedgui.Visible = true
end
this is the script. it works in studio (or if i remove "if plr.Name == not (Sender name) then in real game.)
when i try anybody else's name. it doesnt work
this in a ServerScript

4 comments
You should make it a ServerScript as it is to work through out the whole entire server, not a certain area of the place/game/world.
this in a ServerScript
if this is using FE, often cases it can usually only be controlled locally unless the server can see the gui. .
Its not FE