Beam doesn't curve when cloned

Hello.
I made a beam that is supposed to curve into a circle around this cylinder part but when it’s cloned from ReplicatedStorage to workspace the beam just goes in a straight line. How can I fix this?

image

Supposed to look like this:
image

3 Likes

Take good one and replace old one in Replicated storage

1 Like

Oh, I actually meant that when in-game when it gets cloned from a script it’s supposed to look like the good one, but it ends up as the bad one instead. I’m very sure this isn’t because of the script though

1 Like

What does the script clone? The cylinder or the beam ?

2 Likes

It clones the cylinder as the beam is parented to the cylinder.

1 Like

Can you please provide screenshots from the explorer tab with the cylinder and its children and with the script?

1 Like

image

Remote.OnServerEvent:Connect(function(plr)
	local Char = plr.Character
	local HRP:BasePart = Char:WaitForChild("HumanoidRootPart")
	local Hum = Char:WaitForChild("Humanoid")
	local Animator = Hum:FindFirstChildOfClass("Animator")
	local Tool = Char:WaitForChild("Flag")
	local Handle = Tool.Handle
	local Trail:Trail = Tool.Flag:WaitForChild("Trail"):Clone()
	local Aura = Effects:WaitForChild("BuffRange"):Clone()
	Trail.Parent = Tool.Flag
	Trail.Enabled = true
	Debris:AddItem(Trail,0.4)
	
	if not Animator then
		local animator = Instance.new("Animator")
		animator.Parent = Hum
	end
	local PlayAnimation = Animator:LoadAnimation(Animation)
	PlayAnimation:Play()
	Sound:Play()
	
	Aura.Parent = workspace.Attacks
	Aura.CFrame = HRP.CFrame * CFrame.Angles(0,0,math.rad(90))
	
	local W = Instance.new("WeldConstraint")
	W.Parent = HRP
	W.Part0 = HRP
	W.Part1 = Aura
	W.Enabled = true
	Aura.Anchored = false
	
	Debris:AddItem(Aura,6)
	Debris:AddItem(W,6)
	
	task.wait(6)
	PlayAnimation:Stop()
	
end)
1 Like

Do you resize the BuffRange? As the second cylinder seems larger then the first

1 Like

This might cause problems for the attachment but im not sure

1 Like