#how to make a tool that gives player old animations

1 messages · Page 1 of 1 (latest)

frigid sun
#

ive been struggling with this, any help?
i already have a tool with a proper handle and everything, i also took a serversided old animations script from the toolbox (since i want them to be seen by other players not just clientsided to the player that has them)

chilly totem
#

if you play an animation via the AnimationController it automaticly syncs it with the server

frigid sun
#

the script i found seems to just work off of default Animate altogether (its also called Animate itself)

#

idk if it uses animationcontroller

chilly totem
#

and what exactly cant you do right now?

frigid sun
tawdry charmBOT
#

studio** You are now Level 2! **studio

frigid sun
#

what i cant do right now is get the animations to actually work lol

#

the animations work by themselves if already placed in startercharacterscripts but thats not what i want i want them to be triggered only by a tool

chilly totem
#

Wel this is how you do it:

Tool Enables -> overwrite the standard animations
Tool Disables -> sets the standard animations back

frigid sun
#

tried twice, one time, on use of the tool it literally did nothing
second time, the tool gave broken animations instead of the ones from the script

chilly totem
#

do you have a script you can show me

frigid sun
#

of the tool? sure

chilly totem
#

paste it like this

frigid sun
# chilly totem
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local AnimateScript = ReplicatedStorage:WaitForChild("Animate")

local function applyOldAnimations(character)

    local oldAnimate = character:FindFirstChild("Animate")
    if oldAnimate then
        oldAnimate:Destroy()
    end

    local newAnimate = AnimateScript:Clone()
    newAnimate.Parent = character
end

Tool.Equipped:Connect(function()
    local player = game.Players:GetPlayerFromCharacter(Tool.Parent)
    if not player then return end

    local character = player.Character
    if not character then return end


    applyOldAnimations(character)
end)
chilly totem
#

what is in the new Animate script

frigid sun
#

took it from the toolbox unchanged

#

gtg for now

frigid sun
#

@chilly totem im back, any updates?