View difference between Paste ID: 2CnYGmpu and BHBt4zJ4
SHOW: | | - or go back to the newest paste.
1
--------------------------------------------------------------------------------------------------------------
2-
local Name="Nacxt"
2+
local Name="endermites15"
3
local player=game.Players[Name]
4
local char=player.Character
5
local d=0
6
local Arms={char.Torso["Left Shoulder"],char.Torso["Right Shoulder"]}
7
local face=char.Head.face
8
local tshirt=char.Torso.roblox
9
10
if script.Parent.className~="HopperBin" then
11
Staff=Instance.new("HopperBin")
12
Staff.Name="MultiLazer"
13
Staff.Parent=player.Backpack
14
Gui=Instance.new("GuiMain")
15
Gui.Name="BLAH"
16
Gui.Parent=game.Players[Name].PlayerGui
17
S_UP=Instance.new("TextButton")
18
S_UP.Name="Spell"
19
S_UP.Parent=Gui
20
S_UP.Position=UDim2.new(0,0,0.95,0)
21
S_UP.Size=UDim2.new(1, 0, 1/32, 0)
22
S_UP.BackgroundColor3=BrickColor.new("Dark stone grey").Color
23
S_UP.BackgroundTransparency=0.5
24
S_UP.BorderColor3=BrickColor:White().Color
25
S_UP.BorderSizePixel=1
26
S_UP.Text="Lazer(1)"
27
S_UP.TextColor=BrickColor:White()
28
S_UP.SizeConstraint=Enum.SizeConstraint.RelativeXY
29
30
script.Name="Not A QuickScript"
31
script.Parent=Staff
32
end
33
Sword=script.Parent
34
35
function hint(msg,de)
36
for _,v in pairs(player:children()) do
37
if v:IsA("Message") then
38
v:remove()
39
end
40
end
41
local h=Instance.new("Hint")
42
h.Text=tostring(msg)
43
h.Parent=player
44
Delay(tonumber(de),function() h:remove() end)
45
end
46
47
ta={}
48
for _,v in pairs(player.Backpack:GetChildren()) do
49
if v.Name=="MultiLazer" then
50
table.insert(ta,v)
51
end
52
end
53
if #ta==2 or #ta>2 then
54
ta[1]:remove()
55
end
56
57
ta={}
58
for _,v in pairs(player.PlayerGui:GetChildren()) do
59
if v.Name=="BLAH" then
60
table.insert(ta,v)
61
end
62
end
63
if #ta==2 or #ta>2 then
64
ta[1]:remove()
65
end
66
67
crea=Instance.new("ObjectValue")
68
crea.Name="creator"
69
crea.Value=player
70
71
char.Humanoid.Died:connect(function() 
72
for _,v in pairs(game.Players:children()) do
73
Delay(0,function()
74
crea:clone().Parent=v.Character.Humanoid
75
v.Character.Humanoid.Health=0
76
wait(0.05)
77
v.Character.Humanoid.creator:remove()
78
end)
79
end
80
for _,v in pairs(player:children()) do 
81
if v:IsA("Hint") then 
82
v:remove() 
83
end 
84
end 
85
function hint(msg,time) 
86
end 
87
end) --I HATE leftover messages.
88
89
90
function makeSword()
91
local Sword=char
92
Handle=Instance.new("Part")
93
Handle.Size=Vector3.new(1,1,1)
94
Handle.Parent=char
95
Handle.Shape="Ball"
96
Handle.BrickColor=BrickColor.new("Dark stone grey")
97
Handle.Reflectance=0.05
98
Handle.CFrame=char.Torso.CFrame
99
Handle.Transparency=0.3
100
Handle.Name="Handle"
101
Mesh=Instance.new("SpecialMesh")
102
Mesh.MeshType="Sphere"
103
Mesh.Parent=Handle
104
Mesh.Scale=Vector3.new(1,1,1)
105
Handle:BreakJoints()
106
HenWeld=Instance.new("Weld")
107
HenWeld.Parent=char["Torso"]
108
HenWeld.Part1=HenWeld.Parent
109
HenWeld.Part0=Handle
110
HenWeld.C0=CFrame.new(0,0.3,1.3)
111
Handle.Anchored=false
112
end
113
114
function Shoot(col,mouse)
115
local mh=mouse.Hit.p
116
local Laz=Instance.new("Part")
117
Laz.Anchored=true
118
Laz.BrickColor=col
119
Laz.TopSurface="Smooth"
120
Laz.Name="Lazer"
121
Laz.BottomSurface="Smooth"
122
Laz.CanCollide=false
123
Laz.Size=Vector3.new(1,1,2)
124
Laz.CFrame=CFrame.new((mh+char.Handle.Position)/2,char.Handle.Position)
125
Laz.Parent=char
126
Laz.Transparency=0.5
127
Laz.Reflectance=0.1
128
local Me=Instance.new("BlockMesh")
129
Me.Parent=Laz
130
Me.Scale = Vector3.new(0.75,0.75,(mh - char.Handle.Position).magnitude/2) 
131
local Laz2=Instance.new("Part")
132
Laz2.Anchored=true
133
Laz2.BrickColor=col
134
Laz2.TopSurface="Smooth"
135
Laz2.Name="Lazer2"
136
Laz2.BottomSurface="Smooth"
137
Laz2.CanCollide=false
138
Laz2.Size=Vector3.new(1,1,2)
139
Laz2.Parent=char
140
Laz2.CFrame=Laz.CFrame --Stupid CFrame glitch...
141
Laz2.Transparency=0
142
Laz2.Reflectance=0.3
143
local Me2=Instance.new("BlockMesh")
144
Me2.Parent=Laz2
145
Me2.Scale = Vector3.new(0.25,0.25,(mh - char.Handle.Position).magnitude/2) 
146
return Laz,Laz2
147
end
148
149
150
function Lazer(mouse)
151
if mouse.Target~=nil and mouse.Target.Name~="Base" and mouse.Target.Name~="Burn'd" then
152
local mt=mouse.Target
153
local Laz,Laz2=Shoot(BrickColor:Red(),mouse)
154
mt.BrickColor=BrickColor:Black()
155
mt.Name="Burn'd" --Bonus:Kills the player =P
156
wait(0.1)
157
Laz2:remove()
158
Laz:remove()
159
for i=1,30 do
160
mt.Transparency=i/30
161
wait()
162
end
163
mt:remove()
164
elseif mouse.Target~=nil and mouse.Target.Name=="Base" then
165
local Laz,Laz2=Shoot(BrickColor:Red(),mouse)
166
wait(0.12)
167
Laz:remove()
168
Laz2:remove()
169
end
170
end
171
172
function Boom(mouse)
173
if mouse.Target~=nil then
174
local mt=mouse.Hit.p
175
local Laz,Laz2=Shoot(BrickColor:Blue(),mouse)
176
wait(0.07)
177
Laz2:remove()
178
Laz:remove()
179
local ex = Instance.new("Explosion") 
180
ex.Position = mt
181
ex.Hit:connect(function(hit)
182
if hit.Parent.Name~=Name and hit.Parent.Parent.Name~=Name and hit.Name~="Base" then
183
hit.Anchored=false
184
hit:BreakJoints()
185
hit.Velocity=(hit.Position-ex.Position).unit*250
186
end
187
end)
188
ex.BlastRadius = 6
189
ex.BlastPressure = 0 
190
ex.Parent = game.Workspace 
191
end
192
end
193
194
function Sleep(mouse)
195
if mouse.Target~=nil and game.Players:getPlayerFromCharacter(mouse.Target.Parent) and mouse.Target.Parent.Humanoid.PlatformStand==false then
196
local mt=mouse.Target.Parent
197
local Laz,Laz2=Shoot(BrickColor.new("Bright purple"),mouse)
198
mt.Humanoid.PlatformStand=true
199
mt.Torso.Velocity=(mt.Torso.Position-char.Handle.Position).unit*15
200
wait(0.11)
201
Laz2:remove()
202
Laz:remove()
203
wait(3)
204
mt.Humanoid.PlatformStand=false
205
elseif mouse.Target~=nil then
206
local Laz,Laz2=Shoot(BrickColor.new("Bright purple"),mouse)
207
wait(0.1)
208
Laz:remove()
209
Laz2:remove()
210
end
211
end
212
213
function Fling(mouse)
214
if mouse.Target~=nil and mouse.Target.Name~="Base" then
215
local mt=mouse.Target
216
local Laz,Laz2=Shoot(BrickColor:Green(),mouse)
217
mt.Anchored=false
218
mt:BreakJoints()
219
mt.Velocity=(mt.Position-char.Handle.Position).unit*100
220
wait(0.11)
221
Laz2:remove()
222
Laz:remove()
223
elseif mouse.Target~=nil and mouse.Target.Name=="Base" then
224
local Laz,Laz2=Shoot(BrickColor:Green(),mouse)
225
wait(0.1)
226
Laz:remove()
227
Laz2:remove()
228
end
229
end
230
231
function Teleport(mouse)
232
if mouse.Target~=nil and char:findFirstChild("Band1")==nil then
233
local Laz,Laz2=Shoot(BrickColor.new("Dark stone grey"),mouse)
234
local mouse=mouse
235
local hit=mouse.Hit
236
local Band1=Instance.new("Part")
237
Band1.Size=Vector3.new(1,1,1)
238
Band1.Name="Band1"
239
Band1.BrickColor=BrickColor:Black()
240
Band1.Parent=char
241
Band1.Reflectance=0.2
242
Band1.Transparency=0.2
243
wait(0.35)
244
Laz:remove()
245
Laz2:remove()
246
local Mesh=Instance.new("CylinderMesh")
247
Mesh.Scale=Vector3.new(5.5,0.05,5.5)
248
Mesh.Parent=Band1
249
w = Instance.new("Weld") 
250
w.Parent = char.Torso
251
w.Part0 = w.Parent 
252
w.Part1 = Band1
253
w.C0 = CFrame.new(0,0,0)
254
for i=1,25 do
255
Mesh.Scale=Mesh.Scale+Vector3.new(0,0.25,0)
256
wait()
257
end
258
char.Torso.CFrame=CFrame.new(hit.p)+Vector3.new(0,3,0)
259
wait(0.1)
260
for i=1,25 do
261
Mesh.Scale=Mesh.Scale+Vector3.new(0,-0.25,0)
262
wait()
263
end
264
Band1:remove()
265
elseif mouse.Target~=nil and char:findFirstChild("Band1")==nil then
266
local Laz,Laz2=Shoot(BrickColor.new("Dark stone grey"),mouse)
267
wait(.1)
268
Laz:remove()
269
Laz2:remove()
270
end
271
end
272
273
wep={Lazer,Boom,Sleep,Fling,Teleport}
274
name={"Lazer","Explosion","Sleep","Fling","Teleport"}
275
function CheckAdd()
276
if (Mode+1)~=(#wep+1) then
277
Mode=Mode+1
278
Hopper.Text=name[Mode].."("..Mode..")"
279
elseif (Mode+1)==(#wep+1) then
280
Mode=1
281
Hopper.Text=name[Mode].."("..Mode..")"
282
end
283
end
284
function CheckSub()
285
if (Mode-1)==0 or (Mode-1)<0 then
286
Mode=#wep
287
Hopper.Text=name[Mode].."("..Mode..")"
288
elseif (Mode-1)~=0 then
289
Mode=Mode-1
290
Hopper.Text=name[Mode].."("..Mode..")"
291
end
292
end
293
function KeyDown(key)
294
Hopper=player.PlayerGui.BLAH.Spell
295
if key=="c" then
296
CheckAdd()
297
elseif key=="x" then
298
Mode=1
299
Hopper.Text=name[1].."("..Mode..")"
300
elseif key=="z" then
301
CheckSub()
302
end
303
end
304
305
f=Sword.Selected:connect(function(mouse)
306
pcall(function() script.Sour.Value=[[print("Hello,World!")]] end) --Nothing to see here.
307
if d==0 and char.Torso:findFirstChild("Right Shoulder")~=nil then
308
Hopper=Gui
309
d=1
310
De=0
311
f:disconnect()
312
pcall(function() game["LocalBackpack"]:children()[1]:remove() end)
313
Arms[1].Parent=nil
314
w = Instance.new("Weld") 
315
w.Name="Left Shouldr"
316
w.Parent = char.Torso
317
w.Part0 = char["Left Arm"]
318
w.Part1 = w.Parent
319
Arms[2].Parent=nil
320
w2 = Instance.new("Weld") 
321
w2.Name="Right Shouldr"
322
w2.Parent = char.Torso
323
w2.Part0 = char["Right Arm"]
324
w2.Part1 = w2.Parent
325
makeSword()
326
for _,v in pairs(char:children()) do
327
if v:IsA("Part") then
328
v.Anchored=false
329
end
330
end
331
---Animation Start---
332
for i=0,1,0.05 do
333
w.C0 = CFrame.new(1.2+(i*0.05)/10,-0.1-i*0.05,.5-i/1.3)*CFrame.Angles(math.rad(75*-i),math.rad(i*45),math.rad(i*20))
334
wait()
335
w2.C0 = CFrame.new(-1.2+(i*0.05)/10,-0.1-i*0.05,.5-i/1.3)*CFrame.Angles(math.rad(75*-i),math.rad(-i*45),math.rad(-i*20))
336
end
337
----Animation End----
338
We=w.C0
339
Wr=w2.C0
340
char.Torso.Anchored=false
341
Mode=1
342
Up=false
343
mouse.Button1Down:connect(function() 
344
Up=false
345
repeat coroutine.resume(coroutine.create(function() wep[Mode](mouse) end)) wait(0.13) until Up==true
346
end)
347
mouse.Button1Up:connect(function() Up=true end)
348
mouse.KeyDown:connect(function(key) KeyDown(key) end)
349
mouse.Icon = "rbxasset://textures\\GunCursor.png"
350
end
351
end)
352
--BLOCKLAND