sword script
Key Required

sword script

[UP] Just a baseplate.gleb8282822gleb8282822 1.7K views 1.6K executesUpdated Mar 2, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•88 lines (2476 chars)
--[[
    PROJECT: GLEB'S MAGIC SWORD (FIXED ROTATION)
    ANIMATION: 90 DEGREE DOWN SLASH (0.9s DELAY)
    MODEL: 12221720 | TEXTURE: 12224218
--]]

local Players = game:GetService("Players")
local Debris = game:GetService("Debris")
local lp = Players.LocalPlayer

-- 1. СОЗДАНИЕ ПРЕДМЕТА
local tool = Instance.new("Tool")
tool.Name = "Gleb's Sword"
tool.RequiresHandle = true
tool.TextureId = "rbxassetid://12224215" -- ИКОНКА

local handle = Instance.new("Part")
handle.Name = "Handle"
handle.Size = Vector3.new(1, 1, 4)
handle.Parent = tool
handle.CanCollide = false

-- ЗАГРУЗКА 3D МОДЕЛИ
local mesh = Instance.new("SpecialMesh", handle)
mesh.MeshId = "rbxassetid://12221720"
mesh.TextureId = "rbxassetid://12224218"
mesh.Scale = Vector3.new(1.2, 1.2, 1.2)

-- ИСПРАВЛЕНИЕ НАПРАВЛЕНИЯ (Чтобы не смотрел назад)
-- Поворачиваем меш внутри ручки на 180 градусов
mesh.Offset = Vector3.new(0, 0, 0)
tool.Grip = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(180), 0)

-- 2. ЗВУКИ
local function createSound(id)
    local s = Instance.new("Sound", handle)
    s.SoundId = "rbxassetid://" .. id
    s.Volume = 2
    return s
end

local equipSound = createSound("12222225")
local attackSounds = {createSound("12222216"), createSound("12222208")}

-- 3. АНИМАЦИЯ И УДАР
local db = false
tool.Activated:Connect(function()
    if db then return end
    db = true
    
    -- Рандомный звук атаки
    attackSounds[math.random(1, #attackSounds)]:Play()

    -- АНИМАЦИЯ: ВНИЗ НА 90 ГРАДУСОВ
    -- Используем Grip для поворота меча в руке
    tool.Grip = tool.Grip * CFrame.Angles(math.rad(-90), 0, 0)
    
    -- Проверка урона при ударе
    local connection = handle.Touched:Connect(function(hit)
        if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= lp.Character then
            hit.Parent.Humanoid:TakeDamage(25)
            
            -- Синий эффект попадания (FE)
            local box = Instance.new("SelectionBox", hit)
            box.Adornee = hit
            box.Color3 = Color3.fromRGB(0, 255, 255)
            Debris:AddItem(box, 0.4)
        end
    end)

    -- Ждем 0.9 секунды, как ты просил
    task.wait(0.9)
    
    -- ВОЗВРАЩАЕМ ОБРАТНО ВВЕРХ НА 90 ГРАДУСОВ
    tool.Grip = tool.Grip * CFrame.Angles(math.rad(90), 0, 0)
    
    connection:Disconnect()
    db = false
end)

-- Звук при экипировке
tool.Equipped:Connect(function()
    equipSound:Play()
end)

-- ВЫДАЧА
tool.Parent = lp.Backpack
print("ГЛЕБ, МЕЧ ИСПРАВЛЕН! ТЕПЕРЬ ОН РУБИТ ВНИЗ.")

Features & Information

🇷🇺: Простите, но это делал скрипт gemini и пока ещё не умеет делать чтобы все видели урон, не дизлайк пожалуйста. 🇺🇸: Sorry, but this was done by the gemini script and it doesn't yet know how to make the damage visible to everyone. Please don't dislike it.
#Sword#delta#fe

Community Comments (4)

spynotespynoteMar 2, 2026

Попробуй просто увеличить хитбокс всех

Replying to @spynote
gleb8282822gleb8282822Mar 3, 2026

@spynote good script under development

Replying to @spynote
gleb8282822gleb8282822Mar 3, 2026

@spynote Done, the script is done! Link to the script https://scriptblox.com/script/UP-Just-a-baseplate.-sword-v2-Large-hitboxes-127497

spynotespynoteMar 3, 2026

ok

More Scripts for [UP] Just a baseplate.