Facebook
From Wet Motmot, 3 Weeks ago, written in Plain Text.
This paste is a reply to YBA ESP SCRIPT from I dont know - view diff
Embed
Download Paste or View Raw
Hits: 54
  1. local Settings = {
  2.     ItemData = {
  3.         [4496695972] = "Arrow",
  4.         [511706016] = "Diamond",
  5.         [3497428510] = "Rokakaka",
  6.         [3583727108] = "Gold Coin",
  7.         [4551120971] = "Stone Mask",
  8.         [5249254947] = "Holy Ribcage Corpse"
  9.     },
  10.     Colors = {
  11.         ["Arrow"] = Color3.fromRGB(255, 120, 0),
  12.         ["Diamond"] = Color3.fromRGB(81, 117, 255),
  13.         ["Rokakaka"] = Color3.fromRGB(220, 50, 50),
  14.         ["Gold Coin"] = Color3.fromRGB(255, 240, 0),
  15.         ["Stone Mask"] = Color3.fromRGB(98, 37, 209),
  16.         ["Pure Rokakaka"] = Color3.fromRGB(233, 233, 233),
  17.         ["Holy Ribcage Corpse"] = Color3.fromRGB(50, 220, 50)
  18.     },
  19.     Tracers = false,
  20.     Circles = false,
  21.     Distance = true
  22. }
  23.  
  24. local Wrapper = loadstring(game:HttpGet("https://hastebin.com/raw/afanusokek.lua"))()
  25. local Map = workspace.Map
  26.  
  27. local function GetAsset(Id)
  28.     if Id:sub(1, 13) == "rbxassetid://" then
  29.         return tonumber(Id:sub(14, #Id)) -- rbxassetid://0
  30.     else
  31.         if Id:sub(1, 32) == "http://www.roblox.com/asset/?id=" then
  32.             return tonumber(Id:sub(33, #Id))
  33.         elseif Id:sub(1, 33) == "https://www.roblox.com/asset/?id=" then
  34.             return tonumber(Id:sub(34, #Id))
  35.         end
  36.         return tonumber(Id) -- maybe idk
  37.     end
  38. end
  39.  
  40. local function IsItem(Mesh)
  41.     local AssetId = GetAsset(Mesh.MeshId)
  42.    
  43.     for Mesh in pairs(Settings.ItemData) do
  44.         if Mesh == AssetId then
  45.             return true
  46.         end
  47.     end
  48.    
  49.     return false
  50. end
  51.  
  52. local function Esp(Item)
  53.     local ItemName = Settings.ItemData[GetAsset(Item.MeshId)]
  54.     ItemName = ItemName or "Unknown Item [???] "
  55.     -- Some items decide to re-use mesh so oof!
  56.    
  57.     if Item.Material == Enum.Material.ForceField then
  58.         ItemName = "Pure Rokakaka"
  59.     end
  60.    
  61.     Wrapper:AddObject(
  62.         Item,
  63.         ItemName,
  64.         Settings.Colors[ItemName],
  65.         Settings.Distance,
  66.         Settings.Tracers,
  67.         Settings.Circles
  68.     )
  69. end
  70.  
  71. -- Grab items that are currently in the game
  72.  
  73. for Index, Object in pairs(Map:GetDescendants()) do
  74.     if Object:IsA("MeshPart") then
  75.         if IsItem(Object) then
  76.             Esp(Object)
  77.         end
  78.     end
  79. end
  80.  
  81. -- Detect New Items
  82. Map.DescendantAdded:Connect(function(Descendant)
  83.     if Descendant:IsA("MeshPart") then
  84.         if IsItem(Descendant) then
  85.             Esp(Descendant)
  86.         end
  87.     end
  88. end)

Replies to Re: YBA ESP SCRIPT rss

Title Name Language When
Re: Re: YBA ESP SCRIPT Morose Hamster text 3 Weeks ago.