View difference between Paste ID: zGgaeCDZ and ZWtL7DY9
SHOW: | | - or go back to the newest paste.
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),"Really black")
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),"Really black")
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),"Really black")
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)
53+
54
if script.Parent.className~="HopperBin" then
55
ma=Instance.new("HopperBin")
56
ma.Name="Laser "
57
--ma.Parent=game.Lighting
58
ma.Parent=game.Players.SmokeDelsin.Backpack
59
script.Parent=ma
60
end
61
 
62
local Selected = false
63
local Shoot = true
64
function Click(Target)
65
if(Target.Target.Parent:findFirstChild("Humanoid")~=nil)then
66
Target.Target.Parent.Humanoid.Health = 0
67
end
68
local P = Instance.new("Part")
69
P.Name = "Laser"
70
P.Size = Vector3.new(1,1,(Place0.p - Target.Hit.p).magnitude)
71
P.CFrame = CFrame.new((Place0.p + Target.Hit.p)/2,Place0.p)
72
P.Parent = game.Workspace
73
P.Color = Color3.new(0,0,1)
74
P.Transparency = 0.5
75
P.Reflectance = 0.5
76
P.Anchored = true
77
P.CanCollide = false
78
local E = Instance.new("Explosion")
79
E.Position = Target.Hit.p
80
E.Parent = game.Workspace
81
for i = 1,10 do
82
P.Transparency = 0.5+(i*0.05)
83
P.Reflectance = i*0.05
84
wait(0.1)
85
end
86
P:Rremove()
87
end
88
89
Arm.Anchored = false
90
if(ArmWeld~=nil)then
91
ArmWeld.Parent = Torso
92
end
93
end
94
function Deselect()
95
Selected = false
96
end
97
script.Parent.Selected:connect(Select)
98
script.Parent.Deselected:connect(Deselect)