Universal Script 📌
4.5k Views
1.9k Executions

Jeff The Killers Swing Animation 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

This one supports R6, not R15. The Animation can be triggered by Z, and you can spam it too! No bugs at all. It even works if you respawned!

View Raw
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer

local hitId       = "rbxassetid://54584713" -- the swing animation, is replacable and supports r15 or r6
local hitSpeed    = 1.0 -- speed of the animation i suppose
local hitFadeTime = 0.1 -- how smooth can the animation end
local hitPriority = Enum.AnimationPriority.Action -- layers of animation, now above idle and walk (and run, and jump, and fall)

local hitAnim = Instance.new("Animation")
hitAnim.AnimationId = hitId

local currentHitTrack = nil

local function playHit()
    local char = player.Character
    if not char or not currentHitTrack then
        return
    end

    if currentHitTrack.IsPlaying then
        currentHitTrack.TimePosition = 0
    else
        currentHitTrack:Play(hitFadeTime, 1, hitSpeed)
    end
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.Z then
        playHit()
    end
end)

local function setupCharacter(character)
    if currentHitTrack then
        if currentHitTrack.IsPlaying then
            currentHitTrack:Stop(0)
        end
        currentHitTrack:Destroy()


Comments

1
Log in to join the conversation. Login
XxLemon_WolfyxX's profile picture
XxLemon_WolfyxXUploader6 months ago

it also supports the rest of the animation in this specific link: https://scriptblox.com/script/Universal-Script-FE-jeff-the-killer-animation-48979

1

More universal scripts

See all
Universal Script 📌
39
7
Approved 1 hour ago
Universal Script 📌
4.1k
185.5k
Bumped 8 hours ago
Script hub
798
55
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