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

ROBLOX How to add effects/particals to a animation at a select time?

Asked by 4 years ago

E.G if I where to kick I would like an effect to go on the leg that is kicking to show how much power is going into the kick.

3 answers

Log in to vote
0
Answered by 4 years ago

You could make a script that plays the animation, and waits for as much time as you want to show particles when you want.

0
Would you happen to know any scripts that can do this? if so great help! Kisobel 0 — 4y
0
you should try AnasBahauddin1978 715 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

Your only option would be to wait or split the AnimationTrack by it's length (AnimationTrack.Length). You'd still need to wait, though.

[ Length ] https://developer.roblox.com/en-us/api-reference/property/AnimationTrack/Length

[ AnimationTracks ] https://developer.roblox.com/en-us/api-reference/property/AnimationTrack/

You might be able to do something hacky by checking it's CFrame/joints but that wouldn't be really worth the effort. Just use a wait, and time it right (shouldn't be too hard).

0
Hey, I will try this out but I am not the best coder at timing. The only thing I can do is try and watch a few video's! So thanks for the help but I will also look out for someone else to possibly have a certain answer. Kisobel 0 — 4y
0
Contact me on Discord if you need help writing a script to do as I stated. GenScript#7675 GeneratedScript 740 — 4y
0
Contact me on Discord if you need help writing a script to do as I stated. GenScript#7675 GeneratedScript 740 — 4y
Log in to vote
0
Answered by 4 years ago

This type of thing is pretty simple, you could clone a particle emitter to the character's leg, then wait, and have it destroyed.

        local cloned = ParticleEmitter:Clone()
        local playanim = humanoid:LoadAnimation(kickanim)
        playanim:Play()
        cloned.Parent = char:FindFirstChild("RightLowerLeg")
        wait(0.4)
        cloned:Destroy()
0
Thanks but, is there a way to make it appear during a certain time? rather than it already being there? Kisobel 0 — 4y
0
You could change the wait to be above the line when it parents it? AtlasAnzu 2 — 4y

Answer this question