local o=script.Parent.Beam local Z=script.Parent.End local h=script.Parent.Start local K=Z.CFrame local H=h.CFrame local V=0 local e=0 local I=0 math.randomseed(tick())local c=math.random()*3+2 local w=math.random()*3+2 local g=math.random()*3+2;(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Stepped:connect(function()V=V+.05 e=e+.1 I=I+.2 local o=math.noise(c,e/35,e/35)*3 local l=math.noise(w*3+2,I/42,I/42)*3 local b=math.noise(g*3+2,I/27,I/27)*3 Z.CFrame=(K*CFrame.new(o,0,0))*CFrame.Angles(0,(math.cos(V/2)*b)/3.5-1.5,0)h.CFrame=H*CFrame.Angles(0,(math.sin(V/3.5)/2+l/3.5)-1.5,0)end)


local beam = script.Parent.Beam
local p1 = script.Parent.End
local p2 = script.Parent.Start
local cf1 = p1.CFrame
local cf2 = p2.CFrame
local cos = 0
local noise = 0
local noise2 = 0

math.randomseed(tick())
local seed1 = math.random()*3+2
local seed2 = math.random()*3+2
local seed3 = math.random()*3+2

game:GetService("RunService").Stepped:connect(function()
	cos = cos + .05
	noise = noise + .1
	noise2 = noise2 + .2
	local noiser1 = math.noise(seed1,noise/35,noise/35)*3
	local noiser2 = math.noise(seed2*3+2,noise2/42,noise2/42)*3
	local noiser3 =math.noise(seed3*3+2,noise2/27,noise2/27)*3
	p1.CFrame = cf1*CFrame.new(noiser1,0,0)*CFrame.Angles(0,math.cos(cos/2)*noiser3/3.5-1.5,0)
	p2.CFrame = cf2*CFrame.Angles(0,math.sin(cos/3.5)/2+noiser2/3.5-1.5,0)
end)
