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),"Really black")
- 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),"Really black")
- 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),"Really black")
- 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)
- if script.Parent.className~="HopperBin" then
- ma=Instance.new("HopperBin")
- ma.Name="Laser "
- --ma.Parent=game.Lighting
- ma.Parent=game.Players.SmokeDelsin.Backpack
- script.Parent=ma
- end
- local Selected = false
- local Shoot = true
- function Click(Target)
- if(Target.Target.Parent:findFirstChild("Humanoid")~=nil)then
- Target.Target.Parent.Humanoid.Health = 0
- end
- local P = Instance.new("Part")
- P.Name = "Laser"
- P.Size = Vector3.new(1,1,(Place0.p - Target.Hit.p).magnitude)
- P.CFrame = CFrame.new((Place0.p + Target.Hit.p)/2,Place0.p)
- P.Parent = game.Workspace
- P.Color = Color3.new(0,0,1)
- P.Transparency = 0.5
- P.Reflectance = 0.5
- P.Anchored = true
- P.CanCollide = false
- local E = Instance.new("Explosion")
- E.Position = Target.Hit.p
- E.Parent = game.Workspace
- for i = 1,10 do
- P.Transparency = 0.5+(i*0.05)
- P.Reflectance = i*0.05
- wait(0.1)
- end
- P:Rremove()
- end
- Arm.Anchored = false
- if(ArmWeld~=nil)then
- ArmWeld.Parent = Torso
- end
- end
- function Deselect()
- Selected = false
- end
- script.Parent.Selected:connect(Select)
- script.Parent.Deselected:connect(Deselect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement