SHARE
TWEET

Untitled

a guest Jul 23rd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ToggleKey = Enum.KeyCode.F3
  2. HideCommonToggleKey = Enum.KeyCode.F2
  3. Meshes = {
  4.     --[16657069] = "Money Bag",
  5.     ["rbxassetid://%2060791940%20"] = "Scroll",
  6.     ["rbxassetid://%202877143560%20"] = "Jewel",
  7.     ["rbxassetid://%202637545558%20"] = "Ring",
  8.     ["rbxassetid://%20439102658%20"] = "Phoenix Feather",
  9.     ["rbxassetid://%2013116112%20"] = "Goblet",
  10.  
  11.    
  12. }
  13.  
  14. -- you can set these off and on
  15. Amulet = true
  16. Idol = true
  17. Opal = true
  18. PhoenixDown = true
  19. IceEssence = true
  20. PhoenixFeather = true
  21. NightStone = true
  22. PhilosophersStone = true
  23. SpiderCloak = true
  24. LannisAmulet = true
  25. Bloodthorn = false
  26. UnknownArtifact = true
  27. WhiteAmulet = true
  28. ClickArtifact = false
  29.  
  30.  
  31. Success = pcall(function()click_detector(Instance.new("ClickDetector"),10)end)
  32. Success2 = pcall(function()fireclickdetector(Instance.new("ClickDetector"))end)
  33. Exploit = Success and 2 or (Success2 and 1 or 0)
  34.  
  35. local MainParent = game.CoreGui
  36.  
  37. local TrinketEsp = {Trinket = {}}
  38. TrinketEsp.Visible = true
  39. TrinketEsp.CommonVisible = false
  40.  
  41. TrinketEsp.Init = function(part,name,rare,rainbow)     
  42.     if not TrinketEsp.Trinket[part] then
  43.         local BillboardUi = Instance.new("BillboardGui")
  44.         BillboardUi.AlwaysOnTop = true
  45.         BillboardUi.Size = UDim2.new(3,60,1,30)
  46.         BillboardUi.ZIndexBehavior = Enum.ZIndexBehavior.Global
  47.         BillboardUi.StudsOffsetWorldSpace = Vector3.new(0,0,0)
  48.         BillboardUi.Adornee = part
  49.            
  50.         local PlayerName = Instance.new("TextLabel",BillboardUi)
  51.         PlayerName.BackgroundTransparency = 1
  52.         PlayerName.TextColor3 = name == "Scroll" and Color3.new(1,1,0) or part.Color
  53.         PlayerName.Size = UDim2.new(1,0,.3,0)
  54.         PlayerName.AnchorPoint = Vector2.new(0,.5)
  55.         PlayerName.Position = UDim2.new(0,0,.2,0)
  56.         PlayerName.ZIndex = 2
  57.         PlayerName.Text = name
  58.         PlayerName.TextScaled = true
  59.         PlayerName.TextStrokeTransparency = .5
  60.         PlayerName.Font = Enum.Font.GothamBold
  61.         PlayerName.TextStrokeColor3 = Color3.fromRGB(33, 33, 33)
  62.        
  63.         local Distance = PlayerName:Clone()
  64.         Distance.Parent = BillboardUi
  65.         Distance.Font = Enum.Font.Gotham
  66.         Distance.TextColor3 = Color3.new(1,1,1)
  67.         Distance.Position = UDim2.new(0,0,.5,0)
  68.         if name == "Phoenix Feather" then
  69.             rainbow = true
  70.             rare = true
  71.         elseif name == "Jewel" then
  72.             rare = true
  73.             elseif name == "Scroll" then
  74.             rare = true
  75.         end
  76.         TrinketEsp.Trinket[part] = {BillboardUi,PlayerName,Distance,rainbow,rare}
  77.     end
  78. end
  79.  
  80. Grabbed = {}
  81. TrinketEsp.Render = function()
  82.     for i,v in pairs(TrinketEsp.Trinket) do
  83.         pcall(function()
  84.             local Visible = TrinketEsp.Visible and (TrinketEsp.CommonVisible or v[5])
  85.             v[1].Size = UDim2.new(3,60*1.2,1,30*1.2)
  86.             v[1].Parent = Visible and game.workspace.Terrain or nil
  87.             v[1].Adornee = Visible and i or nil
  88.             v[3].Text = math.floor(((game.Workspace.CurrentCamera.CFrame.p) - i.Position).Magnitude+.5)
  89.             v[2].Visible = Visible
  90.             v[3].Visible = Visible
  91.             if v[4] then
  92.                 v[2].TextColor3 = Color3.fromHSV((tick()*.5)%1,.8,1)
  93.             end
  94.         end)
  95.         if not i or i.Parent == nil then
  96.             v[1]:Destroy()
  97.             TrinketEsp.Trinket[i] = nil
  98.         elseif not Grabbed[i] or tick() > Grabbed[i] then
  99.             if v[7] and (not v[4] or ClickArtifact) and (Exploit == 1 or Exploit == 2)then
  100.                 if ((game.Players.LocalPlayer.Character.PrimaryPart.Position) - i.Position).Magnitude < Click.MaxActivationDistance then
  101.                     if Exploit == 2 then
  102.                         click_detector(v[5],((game.Players.LocalPlayer.Character.PrimaryPart.Position) - i.Position).Magnitude)
  103.                     elseif Exploit == 1 then
  104.                         fireclickdetector(v[5],((game.Players.LocalPlayer.Character.PrimaryPart.Position) - i.Position).Magnitude)
  105.                     end
  106.                     Grabbed[i] = tick() + .1
  107.                 end
  108.             end
  109.         end
  110.     end
  111. end
  112.  
  113.  
  114. TrinketEsp.GetId = function(rbxasset)
  115.     return tonumber(string.split(rbxasset,"%")[1]:gsub("%D+", "") or 0) or 0
  116. end
  117.  
  118. TrinketEsp.CompareColors = function(color,color2)
  119.     return math.floor(color.r*255) == math.floor(color2.r*255) and math.floor(color.g*255) == math.floor(color2.g*255) and math.floor(color.b*255) == math.floor(color2.b*255)
  120. end
  121.  
  122. TrinketEsp.CheckInstance = function(instance)
  123.     if instance:IsA("SpecialMesh") or instance:IsA("MeshPart") then
  124.         local Id = instance.MeshId --TrinketEsp.GetId(instance.MeshId)
  125.         if Meshes[Id] then
  126.             TrinketEsp.Init(instance:IsA("MeshPart") and instance or instance.Parent,Meshes[Id],false)
  127.             if instance:FindFirstChildOfClass("SpecialMesh") then
  128.                 TrinketEsp.Init(instance:IsA("SpecialMesh") and instance or instance.Parent,Meshes[Id],false)
  129.             end
  130.         elseif Opal and instance:IsA("SpecialMesh") and instance.MeshType == Enum.MeshType.Sphere and instance.Parent.BrickColor == BrickColor.new("Institutional white") and instance.Parent.Material == Enum.Material.Glass then
  131.             TrinketEsp.Init(instance.Parent,"Opal",false)
  132.         end
  133.     elseif instance:IsA("UnionOperation") then
  134.         if Idol and instance.BrickColor == BrickColor.new("Dark grey") and instance.Material == Enum.Material.Slate and instance.Size.Magnitude<1.3 then
  135.             TrinketEsp.Init(instance,"Idol",false)
  136.         elseif Amulet and instance.BrickColor == BrickColor.new("Fossil") and instance.Material == Enum.Material.SmoothPlastic and instance.Size.Magnitude<2.5 then
  137.             TrinketEsp.Init(instance,"Amulet",false)
  138.         elseif WhiteAmulet and instance.BrickColor == BrickColor.new("Institutional white") and instance.Material == Enum.Material.Neon and instance.Size.Magnitude<2.5 then
  139.             TrinketEsp.Init(instance,"White King's Amulet",true,true)
  140.         elseif IceEssence and instance.Size.Magnitude > .6 and instance.Size.Magnitude < .8 and instance:FindFirstChildOfClass("ParticleEmitter") and TrinketEsp.GetId(instance:FindFirstChildOfClass("ParticleEmitter").Texture) == 20443483 and instance:FindFirstChildOfClass("ParticleEmitter").Size ~= NumberSequence.new(0) and TrinketEsp.CompareColors(instance:FindFirstChildOfClass("ParticleEmitter").Color.Keypoints[1].Value,Color3.fromRGB(27, 152, 152)) and instance.Material == Enum.Material.Neon and instance.Transparency == 1 then
  141.             TrinketEsp.Init(instance,"Ice Essence",true,true)
  142.         elseif SpiderCloak and instance.Size.Magnitude > .6 and instance.Size.Magnitude < .8 and instance:FindFirstChildOfClass("ParticleEmitter") and TrinketEsp.GetId(instance:FindFirstChildOfClass("ParticleEmitter").Texture) == 20443483 and instance:FindFirstChildOfClass("ParticleEmitter").Size ~= NumberSequence.new(0) and instance.Material == Enum.Material.Neon and instance.Transparency == 1 then
  143.             TrinketEsp.Init(instance,"Spider Cloak",true,true)     
  144.         elseif NightStone and instance.BrickColor == BrickColor.new("Black") and instance.Material == Enum.Material.Neon and instance.Size.Magnitude < .9  then
  145.             TrinketEsp.Init(instance,"Night Stone",true,true)  
  146.         elseif PhilosophersStone and instance.BrickColor == BrickColor.new("Persimmon") and instance.Material == Enum.Material.Neon and instance.Size.Magnitude < .9 then
  147.             TrinketEsp.Init(instance,"Philosopher's Stone",true,true)  
  148.         elseif Bloodthorn and instance.BrickColor == BrickColor.new("Royal purple")  then
  149.             TrinketEsp.Init(instance,"Bloodthorn Spawn",true)  
  150.         elseif LannisAmulet  and  instance.Material == Enum.Material.Neon and instance.BrickColor == BrickColor.new("Institutional white")  and instance.Size.Magnitude < 3.1 then
  151.             TrinketEsp.Init(instance,"Lannis Amulet",true, true)   
  152.         elseif UnknownArtifact and instance.Material == Enum.Material.Neon and instance.Size.Magnitude < .9 and not instance.Parent:IsA("Model") then
  153.             TrinketEsp.Init(instance,"Unknown Artifact",true,true) 
  154.         elseif UnknownArtifact and instance.Material == Enum.Material.Neon and instance.BrickColor == BrickColor.new("Hot pink") and instance.Size.Magnitude < 2 then
  155.             TrinketEsp.Init(instance,"Unknown Artifact",true,true)
  156.         end
  157.     elseif instance:IsA("BasePart") then
  158.         if PhoenixDown and instance.Size.Magnitude < 1.4 and instance:FindFirstChildOfClass("Attachment") and instance:FindFirstChildOfClass("Attachment"):FindFirstChildOfClass("ParticleEmitter") and TrinketEsp.GetId(instance:FindFirstChildOfClass("Attachment"):FindFirstChildOfClass("ParticleEmitter").Texture) == 1536547385 and instance.Material == Enum.Material.SmoothPlastic and instance.Transparency == 1 then
  159.             TrinketEsp.Init(instance,"Phoenix Down",true,true)
  160.         end
  161.     end
  162. end
  163.  
  164. for i,v in pairs(game.Workspace:GetDescendants()) do
  165.     TrinketEsp.CheckInstance(v)
  166. end
  167. game.Workspace.DescendantAdded:Connect(function(v)
  168.     TrinketEsp.CheckInstance(v)
  169. end)
  170.  
  171. game.Workspace.DescendantRemoving:Connect(function(v)
  172.     if TrinketEsp.Trinket[v] then
  173.         TrinketEsp.Trinket[v][1]:Destroy()
  174.         TrinketEsp.Trinket[v] = nil
  175.     end
  176. end)
  177.  
  178. game:GetService("UserInputService").InputBegan:connect(function(inputObject)
  179.     if inputObject.KeyCode == ToggleKey then
  180.         TrinketEsp.Visible = not TrinketEsp.Visible
  181.     elseif inputObject.KeyCode == HideCommonToggleKey then
  182.         TrinketEsp.CommonVisible = not TrinketEsp.CommonVisible
  183.     end
  184. end)
  185.  
  186.  
  187.  
  188. game:GetService("RunService").RenderStepped:Connect(function()
  189.     TrinketEsp.Render()
  190. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top