I ran into a small problem when comparing a userid in serverscriptservice.
script.Parent.Reciever.Event:Connect(function(plr,id) print(id) if id == "91920258" then local frame = script.Parent.AdminFrame:Clone() frame.Parent = plr.PlayerGui.AdminGui plr.PlayerGui.AdminGui.OpenClose.Visible = true print("admin validated for:"..plr.Name) end end)
id is the userid I am trying to compare but the if/then statement will not run the code below. when I print the value id it prints exactly 91920258. if I compare plr.Name instead it does run.
is roblox preventing me from comparing userid’s or is there a typo I am overlooking?