Springblade

Gear · by Brixborg

A Uniblade that bounces you up into the air every time it hits: strike from above, and keep bouncing. Hits as hard as any Uniblade (10 a slash, 30 a lunge).

Use it in your games: in the studio, open View > Archive, go to the Gear shelf and pick "Springblade".

The script

-- Copyright (c) 2026 Brixborg Owners. All rights reserved. See LICENSE.txt.
-- THE TRAIT UNIBLADES: the Uniblade, with a trick. (A Script inside the tool.)
--
-- Every one of them hits exactly as hard as the plain Uniblade (and as every
-- other trait blade): the same slash, the same lunge, the same nick. What
-- differs is what each does to the PHYSICS, chosen by the tool's "Trait"
-- StringValue:
--
--   Feather   while you hold it you hardly weigh a thing: jumps go up and
--             up and drift down slowly, and you can glide across gaps
--   Topple    whoever it hits is knocked flat (they go limp and fall over,
--             then get back up), so they can't hit back for a moment
--   Gust      whoever it hits is blown away from you, off their feet
--   Sky       whoever it hits is flung straight up into the air
--   Dash      a lunge throws YOU forwards, blade first, across the floor
--   Spring    every hit bounces YOU up into the air (strike from above,
--             and keep bouncing)
--
-- How it fights (the same as the Uniblade):
--   Click                slash: anyone the blade touches takes SLASH_DAMAGE
--   Two quick clicks     lunge: the blade swings out in front for a moment,
--                        and anyone it touches takes LUNGE_DAMAGE
--   Just touching        IDLE_DAMAGE, until your first swing
-- The one who hit last gets the kill; it never hurts your own team.

-- ===========================================================================
-- THE NUMBERS
-- ===========================================================================
-- The damage: the SAME for every trait (keep them all alike).
local IDLE_DAMAGE = 5
local SLASH_DAMAGE = 10
local LUNGE_DAMAGE = 30
local LUNGE_CLICK = 0.2    -- a click this soon after the last one is a lunge (seconds)
local LUNGE_DELAY = 0.25   -- seconds before the blade comes out in a lunge...
local LUNGE_OUT = 0.75     -- ...and how long it stays out
local HIT_AGAIN = 0.1      -- (the same person can't be hit twice within this many seconds)

-- The tricks.
local FEATHER_LIFT = 0.82  -- Feather: the share of your weight it holds up (1 = no gravity at all)
local GUST_AWAY = 55       -- Gust: how fast they are blown away (studs a second)...
local GUST_UP = 28         -- ...and up
local SKY_UP = 85          -- Sky: how fast they are flung upwards
local DASH_SPEED = 70      -- Dash: how fast a lunge throws you forwards...
local DASH_UP = 12         -- ...with a little hop
local SPRING_UP = 55       -- Spring: how fast a hit bounces you up
local TRICK_AGAIN = 0.6    -- (each person is thrown about at most this often, in seconds)
local STEADY = 1.5         -- Dash and Spring throw YOU about, but you stay on your feet for this long
-- ===========================================================================

local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local debris = game:GetService("Debris")
local players = game:GetService("Players")
local traitValue = tool:FindFirstChild("Trait")
local TRAIT = traitValue and traitValue.Value or "Topple"

-- How it is held: the blade pointing up (as it is made), or straight out.
local GRIP_UP = tool.Grip
local GRIP_OUT = CFrame.new(GRIP_UP.p) * CFrame.Angles(0, 0, math.pi / 2)

local damage = IDLE_DAMAGE
local lastAttack = -10
local lastHit = {}        -- humanoid -> when the blade last hit them
local lastTrick = {}      -- humanoid -> when the trick last threw them about

local function sound(name, where, volume, pitch)
  local s = Instance.new("Sound", where)
  s.SoundId = "brixborg:" .. name
  s.Volume = volume or 0.5
  s.Pitch = pitch or 1
  s:Play()
  debris:AddItem(s, 1)
end

local function wielder()
  local character = tool.Parent
  if not character then return nil end
  return character, character:FindFirstChild("Humanoid"), players:GetPlayerFromCharacter(character)
end

local function tag(humanoid, player)
  local old = humanoid:FindFirstChild("creator")
  if old then old:Destroy() end
  local creator = Instance.new("ObjectValue")
  creator.Name = "creator"
  creator.Value = player
  creator.Parent = humanoid
  debris:AddItem(creator, 2)
end

-- How heavy a character is (its body pieces added up: what a BodyForce pushes).
local function weightOf(character)
  local mass = 0
  for _, piece in ipairs(character:GetChildren()) do
    if piece:IsA("BasePart") then mass = mass + piece:GetMass() end
  end
  return mass
end

-- ---------------------------------------------------------------------------
-- The tricks
-- ---------------------------------------------------------------------------
-- Dash and Spring throw the wielder, fast enough that they would fall over
-- (a hard knock does that). So for a moment nothing can knock them over.
local steadyUntil = 0
local function steady(character)
  local humanoid = character and character:FindFirstChild("Humanoid")
  if not humanoid then return end
  steadyUntil = time() + STEADY
  humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
  delay(STEADY + 0.05, function()
    if time() >= steadyUntil and humanoid.Parent then
      humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown, true)
    end
  end)
