I’m looking to create an effect similar to that “Dark Whip” attack on Heroes Battlegrounds (GIF attached for reference). Notice how the beam curves as it shoots out? What documentation should I look at/does anyone have a module or pointers on how to accomplish this?
I’d have multiple attachments that are connected to each other via different beams. For example, the first beam would connect to the second, and so forth. After, I’d animate these attachments around and create the whip effect.
Ex:
As you can see, if you had a few more attachments, the sharp corners would be less visible. They might also be using the curve property too
Check the Beam documentation:
Classes, Beam
Beam
It looks like the Attachment on the hand is fixed and pointing the beam straight out at all times.
I’m pretty sure you need the math to CFrame the 2nd Attachment out in a circle. The 2nd Attachment seems to be rotating during this movement as well. If you look at the angle of the end of the Beam it seems to be facing the first Attachment at all times.
I’m not sure if CurveSize0 and CurveSize1 would need to be calculated or if they’d just stay a static value to make your curves stay the same no matter how long the Beam is.
I can’t help with the math, but someone else here can probably point you in the right direction.
You can script the slinging physics with the math for forward kinematics, though I think this might be harder to fine-tune.
Or, as @sonic_848 mentioned, you can use tools like Blender, Moon Animator, or Roblox Studio’s Animation Editor tool to manually create some sling animations for a collection of parts with attachments. Then, script the visibility of beams connected by the attachments in the parts as the ability is run. See below for another explanation: