Cloning beams makes them invisible

So i’m trying to clone these attachments onto the players arms:


This is to create a sort of fire fist effect.

			for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
					local clone = v:Clone()
					clone.Parent = char["Right Arm"].RightGripAttachment
			end
			
			for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
					local clone = v:Clone()
					clone.Parent = char["Left Arm"].LeftGripAttachment
			end

When I try this code on either the server or the client, the attachments clone, but the beams stop working.

Does anyone know why this is happening?

1 Like

Is this texture speed of the beam set to 0? If so it wouldn’t save the current position of the beam and would just not play anything.

As for your script, I see nothing wrong so please do reply back answering the question above.

No, the texture speed is set to -1

1 Like

The problem is probably that you need to re-identify the beams attachments after cloning them, If this isn’t the problem maybe try increasing your graphics or something.

an ex:

for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
					local clone = v:Clone()
                    clone.Attachment0 = char["Right Arm"].RightGripAttachment
					clone.Parent = char["Right Arm"].RightGripAttachment
			end
			
			for i, v in pairs(game.ReplicatedStorage.ChargeParts.Fire.FireHand:GetChildren()) do
					local clone = v:Clone()
                    clone.Attachment0 = char["Left Arm"].LeftGripAttachment
					clone.Parent = char["Left Arm"].LeftGripAttachment
			end

If your beam uses 2 attachments, simply make another line that does that.

2 Likes

This works, thanks. I just need to figure out how actually to write the script.

1 Like

I provided an example, did I not? If my example doesn’t work for what you want, please do tell me what I can help you with.

1 Like

Oh no its just that my attachments all have the same name, so re setting the attachments would require me to rename all of them. But i just figured out that instead of cloning all of them i can just parent them to one singular attachment and clone that, so I’m good now.

1 Like

No worries! Always happy to help, also sick fire effects, I hope you do well with your game!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.