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?
Supposed to look like this:
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?
Supposed to look like this:
Take good one and replace old one in Replicated storage
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
What does the script clone? The cylinder or the beam ?
It clones the cylinder as the beam is parented to the cylinder.
Can you please provide screenshots from the explorer tab with the cylinder and its children and with the script?
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)
This might cause problems for the attachment but im not sure