Features:
- Bag ESP
Bags receive a white outline around them
Script:
-- stolen from Bitc h boat, Sory hole creamlocal NotifLogs = {}local CreateNotificationdolocal function map(N, OldMin, OldMax, Min, Max)return (N - OldMin) / (OldMax - OldMin) * (Max - Min) + Minendlocal notes = {}local function DrawingObject(t, col)local d = Drawing.new(t)d.Visible = trued.Transparency = 1d.Color = colreturn dendlocal function Rectangle(sizex, sizey, fill, col)local s = DrawingObject("Square", col)s.Filled = fills.Thickness = 1s.Position = Vector2.new()s.Size = Vector2.new(sizex, sizey)return sendlocal function Text(text)local s = DrawingObject("Text", Color3.new(1, 1, 1))s.Text = texts.Size = 13s.Center = falses.Outline = trues.Position = Vector2.new()s.Font = 2return sendCreateNotification = function(t, customcolor) -- TODO i want some kind of prioritized message to the notification list, like a warning or something. warnings have icons too maybe? idk??table.insert(NotifLogs, string.format("[%s]: %s", os.date("%X"), t))local gap = 25local width = 18local alpha = 255local time = 0local estep = 0local eestep = 0.02local insety = 0local Note = {enabled = true,targetPos = Vector2.new(50, 50),size = Vector2.new(200, width),drawings = {outline = Rectangle(202, width + 2, false, Color3.new(0, 0, 0)),fade = Rectangle(202, width + 2, false, Color3.new(0, 0, 0)),},Remove = function(self, d)if d.Position.x < d.Size.x thenfor k, drawing in pairs(self.drawings) dodrawing:Remove()drawing = falseendself.enabled = falseendend,Update = function(self, num, listLength, dt)local pos = self.targetPoslocal indexOffset = (listLength - num) * gapif insety < indexOffset theninsety -= (insety - indexOffset) * 0.2elseinsety = indexOffsetendlocal size = self.sizelocal tpos = Vector2.new(pos.x - size.x / time - map(alpha, 0, 255, size.x, 0), pos.y + insety)self.pos = tposlocal locRect = {x = math.ceil(tpos.x),y = math.ceil(tpos.y),w = math.floor(size.x - map(255 - alpha, 0, 255, 0, 70)),h = size.y,}--pos.set(-size.x / fc - map(alpha, 0, 255, size.x, 0), pos.y)local fade = math.min(time * 12, alpha)fade = fade > 255 and 255 or fade < 0 and 0 or fadeif self.enabled thenlocal linenum = 1for i, drawing in pairs(self.drawings) dodrawing.Transparency = fade / 255if type(i) == "number" thendrawing.Position = Vector2.new(locRect.x + 1, locRect.y + i)drawing.Size = Vector2.new(locRect.w - 2, 1)elseif i == "text" thendrawing.Position = tpos + Vector2.new(6, 2)elseif i == "outline" thendrawing.Position = Vector2.new(locRect.x, locRect.y)drawing.Size = Vector2.new(locRect.w, locRect.h)elseif i == "fade" thendrawing.Position = Vector2.new(locRect.x - 1, locRect.y - 1)drawing.Size = Vector2.new(locRect.w + 2, locRect.h + 2)local t = (200 - fade) / 255 / 3drawing.Transparency = t < 0.4 and 0.4 or telseif i:find("line") thendrawing.Position = Vector2.new(locRect.x + linenum, locRect.y + 1)if menu thenlocal mencol = customcolor or (menu:GetVal("Settings", "Cheat Settings", "Menu Accent") and Color3.fromRGB(unpack(menu:GetVal("Settings", "Cheat Settings", "Menu Accent", COLOR))) or Color3.fromRGB(172, 208, 255))local color = linenum == 1 and mencol or Color3.fromRGB(mencol.R * 255 - 40, mencol.G * 255 - 40, mencol.B * 255 - 40) -- super shitif drawing.Color ~= color thendrawing.Color = colorendendlinenum += 1endendtime += estep * dt * 128 -- TODO need to do the durationestep += eestep * dt * 64endend,Fade = function(self, num, len, dt)if self.pos.x > self.targetPos.x - 0.2 * len or self.fading thenif not self.fading thenestep = 0endself.fading = truealpha -= estep / 4 * len * dt * 50eestep += 0.01 * dt * 100endif alpha <= 0 thenself:Remove(self.drawings[1])endend,}for i = 1, Note.size.y - 2 dolocal c = 0.28 - i / 80Note.drawings[i] = Rectangle(200, 1, true, Color3.new(0, 0, 0))endlocal color = Color3.fromRGB(172, 208, 255)Note.drawings.text = Text(t)if Note.drawings.text.TextBounds.x + 7 > Note.size.x then -- expand the note size to fit if it's less than the default sizeNote.size = Vector2.new(Note.drawings.text.TextBounds.x + 7, Note.size.y)endNote.drawings.line = Rectangle(1, Note.size.y - 2, true, color)Note.drawings.line1 = Rectangle(1, Note.size.y - 2, true, color)notes[#notes + 1] = NoteendrenderStepped = game.RunService.RenderStepped:Connect(function(dt)Camera = workspace.CurrentCameralocal smallest = math.hugefor k = 1, #notes dolocal v = notes[k]if v and v.enabled thensmallest = k < smallest and k or smallestelsetable.remove(notes, k)endendlocal length = #notesfor k = 1, #notes dolocal note = notes[k]note:Update(k, length, dt)if k <= math.ceil(length / 10) or note.fading thennote:Fade(k, length, dt)endendend)endlocal ws = game:GetService("Workspace")function isBag(instance)if instance:FindFirstChild("BagTouchScript") thenreturn trueendend-- instance.Main.Colorfunction createHL(instance, color)local hl = Instance.new("Highlight")hl.Parent = instancehl.FillColor = colorendlocal currentBags = 0for i,v in pairs(ws:GetChildren()) doif isBag(v) == true thencurrentBags = icreateHL(v, Color3.fromRGB(v.Main.Color))endendCreateNotification("all current bags have been highlighted ("..currentBags.." found)")ws.ChildAdded:connect(function(child)if isBag(child) == true thencreateHL(child, Color3.fromRGB(child.Main.Color))CreateNotification("new bag spawned and highlighted ("..child:GetFullName()..")")endend)
Post a Comment (0)