Advertisement
Rusty_Clock

Nova Beam [Roblox local script]

Jan 6th, 2018
1,280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. local player = game:GetService('Players').LocalPlayer
  2. local char = player.Character
  3. local mouse= player:GetMouse()
  4. local e = false
  5. mouse.Button1Down:connect(function()
  6. if e == false then
  7. e = true
  8. bem = Instance.new('Part', game.Workspace)
  9.  
  10. bem.Name = 'bem'
  11. bem.Anchored = true
  12. bem.CanCollide = false
  13. bem.Material = 'Neon'
  14. bem.BottomSurface = 'Smooth'
  15. bem.TopSurface = 'Smooth'
  16. bem.Size = Vector3.new(1,1,1)
  17.  
  18. bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5)
  19. bem.Touched:connect(function(otherPart)
  20. otherPart:Destroy()
  21. end)
  22.  
  23. for i =1,10 do
  24. bem.Size = bem.Size + Vector3.new(1,1,4)
  25. bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2)
  26. bem.Touched:connect(function(otherPart)
  27. otherPart:Destroy()
  28. end)
  29. wait()
  30. end
  31. for i = 1,100 do
  32. bem.Size = bem.Size + Vector3.new(0,0,4)
  33. bem.CFrame = char.Torso.CFrame * CFrame.new(0,0,-5 - bem.Size.Z/2)
  34. bem.Touched:connect(function(otherPart)
  35. otherPart:Destroy()
  36. end)
  37. --ScriptMadeBy M8Bat
  38. wait()
  39. end
  40.  
  41.  
  42. end
  43. bem.Touched:connect(function(otherPart)
  44. otherPart:Destroy()
  45. end)
  46. end)
  47.  
  48.  
  49. mouse.Button1Up:connect(function()
  50.  
  51. for i = 1,10 do
  52. bem.Size = bem.Size - Vector3.new(bem.Size.X/10,bem.Size.Y/10,0)
  53. bem.Transparency = bem.Transparency + 0.1
  54. bem.Touched:connect(function(otherPart)
  55. otherPart:Destroy()
  56. end)
  57. wait()
  58.  
  59. end
  60. bem:Destroy()
  61. e = false
  62.  
  63.  
  64. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement