Untitled

                Never    
Lua
       
local UserInputService = game:GetService("UserInputService")
local TestParent = game.CoreGui --game.CoreGui --script.Parent
local ScreenGui = Instance.new("ScreenGui",TestParent)
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
local GUI = ScreenGui
local Player = game.Players.LocalPlayer
local RemotesTable = {}
local Pos = 1


--[[
	Let add a cool display
--]]
local Main = Instance.new("Frame",ScreenGui)
local Main_2 = Instance.new("Frame",Main)
local Main_3 = Instance.new("Frame",Main_2)
local Top = Instance.new("Frame",Main)
local SideBar = Instance.new("Frame",Main)
local Title = Instance.new("TextLabel",Top)
local Minimize = Instance.new("TextButton",Top)
local MinimizedUp = Instance.new("ImageLabel",Minimize)
local MinimizedDown = Instance.new("ImageLabel",Minimize)
local Label_18 = Instance.new("TextLabel")
local Label_19 = Instance.new("TextLabel")

Main.Name = "Main"
Main.BackgroundColor3 = Color3.new(1, 1, 1)
Main.BackgroundTransparency = 1
Main.BorderSizePixel = 0
Main.ClipsDescendants = true
Main.Position = UDim2.new(0.53513974, 0, 0.179216862, 0)
Main.Size = UDim2.new(0, 300, 0, 200)

Main_2.Name = "Main"
Main_2.BackgroundColor3 = Color3.new(0.223529, 0.227451, 0.254902)
Main_2.BorderSizePixel = 0
Main_2.Size = UDim2.new(1, 0, 0, 200)

Main_3.Name = "Main"
Main_3.AnchorPoint = Vector2.new(1, 1)
Main_3.BackgroundColor3 = Color3.new(1, 1, 1)
Main_3.BackgroundTransparency = 1
Main_3.Position = UDim2.new(1, 0, 1, 0)
Main_3.Size = UDim2.new(1, -60, 1, -30)

Top.Name = "Top"
Top.BackgroundColor3 = Color3.new(0.227451, 0.227451, 0.34902)
Top.BorderSizePixel = 0
Top.Size = UDim2.new(1, 0, 0, 30)
Top.ZIndex = 2

SideBar.Name = "SideBar"
SideBar.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.203922)
SideBar.BorderSizePixel = 0
SideBar.Position = UDim2.new(0, 0, 0, 25)
SideBar.Size = UDim2.new(0, 60, 1, -20)

Title.Name = "Label"
Title.BackgroundColor3 = Color3.new(1, 1, 1)
Title.BackgroundTransparency = 1
Title.Position = UDim2.new(0, 10, 0, 0)
Title.Size = UDim2.new(0.300000012, 0, 1, 0)
Title.ZIndex = 5
Title.Font = Enum.Font.GothamSemibold
Title.Text = "DevsX's GUI"
Title.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
Title.TextSize = 14
Title.TextXAlignment = Enum.TextXAlignment.Left
Label_18.Name = "Label"
Label_18.Parent = Minimize
Label_18.BackgroundColor3 = Color3.new(1, 1, 1)
Label_18.BackgroundTransparency = 1
Label_18.Position = UDim2.new(0, 0, 0, -7)
Label_18.Size = UDim2.new(1, 0, 1, 0)
Label_18.ZIndex = 3
Label_18.Font = Enum.Font.GothamSemibold
Label_18.Text = "_"
Label_18.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
Label_18.TextSize = 20
Label_19.Name = "Label"
Label_19.Parent = Top
Label_19.BackgroundColor3 = Color3.new(1, 1, 1)
Label_19.BackgroundTransparency = 1
Label_19.Position = UDim2.new(0, 141, 0, 0)
Label_19.Size = UDim2.new(0.300000012, 0, 1, 0)
Label_19.ZIndex = 5
Label_19.Font = Enum.Font.Gotham
Label_19.Text = "Discord /6Yb8ZAp"
Label_19.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
Label_19.TextSize = 14
Label_19.TextTransparency = 0.5
Label_19.TextXAlignment = Enum.TextXAlignment.Left

Minimize.Name = "Minimize"
Minimize.AnchorPoint = Vector2.new(1, 0)
Minimize.BackgroundColor3 = Color3.new(0.298039, 0.298039, 0.298039)
Minimize.BackgroundTransparency = 1
Minimize.BorderSizePixel = 0
Minimize.Position = UDim2.new(1, 0, 0, 0)
Minimize.Size = UDim2.new(0, 40, 1, 0)
Minimize.AutoButtonColor = false
Minimize.Font = Enum.Font.GothamSemibold
Minimize.Text = ""
Minimize.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
Minimize.TextSize = 14
MinimizedUp.Name = "Up"
MinimizedUp.Active = true
MinimizedUp.BackgroundColor3 = Color3.new(1, 1, 1)
MinimizedUp.BackgroundTransparency = 1
MinimizedUp.Size = UDim2.new(1, 0, 1, 0)
MinimizedUp.ZIndex = 2
MinimizedUp.Image = "rbxassetid://245854775"
MinimizedUp.ImageColor3 = Color3.new(0.796079, 0.796079, 0.796079)
MinimizedUp.ImageTransparency = 1
MinimizedDown.Name = "Down"
MinimizedDown.Active = true
MinimizedDown.BackgroundColor3 = Color3.new(1, 1, 1)
MinimizedDown.BackgroundTransparency = 1
MinimizedDown.Size = UDim2.new(1, 0, 1, 0)
MinimizedDown.ZIndex = 2
MinimizedDown.Image = "rbxassetid://277037193"
MinimizedDown.ImageColor3 = Color3.new(0.117647, 0.121569, 0.137255)
MinimizedDown.ImageTransparency = 1

function GenerateUpnDown (parent)
	local Up = Instance.new("ImageLabel")
	local Down = Instance.new("ImageLabel")
	Up.Name = "Up"
	Up.Parent = parent
	Up.Active = true
	Up.BackgroundColor3 = Color3.new(1, 1, 1)
	Up.BackgroundTransparency = 1
	Up.Size = UDim2.new(1, 0, 1, 0)
	Up.ZIndex = 3
	Up.Image = "rbxassetid://245854775"
	Up.ImageColor3 = Color3.new(0.796079, 0.796079, 0.796079)
	Up.ImageTransparency = 1
	
	Down.Name = "Down"
	Down.Parent = parent
	Down.Active = true
	Down.BackgroundColor3 = Color3.new(1, 1, 1)
	Down.BackgroundTransparency = 1
	Down.Size = UDim2.new(1, 0, 1, 0)
	Down.ZIndex = 3
	Down.Image = "rbxassetid://277037193"
	Down.ImageColor3 = Color3.new(0.117647, 0.121569, 0.137255)
	Down.ImageTransparency = 1
end
function GenerateBlur(parent)
	
	local Blur = Instance.new("ImageLabel")
	Blur.Name = "Blur"
	Blur.Parent = parent
	Blur.Active = true
	Blur.BackgroundColor3 = Color3.new(1, 1, 1)
	Blur.BackgroundTransparency = 1
	Blur.LayoutOrder = -2
	Blur.Position = UDim2.new(0, -5, 0, -5)
	Blur.Size = UDim2.new(1, 10, 1, 10)
	Blur.ZIndex = 0
	Blur.Image = "rbxassetid://3138227893"
	Blur.ImageColor3 = Color3.new(0.180392, 0.180392, 0.203922)
end
function GenerateBackground(parent)
	local Background = Instance.new("TextLabel")
	Background.Name = "Background"
	Background.Parent = parent
	Background.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.203922)
	Background.BorderSizePixel = 0
	Background.Size = UDim2.new(1, 0, 1, 0)
	Background.ZIndex = 2
	Background.Font = Enum.Font.GothamSemibold
	Background.Text = ""
	Background.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
	Background.TextSize = 14
end
function GenerateToggleKey(parent,text)
	local Toggle = Instance.new("TextLabel")
	local Key = Instance.new("TextLabel")
	Toggle.Name = "Toggle"
	Toggle.Parent = parent
	Toggle.BackgroundColor3 = Color3.new(1, 1, 1)
	Toggle.BackgroundTransparency = 1
	Toggle.Position = UDim2.new(0, 5, 1.20000005, 0)
	Toggle.Size = UDim2.new(0, 75, 0, 20)
	Toggle.ZIndex = 3
	Toggle.Font = Enum.Font.Gotham
	Toggle.Text = "Toggle Key"
	Toggle.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
	Toggle.TextSize = 14
	Toggle.TextTransparency = 0.5
	Toggle.TextXAlignment = Enum.TextXAlignment.Left
	Toggle.TextWrapped = true

	Key.Name = "Key"
	Key.Parent = Toggle
	Key.BackgroundColor3 = Color3.new(1, 1, 1)
	Key.BackgroundTransparency = 1
	Key.Position = UDim2.new(1, 5, 0, 0)
	Key.Size = UDim2.new(0, 50, 0, 20)
	Key.ZIndex = 3
	Key.Font = Enum.Font.GothamBold
	Key.Text = text
	Key.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
	Key.TextSize = 14
	Key.TextXAlignment = Enum.TextXAlignment.Left
	Key.TextWrapped = true
end
function GenerateTitle(parent,text)
	local Title = Instance.new("TextLabel")
	Title.Name = "Label"
	Title.Parent = parent
	Title.BackgroundColor3 = Color3.new(1, 1, 1)
	Title.BackgroundTransparency = 1
	Title.Size = UDim2.new(1, 0, 1, 0)
	Title.ZIndex = 4
	Title.Font = Enum.Font.GothamSemibold
	Title.Text = text
	Title.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
	Title.TextSize = 14
	Title.TextWrapped = true
end
-- Trinket Toggle
local Trinket = Instance.new("TextButton")
Trinket.Name = "Trinket"
Trinket.Parent = Main_3
Trinket.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.203922)
Trinket.BackgroundTransparency = 1
Trinket.BorderSizePixel = 0
Trinket.Position = UDim2.new(0, 10, 0, 10)
Trinket.Size = UDim2.new(0, 105, 0, 30)
Trinket.ZIndex = 2
Trinket.AutoButtonColor = false
Trinket.Font = Enum.Font.GothamSemibold
Trinket.Text = ""
Trinket.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
Trinket.TextSize = 14
GenerateTitle(Trinket,"Toggle Trinket")
GenerateUpnDown(Trinket)
GenerateBackground(Trinket)
GenerateBlur(Trinket)
GenerateToggleKey(Trinket,"F3")

-- Trinket Toggle

--Trinket Common Toggle--
local CommonTrinket = Instance.new("TextButton")
CommonTrinket.Name = "CommonTrinket"
CommonTrinket.Parent = Main_3
CommonTrinket.AnchorPoint = Vector2.new(1, 0)
CommonTrinket.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.203922)
CommonTrinket.BackgroundTransparency = 1
CommonTrinket.BorderSizePixel = 0
CommonTrinket.Position = UDim2.new(1, -10, 0, 10)
CommonTrinket.Size = UDim2.new(0, 105, 0, 30)
CommonTrinket.ZIndex = 2
CommonTrinket.AutoButtonColor = false
CommonTrinket.Font = Enum.Font.GothamSemibold
CommonTrinket.Text = ""
CommonTrinket.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
CommonTrinket.TextSize = 14
GenerateTitle(CommonTrinket,"Common Trinket")
GenerateUpnDown(CommonTrinket)
GenerateBackground(CommonTrinket)
GenerateBlur(CommonTrinket)
GenerateToggleKey(CommonTrinket,"F4")
--Trinket Common Toggle--

-- TrainMana Toggle
local ManaTrainToggle = false
local ManaTrainRemote = nil
local TrainMana = Instance.new("TextButton")
TrainMana.Name = "TrainMana"
TrainMana.Parent = Main_3
TrainMana.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.203922)
TrainMana.BackgroundTransparency = 1
TrainMana.BorderSizePixel = 0
TrainMana.Position = UDim2.new(0, 10, 0, 75)
TrainMana.Size = UDim2.new(0, 105, 0, 30)
TrainMana.ZIndex = 2
TrainMana.AutoButtonColor = false
TrainMana.Font = Enum.Font.GothamSemibold
TrainMana.Text = ""
TrainMana.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
TrainMana.TextSize = 14
local TrainManaWarning = Instance.new("TextLabel")
TrainManaWarning.Name = "Toggle"
TrainManaWarning.Parent = TrainMana
TrainManaWarning.BackgroundColor3 = Color3.new(1, 1, 1)
TrainManaWarning.BackgroundTransparency = 1
TrainManaWarning.Position = UDim2.new(0, 5, 1.20000005, 0)
TrainManaWarning.Size =  UDim2.new(1, 0, 0.75, 0)
TrainManaWarning.ZIndex = 3
TrainManaWarning.Font = Enum.Font.Gotham
TrainManaWarning.Text = "Do not die while having this on"
TrainManaWarning.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
TrainManaWarning.TextSize = 14
TrainManaWarning.TextTransparency = 0.5
TrainManaWarning.TextXAlignment = Enum.TextXAlignment.Left
TrainManaWarning.TextWrapped = true
TrainManaWarning.TextScaled = true
GenerateTitle(TrainMana,"Train Mana")
GenerateUpnDown(TrainMana)
GenerateBackground(TrainMana)
GenerateBlur(TrainMana)


TrainMana.MouseButton1Click:Connect(function()
	ManaTrainToggle = not ManaTrainToggle
	ButtonToggle(TrainMana,ManaTrainToggle)
	if not ManaTrainToggle then
		if Player.Character.CharacterHandler.Remotes:FindFirstChild("Charge") then
			ManaTrainRemote = Player.Character.CharacterHandler.Remotes:FindFirstChild("Charge")
			ManaTrainRemote:FireServer(false)
		else
			ManaTrainRemote = nil
		end
	end
end)
-- TrainMana Toggle

--No Fall Damage Toggle--
local NoFallToggle = false
local NoFall = Instance.new("TextButton")
local NoFallRemote = nil
NoFall.Name = "NoFall"
NoFall.Parent = Main_3
NoFall.AnchorPoint = Vector2.new(1, 0)
NoFall.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.203922)
NoFall.BackgroundTransparency = 1
NoFall.BorderSizePixel = 0
NoFall.Position = UDim2.new(1, -10, 0, 75)
NoFall.Size = UDim2.new(0, 105, 0, 30)
NoFall.ZIndex = 2
NoFall.AutoButtonColor = false
NoFall.Font = Enum.Font.GothamSemibold
NoFall.Text = ""
NoFall.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
NoFall.TextSize = 14
local NoFallWarning = Instance.new("TextLabel")
NoFallWarning.Name = "Toggle"
NoFallWarning.Parent = NoFall
NoFallWarning.BackgroundColor3 = Color3.new(1, 1, 1)
NoFallWarning.BackgroundTransparency = 1
NoFallWarning.Position = UDim2.new(0, 5, 1.20000005, 0)
NoFallWarning.Size =  UDim2.new(1, 0, 0.75, 0)
NoFallWarning.ZIndex = 3
NoFallWarning.Font = Enum.Font.Gotham
NoFallWarning.Text = "Reset if broken"
NoFallWarning.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
NoFallWarning.TextSize = 14
NoFallWarning.TextTransparency = 0.5
NoFallWarning.TextXAlignment = Enum.TextXAlignment.Left
NoFallWarning.TextWrapped = true
NoFallWarning.TextScaled = true
GenerateTitle(NoFall,"No Fall Damage")
GenerateUpnDown(NoFall)
GenerateBackground(NoFall)
GenerateBlur(NoFall)


NoFall.MouseButton1Click:Connect(function()
	NoFallToggle = not NoFallToggle
	ButtonToggle(NoFall,NoFallToggle)
	if Player.Character.CharacterHandler.Remotes:FindFirstChild("FallDamage") then
		print("FallDamage Reset")
		NoFallRemote = Player.Character.CharacterHandler.Remotes:FindFirstChild("FallDamage")
	else
		NoFallRemote = nil
	end
	if NoFallToggle and NoFallRemote ~= nil then
		NoFallRemote.Parent = NoFall
	else
		if NoFallRemote ~= nil then
			NoFallRemote.Parent = Player.Character.CharacterHandler.Remotes
		end
	end
end)

--Reset Button--
local Reset = Instance.new("TextButton")
Reset.Name = "Reset"
Reset.Parent = SideBar
Reset.BackgroundColor3 = Color3.new(0.298039, 0.298039, 0.298039)
Reset.BackgroundTransparency = 1
Reset.BorderSizePixel = 0
Reset.Position =  UDim2.new(0, 0, 0, 20)
Reset.Size = UDim2.new(1, 0, 0, 28)
Reset.AutoButtonColor = false
Reset.Font = Enum.Font.GothamSemibold
Reset.Text = ""
Reset.TextColor3 = Color3.new(0.847059, 0.847059, 0.847059)
Reset.TextSize = 14
GenerateTitle(Reset,"Reset")
GenerateUpnDown(Reset)
GenerateBackground(Reset)
GenerateBlur(Reset)


Reset.MouseButton1Click:Connect(function()
	if Player.Character.Humanoid.Health > 0 then
		Player.Character:BreakJoints()
		print("Reset")
	end
end)


--Trinket Common Toggle--

--Scripts

Player.Character.Humanoid.Died:Connect(function()
	print("Reset Remote")
	ManaTrainToggle = false
	ButtonToggle(TrainMana,ManaTrainToggle)
	RemotesTable = {}
	Pos = 1
	Player.CharacterAdded:connect(function()
		repeat wait() print("Searching...") until Player.Character:FindFirstChild("CharacterHandler")
		if Player.Character:FindFirstChild("CharacterHandler") then
			print("Readding Remotes")
			wait()
			for v,i in pairs(Player.Character.CharacterHandler.Remotes:GetChildren()) do 
				table.insert(RemotesTable,Pos,i)
				Pos = Pos + 1
				print(i)
				NoFallToggle = false
				ButtonToggle(NoFall,NoFallToggle)
			end
		else
			print("Error")
		end
	end)
end)

--Scripts

-- Button Effects
lerp = function(a, b, t)
	return a + (b - a) * t
end
function Lerp(a, b, t)
    return t == 1 and b or a * (1-t) + (b*t)
end
local MinimizedToggle = false

Buttons = {}
ToggledButtons = {}

function ButtonStyle(Button)
	Buttons[Button] = {Up = 1,Down = 1,Speed = .1}
	Button.MouseEnter:Connect(function()
		Buttons[Button] = {Up = 1,Down = .7,Speed = .3}
	end)
	Button.MouseButton1Down:Connect(function()
		Buttons[Button] = {Up = .9,Down = 1,Speed = 1}
	end)
	Button.MouseButton1Up:Connect(function()
		Buttons[Button] = {Up = 1,Down = 1,Speed = .3}
	end)
	Button.MouseLeave:Connect(function()
		Buttons[Button] = {Up = 1,Down = 1,Speed = .3}
	end)
end
function ButtonToggle(Button,Value)
	ToggledButtons[Button] = Value
end
ButtonStyle(Minimize)
for _,Button in pairs(Main_3:GetChildren()) do
	ButtonStyle(Button)
end
for _,Button in pairs(GUI.Main.SideBar:GetChildren()) do
	ButtonStyle(Button)
end
GUI.Main.Top.Minimize.MouseButton1Down:Connect(function()
	MinimizedToggle = not MinimizedToggle 
	if MinimizedToggle then
		Main:TweenSize(UDim2.new(0, 300,0, 30),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.2,true)
	else
		Main:TweenSize(UDim2.new(0, 300,0, 200),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,.2,true)
	end
end)
ManaTrianDB = false

-- Button Effects

-- Drag
local dragging
local dragInput
local dragStart
local startPos

local function update(input)
	local delta = input.Position - dragStart
	GUI.Main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end

GUI.Main.Top.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = GUI.Main.Position
		
		input.Changed:Connect(function()
			if input.UserInputState == Enum.UserInputState.End then
				dragging = false
			end
		end)
	end
end)

GUI.Main.Top.InputChanged:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
		dragInput = input
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if input == dragInput and dragging then
		update(input)
	end
end)

-- Drag


--TRINKET ESP--
ToggleKey = Enum.KeyCode.F3
HideCommonToggleKey = Enum.KeyCode.F4
Meshes = {
	--[16657069] = "Money Bag",
	["rbxassetid://%2060791940%20"] = "Scroll",
	["rbxassetid://%202877143560%20"] = "Jewel",
	["rbxassetid://%202637545558%20"] = "Ring",
	["rbxassetid://%20439102658%20"] = "Phoenix Feather",
}

-- you can set these off and on
Amulet = false
Idol = false
Opal = false
PhoenixDown = true
IceEssence = true
PhoenixFeather = true
NightStone = true
PhilosophersStone = true
SpiderCloak = true
LannisAmulet = true
Bloodthorn = false
UnknownArtifact = true
WhiteAmulet = true
ClickArtifact = true


Success = pcall(function()click_detector(Instance.new("ClickDetector"),10)end)
Success2 = pcall(function()fireclickdetector(Instance.new("ClickDetector"))end)
Exploit = Success and 2 or (Success2 and 1 or 0)

local MainParent = game.CoreGui

local TrinketEsp = {Trinket = {}}
TrinketEsp.Visible = true
TrinketEsp.CommonVisible = false

TrinketEsp.Init = function(part,name,rare,rainbow)		
	if not TrinketEsp.Trinket[part] then
		local BillboardUi = Instance.new("BillboardGui")
		BillboardUi.AlwaysOnTop = true
		BillboardUi.Size = UDim2.new(3,60,1,30)
		BillboardUi.ZIndexBehavior = Enum.ZIndexBehavior.Global
		BillboardUi.StudsOffsetWorldSpace = Vector3.new(0,0,0)
		BillboardUi.Adornee = part
			
		local PlayerName = Instance.new("TextLabel",BillboardUi)
		PlayerName.BackgroundTransparency = 1
		PlayerName.TextColor3 = name == "Scroll" and Color3.new(1,1,0) or part.Color
		PlayerName.Size = UDim2.new(1,0,.3,0)
		PlayerName.AnchorPoint = Vector2.new(0,.5)
		PlayerName.Position = UDim2.new(0,0,.2,0)
		PlayerName.ZIndex = 2
		PlayerName.Text = name
		PlayerName.TextScaled = true
		PlayerName.TextStrokeTransparency = .5
		PlayerName.Font = Enum.Font.GothamBold
		PlayerName.TextStrokeColor3 = Color3.fromRGB(33, 33, 33)
		
		local Distance = PlayerName:Clone()
		Distance.Parent = BillboardUi
		Distance.Font = Enum.Font.Gotham
		Distance.TextColor3 = Color3.new(1,1,1)
		Distance.Position = UDim2.new(0,0,.5,0)
		if name == "Phoenix Feather" then
			rainbow = true
			rare = true
		elseif name == "Jewel" then
			rare = true
			elseif name == "Scroll" then
			rare = true
		end
		TrinketEsp.Trinket[part] = {BillboardUi,PlayerName,Distance,rainbow,rare}
	end
end

Grabbed = {}
TrinketEsp.Render = function()
	for i,v in pairs(TrinketEsp.Trinket) do
		pcall(function()
			local Visible = TrinketEsp.Visible and (TrinketEsp.CommonVisible or v[5])
			v[1].Size = UDim2.new(3,60*1.2,1,30*1.2)
			v[1].Parent = Visible and MainParent or nil
			v[1].Adornee = Visible and i or nil
			v[3].Text = math.floor(((game.Workspace.CurrentCamera.CFrame.p) - i.Position).Magnitude+.5)
			v[2].Visible = Visible
			v[3].Visible = Visible
			if v[4] then
				v[2].TextColor3 = Color3.fromHSV((tick()*.5)%1,.8,1)
			end
		end)
		if not i or i.Parent == nil then
			v[1]:Destroy()
			TrinketEsp.Trinket[i] = nil
		elseif not Grabbed[i] or tick() > Grabbed[i] then
			if v[7] and (not v[4] or ClickArtifact) and (Exploit == 1 or Exploit == 2)then
				if ((game.Players.LocalPlayer.Character.PrimaryPart.Position) - i.Position).Magnitude < Click.MaxActivationDistance then
					if Exploit == 2 then
						click_detector(v[5],((game.Players.LocalPlayer.Character.PrimaryPart.Position) - i.Position).Magnitude)
					elseif Exploit == 1 then
						fireclickdetector(v[5],((game.Players.LocalPlayer.Character.PrimaryPart.Position) - i.Position).Magnitude)
					end
					Grabbed[i] = tick() + .1
				end
			end
		end
	end
end


TrinketEsp.GetId = function(rbxasset)
	return tonumber(string.split(rbxasset,"%")[1]:gsub("%D+", "") or 0) or 0
end

TrinketEsp.CompareColors = function(color,color2)
	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)
end

TrinketEsp.CheckInstance = function(instance)
	if instance:IsA("SpecialMesh") or instance:IsA("MeshPart") then
		local Id = instance.MeshId --TrinketEsp.GetId(instance.MeshId)
		if Meshes[Id] then
			TrinketEsp.Init(instance:IsA("MeshPart") and instance or instance.Parent,Meshes[Id],false)
			if instance:FindFirstChildOfClass("SpecialMesh") then
				TrinketEsp.Init(instance:IsA("SpecialMesh") and instance or instance.Parent,Meshes[Id],false)
			end
		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
			TrinketEsp.Init(instance.Parent,"Opal",false)
		end
	elseif instance:IsA("UnionOperation") then
		if Idol and instance.BrickColor == BrickColor.new("Dark grey") and instance.Material == Enum.Material.Slate and instance.Size.Magnitude<1.3 then
			TrinketEsp.Init(instance,"Idol",false)
		elseif Amulet and instance.BrickColor == BrickColor.new("Fossil") and instance.Material == Enum.Material.SmoothPlastic and instance.Size.Magnitude<2.5 then
			TrinketEsp.Init(instance,"Amulet",false)
		elseif WhiteAmulet and instance.BrickColor == BrickColor.new("Institutional white") and instance.Material == Enum.Material.Neon and instance.Size.Magnitude<2.5 then
			TrinketEsp.Init(instance,"White King's Amulet",true,true)
		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
			TrinketEsp.Init(instance,"Ice Essence",true,true)
		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
			TrinketEsp.Init(instance,"Spider Cloak",true,true)		
		elseif NightStone and instance.BrickColor == BrickColor.new("Black") and instance.Material == Enum.Material.Neon and instance.Size.Magnitude < .9  then
			TrinketEsp.Init(instance,"Night Stone",true,true)	
		elseif PhilosophersStone and instance.BrickColor == BrickColor.new("Persimmon") and instance.Material == Enum.Material.Neon and instance.Size.Magnitude < .9 then
			TrinketEsp.Init(instance,"Philosopher's Stone",true,true)	
		elseif Bloodthorn and instance.BrickColor == BrickColor.new("Royal purple")  then
			TrinketEsp.Init(instance,"Bloodthorn Spawn",true)	
		elseif LannisAmulet  and  instance.Material == Enum.Material.Neon and instance.BrickColor == BrickColor.new("Institutional white")  and instance.Size.Magnitude < 3.1 then
			TrinketEsp.Init(instance,"Lannis Amulet",true, true)	
		elseif UnknownArtifact and instance.Material == Enum.Material.Neon and instance.Size.Magnitude < .9 and not instance.Parent:IsA("Model") then
			TrinketEsp.Init(instance,"Unknown Artifact",true,true)	
		elseif UnknownArtifact and instance.Material == Enum.Material.Neon and instance.BrickColor == BrickColor.new("Hot pink") and instance.Size.Magnitude < 2 then
			TrinketEsp.Init(instance,"Unknown Artifact",true,true)
		end
	elseif instance:IsA("BasePart") then
		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
			TrinketEsp.Init(instance,"Phoenix Down",true,true)
		end
	end
