Advertisement
Steamhesaproblox

Roblox The Walking Dead Loot Esp Script

May 17th, 2025 (edited)
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RBScript 3.56 KB | Gaming | 0 0
  1. local lootFolder = game.Workspace:WaitForChild("Loot")
  2. local carsFolder = game.Workspace:WaitForChild("Cars")
  3.  
  4. local function addVisuals(item, color, showFuel)
  5.     if item:IsA("Model") and item.PrimaryPart then
  6.         local highlight = Instance.new("Highlight")
  7.         highlight.Parent = item
  8.         highlight.Adornee = item
  9.         highlight.FillColor = color
  10.         highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  11.         highlight.FillTransparency = 0.5
  12.         highlight.OutlineTransparency = 0
  13.  
  14.         local billboard = Instance.new("BillboardGui")
  15.         billboard.Parent = item.PrimaryPart
  16.         billboard.Adornee = item.PrimaryPart
  17.         billboard.Size = UDim2.new(0, 80, 0, 14)
  18.         billboard.StudsOffset = Vector3.new(0, 2.5, 0)
  19.         billboard.AlwaysOnTop = true
  20.  
  21.         local label = Instance.new("TextLabel")
  22.         label.Parent = billboard
  23.         label.Size = UDim2.new(1, 0, 1, 0)
  24.         label.BackgroundTransparency = 1
  25.         label.TextColor3 = color
  26.         label.Font = Enum.Font.SourceSans
  27.         label.TextSize = 8
  28.         label.TextScaled = false
  29.  
  30.         if showFuel then
  31.             local function updateLabel()
  32.                 local fuelValue = item:GetAttribute("Fuel") or 0
  33.                 label.Text = item.Name .. " | Fuel: " .. fuelValue
  34.             end
  35.             updateLabel()
  36.             item:GetAttributeChangedSignal("Fuel"):Connect(updateLabel)
  37.         else
  38.             label.Text = item.Name
  39.         end
  40.  
  41.     elseif item:IsA("MeshPart") then
  42.         local highlight = Instance.new("Highlight")
  43.         highlight.Parent = item
  44.         highlight.Adornee = item
  45.         highlight.FillColor = Color3.fromRGB(0, 255, 0)
  46.         highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
  47.         highlight.FillTransparency = 0.5
  48.         highlight.OutlineTransparency = 0
  49.  
  50.         local billboard = Instance.new("BillboardGui")
  51.         billboard.Parent = item
  52.         billboard.Adornee = item
  53.         billboard.Size = UDim2.new(0, 50, 0, 10)
  54.         billboard.StudsOffset = Vector3.new(0, 1.5, 0)
  55.         billboard.AlwaysOnTop = true
  56.  
  57.         local label = Instance.new("TextLabel")
  58.         label.Parent = billboard
  59.         label.Size = UDim2.new(1, 0, 1, 0)
  60.         label.BackgroundTransparency = 1
  61.         label.TextColor3 = Color3.fromRGB(0, 255, 0)
  62.         label.Font = Enum.Font.SourceSans
  63.         label.TextSize = 8
  64.         label.TextScaled = false
  65.         label.Text = item.Name
  66.     end
  67. end
  68.  
  69. -- Loot klasöründeki modellere uygula (Fuel sadece Jerrycan'da gösterilecek)
  70. for _, item in ipairs(lootFolder:GetDescendants()) do
  71.     if item:IsA("Model") then
  72.         local showFuel = (item.Name == "Jerrycan")
  73.         addVisuals(item, Color3.fromRGB(170, 0, 255), showFuel) -- Mor renk
  74.     elseif item:IsA("MeshPart") then
  75.         addVisuals(item, nil, false)
  76.     end
  77. end
  78.  
  79. -- Cars klasöründeki modellere uygula (hepsi kırmızı, Fuel göster)
  80. for _, car in ipairs(carsFolder:GetDescendants()) do
  81.     if car:IsA("Model") then
  82.         addVisuals(car, Color3.fromRGB(255, 0, 0), true) -- Kırmızı, Fuel göster
  83.     end
  84. end
  85.  
  86. -- Sonradan eklenenler için
  87. lootFolder.DescendantAdded:Connect(function(item)
  88.     if item:IsA("Model") then
  89.         local showFuel = (item.Name == "Jerrycan")
  90.         addVisuals(item, Color3.fromRGB(170, 0, 255), showFuel)
  91.     elseif item:IsA("MeshPart") then
  92.         addVisuals(item, nil, false)
  93.     end
  94. end)
  95.  
  96. carsFolder.DescendantAdded:Connect(function(item)
  97.     if item:IsA("Model") then
  98.         addVisuals(item, Color3.fromRGB(255, 0, 0), true)
  99.     end
  100. end)
  101.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement