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