Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(character)
- -- Mencari kepala karakter
- local head = character:FindFirstChild("Head")
- if head then
- -- Membuat BillboardGui
- local billboard = Instance.new("BillboardGui")
- billboard.Size = UDim2.new(2, 0, 1, 0)
- billboard.Adornee = head
- billboard.Parent = head
- billboard.AlwaysOnTop = true
- -- Membuat TextLabel untuk nama pemain
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- textLabel.BackgroundTransparency = 1
- textLabel.TextColor3 = Color3.fromRGB(255, 255, 0) -- Warna kuning
- textLabel.TextStrokeTransparency = 0
- textLabel.Text = player.Name
- textLabel.Font = Enum.Font.FredokaOne
- textLabel.TextScaled = true
- textLabel.Parent = billboard
- end
- -- Membuat efek Highlight
- local highlight = Instance.new("Highlight")
- highlight.Parent = character
- highlight.FillColor = Color3.fromRGB(255, 0, 0) -- Warna merah
- highlight.OutlineColor = Color3.fromRGB(255, 255, 255) -- Outline putih
- highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop -- Selalu terlihat
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement