I need to know if this code will let me access the player by using newPlayer
local id = 3081313
game.Players.PlayerAdded:connect(function(newPlayer)
if newPlayer:IsInGroup(id) then
game.Players.newPlayer.PlayerGui.PCgui.Inventory.Weapons.Show.Rock2.Visible = true
else
print("NOPE")
end
end)
-Thanks in advance!

2 comments
To clarify, newPlayer is a VARIABLE name, not the name of the Player. After all, your username isn't newPlayer.
Oh. Thanks!