Beams.. I dont want them to loop!

BACKGROUND

This extremely well done game uses beams (I suppose) for some hit effects.
My question is, how do they make the beams only go once?

I have also seen beams being used for explosion effects, so that too because they go only once in the examples I’ve seen.

MAIN QUESTION

As you’ve seen above, my question is that how did they make the Beam class only loop once?

I’ve attached a GIF in order to help explain my question.problem
(apologies for weird gif res)

As you can see in the gif above, the beam constantly shoots textures, looping over and over again. I want to be able to use Beam's features (textures, curving), but how do I make a beam only work once?

OTHER INFO

I’m having this in scripting support because I want to programmatically create this, I’m already experienced with the scripting side, I want to know HOW to do this in general though, what settings, etc.

3 Likes

Just destroy it with game:GetService(‘Debris’):AddItem()

Thanks for the reply, but I dont mean this, this would make the Beam abruptly disappear, I want the beam to fly through the air once and not repeat. I dont want to use Debris either, this would ruin the smooth disappearing.

I’m not too sure but I think it might have to do something with the offset? Beam | Documentation - Roblox Creator Hub

2 Likes

If you mean by the “spark” like hit effect that occurs. I don’t believe they’re using beams though I may be wrong.

Basically, what they’re doing is creating multiple instances of stretched out sphere meshes, then they use math.random or something similar with a forloop to distribute around the charcater’s humanoidrootpart. Once they’ve done that, they move the parts forward depending on where they’re looking.

Essentially, you got a one time “shoot” out effect with a stretched out sphere for hit effects.

1 Like

WHY DON’T YOU WANT ME FOR THE BEAM? ;(

Just kidding, try destroying it with the function GetService, might work, I’m not telling specifically because I don’t know all the answers…Sorry

1 Like

Thank you, this will work indeed!

I get your reasoning, but this isnt it, the reason I know is because these are always 2dish, they have no literal physical form, but your help is appreciated

1 Like

Once again, thanks for the help, but I already discussed why this wouldn’t work above, (see second post)

1 Like