Advertisement
Pluem1273

OverheadGui Script

Apr 17th, 2023
2,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local OverheadGui = game.ServerStorage:WaitForChild("OverheadGui")
  2.  
  3. local NormalPlayerText = "Visitor"
  4. local DeveloperText = "Admin"
  5. local Developer = {"pluem1273"}
  6.  
  7. game.Players.PlayerAdded:Connect(function(plr)
  8.     plr.CharacterAdded:Connect(function(char)
  9.         if table.find(Developer, plr.Name) then
  10.             local gui1 = OverheadGui:Clone()
  11.             gui1.Parent = char:FindFirstChild("Head")
  12.             gui1.Gui.Text = DeveloperText
  13.         else
  14.             local gui2 = OverheadGui:Clone()
  15.             gui2.Parent = char:FindFirstChild("Head")
  16.             gui2.Gui.Text = NormalPlayerText
  17.         end
  18.     end)
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement