How do I add in a group rank at if newPlayer:IsInGroup(000000)? I want to make it so that only specific people receive this GUI piece that is a certain rank.
game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
if newPlayer:IsInGroup(0000000) then
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,0.5,0)
text=Instance.new("ImageLabel")
text.Image = "https://www.roblox.com/asset/?id=000000"
text.Size=UDim2.new(0.15,0,0.45,0)
text.Position=UDim2.new(-0.15,0,-0.45,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.WepsGroup:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
end
function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end
game.Players.PlayerAdded:connect(onPlayerEntered)

7 comments
I'd like to add it so that rank 2 in my group receives this GUI.
Did you not make this?
:connect() is deprecated, use :Connect() instead
connect is not deprecated!!
lower case c in it is
and use getrankingroup()
Where do I put getrankingroup()?