View difference between Paste ID: udz4pmH9 and AxLrdEn4
SHOW: | | - or go back to the newest paste.
1-
me = game.Players.YOURNAMEHERE
1+
me = game.Players.d00vidif script.Parent.className ~= "HopperBin" then
2-
if script.Parent.className ~= "HopperBin" then
2+
3
h.Name = "LAZOR"
4
script.Parent = h
5
end
6
bin = script.Parent
7
function prop(part, parent, collide, tran, ref, x, y, z, color)
8
part.Parent = parent
9
part.formFactor = 0
10
part.CanCollide = collide
11
part.Transparency = tran
12
part.Reflectance = ref
13
part.Size = Vector3.new(x,y,z)
14
part.BrickColor = BrickColor.new(color)
15
part.TopSurface = 0
16
part.BottomSurface = 0
17
part:BreakJoints()
18
end
19
function weld(w, p, p0, p1, a, b, c, x, y, z)
20
w.Parent = p
21
w.Part0 = p0
22
w.Part1 = p1
23
w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
24
end
25
function mesh(mesh, parent, x, y, z, type)
26
mesh.Parent = parent
27
mesh.Scale = Vector3.new(x, y, z)
28
mesh.MeshType = type
29
end
30
using = false
31
sound = Instance.new("Sound",me.Character.Head)
32
sound.Volume = 0.6
33
sound.Pitch = 1
34
sound.SoundId = "rbxasset://sounds/uuhhh.wav"
35
bin.Selected:connect(function(mouse)
36
mouse.Button1Down:connect(function()
37
if using then return end
38
using = true
39
local blagh = Instance.new("Model",me.Character)
40
blagh.Name = "LAZOR"
41
local paw = mouse.Hit.p
42
local pa1 = Instance.new("Part")
43
prop(pa1,blagh,false,0,0,1,1,1,"Really black")
44
local m1 = Instance.new("SpecialMesh")
45
mesh(m1, pa1, 1.07,1,0.3,"Brick")
46
local w1 = Instance.new("Weld")
47
weld(w1, me.Character.Head, me.Character.Head, pa1, 0.4, 0, 0, 0, -0.4, 0.9)
48
local pa2 = pa1:clone()
49
prop(pa2,blagh,false,0,0,1,1,1,"Really black")
50
local w2 = Instance.new("Weld")
51
weld(w2, me.Character.Head, me.Character.Head, pa2, -0.4, 0, 0, 0, 0.4, 0.9)
52
local pa3 = Instance.new("Part")
53
prop(pa3,blagh,false,0,0,1,1,1,"Really red")
54
local m3 = Instance.new("SpecialMesh")
55
mesh(m3,pa3,1.3,1.23,0.29,"Brick")
56
local w3 = Instance.new("Weld")
57
weld(w3, me.Character.Head, me.Character.Head, pa3, 0.4, 0, 0, 0, -0.4, 0.9)
58
local pa4 = pa3:clone()
59
prop(pa4,blagh,false,0,0,1,1,1,"Really red")
60
local w4 = Instance.new("Weld")
61
weld(w4, me.Character.Head, me.Character.Head, pa4, -0.4, 0, 0, 0, 0.4, 0.9)
62
local eye1a = Instance.new("Part")
63
prop(eye1a,blagh,false,0,0,1,1,1,"Institutional white")
64
eye1a.Shape = "Ball"
65
local emesh1 = Instance.new("SpecialMesh")
66
mesh(emesh1,eye1a,0.75,0.75,0.75,"Sphere")
67
local ew = Instance.new("Weld")
68
weld(ew, me.Character.Head, me.Character.Head, eye1a, 0, 0, 0, 0.45, -1.3, 1.1)
69
local eye1b = Instance.new("Part")
70
prop(eye1b,blagh,false,0,0,1,1,1,"Really black")
71
eye1b.Shape = "Ball"
72
local emesh1b = Instance.new("SpecialMesh")
73
mesh(emesh1b,eye1b,0.4,0.4,0.4,"Sphere")
74
local ew2 = Instance.new("Weld")
75
weld(ew2, eye1a, eye1a, eye1b, 0, 0, 0, 0.09, -0.04, 0.2)
76
local eye2a = eye1a:clone()
77
prop(eye2a,blagh,false,0,0,1,1,1,"Institutional white")
78
local ew3 = Instance.new("Weld")
79
weld(ew3, me.Character.Head, me.Character.Head, eye2a, 0, 0, 0, -0.45, -1.3, 1.1)
80
local eye2b = eye1b:clone()
81
prop(eye2b,blagh,false,0,0,1,1,1,"Really black")
82
local ew5 = Instance.new("Weld")
83
weld(ew5, eye2a, eye2a, eye2b, 0, 0, 0, -0.05, 0.07, 0.2)
84
local bill = Instance.new("BillboardGui",pa1)
85
bill.Adornee = bill.Parent
86
bill.Size = UDim2.new(0,150,0,80)
87
local txt = Instance.new("TextLabel",bill)
88
txt.Size = UDim2.new(0,0,0,0)
89
txt.Position = UDim2.new(0,100,0,-20)
90
txt.Text = "IMA FIRIN' MAH LAZORR!!"
91
txt.FontSize = "Size24"
92
txt.TextColor3 = Color3.new(0,0,0)
93
sound.Volume = 0.6
94
for i=1, 5 do
95
sound.Pitch = math.random(400,900)/1000
96
sound:play()
97
wait(0.1)
98
end
99
local bg = Instance.new("BodyGyro",me.Character.Torso)
100
bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
101
bg.cframe = CFrame.new(me.Character.Torso.Position, paw)
102
for i=1, 5 do
103
sound.Pitch = math.random(400,900)/1000
104
sound:play()
105
wait(0.2)
106
end
107
txt.Text = "BLAARGHH!!!!!!"
108
sound.Volume = 0.85
109
for i=1, 60 do
110
local dist = (me.Character.Head.Position - paw).magnitude
111
if dist >= 600 then
112
dist = 600
113
end
114
bg.cframe = CFrame.new(me.Character.Torso.Position, paw)
115
sound.Pitch = math.random(550,750)/1000
116
sound:play()
117
local bewm = Instance.new("Part")
118
prop(bewm, blagh, false, 0.4, 0.25, 1, 1, dist, "Cyan")
119
bewm.Anchored = true
120
local mes = Instance.new("SpecialMesh")
121
mesh(mes,bewm,1.2,1.2,1,"Brick")
122
bewm.CFrame = CFrame.new(me.Character.Head.Position, paw) * CFrame.new(0,0,-bewm.Size.Z/2) * CFrame.new(0,0,-1)
123
local luck = math.random(1,3)
124
if luck == 1 then
125
local cfr = Instance.new("Part",blagh)
126
cfr.Size = Vector3.new(1,1,1)
127
cfr.Transparency = 1
128
cfr.Anchored = true
129
cfr.CFrame = bewm.CFrame * CFrame.new(0,0,-bewm.Size.Z/2)
130
local ex = Instance.new("Explosion")
131
ex.Parent = blagh
132
ex.Position = cfr.Position
133
ex.BlastRadius = 99999999999999999999
134
ex.BlastPressure = 4000000000
135
ex.Hit:connect(function(part)
136
if part:GetMass() < 240 then
137
part.Anchored = false
138
part:BreakJoints()
139
end
140
end)
141
end
142
wait()
143
bewm:remove()
144
end
145
blagh:remove()
146
bg:remove()
147
using = false
148
end)
149
end)