Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Keyframe Reached is not working at the right time?

Asked by 5 years ago

I don't script with animations so im bad, the keyframe is at the end of my animation but for some reason the function activates at the beginning of my animation

local char = game.Players.LocalPlayer.Character
local fire = game.StarterPack.Animations.FireDefAnim
local firedef = hum:LoadAnimation(fire)
local fs = game.StarterPack.StuffForAnims.FireSpawner:Clone()
fs.Parent = workspace
fs.CFrame = char.LeftFoot.CFrame
firedef:Play()

            firedef.KeyframeReached:Connect(function(Stomp) 
            fs.Transparency = 0
            end)
-- no there isn't any additional keyframes named Stomp

Answer this question