Advertisement
asdasdca

highlight+bilboard

Feb 21st, 2025
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.37 KB | None | 0 0
  1. game.Players.PlayerAdded:Connect(function(player)
  2.     player.CharacterAdded:Connect(function(character)
  3.         -- Mencari kepala karakter
  4.         local head = character:FindFirstChild("Head")
  5.         if head then
  6.             -- Membuat BillboardGui
  7.             local billboard = Instance.new("BillboardGui")
  8.             billboard.Size = UDim2.new(2, 0, 1, 0)
  9.             billboard.Adornee = head
  10.             billboard.Parent = head
  11.             billboard.AlwaysOnTop = true
  12.  
  13.             -- Membuat TextLabel untuk nama pemain
  14.             local textLabel = Instance.new("TextLabel")
  15.             textLabel.Size = UDim2.new(1, 0, 1, 0)
  16.             textLabel.BackgroundTransparency = 1
  17.             textLabel.TextColor3 = Color3.fromRGB(255, 255, 0) -- Warna kuning
  18.             textLabel.TextStrokeTransparency = 0
  19.             textLabel.Text = player.Name
  20.             textLabel.Font = Enum.Font.FredokaOne
  21.             textLabel.TextScaled = true
  22.             textLabel.Parent = billboard
  23.         end
  24.  
  25.         -- Membuat efek Highlight
  26.         local highlight = Instance.new("Highlight")
  27.         highlight.Parent = character
  28.         highlight.FillColor = Color3.fromRGB(255, 0, 0) -- Warna merah
  29.         highlight.OutlineColor = Color3.fromRGB(255, 255, 255) -- Outline putih
  30.         highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop -- Selalu terlihat
  31.     end)
  32. end)
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement