local a=game:GetService("Players")local b=game:GetService("RunService")local c=game:GetService("UserInputService")local d=game:GetService("TweenService")local e=a.LocalPlayer;local f=Instance.new("ScreenGui")f.Name="DangerUI"f.ResetOnSpawn=false;f.Parent=e:WaitForChild("PlayerGui")local g=Instance.new("Frame")g.Name="AppleUI"g.Size=UDim2.new(0,300,0,200)g.Position=UDim2.new(0.5,-150,0.5,-100)g.BackgroundColor3=Color3.fromRGB(20,20,20)g.BackgroundTransparency=0.1;g.BorderSizePixel=0;g.Parent=f;local h=Instance.new("UICorner")h.CornerRadius=UDim.new(0,16)h.Parent=g;local i=Instance.new("ImageLabel")i.Name="Shadow"i.AnchorPoint=Vector2.new(0.5,0.5)i.BackgroundTransparency=1;i.Position=UDim2.new(0.5,0,0.5,0)i.Size=UDim2.new(1,30,1,30)i.ZIndex=0;i.Image="rbxassetid://1316045217"i.ImageColor3=Color3.fromRGB(0,0,0)i.ImageTransparency=0.6;i.Parent=g;local j=Instance.new("TextButton")j.Name="DangerButton"j.Text="Danger"j.Font=Enum.Font.GothamBold;j.TextColor3=Color3.fromRGB(255,255,255)j.TextSize=18;j.Size=UDim2.new(0,120,0,50)j.Position=UDim2.new(0.5,-60,0.5,-25)j.BackgroundColor3=Color3.fromRGB(255,59,48)j.BorderSizePixel=0;j.AutoButtonColor=false;j.Parent=g;local k=Instance.new("UICorner")k.CornerRadius=UDim.new(0,12)k.Parent=j;local l=Instance.new("Frame")l.Name="ButtonShadow"l.Size=UDim2.new(1,0,1,0)l.Position=UDim2.new(0,0,0,4)l.BackgroundColor3=Color3.fromRGB(200,30,30)l.BorderSizePixel=0;l.ZIndex=1;l.Parent=j;local m=Instance.new("UICorner")m.CornerRadius=UDim.new(0,12)m.Parent=l;j.ZIndex=2;local n=Instance.new("TextLabel")n.Name="TitleLabel"n.Text="Danger Zone"n.Font=Enum.Font.GothamBold;n.TextColor3=Color3.fromRGB(255,255,255)n.TextSize=20;n.Size=UDim2.new(1,0,0,30)n.Position=UDim2.new(0,0,0,20)n.BackgroundTransparency=1;n.Parent=g;local o;local p;local q;local r;local function s(t)local u=t.Position-q;local v=UDim2.new(r.X.Scale,r.X.Offset+u.X,r.Y.Scale,r.Y.Offset+u.Y)local w=TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)local x=d:Create(g,w,{Position=v})x:Play()end;g.InputBegan:Connect(function(t)if t.UserInputType==Enum.UserInputType.MouseButton1 or t.UserInputType==Enum.UserInputType.Touch then o=true;q=t.Position;r=g.Position;local y=d:Create(g,TweenInfo.new(0.2),{Size=UDim2.new(0,310,0,210)})y:Play()t.Changed:Connect(function()if t.UserInputState==Enum.UserInputState.End then o=false;local z=d:Create(g,TweenInfo.new(0.2),{Size=UDim2.new(0,300,0,200)})z:Play()end end)end end)g.InputChanged:Connect(function(t)if t.UserInputType==Enum.UserInputType.MouseMovement or t.UserInputType==Enum.UserInputType.Touch then p=t end end)c.InputChanged:Connect(function(t)if t==p and o then s(t)end end)j.MouseButton1Down:Connect(function()j:TweenPosition(UDim2.new(0.5,-60,0.5,-21),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.1,true)l:TweenSize(UDim2.new(1,0,1,-4),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.1,true)end)j.MouseButton1Up:Connect(function()j:TweenPosition(UDim2.new(0.5,-60,0.5,-25),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic,0.2,true)l:TweenSize(UDim2.new(1,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic,0.2,true)local A=e.Character;if A then local B=A:FindFirstChild("Humanoid")local C=A:FindFirstChild("HumanoidRootPart")if C then local D=Instance.new("Explosion")D.Position=C.Position;D.BlastPressure=500000;D.BlastRadius=10;D.ExplosionType=Enum.ExplosionType.NoCraters;D.DestroyJointRadiusPercent=0;D.Parent=workspace;local E=Instance.new("Sound")E.SoundId="rbxassetid://142082167"E.Volume=1;E.Parent=C;E:Play()if B then B:TakeDamage(100)end end end;local F=coroutine.create(function()local G=20;for H=1,10 do f.Position=UDim2.new(0,math.random(-G,G),0,math.random(-G,G))task.wait(0.02)G=G*0.9 end;f.Position=UDim2.new(0,0,0,0)end)coroutine.resume(F)end)j.MouseEnter:Connect(function()d:Create(j,TweenInfo.new(0.3),{BackgroundColor3=Color3.fromRGB(255,69,58)}):Play()end)j.MouseLeave:Connect(function()d:Create(j,TweenInfo.new(0.3),{BackgroundColor3=Color3.fromRGB(255,59,48)}):Play()end)local I=Instance.new("TextButton")I.Name="CloseButton"I.Text="×"I.Font=Enum.Font.GothamBold;I.TextColor3=Color3.fromRGB(255,255,255)I.TextSize=24;I.Size=UDim2.new(0,30,0,30)I.Position=UDim2.new(1,-40,0,10)I.BackgroundTransparency=1;I.Parent=g;I.MouseButton1Click:Connect(function()d:Create(g,TweenInfo.new(0.3,Enum.EasingStyle.Back,Enum.EasingDirection.In),{Size=UDim2.new(0,0,0,0),Position=UDim2.new(0.5,0,0.5,0)}):Play()task.wait(0.3)f:Destroy()end)print("Danger UI has been loaded successfully!")