local RunService = game:GetService("RunService") local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local dummyName = "Dummy" local currentDummy = nil local enabled = true local player = Players.LocalPlayer local mouse = player:GetMouse() local screenGui = Instance.new("ScreenGui") screenGui.Name = "DummyHud" screenGui.ResetOnSpawn = false screenGui.Parent = player:WaitForChild("PlayerGui") local button = Instance.new("ImageButton") button.Size = UDim2.new(0, 80, 0, 80) button.Position = UDim2.new(0.5, -40, 0.2, 0) button.BackgroundTransparency = 0.5 button.BackgroundColor3 = Color3.fromRGB(0, 0, 0) button.BorderSizePixel = 2 button.BorderColor3 = Color3.fromRGB(255, 0, 0) button.ImageTransparency = 1 button.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(1, 0) corner.Parent = button local text = Instance.new("TextLabel") text.Size = UDim2.new(1, 0, 1, 0) text.BackgroundTransparency = 1 text.Text = "ON" text.TextColor3 = Color3.fromRGB(255, 255, 255) text.TextSize = 24 text.Font = Enum.Font.GothamBold text.Parent = button local dragging = false local dragStart local buttonStart button.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position buttonStart = button.Position end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then local delta = input.Position - dragStart button.Position = UDim2.new(buttonStart.X.Scale, buttonStart.X.Offset + delta.X, buttonStart.Y.Scale, buttonStart.Y.Offset + delta.Y) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) local function toggle() enabled = not enabled text.Text = enabled and "ON" or "OFF" button.BorderColor3 = enabled and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(100, 100, 100) if currentDummy then for _, c in ipairs(currentDummy:GetChildren()) do if c:IsA("Highlight") or c:IsA("BillboardGui") then c.Enabled = enabled end end end end button.MouseButton1Click:Connect(toggle) UserInputService.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.X and input.UserInputType == Enum.UserInputType.Keyboard then toggle() end end) local function applyEffects(target) for _, c in ipairs(target:GetChildren()) do if c:IsA("Highlight") or c:IsA("BillboardGui") then c:Destroy() end end local hl = Instance.new("Highlight") hl.FillColor = Color3.fromRGB(255,0,0) hl.OutlineColor = Color3.fromRGB(255,255,255) hl.FillTransparency = 0.3 hl.OutlineTransparency = 0 hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.Enabled = enabled hl.Parent = target local bb = Instance.new("BillboardGui") bb.Name = "Tag" bb.Size = UDim2.new(0,200,0,50) bb.StudsOffset = Vector3.new(0,3,0) bb.AlwaysOnTop = true bb.Enabled = enabled local txt = Instance.new("TextLabel") txt.Size = UDim2.new(1,0,1,0) txt.BackgroundTransparency = 1 txt.Text = dummyName txt.TextColor3 = Color3.fromRGB(255,255,255) txt.TextStrokeTransparency = 0 txt.TextStrokeColor3 = Color3.fromRGB(0,0,0) txt.Font = Enum.Font.GothamBold txt.TextSize = 20 txt.Parent = bb bb.Parent = target end local function findDummy() for _, obj in ipairs(workspace:GetDescendants()) do if (obj:IsA("Model") or obj:IsA("BasePart")) and (obj.Name == dummyName or (obj:FindFirstChild("DisplayName") and obj.DisplayName.Value == dummyName)) then return obj end end end RunService.RenderStepped:Connect(function() local new = findDummy() if new and new ~= currentDummy then if currentDummy then for _, c in ipairs(currentDummy:GetChildren()) do if c:IsA("Highlight") or c:IsA("BillboardGui") then c:Destroy() end end end currentDummy = new applyEffects(currentDummy) end end) local initial = findDummy() if initial then currentDummy = initial applyEffects(currentDummy) end