Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function nwPrt(prnt,siz,cf,col)
- local prt=Instance.new("Part")
- prt.Parent=prnt
- prt.FormFactor=3
- prt.Name="Part"
- prt.Size=siz
- prt.CanCollide=false
- prt.Anchored=true
- prt.Locked=true
- prt.TopSurface=0
- prt.BottomSurface=0
- prt:BreakJoints()
- prt.CFrame=cf
- prt.Material="SmoothPlastic"
- prt.BrickColor=BrickColor.new(col)
- m=Instance.new("SpecialMesh",prt)
- m.MeshType=6
- return prt
- end
- --
- function wave(cf)
- local p1=nwPrt(game.Workspace,Vector3.new(1,1,1),cf*CFrame.Angles(math.rad(90),0,0),"Bright red")
- local m1=p1.Mesh
- m1.MeshId="rbxassetid://3270017"
- local p2=nwPrt(game.Workspace,Vector3.new(1,1,1),cf*CFrame.Angles(math.rad(90),0,0),"Bright green")
- local m2=p2.Mesh
- m2.MeshId="rbxassetid://3270017"
- m2.Scale=Vector3.new(0.1,0.1,0.1)
- local p3=nwPrt(game.Workspace,Vector3.new(1,1,1),cf*CFrame.Angles(math.rad(90),0,0),"Bright blue")
- local m3=p3.Mesh
- m3.MeshId="rbxassetid://3270017"
- m3.Scale=Vector3.new(2,2,2)
- coroutine.wrap(function()
- for i=1,20 do
- m1.Scale=Vector3.new(m1.Scale.X+1,m1.Scale.Y+1,m1.Scale.Z+0.5)
- m2.Scale=Vector3.new(m2.Scale.X+1.25,m2.Scale.Y+1.25,m2.Scale.Z+0.5)
- m3.Scale=Vector3.new(m3.Scale.X+0.75,m3.Scale.Y+0.75,m3.Scale.Z+0.5)
- p1.Transparency=(i/20)
- p2.Transparency=(i/16)
- p3.Transparency=(i/24)
- wait()
- end
- p1:Destroy()
- p2:Destroy()
- p3:Destroy()
- end)()
- end
- local ms=game.Players.LocalPlayer:GetMouse()
- ms.Button1Down:connect(function()
- pcall(function()
- wave(CFrame.new(ms.Hit.X,ms.Hit.Y,ms.Hit.Z))
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement