I looked on the internet and I tried but nothing came up to help Im trying to make permissions for like only player id for example like if playeruserid then
Have you tried reading this article on the developer hub?
https://developer.roblox.com/en-us/api-reference/property/Player/UserId
You can store the accepted UserId’s in a table then check whenever a player joins the game.
local accepted = {
0,
1,
2
}
game.Players.PlayerAdded:Connect(function(player)
if table.find(accepted, player.UserId) then
-- do stuff--
end
end)
This didnt work for me this is the script btw
game.Players.PlayerAdded:Connect(function(player)
for i=1,#accepted do
enableGui.OnClientEvent:Connect(function()
if player.UserId == accepted[i] or localplr:GetRankInGroup(groupId) > 255 then
nukeFrame.Visible = true
end
end)
end
end)
Just tested my script, it works. I don’t see any of my code in your script, that might be why. 
Also I don’t know why you are putting a player added event on top of a OnClientEvent.
I thought that group perms only work in server side now I know how to fix this.