Advertisement
SmokeDelsin

shcwave

Jul 22nd, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. function nwPrt(prnt,siz,cf,col)
  2. local prt=Instance.new("Part")
  3. prt.Parent=prnt
  4. prt.FormFactor=3
  5. prt.Name="Part"
  6. prt.Size=siz
  7. prt.CanCollide=false
  8. prt.Anchored=true
  9. prt.Locked=true
  10. prt.TopSurface=0
  11. prt.BottomSurface=0
  12. prt:BreakJoints()
  13. prt.CFrame=cf
  14. prt.Material="SmoothPlastic"
  15. prt.BrickColor=BrickColor.new(col)
  16. m=Instance.new("SpecialMesh",prt)
  17. m.MeshType=6
  18. return prt
  19. end
  20. --
  21. function wave(cf)
  22. local p1=nwPrt(game.Workspace,Vector3.new(1,1,1),cf*CFrame.Angles(math.rad(90),0,0),"Bright red")
  23. local m1=p1.Mesh
  24. m1.MeshId="rbxassetid://3270017"
  25. local p2=nwPrt(game.Workspace,Vector3.new(1,1,1),cf*CFrame.Angles(math.rad(90),0,0),"Bright green")
  26. local m2=p2.Mesh
  27. m2.MeshId="rbxassetid://3270017"
  28. m2.Scale=Vector3.new(0.1,0.1,0.1)
  29. local p3=nwPrt(game.Workspace,Vector3.new(1,1,1),cf*CFrame.Angles(math.rad(90),0,0),"Bright blue")
  30. local m3=p3.Mesh
  31. m3.MeshId="rbxassetid://3270017"
  32. m3.Scale=Vector3.new(2,2,2)
  33. coroutine.wrap(function()
  34. for i=1,20 do
  35. m1.Scale=Vector3.new(m1.Scale.X+1,m1.Scale.Y+1,m1.Scale.Z+0.5)
  36. m2.Scale=Vector3.new(m2.Scale.X+1.25,m2.Scale.Y+1.25,m2.Scale.Z+0.5)
  37. m3.Scale=Vector3.new(m3.Scale.X+0.75,m3.Scale.Y+0.75,m3.Scale.Z+0.5)
  38. p1.Transparency=(i/20)
  39. p2.Transparency=(i/16)
  40. p3.Transparency=(i/24)
  41. wait()
  42. end
  43. p1:Destroy()
  44. p2:Destroy()
  45. p3:Destroy()
  46. end)()
  47. end
  48. local ms=game.Players.LocalPlayer:GetMouse()
  49. ms.Button1Down:connect(function()
  50. pcall(function()
  51. wave(CFrame.new(ms.Hit.X,ms.Hit.Y,ms.Hit.Z))
  52. end)
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement