Universal Script 📌
4.0k Views
623 Executions

R6 Animated Linked Sword Server-Sided

Universal Script 📌
XxLemon_WolfyxX
XxLemon_WolfyxXPublished 10
6 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

woah, now we have a very ironic sword made INSIDE THE SCRIPT?! (THE SWORD WON'T BE APART OF THIS SCRIPT) Z = Attack (Equip after pressing Q) Q = Unequip

View Raw
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local function createTrack(id)
    local anim = Instance.new("Animation")
    anim.AnimationId = "rbxassetid://" .. id
    return humanoid:LoadAnimation(anim)
end

local equipTrack   = createTrack(94160581)
local unequipTrack = createTrack(94095929)
local idleTrack    = createTrack(94108418)
idleTrack.Looped = true

local comboTracks = { -- sword combos lol
    createTrack(94161088),
    createTrack(94161333),
    createTrack(94160738)
}

local currentStage = 0
local lastPressTime = 0
local cooldown = 0.3
local isActive = true

local connections = {}

local function activate()
    isActive = true
    equipTrack:Play()
    task.wait(equipTrack.Length)
    equipTrack:Stop()
    idleTrack:Play()
end

local function deactivate()
    isActive = false
    idleTrack:Stop()
    for _, track in ipairs(comboTracks) do


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
37
7
Approved 1 hour ago
Universal Script 📌
4.1k
185.5k
Bumped 8 hours ago
Script hub
794
54
10 hours ago
Universal Script 📌
29.0k
674.0k
Bumped 11 hours ago
Script hub
14.1k
2.7k
Bumped 13 hours ago
Key System
Paid