end

for i,v in pairs(game.Workspace:GetDescendants()) do
	TrinketEsp.CheckInstance(v)
end
game.Workspace.DescendantAdded:Connect(function(v)
	TrinketEsp.CheckInstance(v)
end)

game.Workspace.DescendantRemoving:Connect(function(v)
	if TrinketEsp.Trinket[v] then
		TrinketEsp.Trinket[v][1]:Destroy()
		TrinketEsp.Trinket[v] = nil
	end
end)
 
UserInputService.InputBegan:connect(function(inputObject)
	if inputObject.KeyCode == ToggleKey then
		TrinketEsp.Visible = not TrinketEsp.Visible
		ButtonToggle(Trinket,TrinketEsp.Visible)	
	elseif inputObject.KeyCode == HideCommonToggleKey then
		TrinketEsp.CommonVisible = not TrinketEsp.CommonVisible
		ButtonToggle(CommonTrinket,TrinketEsp.CommonVisible)	
	end
end)
Trinket.MouseButton1Click:Connect(function()
	TrinketEsp.Visible = not TrinketEsp.Visible
	ButtonToggle(Trinket,TrinketEsp.Visible)
end)
CommonTrinket.MouseButton1Click:Connect(function()
	TrinketEsp.CommonVisible = not TrinketEsp.CommonVisible
	ButtonToggle(CommonTrinket,TrinketEsp.CommonVisible)
end)
--TRINKET ESP--


game:GetService("RunService").RenderStepped:Connect(function()
	TrinketEsp.Render()
	for Button,Data in pairs(Buttons) do
		Button.Up.ImageTransparency = Lerp(Button.Up.ImageTransparency,Data.Up,Data.Speed)
		Button.Down.ImageTransparency = Lerp(Button.Down.ImageTransparency,Data.Down,Data.Speed)
	end
	for Button,Effect in pairs(ToggledButtons) do
		Button.Background.BackgroundColor3 = Button.Background.BackgroundColor3:Lerp(Effect and  Color3.fromRGB(56, 56, 85) or Color3.fromRGB(46, 46, 52),.2)
	end
	if ManaTrainToggle and not ManaTrianDB and Player.Character then
		if Player.Character:FindFirstChild("Humanoid") then
			if Player.Character.Humanoid.Health >0 then
				ManaTrianDB = true
				if Player.Character.CharacterHandler.Remotes:FindFirstChild("Charge") then
					ManaTrainRemote = Player.Character.CharacterHandler.Remotes:FindFirstChild("Charge")
					ManaTrainRemote:FireServer(true)
				else
					print("Mana Error")
					ManaTrainRemote = nil
				end
				wait()
				ManaTrianDB = false
			else
				ManaTrainToggle = false
				ButtonToggle(TrainMana,ManaTrainToggle)	
			end
		end
		
	end
end)

Raw Text