end

-- Feather: a BodyForce in the Torso holds up most of your weight while you
-- hold the blade (put on when it's drawn, taken off when it's put away).
local function featherOn(character)
  local torso = character and character:FindFirstChild("Torso")
  if not torso or torso:FindFirstChild("Feather") then return end
  local force = Instance.new("BodyForce")
  force.Name = "Feather"
  force.force = Vector3.new(0, weightOf(character) * workspace.Gravity * FEATHER_LIFT, 0)
  force.Parent = torso
end
local function featherOff(character)
  local torso = character and character:FindFirstChild("Torso")
  local force = torso and torso:FindFirstChild("Feather")
  if force then force:Destroy() end
end

-- Something done to whoever the blade hits (after the damage).
local function trickOnHit(character, victim, victimModel)
  if time() - (lastTrick[victim] or -10) < TRICK_AGAIN then return end
  local torso = victimModel:FindFirstChild("Torso")
  local myTorso = character:FindFirstChild("Torso")
  if not torso or not myTorso then return end
  lastTrick[victim] = time()
  local away = torso.Position - myTorso.Position
  away = Vector3.new(away.x, 0, away.z)
  away = away.magnitude > 0.01 and away.unit or myTorso.CFrame.lookVector
  if TRAIT == "Topple" then
    victim:ChangeState(Enum.HumanoidStateType.FallingDown)
    torso.Velocity = away * 12 + Vector3.new(0, 10, 0)
    sound("thud", torso, 0.6, 0.9)
  elseif TRAIT == "Gust" then
    torso.Velocity = away * GUST_AWAY + Vector3.new(0, GUST_UP, 0)
    sound("swoosh", torso, 0.8, 0.8)
  elseif TRAIT == "Sky" then
    torso.Velocity = Vector3.new(0, SKY_UP, 0)
    sound("spring", torso, 0.7, 0.8)
  elseif TRAIT == "Spring" then
    steady(character)
    myTorso.Velocity = Vector3.new(myTorso.Velocity.x, SPRING_UP, myTorso.Velocity.z)
    sound("spring", myTorso, 0.6, 1.3)
  end
end

-- Dash: a lunge throws you forwards.
local function dash(character)
  local torso = character and character:FindFirstChild("Torso")
  if not torso then return end
  local ahead = torso.CFrame.lookVector
  ahead = Vector3.new(ahead.x, 0, ahead.z)
  if ahead.magnitude < 0.01 then return end
  steady(character)
  torso.Velocity = ahead.unit * DASH_SPEED + Vector3.new(0, DASH_UP, 0)
  sound("swing", torso, 0.7, 0.6)
end

-- ---------------------------------------------------------------------------
-- Fighting (as the Uniblade)
-- ---------------------------------------------------------------------------
handle.Touched:connect(function(hit)
  local character, myHumanoid, player = wielder()
  if not myHumanoid or myHumanoid.Health <= 0 then return end
  local model = hit.Parent
  if model and model:IsA("Hat") then model = model.Parent end
  local victim = model and model:FindFirstChild("Humanoid")
  if not victim or model == character or victim.Health <= 0 then return end
  local victimPlayer = players:GetPlayerFromCharacter(model)
  if player and victimPlayer and not player.Neutral and not victimPlayer.Neutral and
     player.TeamColor == victimPlayer.TeamColor then return end -- (no friendly fire)
  if time() - (lastHit[victim] or -10) < HIT_AGAIN then return end
  lastHit[victim] = time()
  tag(victim, player)
  victim:TakeDamage(damage)
  if damage > IDLE_DAMAGE then
    sound("slash", hit, 0.6)
    trickOnHit(character, victim, model)   -- (a swing does the trick; a brush doesn't)
  end
end)

local function slash()
  damage = SLASH_DAMAGE
  sound("swing", handle, 0.5)
  local swing = Instance.new("StringValue")
  swing.Name = "toolanim"
  swing.Value = "Slash"
  swing.Parent = tool
end

local function lunge()
  damage = LUNGE_DAMAGE
  sound("swing", handle, 0.8, 0.8)
  wait(LUNGE_DELAY)
  tool.Grip = GRIP_OUT
  if TRAIT == "Dash" then dash(tool.Parent) end
  wait(LUNGE_OUT)
  tool.Grip = GRIP_UP
  damage = SLASH_DAMAGE
end

local holder = nil
tool.Equipped:connect(function()
  tool.Grip = GRIP_UP
  sound("swing", handle, 0.25, 1.3)   -- (drawing the sword)
  holder = tool.Parent
  if TRAIT == "Feather" then featherOn(holder) end
end)

tool.Unequipped:connect(function()
  if TRAIT == "Feather" then featherOff(holder) end
  holder = nil
end)

tool.Activated:connect(function()
  if not tool.Enabled then return end
  local _, humanoid = wielder()
  if not humanoid or humanoid.Health <= 0 then return end
  tool.Enabled = false
  local now = time()
  if now - lastAttack < LUNGE_CLICK then lunge() else slash() end
  lastAttack = now
  tool.Enabled = true
end)

More gear