Ok so I made an Overhead gui script and I want it to check if a person is in a group and if he is not kick him and if he is check his rank and make it the text.
game.Players.PlayerAdded:connect(onPlayerRespawned) function onPlayerRespawned(newPlayer) wait(1) if newPlayer.Name == "YourNameHere" then gui=Instance.new("BillboardGui") gui.Parent=newPlayer.Character.Head gui.Adornee=newPlayer.Character.Head gui.MaxDistance = 100 gui.Size=UDim2.new(3,0,3,0) gui.StudsOffset=Vector3.new(0.5,2,0) text=Instance.new("TextLabel") text.Text = ("GAME CREATOR") text.Font = "SciFi" text.TextColor3 = Color3.new(234, 252, 0) text.Size=UDim2.new(1,0,1,0) text.FontSize = 'Size32' text.Position=UDim2.new(-0.125,0,-0.25,0) text.BackgroundTransparency = 1 text.Parent=gui end end function onPlayerEntered(newPlayer) newPlayer.Changed:connect(function (property) if (property == "Character") then onPlayerRespawned(newPlayer) end end) end game.Players.PlayerAdded:connect(onPlayerEntered)
That's the script I would appriciate if u help, thanks for reading.
local GroupID=1234567 --Put Group ID here game:GetService'Players'.PlayerAdded:Connect(function(Player) local Check local AlreadyChecked local Rank Player.CharacterAdded:Connect(function(Character) if not AlreadyChecked then if Player:IsInGroup(GroupID) then Rank=Player:GetRoleInGroup(GroupID) AlreadyChecked=true Check=true else AlreadyChecked=true end end if Check then local Head=Character:WaitForChild'Head' local Gui=Instance.new'BillboardGui' Gui.Parent=Head Gui.Adornee=Head Gui.MaxDistance=100 Gui.Size=UDim2.new(3,0,3,0) Gui.StudsOffset=Vector3.new(.5,2,0) local Text=Instance.new'TextLabel' Text.Text=Rank Text.Font='SciFi' Text.TextColor3=Color3.fromRGB(234,252,0) Text.Size=UDim2.new(1,0,1,0) Text.FontSize='Size32' Text.Position=UDim2.new(-.125,0,-.25,0) Text.BackgroundTransparency=1 Text.Parent=Gui end end) end)
Fixed it for you, just change the group id to your group and it should work, let me know if you have any questions :)