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.
