Why is it everytime I require this modulescript for my Light move skill, it multiplies the beam each time I do the skill?
When I first do the skill, it works fine and only shoots out 1 laser beam, but then when I do it twice, thrice and so on, it multiplies, heres an example:
local functions = {}
function functions.Start(plr, humrp)
local lightray = script.Light
local pos = humrp.CFrame
local lightclone = lightray:Clone()
lightclone.Parent = workspace.Effects
lightclone.CFrame = pos * CFrame.new(-1, 0, -3)
local BodyVel = Instance.new("BodyVelocity")
BodyVel.Parent = lightclone
BodyVel.Velocity = humrp.Parent["Left Leg"].CFrame.UpVector * -150
BodyVel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BodyVel.P = 1000000000
wait(3)
lightclone:Destroy()
end
return functions