Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

2 comments

0

Would you happen to know any scripts that can do this? if so great help!

0

you should try

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).

3 comments

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.

0

Contact me on Discord if you need help writing a script to do as I stated. GenScript#7675

0

Contact me on Discord if you need help writing a script to do as I stated. GenScript#7675

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()

2 comments

0

Thanks but, is there a way to make it appear during a certain time? rather than it already being there?

0

You could change the wait to be above the line when it parents it?

This discussion is preserved as it was. New answers, comments, and votes are closed.