Spidi Antikill GUI
Key RequiredUniversal

Spidi Antikill GUI

Universal ScriptReta28366Reta28366 671 views 713 executesUpdated Apr 18, 2026
Unrated
00
Lua Script•201 lines (7152 chars)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

local antikillEnabled = false
local originalMaxHealth = Humanoid.MaxHealth

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "SpidiAntikillGUI"
screenGui.ResetOnSpawn = false
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.Parent = game:GetService("CoreGui")

local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 250, 0, 120)
mainFrame.Position = UDim2.new(0.5, 110, 0.5, -60)
mainFrame.BackgroundColor3 = Color3.fromRGB(34, 139, 34)  -- Зеленый
mainFrame.BackgroundTransparency = 0.1
mainFrame.BorderSizePixel = 2
mainFrame.BorderColor3 = Color3.fromRGB(0, 100, 0)
mainFrame.ClipsDescendants = true
mainFrame.Parent = screenGui

local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 12)
uiCorner.Parent = mainFrame

local titleBar = Instance.new("Frame")
titleBar.Name = "TitleBar"
titleBar.Size = UDim2.new(1, 0, 0, 30)
titleBar.BackgroundColor3 = Color3.fromRGB(0, 80, 0)
titleBar.BackgroundTransparency = 0.3
titleBar.BorderSizePixel = 0
titleBar.Parent = mainFrame

local titleCorner = Instance.new("UICorner")
titleCorner.CornerRadius = UDim.new(0, 12)
titleCorner.Parent = titleBar

local titleLabel = Instance.new("TextLabel")
titleLabel.Size = UDim2.new(1, 0, 1, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Spidi Antikill GUI"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.Font = Enum.Font.GothamBold
titleLabel.TextSize = 16
titleLabel.TextXAlignment = Enum.TextXAlignment.Center
titleLabel.Parent = titleBar

local antikillButton = Instance.new("TextButton")
antikillButton.Size = UDim2.new(0.8, 0, 0, 40)
antikillButton.Position = UDim2.new(0.1, 0, 0.5, -10)
antikillButton.BackgroundColor3 = Color3.fromRGB(0, 120, 0)
antikillButton.BackgroundTransparency = 0.2
antikillButton.Text = "Antikill: OFF"
antikillButton.TextColor3 = Color3.fromRGB(255, 255, 255)
antikillButton.Font = Enum.Font.GothamSemibold
antikillButton.TextSize = 16
antikillButton.BorderSizePixel = 1
antikillButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
antikillButton.Parent = mainFrame

local buttonCorner = Instance.new("UICorner")
buttonCorner.CornerRadius = UDim.new(0, 8)
buttonCorner.Parent = antikillButton

antikillButton.MouseButton1Click:Connect(function()
    antikillEnabled = not antikillEnabled
    
    if antikillEnabled then
        antikillButton.Text = "Antikill: ON"
        antikillButton.BackgroundColor3 = Color3.fromRGB(0, 200, 0)
        antikillButton.BorderColor3 = Color3.fromRGB(255, 255, 255)
        pcall(function()
            Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
                if antikillEnabled and Humanoid.Health <= 0 then
                    Humanoid.Health = Humanoid.MaxHealth
                end
            end)
            
            local healthConnection
            healthConnection = Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
                if antikillEnabled and Humanoid.Health < Humanoid.MaxHealth then
                    Humanoid.Health = Humanoid.MaxHealth
                end
            end)
        end)
        Humanoid.Health = Humanoid.MaxHealth
    else
        antikillButton.Text = "Antikill: OFF"
        antikillButton.BackgroundColor3 = Color3.fromRGB(0, 120, 0)
        antikillButton.BorderColor3 = Color3.fromRGB(0, 255, 0)
    end
end)

local dragging = false
local dragStart = nil
local startPos = nil

local function updateInput(input, isBegin)
    if isBegin then
        dragging = true
        dragStart = Vector2.new(input.Position.X, input.Position.Y)
        startPos = mainFrame.Position
    elseif dragging and input.UserInputState == Enum.UserInputState.End then
        dragging = false
    end
end

local function handleInput(input)
    if dragging and input.UserInputState == Enum.UserInputState.Change then
        local delta = Vector2.new(input.Position.X, input.Position.Y) - dragStart
        local newX = startPos.X.Scale + (delta.X / screenGui.AbsoluteSize.X)
        local newY = startPos.Y.Scale + (delta.Y / screenGui.AbsoluteSize.Y)
        mainFrame.Position = UDim2.new(newX, 0, newY, 0)
    end
end

titleBar.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        updateInput(input, true)
    end
end)

UserInputService.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement then
        handleInput(input)
    end
end)

UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = false
    end
end)

titleBar.TouchTap:Connect(function()

end)

titleBar.TouchLongPress:Connect(function()
    
end)

local touchDragStart = nil
local touchStartPos = nil

titleBar.TouchBegan:Connect(function(touch)
    dragging = true
    touchDragStart = Vector2.new(touch.Position.X, touch.Position.Y)
    touchStartPos = mainFrame.Position
end)

UserInputService.TouchMoved:Connect(function(touch, processed)
    if not processed and dragging then
        local delta = Vector2.new(touch.Position.X, touch.Position.Y) - touchDragStart
        local newX = touchStartPos.X.Scale + (delta.X / screenGui.AbsoluteSize.X)
        local newY = touchStartPos.Y.Scale + (delta.Y / screenGui.AbsoluteSize.Y)
        mainFrame.Position = UDim2.new(newX, 0, newY, 0)
    end
end)

UserInputService.TouchEnded:Connect(function()
    dragging = false
end)

LocalPlayer.CharacterAdded:Connect(function(newChar)
    Character = newChar
    Humanoid = Character:WaitForChild("Humanoid")
    
    if antikillEnabled then
        Humanoid.Health = Humanoid.MaxHealth
        Humanoid:GetPropertyChangedSignal("Health"):Connect(function()
            if antikillEnabled and Humanoid.Health < Humanoid.MaxHealth then
                Humanoid.Health = Humanoid.MaxHealth
            end
        end)
    end
end)

mainFrame.BackgroundTransparency = 1
titleBar.BackgroundTransparency = 1
antikillButton.BackgroundTransparency = 1
titleLabel.TextTransparency = 1
antikillButton.TextTransparency = 1

local fadeTween = TweenService:Create(mainFrame, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {BackgroundTransparency = 0.1})
local titleTween = TweenService:Create(titleBar, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {BackgroundTransparency = 0.3})
local buttonTween = TweenService:Create(antikillButton, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {BackgroundTransparency = 0.2})
local textTween = TweenService:Create(titleLabel, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {TextTransparency = 0})
local buttonTextTween = TweenService:Create(antikillButton, TweenInfo.new(0.5, Enum.EasingStyle.Quad), {TextTransparency = 0})

fadeTween:Play()
titleTween:Play()
buttonTween:Play()
textTween:Play()
buttonTextTween:Play()

Features & Information

Spidi

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts