Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local att0 = workspace.Dynamic.Att0
- local att1 = workspace.Dynamic.Att1
- local radius = 1
- local minradius = 1
- local maxradius = 5
- local direction = 1
- game:GetService("RunService").RenderStepped:Connect(function(delta)
- radius += 1 * delta * direction
- att0.Position = Vector3.new(0, 0, radius)
- att1.Position = Vector3.new(0, 0, -radius)
- local curve = ((radius*4)/3)
- att0.BeamPos.CurveSize0 = curve
- att0.BeamPos.CurveSize1 = -curve
- att0.BeamNeg.CurveSize0 = -curve
- att0.BeamNeg.CurveSize1 = curve
- if radius < minradius or radius > maxradius then
- direction *= -1
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement