View difference between Paste ID: SJHZWBxQ and 1Lch3cdX
SHOW: | | - or go back to the newest paste.
1
Player = game:GetService("Players").LocalPlayer
2
Character = Player.Character
3
PlayerGui = Player.PlayerGui
4
Backpack = Player.Backpack
5
Torso = Character.Torso
6
Head = Character.Head
7
Humanoid = Character.Humanoid
8
LeftArm = Character["Left Arm"]
9
LeftLeg = Character["Left Leg"]
10
RightArm = Character["Right Arm"]
11
RightLeg = Character["Right Leg"]
12
LS = Torso["Left Shoulder"]
13
LH = Torso["Left Hip"]
14
RS = Torso["Right Shoulder"]
15
RH = Torso["Right Hip"]
16
Neck = Torso.Neck
17
it=Instance.new
18
vt=Vector3.new
19
cf=CFrame.new
20
euler=CFrame.fromEulerAnglesXYZ
21
angles=CFrame.Angles
22
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
23
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
24
attack = false
25
attacktype = 1
26
damage = 5
27
oridamage = 50
28
attackdebounce = false
29
ssdebounce=false
30
MMouse=nil
31
combo=0
32
--player
33
player = nil
34
--save shoulders
35
RSH, LSH = nil, nil
36
--welds
37
RW, LW = Instance.new("Weld"), Instance.new("Weld")
38
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
39
40
41
if Character:findFirstChild("Staff",true) ~= nil then
42
Character:findFirstChild("Staff",true).Parent = nil
43
end
44
45
46
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
47
local fp = it("Part")
48
fp.Material = "SmoothPlastic"
49
fp.formFactor = formfactor
50
fp.Parent = parent
51
fp.Reflectance = reflectance
52
fp.Transparency = transparency
53
fp.CanCollide = false
54
fp.Locked=true
55
fp.BrickColor = brickcolor
56
fp.Name = name
57
fp.Size = size
58
fp.Position = Torso.Position
59
fp.BottomSurface="SmoothNoOutlines"
60
fp.TopSurface="SmoothNoOutlines"
61
fp.LeftSurface="SmoothNoOutlines"
62
fp.RightSurface="SmoothNoOutlines"
63
fp:BreakJoints()
64
return fp
65
end
66
67
function mesh(Mesh,part,meshtype,meshid,offset,scale)
68
local mesh = it(Mesh)
69
mesh.Parent = part
70
if Mesh=="SpecialMesh" then
71
mesh.MeshType = meshtype
72
mesh.MeshId = meshid
73
end
74
mesh.Offset=offset
75
mesh.Scale=scale
76
return mesh
77
end
78
79
function weld(parent,part0,part1,c0)
80
local weld = it("Weld")
81
weld.Parent = parent
82
weld.Part0 = part0
83
weld.Part1 = part1
84
weld.C0 = c0
85
return weld
86
end
87
88
local modelzorz = Instance.new("Model")
89
modelzorz.Parent = Character
90
modelzorz.Name = "Staff"
91
92-
local prt1=part(3,modelzorz,0,0,Torso.BrickColor,"Part1",vt(1,1,1))
92+
93-
local prt2=part(3,modelzorz,0,0,BrickColor.new("Bright green"),"Part2",vt(0.5,5,0.5))
93+
94-
local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(0.55,0.5,0.55))
94+
95-
local prt7=part(3,modelzorz,0,0.3,BrickColor.new("White"),"Part7",vt(1,1,1))
95+
96-
local prt8b=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
96+
97-
local prt8=part(3,modelzorz,0,0.5,BrickColor.new("Bright red"),"Skill Crystal 1",vt(1,1,1))
97+
98-
local prt9b=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
98+
99-
local prt9=part(3,modelzorz,0,0.5,BrickColor.new("Bright blue"),"Skill Crystal 2",vt(1,1,1))
99+
100-
local prt10b=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
100+
101-
local prt10=part(3,modelzorz,0,0.5,BrickColor.new("Bright green"),"Skill Crystal 3",vt(1,1,1))
101+
102-
local prt11b=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
102+
103-
local prt11=part(3,modelzorz,0,0.5,BrickColor.new("Really black"),"Skill Crystal 4",vt(1,1,1))
103+
104-
local prt14b=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Skill Crystal Reference",vt(0.2,0.2,0.2))
104+
105-
local prt14=part(3,modelzorz,0,0.5,BrickColor.new("Dark green"),"Skill Crystal 5",vt(1,1,1))
105+
106-
local prt12=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Part12",vt(0.6,0.5,0.6))
106+
107-
local prt13=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,7,1))
107+
108
local wld8b=weld(prt8b,prt8b,prt7,euler(0,0,0)*cf(1,0,0))
109
local wld8=weld(prt8,prt8,prt8b,euler(0,0,0)*cf(0,0,0))
110
local wld9b=weld(prt9b,prt9b,prt7,euler(0,0,0)*cf(0,0,1))
111
local wld9=weld(prt9,prt9,prt9b,euler(0,0,0)*cf(0,0,0))
112
local wld14b=weld(prt14b,prt14b,prt7,euler(0,0,0)*cf(0,0,0.5))
113
local wld14=weld(prt14,prt14,prt14b,euler(0,0,0)*cf(0,0,0))
114
local wld10b=weld(prt10b,prt10b,prt7,euler(0,0,0)*cf(-1,0,0))
115
local wld10=weld(prt10,prt10,prt10b,euler(0,0,0)*cf(0,0,0))
116
local wld11b=weld(prt11b,prt11b,prt7,euler(0,0,0)*cf(0,0,-1))
117
local wld11=weld(prt11,prt11,prt11b,euler(0,0,0)*cf(0,0,0))
118
local wld12=weld(prt12,prt12,prt2,euler(0,0,0)*cf(0,2.4,0))
119
local wld13=weld(prt13,prt13,prt1,euler(0,0,0)*cf(0,-0.5,0))
120
coroutine.resume(coroutine.create(function()
121
while true do
122
wait()
123
wld8b.C0=wld8b.C0*euler(0,0.05,0)
124
wld9b.C0=wld9b.C0*euler(0,0.05,0)
125
wld10b.C0=wld10b.C0*euler(0,0.05,0)
126
wld11b.C0=wld11b.C0*euler(0,0.05,0)
127
wld14b.C0=wld14b.C0*euler(0,-0.05,0)
128
end
129
end))
130
131
for i=1,4 do
132
if i==1 then
133
numb=1
134
numb2=-1.5
135
numb3=0
136
numb4=0
137
elseif i==2 then
138
numb=-1
139
numb2=1.5
140
elseif i==3 then
141
numb=0
142
numb2=0
143
numb3=1
144
numb4=-1.5
145
elseif i==4 then
146
numb3=-1
147
numb4=1.5
148
end
149
local prt4=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part4",vt(0.2,0.8,0.2))
150
local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(0.2,0.2,0.2))
151
local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(0.2,0.8,0.2))
152
local msh4=mesh("CylinderMesh",prt4,"","",vt(0,0,0),vt(1,1,1))
153
local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(1,1,1))
154
local msh6=mesh("CylinderMesh",prt6,"","",vt(0,0,0),vt(1,1,1))
155
local wld4=weld(prt4,prt4,prt3,cf(0,-0.4,0)*euler(numb,0,numb3))
156
local wld5=weld(prt5,prt5,prt4,cf(0,-0.4,0))
157
local wld6=weld(prt6,prt6,prt5,cf(0,-0.4,0)*euler(numb2,0,numb4))
158
end
159
160
if (script.Parent.className ~= "HopperBin") then
161
Tool = Instance.new("HopperBin")
162
Tool.Parent = Backpack
163
Tool.Name = "Staff"
164
script.Parent = Tool
165
end
166
Bin = script.Parent
167
168
local bg = it("BodyGyro")
169
bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
170
bg.P = 20e+003
171
bg.Parent = nil
172
173
so = function(id,par,vol,pit)
174
coroutine.resume(coroutine.create(function()
175
local sou = Instance.new("Sound",par or workspace)
176
sou.Volume=vol
177
sou.Pitch=pit or 1
178
sou.SoundId=id
179
wait()
180
sou:play()
181
wait(6)
182
sou:Remove()
183
end))
184
end
185
186
function unequipweld()
187
wld1.Part1=Torso
188
wld1.C0=euler(0,0,0.5)*cf(0,0,-0.6)
189
wld1.C1=euler(0,0,0)
190
end
191
192
function equipweld()
193
wld1.Part1=RightArm
194
wld1.C0=euler(1,0,0)*cf(0,1,0)
195
end
196
197
function hideanim()
198
equipped=false
199
wait(0.1)
200
bg.Parent=nil
201
unequipweld()
202
end
203
204
function equipanim()
205
equipped=true
206
wait(0.1)
207
equipweld()
208
RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
209
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
210
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
211
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
212
end
213
214
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
215
return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
216
end
217
218
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
219
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
220
prt.Anchored=true
221
prt.CFrame=cframe
222
glow = Instance.new("PointLight")
223
glow.Parent = prt
224
glow.Color = prt.Color
225
glow.Range = 12
226
glow.Brightness = 16
227
local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
228
coroutine.resume(coroutine.create(function()
229
for i=0,1,0.1 do
230
wait()
231
prt.CFrame=prt.CFrame
232
prt.Transparency=i
233
msh.Scale=msh.Scale+vt(x3,y3,z3)
234
end
235
prt.Parent=nil
236
end))
237
end
238
239
240
function MagicBlock2(brickcolor,cframe,x1,y1,z1,x3,y3,z3)
241
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
242
prt.Anchored=true
243
prt.CFrame=cframe
244
glow = Instance.new("PointLight")
245
glow.Parent = prt
246
glow.Color = prt.Color
247
glow.Range = 20
248
glow.Brightness = 20
249
local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
250
coroutine.resume(coroutine.create(function()
251
for i=0,1,0.1 do
252
wait()
253
prt.CFrame=prt.CFrame
254
prt.Transparency=i
255
msh.Scale=msh.Scale+vt(x3,y3,z3)
256
end
257
prt.Parent=nil
258
end))
259
end
260
261
function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
262
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
263
prt.Anchored=true
264
prt.CFrame=cframe*cf(x2,y2,z2)
265
glow = Instance.new("PointLight")
266
glow.Parent = prt
267
glow.Color = prt.Color
268
glow.Range = 10
269
glow.Brightness = 16
270
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
271
coroutine.resume(coroutine.create(function()
272
for i=0,1,0.1 do
273
wait()
274
prt.CFrame=prt.CFrame
275
prt.Transparency=i
276
msh.Scale=msh.Scale+vt(x3,y3,z3)
277
end
278
prt.Parent=nil
279
end))
280
end
281
282
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
283
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
284
prt.Anchored=true
285
prt.CFrame=cframe*cf(x2,y2,z2)
286
glow = Instance.new("PointLight")
287
glow.Parent = prt
288
glow.Color = prt.Color
289
glow.Range = 100
290
glow.Brightness = 100
291
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
292
coroutine.resume(coroutine.create(function()
293
for i=0,1,0.1 do
294
wait()
295
prt.CFrame=prt.CFrame
296
prt.Transparency=i
297
glow.Range=glow.Range+1
298
msh.Scale=msh.Scale+vt(x3,y3,z3)
299
end
300
prt.Parent=nil
301
end))
302
end
303
304
function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
305
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
306
prt.Anchored=true
307
prt.CFrame=cframe*cf(x2,y2,z2)
308
glow = Instance.new("PointLight")
309
glow.Parent = prt
310
glow.Color = prt.Color
311
glow.Range = 10
312
glow.Brightness = 16
313
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
314
coroutine.resume(coroutine.create(function()
315
for i=0,1,0.03 do
316
wait()
317
prt.CFrame=prt.CFrame
318
glow.Range = glow.Range + 1
319
prt.Transparency=i
320
msh.Scale=msh.Scale+vt(x3,y3,z3)
321
end
322
prt.Parent=nil
323
end))
324
end
325
326
function SpecialEffect()
327
local prt=part(3,workspace,1,0,BrickColor.new("White"),"Part",vt(1,1,1))
328
prt.Anchored=true
329
prt.CFrame=Torso.CFrame
330
glow = Instance.new("PointLight")
331
glow.Parent = prt
332
glow.Color = prt.Color
333
glow.Range = 10
334
glow.Brightness = 16
335
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
336
coroutine.resume(coroutine.create(function(Part,Mesh)
337
for i=0,1,0.2 do
338
wait(0)
339
Part.Transparency=i
340
Mesh.Scale=Mesh.Scale+vt(10,10,10)
341
end
342
prt.Parent=nil
343
end),prt,msh)
344
end
345
346
Damagefunc1=function(hit,Damage,Knockback)
347
       if hit.Parent==nil then
348
               return
349
       end
350
       CPlayer=Bin
351
       h=hit.Parent:FindFirstChild("Humanoid")
352
       if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
353
       if attackdebounce == false then
354
       attackdebounce = true
355
       coroutine.resume(coroutine.create(function()
356
       wait(0.2)
357
       attackdebounce = false
358
       end))
359
       Damage=Damage
360
--[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
361
                       return
362
               end]]
363
--                        hs(hit,1.2)
364
                       c=Instance.new("ObjectValue")
365
                       c.Name="creator"
366
                       c.Value=game.Players.LocalPlayer
367
                       c.Parent=h
368
                       game:GetService("Debris"):AddItem(c,.5)
369
               Damage=Damage+math.random(0,10)
370
--                h:TakeDamage(Damage)
371
               blocked=false
372
               block=hit.Parent:findFirstChild("Block")
373
               if block~=nil then
374
               print("herp")
375
               if block.Value>0 then
376
               blocked=true
377
               block.Value=block.Value-1
378
               print(block.Value)
379
               end
380
               end
381
               if blocked==false then
382
--                h:TakeDamage(Damage)
383
               h.Health=h.Health-Damage
384
               showDamage(hit.Parent,Damage,.5)
385
               else
386
               h:TakeDamage(1)
387
               showDamage(hit.Parent,1,.5)
388
               end
389
               so("http://roblox.com/asset/?id=10209583",hit,1,1)
390
               vp=Instance.new("BodyVelocity")
391
               vp.P=500
392
               vp.maxForce=Vector3.new(math.huge,0,math.huge)
393
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
394
               vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
395
               if Knockback>0 then
396
                       vp.Parent=hit.Parent.Torso
397
               end
398
               game:GetService("Debris"):AddItem(vp,.25)
399
               game:GetService("Debris"):AddItem(r,.5)
400
                               c=Instance.new("ObjectValue")
401
                       c.Name="creator"
402
                       c.Value=Player
403
                       c.Parent=h
404
                       game:GetService("Debris"):AddItem(c,.5)
405
               CRIT=false
406
               hitDeb=true
407
               AttackPos=6
408
       end
409
       end
410
end
411
412
Damagefunc2=function(hit,Damage,Base)
413
       if attackdebounce == false then
414
       attackdebounce = true
415
       coroutine.resume(coroutine.create(function()
416
       wait(0.1)
417
       attackdebounce = false
418
       end))
419
       if hit.Parent==nil then
420
               return
421
       end
422
       CPlayer=Bin
423
       blocked=false
424
       h=hit.Parent:FindFirstChild("Humanoid")
425
       if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
426
               Damage=Damage
427
                       c=it("ObjectValue")
428
                       c.Name="creator"
429
                       c.Value=game.Players.LocalPlayer
430
                       c.Parent=h
431
                       game:GetService("Debris"):AddItem(c,.5)
432
--                        print(c.Value)
433
--[[                if math.random(0,99)+math.random()<=7.8 then
434
                       CRIT=true
435
                       Damage=Damage*2
436
                       s=it("Sound")
437
                       s.SoundId="http://www.roblox.com/asset/?id=2801263"
438
                       s.Volume=1
439
                       s.Pitch=2
440
                       s.Parent=hit
441
                       s.PlayOnRemove=true
442
                       s.Parent=nil
443
       
444
               end]]
445
               Damage=Damage+math.random(0,10)
446
--                Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
447
               blocked=false
448
               block=hit.Parent:findFirstChild("Block")
449
               if block~=nil then
450
               print("herp")
451
               if block.Value>0 then
452
               blocked=true
453
               block.Value=block.Value-3
454
               print(block.Value)
455
               end
456
               end
457
               if blocked==false then
458
--                h:TakeDamage(Damage)
459
               h.Health=h.Health-Damage
460
               showDamage(hit.Parent,Damage,.5)
461
               else
462
               h:TakeDamage(1)
463
               showDamage(hit.Parent,1,.5)
464
               end
465
--if blocked==false then
466
local angle = (hit.Position-(Base.Position+Vector3.new(0,0,0))).unit
467
print(angle)
468
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
469
               rl=Instance.new("BodyAngularVelocity")
470
               rl.P=3000
471
               rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
472
               rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
473
               rl.Parent=hit
474
coroutine.resume(coroutine.create(function(vel)
475
wait(1)
476
vel:Remove()
477
end),rl)
478
--end
479
local bodyVelocity=Instance.new("BodyVelocity")
480
bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
481
bodyVelocity.P=5000
482
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
483
bodyVelocity.Parent=hit
484
coroutine.resume(coroutine.create(function(Vel)
485
wait(0.7)
486
Vel:Remove()
487
end),bodyVelocity)
488
                               c=it("ObjectValue")
489
                       c.Name="creator"
490
                       c.Value=Player
491
                       c.Parent=h
492
                       game:GetService("Debris"):AddItem(c,.5)
493
               CRIT=false
494
               hitDeb=true
495
               AttackPos=6
496
       end
497
       end
498
end
499
freezeDamagefunc=function(hit,Damage,Knockback)
500
       if hit.Parent==nil then
501
               return
502
       end
503
       CPlayer=Bin
504
       h=hit.Parent:FindFirstChild("Humanoid")
505
       if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
506
       if attackdebounce == false then
507
       attackdebounce = true
508
       coroutine.resume(coroutine.create(function()
509
       wait(0.2)
510
       attackdebounce = false
511
       end))
512
       Damage=Damage
513
--[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
514
                       return
515
               end]]
516
--                        hs(hit,1.2)
517
                       c=Instance.new("ObjectValue")
518
                       c.Name="creator"
519
                       c.Value=game.Players.LocalPlayer
520
                       c.Parent=h
521
                       game:GetService("Debris"):AddItem(c,.5)
522
               Damage=Damage+math.random(0,10)
523
--                h:TakeDamage(Damage)
524
               blocked=false
525
               block=hit.Parent:findFirstChild("Block")
526
               if block~=nil then
527
               print("herp")
528
               if block.Value>0 then
529
               blocked=true
530
               block.Value=block.Value-1
531
               print(block.Value)
532
               end
533
               end
534
               if blocked==false then
535
--                h:TakeDamage(Damage)
536
               h.Health=h.Health-Damage
537
               showDamage(hit.Parent,Damage,.5)
538
               else
539
               h:TakeDamage(1)
540
               showDamage(hit.Parent,1,.5)
541
               end
542
               if math.random(1,1)==1 then
543
               BodPos=Instance.new("BodyPosition")
544
               BodPos.P=50000
545
               BodPos.D=1000
546
               BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
547
               BodPos.position=hit.Parent.Torso.Position
548
               BodPos.Parent=hit.Parent.Torso
549
               BodGy = it("BodyGyro")
550
               BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
551
               BodGy.P = 20e+003
552
               BodGy.Parent=hit.Parent.Torso
553
               BodGy.cframe = hit.Parent.Torso.CFrame
554
               showDamage(hit.Parent,"Freeze!",5)
555
               so("http://www.roblox.com/asset/?id=41763367",hit,1,2)
556
               for i=1,10 do
557
               local freezepart=part(3,hit.Parent,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
558
               freezepart.Anchored=true
559
               freezepart.CFrame=hit.Parent.Torso.CFrame*cf(math.random(-1,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
560
               coroutine.resume(coroutine.create(function(Part)
561
               wait(5)
562
               Part.Anchored=false
563
               Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
564
               wait(5)
565
               Part.Parent=nil
566
               end),freezepart)
567
               end
568
               coroutine.resume(coroutine.create(function(BodyPos,BodyGy,Hitted)
569
               wait(5)
570
               BodyPos.Parent=nil
571
               BodyGy.Parent=nil
572
               so("http://www.roblox.com/asset/?id=87015121",Hitted,1,2)
573
               end),BodPos,BodGy,hit)
574
               end
575
               vp=Instance.new("BodyVelocity")
576
               vp.P=500
577
               vp.maxForce=Vector3.new(math.huge,0,math.huge)
578
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
579
               vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
580
               if Knockback>0 then
581
                       vp.Parent=hit.Parent.Torso
582
               end
583
               game:GetService("Debris"):AddItem(vp,.25)
584
                               c=Instance.new("ObjectValue")
585
                       c.Name="creator"
586
                       c.Value=Player
587
                       c.Parent=h
588
                       game:GetService("Debris"):AddItem(c,.5)
589
               CRIT=false
590
               hitDeb=true
591
               AttackPos=6
592
       end
593
       end
594
end
595
596
pickleDamagefunc=function(hit,Damage,Knockback)
597
       if hit.Parent==nil then
598
               return
599
       end
600
       CPlayer=Bin
601
       h=hit.Parent:FindFirstChild("Humanoid")
602
       if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
603
       if attackdebounce == false then
604
       attackdebounce = true
605
       coroutine.resume(coroutine.create(function()
606
       wait(0.2)
607
       attackdebounce = false
608
       end))
609
       Damage=Damage
610
--[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
611
                       return
612
               end]]
613
--                        hs(hit,1.2)
614
                       c=Instance.new("ObjectValue")
615
                       c.Name="creator"
616
                       c.Value=game.Players.LocalPlayer
617
                       c.Parent=h
618
                       game:GetService("Debris"):AddItem(c,.5)
619
               Damage=Damage+math.random(0,15)
620
--                h:TakeDamage(Damage)
621
               blocked=false
622
               block=hit.Parent:findFirstChild("Block")
623
               if block~=nil then
624
               print("herp")
625
               if block.Value>0 then
626
               blocked=true
627
               block.Value=block.Value-1
628
               print(block.Value)
629
               end
630
               end
631
               if blocked==false then
632
--                h:TakeDamage(Damage)
633
               h.Health=h.Health-Damage
634
               showDamage(hit.Parent,Damage,.5)
635
               else
636
               h:TakeDamage(1)
637
               showDamage(hit.Parent,1,.5)
638
               end
639
               if math.random(1,1)==1 then
640
               BodPos=Instance.new("BodyPosition")
641
               BodPos.P=50000
642
               BodPos.D=1000
643
               BodPos.maxForce=Vector3.new(math.huge,math.huge,math.huge)
644
               BodPos.position=hit.Parent.Torso.Position
645
               BodPos.Parent=hit.Parent.Torso
646
               BodGy = it("BodyGyro")
647
               BodGy.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
648
               BodGy.P = 20e+003
649
               BodGy.Parent=hit.Parent.Torso
650
               BodGy.cframe = hit.Parent.Torso.CFrame
651
               showDamage(hit.Parent,"Pickled!",5)
652
               so("http://www.roblox.com/asset/?id=41763367",hit,1,2)
653
               for i=1,10 do
654
               local picklepart=part(3,hit.Parent,0.5,0.5,BrickColor.new("Dark green"),"Pickle Part",vt(math.random(2,3)+math.random(),math.random(2,3)+math.random(),math.random(2,3)+math.random()))
655
               picklepart.Anchored=true
656
               picklepart.CFrame=hit.Parent.Torso.CFrame*cf(math.random(-0.5,0)+math.random(),-2.5,math.random(-1,0)+math.random())*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
657
               local picklemsh=mesh("SpecialMesh",picklepart,"Sphere","",vt(0,0,0),vt(0.75,0.85,0.75))
658
               coroutine.resume(coroutine.create(function(Part)
659
               wait(5)
660
               Part.Anchored=false
661
               Part.Velocity=vt(math.random(-20,20),math.random(20,30),math.random(-20,20))
662
               wait(5)
663
               Part.Parent=nil
664
               end),picklepart)
665
               end
666
               coroutine.resume(coroutine.create(function(BodyPos,BodyGy,Hitted)
667
               wait(5)
668
               BodyPos.Parent=nil
669
               BodyGy.Parent=nil
670
               so("http://www.roblox.com/asset/?id=87015121",Hitted,1,2)
671
               end),BodPos,BodGy,hit)
672
               end
673
               vp=Instance.new("BodyVelocity")
674
               vp.P=500
675
               vp.maxForce=Vector3.new(math.huge,0,math.huge)
676
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
677
               vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
678
               if Knockback>0 then
679
                       vp.Parent=hit.Parent.Torso
680
               end
681
               game:GetService("Debris"):AddItem(vp,.25)
682
                               c=Instance.new("ObjectValue")
683
                       c.Name="creator"
684
                       c.Value=Player
685
                       c.Parent=h
686
                       game:GetService("Debris"):AddItem(c,.5)
687
               CRIT=false
688
               hitDeb=true
689
               AttackPos=6
690
       end
691
       end
692
end
693
694
showDamage=function(Char,Dealt,du)
695
       m=Instance.new("Model")
696
       m.Name=tostring(Dealt)
697
       h=Instance.new("Humanoid")
698
       h.Health=0
699
       h.MaxHealth=0
700
       h.Parent=m
701
       c=Instance.new("Part")
702
       c.Material = "SmoothPlastic"
703
       c.Transparency=0
704
       c.BrickColor=BrickColor:Red()
705
       if CRIT==true then
706
               c.BrickColor=BrickColor.new("Really red")
707
       end
708
       c.Name="Head"
709
       c.TopSurface=0
710
       c.BottomSurface=0
711
       c.formFactor="Plate"
712
       c.Size=Vector3.new(1,.4,1)
713
       ms=Instance.new("CylinderMesh")
714
       ms.Scale=Vector3.new(.8,.8,.8)
715
       if CRIT==true then
716
               ms.Scale=Vector3.new(1,1.25,1)
717
       end
718
       ms.Parent=c
719
       c.Reflectance=0
720
       Instance.new("BodyGyro").Parent=c
721
       c.Parent=m
722
       c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
723
       f=Instance.new("BodyPosition")
724
       f.P=2000
725
       f.D=100
726
       f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
727
       f.position=c.Position+Vector3.new(0,3,0)
728
       f.Parent=c
729
       game:GetService("Debris"):AddItem(m,.5+du)
730
       c.CanCollide=false
731
       m.Parent=workspace
732
       c.CanCollide=false
733
end
734
735
function CrystalEffect(crystal)
736
clone=crystal:Clone()
737
crystal.Transparency=1
738
clone.Parent=workspace
739
clone.Anchored=true
740
clone.CFrame=crystal.CFrame
741
Mesh=clone.Mesh
742
coroutine.resume(coroutine.create(function()
743
for i=0.5,1,0.05 do
744
wait()
745
clone.Transparency=i
746
Mesh.Scale=Mesh.Scale+vt(0.3,0.3,0.3)
747
end
748
clone.Parent=nil
749
end))
750
end
751
752
function ChangeBaseColor(Colorr)
753
clonee=prt7:Clone()
754
clonee.Parent=prt7.Parent
755
clonee.BrickColor=BrickColor.new(Colorr)
756
if clonee:findFirstChild("Mesh")~=nil then
757
clonee.Mesh.Scale=vt(1.4,1.4,1.4)
758
end
759
clonewld=weld(clonee,clonee,prt7,cf(0,0,0))
760
coroutine.resume(coroutine.create(function(Part)
761
for i=1,0.2,-0.05 do
762
wait()
763
Part.Transparency=i
764
end
765
while attack==true do
766
wait()
767
end
768
for i=0.2,1,0.05 do
769
wait()
770
Part.Transparency=i
771
end
772
Part.Parent=nil
773
end),clonee)
774
end
775
776
function Explode()
777
local basepart=part(3,workspace,0,1,BrickColor.new("Really black"),"BasePart",vt(1,1,1))
778
basepart.Anchored=true
779
basepart.CFrame=Torso.CFrame*cf(0,0,-20)
780
MagicCircle(BrickColor.new("Bright red"),basepart.CFrame,1,1,1,0,0,0,10,10,10)
781
MagicRing(BrickColor.new("Bright red"),basepart.CFrame*euler(1.57,0,0),1,1,1,0,0,0,3,3,3)
782
b=Instance.new("Explosion")
783
b.Parent=workspace
784
b.Position=basepart.Position
785
b.BlastRadius=10
786
b.BlastPressure=0
787
so("http://www.roblox.com/asset/?id=2101148",basepart,1,0.6)
788
local c = game.Workspace:GetChildren()
789
for i = 1, #c do
790
local hum = c[i]:findFirstChild("Humanoid")
791
if hum ~= nil and hum.Health ~= 0 then
792
local head = c[i]:findFirstChild("Head")
793
if head ~= nil then
794
local targ = head.Position - basepart.Position
795
local mag = targ.magnitude
796
if mag <= 20 and c[i].Name ~= Player.Name then
797
attackdebounce=false
798
Damagefunc2(head,10,basepart)
799
end
800
end
801
end
802
end
803
game:GetService("Debris"):AddItem(basepart,1)
804
end
805
806
function CreateIceSword(BaseCFrame)
807
local basepart=part(3,workspace,0,1,BrickColor.new("Really black"),"BasePart",vt(1,1,1))
808
so("http://www.roblox.com/asset/?id=32656754",basepart,0.5,1)
809
basepart.Anchored=true
810
game:GetService("Debris"):AddItem(basepart,0.2)
811
local icepart=part(3,workspace,0.5,0.5,BrickColor.new("Bright blue"),"IceSword",vt(2,6,2))
812
icepart.CanCollide=true
813
icepart.Anchored=true
814
local icemesh=mesh("SpecialMesh",icepart,"FileMesh","http://www.roblox.com/asset/?id=1778999",vt(0,0,0),vt(4,10,4))
815
glow = Instance.new("PointLight")
816
glow.Color = icepart.Color
817
glow.Parent = icepart
818
glow.Range = 7
819
glow.Brightness = 10
820
basepart.CFrame=BaseCFrame
821
icepart.CFrame=basepart.CFrame*cf(0,-10,0)
822
local c = game.Workspace:GetChildren()
823
for i = 1, #c do
824
local hum = c[i]:findFirstChild("Humanoid")
825
if hum ~= nil and hum.Health ~= 0 then
826
local head = c[i]:findFirstChild("Head")
827
if head ~= nil then
828
local targ = head.Position - basepart.Position
829
local mag = targ.magnitude
830
if mag <= 5 and c[i].Name ~= Player.Name then
831
attackdebounce=false
832
freezeDamagefunc(head,10,10)
833
end
834
end
835
end
836
end
837
coroutine.resume(coroutine.create(function(Part)
838
for i=0,1,0.1 do
839
wait()
840
Part.CFrame=Part.CFrame*cf(0,0.8,0)
841
end
842
wait(1)
843
Part.Parent=nil
844
end),icepart)
845
end
846
847
function CreatePickle(BaseCFrame)
848
local basepart=part(3,workspace,0,1,BrickColor.new("Really black"),"BasePart",vt(1,1,1))
849
so("http://www.roblox.com/asset/?id=32656754",basepart,0.2,0)
850
basepart.Anchored=true
851
game:GetService("Debris"):AddItem(basepart,0.2)
852
local pickle=part(3,workspace,0.3,0.3,BrickColor.new("Dark green"),"Pickle",vt(2,6,2))
853
pickle.CanCollide=true
854
pickle.Anchored=true
855
local picklemsh=mesh("SpecialMesh",pickle,"Sphere","",vt(0,0,0),vt(0.65,0.8,0.65))
856
glow = Instance.new("PointLight")
857
glow.Color = pickle.Color
858
glow.Parent = pickle
859
glow.Range = 7
860
glow.Brightness = 10
861
basepart.CFrame=BaseCFrame
862
pickle.CFrame=basepart.CFrame*cf(0,-10,0)
863
local c = game.Workspace:GetChildren()
864
for i = 1, #c do
865
local hum = c[i]:findFirstChild("Humanoid")
866
if hum ~= nil and hum.Health ~= 0 then
867
local head = c[i]:findFirstChild("Head")
868
if head ~= nil then
869
local targ = head.Position - basepart.Position
870
local mag = targ.magnitude
871
if mag <= 5 and c[i].Name ~= Player.Name then
872
attackdebounce=false
873
pickleDamagefunc(head,10,10)
874
end
875
end
876
end
877
end
878
coroutine.resume(coroutine.create(function(Part)
879
for i=0,1,0.1 do
880
wait()
881
Part.CFrame=Part.CFrame*cf(0,0.8,0)
882
end
883
wait(1)
884
Part.Parent=nil
885
end),pickle)
886
end
887
888
function Rock()
889
local rock=part(3,workspace,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(1,3)+math.random(),math.random(1,3)+math.random(),math.random(1,3)+math.random()))
890
rock.Material="Slate"
891
rock.Anchored=true
892
rock.CanCollide=true
893
glow = Instance.new("PointLight")
894
glow.Color = rock.Color
895
glow.Parent = rock
896
glow.Range = 6
897
glow.Brightness = 10
898
rock.CFrame=Torso.CFrame*cf(math.random(-20,20),math.random(-15,-10)-math.random(),math.random(-20,20))
899
coroutine.resume(coroutine.create(function(Part)
900
for i=1,20 do
901
wait()
902
Part.CFrame=Part.CFrame*cf(0,1,0)
903
end
904
while rockthrow==false do
905
wait()
906
end
907
Part.Anchored=false
908
Part.Velocity=(Torso.CFrame.lookVector*90)+vt(math.random(-10,10),math.random(-10,10),math.random(-10,10))
909
con1=Part.Touched:connect(function(hit)
910
if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent~=Character then
911
Part.Parent=nil
912
for i=1,math.random(2,5) do
913
minirock=part(3,workspace,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(0,1)+math.random(),math.random(0,1)+math.random(),math.random(0,1)+math.random()))
914
minirock.Material="Slate"
915
minirock.CanCollide=true
916
minirock.CFrame=Part.CFrame
917
minirock.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
918
game:GetService("Debris"):AddItem(minirock,5)
919
end
920
h=hit.Parent.Humanoid
921
Damage=math.random(10,20)
922
               blocked=false
923
               block=hit.Parent:findFirstChild("Block")
924
               if block~=nil then
925
               print("herp")
926
               if block.Value>0 then
927
               blocked=true
928
               block.Value=block.Value-1
929
               print(block.Value)
930
               end
931
               end
932
               if blocked==false then
933
--                h:TakeDamage(Damage)
934
               h.Health=h.Health-Damage
935
               showDamage(hit.Parent,Damage,.5)
936
               else
937
               h:TakeDamage(1)
938
               showDamage(hit.Parent,1,.5)
939
               end
940
vp=Instance.new("BodyVelocity")
941
vp.P=500
942
vp.maxForce=Vector3.new(math.huge,0,math.huge)
943
vp.velocity=Torso.CFrame.lookVector*20+Torso.Velocity/1.05
944
vp.Parent=hit.Parent.Torso
945
rl=Instance.new("BodyAngularVelocity")
946
rl.P=3000
947
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
948
rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
949
rl.Parent=hit
950
game:GetService("Debris"):AddItem(vp,.25)
951
game:GetService("Debris"):AddItem(rl,.25)
952
end
953
end)
954
game:GetService("Debris"):AddItem(Part,7)
955
--[[wait(5)
956
Part.Parent=nil]]
957
end),rock)
958
end
959
960
function RockShards()
961
local rockshard=part(3,workspace,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(1,3)+math.random(),math.random(1,3)+math.random(),math.random(1,3)+math.random()))
962
rockshard.Material="Slate"
963
rockshard.Anchored=true
964
rockshard.CanCollide=true
965
glow = Instance.new("PointLight")
966
glow.Color = rockshard.Color
967
glow.Parent = rockshard
968
glow.Range = 6
969
glow.Brightness = 10
970
rockshard.CFrame=Torso.CFrame*cf(math.random(-10,-5),math.random(-15,-10)-math.random(),-5)
971
coroutine.resume(coroutine.create(function(Part)
972
for i=1,20 do
973
wait()
974
Part.CFrame=Part.CFrame*cf(0,math.random(1,10)-math.random(),0)
975
end
976
while rockthrow==false do
977
wait()
978
end
979
Part.Anchored=false
980
Part.Velocity=(Torso.CFrame.lookVector*90)+vt(math.random(-10,10),math.random(-10,10),math.random(-10,10))
981
con1=Part.Touched:connect(function(hit)
982
if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent~=Character then
983
Part.Parent=nil
984
for i=1,math.random(2,5) do
985
minirock=part(3,hit.Parent,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(0,1)+math.random(),math.random(0,1)+math.random(),math.random(0,1)+math.random()))
986
minirock.Material="Slate"
987
minirock.CanCollide=true
988
minirock.CFrame=Part.CFrame
989
minirock.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
990
game:GetService("Debris"):AddItem(minirock,5)
991
end
992
h=hit.Parent.Humanoid
993
Damage=math.random(10,20)
994
               blocked=false
995
               block=hit.Parent:findFirstChild("Block")
996
               if block~=nil then
997
               print("herp")
998
               if block.Value>0 then
999
               blocked=true
1000
               block.Value=block.Value-1
1001
               print(block.Value)
1002
               end
1003
               end
1004
               if blocked==false then
1005
--                h:TakeDamage(Damage)
1006
               h.Health=h.Health-Damage
1007
               showDamage(hit.Parent,Damage,.5)
1008
               else
1009
               h:TakeDamage(1)
1010
               showDamage(hit.Parent,1,.5)
1011
               end
1012
vp=Instance.new("BodyVelocity")
1013
vp.P=500
1014
vp.maxForce=Vector3.new(math.huge,0,math.huge)
1015
vp.velocity=Torso.CFrame.lookVector*20+Torso.Velocity/1.05
1016
vp.Parent=hit.Parent.Torso
1017
rl=Instance.new("BodyAngularVelocity")
1018
rl.P=3000
1019
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1020
rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1021
rl.Parent=hit
1022
game:GetService("Debris"):AddItem(vp,.25)
1023
game:GetService("Debris"):AddItem(rl,.25)
1024
end
1025
end)
1026
game:GetService("Debris"):AddItem(Part,7)
1027
--[[wait(5)
1028
Part.Parent=nil]]
1029
end),rockshard)
1030
end
1031
1032
function RockSide1()
1033
local rock=part(3,workspace,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(1,3)+math.random(),math.random(1,3)+math.random(),math.random(1,3)+math.random()))
1034
rock.Material="Slate"
1035
rock.Anchored=true
1036
rock.CanCollide=true
1037
glow = Instance.new("PointLight")
1038
glow.Color = rock.Color
1039
glow.Parent = rock
1040
glow.Range = 6
1041
glow.Brightness = 10
1042
rock.CFrame=Torso.CFrame*cf(math.random(-20,20),math.random(-15,-10)-math.random(),math.random(-20,20))
1043
coroutine.resume(coroutine.create(function(Part)
1044
for i=1,20 do
1045
wait()
1046
Part.CFrame=Part.CFrame*cf(0,1,0)
1047
end
1048
while rockthrow==false do
1049
wait()
1050
end
1051
Part.Anchored=false
1052
Part.Velocity=(Torso.CFrame.lookVector*-90)+vt(math.random(-20,20),math.random(0,0),math.random(0,0))
1053
con1=Part.Touched:connect(function(hit)
1054
if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent~=Character then
1055
Part.Parent=nil
1056
for i=1,math.random(2,5) do
1057
minirock=part(3,workspace,0,0,BrickColor.new("Bright green"),"Rock",vt(math.random(0,1)+math.random(),math.random(0,1)+math.random(),math.random(0,1)+math.random()))
1058
minirock.Material="Slate"
1059
minirock.CanCollide=true
1060
minirock.CFrame=Part.CFrame
1061
minirock.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
1062
game:GetService("Debris"):AddItem(minirock,5)
1063
end
1064
h=hit.Parent.Humanoid
1065
Damage=math.random(10,20)
1066
               blocked=false
1067
               block=hit.Parent:findFirstChild("Block")
1068
               if block~=nil then
1069
               print("herp")
1070
               if block.Value>0 then
1071
               blocked=true
1072
               block.Value=block.Value-1
1073
               print(block.Value)
1074
               end
1075
               end
1076
               if blocked==false then
1077
--                h:TakeDamage(Damage)
1078
               h.Health=h.Health-Damage
1079
               showDamage(hit.Parent,Damage,.5)
1080
               else
1081
               h:TakeDamage(1)
1082
               showDamage(hit.Parent,1,.5)
1083
               end
1084
vp=Instance.new("BodyVelocity")
1085
vp.P=500
1086
vp.maxForce=Vector3.new(math.huge,0,math.huge)
1087
vp.velocity=Torso.CFrame.lookVector*20+Torso.Velocity/1.05
1088
vp.Parent=hit.Parent.Torso
1089
rl=Instance.new("BodyAngularVelocity")
1090
rl.P=3000
1091
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1092
rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1093
rl.Parent=hit
1094
game:GetService("Debris"):AddItem(vp,.25)
1095
game:GetService("Debris"):AddItem(rl,.25)
1096
end
1097
end)
1098
game:GetService("Debris"):AddItem(Part,7)
1099
--[[wait(5)
1100
Part.Parent=nil]]
1101
end),rock)
1102
end
1103
1104
function Mountain()
1105
local mnt=part(3,workspace,0,0,BrickColor.new("Brown"),"Mount",vt(math.random(30,35)+math.random(),math.random(30,35)+math.random(),math.random(30,35)+math.random()))
1106
mnt.Material="Slate"
1107
mnt.Anchored=true
1108
mnt.CanCollide=true
1109
mnt.CFrame=Torso.CFrame*cf(math.random(-20,-20),math.random(-20,-15)-math.random(),math.random(0,0))
1110
local mnt1=part(3,workspace,0,0,BrickColor.new("Brown"),"Mount1",vt(math.random(30,35)+math.random(),math.random(30,35)+math.random(),math.random(30,35)+math.random()))
1111
mnt1.Material="Slate"
1112
mnt1.Anchored=true
1113
mnt1.CanCollide=true
1114
mnt1.CFrame=Torso.CFrame*cf(math.random(20,20),math.random(-20,-15)-math.random(),math.random(0,0))
1115
local mnt2=part(3,workspace,0,0,BrickColor.new("Brown"),"Mount2",vt(math.random(30,35)+math.random(),math.random(30,35)+math.random(),math.random(30,35)+math.random()))
1116
mnt2.Material="Slate"
1117
mnt2.Anchored=true
1118
mnt2.CanCollide=true
1119
mnt2.CFrame=Torso.CFrame*cf(math.random(0,0),math.random(-20,-15)-math.random(),math.random(-20,-20))
1120
local mnt3=part(3,workspace,0,0,BrickColor.new("Brown"),"Mount3",vt(math.random(30,35)+math.random(),math.random(30,35)+math.random(),math.random(30,35)+math.random()))
1121
mnt3.Material="Slate"
1122
mnt3.Anchored=true
1123
mnt3.CanCollide=true
1124
mnt3.CFrame=Torso.CFrame*cf(math.random(0,0),math.random(-20,-15)-math.random(),math.random(20,20))
1125
local mnt4=part(3,workspace,0,0,BrickColor.new("Brown"),"Mount4",vt(math.random(30,35)+math.random(),math.random(70,75)+math.random(),math.random(30,35)+math.random()))
1126
mnt4.Material="Slate"
1127
mnt4.Anchored=true
1128
mnt4.CanCollide=true
1129
mnt4.CFrame=Torso.CFrame*cf(math.random(0,0),math.random(-60,-55)-math.random(),math.random(0,0))
1130
coroutine.resume(coroutine.create(function(Part)
1131
for i=1,17 do
1132
wait()
1133
mnt4.CFrame=mnt4.CFrame*cf(0,3,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
1134
mnt3.CFrame=mnt3.CFrame*cf(0,1,0)*CFrame.fromEulerAnglesXYZ(0.01,0,0)
1135
mnt2.CFrame=mnt2.CFrame*cf(0,1,0)*CFrame.fromEulerAnglesXYZ(-0.01,0,0)
1136
mnt1.CFrame=mnt1.CFrame*cf(0,1,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.01)
1137
Part.CFrame=Part.CFrame*cf(0,1,0)*CFrame.fromEulerAnglesXYZ(0,0,0.01)
1138
end
1139
while rockthrow==false do
1140
wait()
1141
end
1142
Part.Anchored=true
1143
Part.Velocity=(Torso.CFrame.lookVector*1)+vt(math.random(0,0),math.random(0,0),math.random(0,0))
1144
con1=Part.Touched:connect(function(hit)
1145
if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent~=Character then
1146
Part.Parent=nil
1147
end
1148
h=hit.Parent.Humanoid
1149
vp=Instance.new("BodyVelocity")
1150
vp.P=0
1151
vp.maxForce=Vector3.new(math.huge,0,math.huge)
1152
vp.velocity=Torso.CFrame.lookVector*1+Torso.Velocity/1
1153
vp.Parent=hit.Parent.Torso
1154
rl=Instance.new("BodyAngularVelocity")
1155
rl.P=0
1156
rl.maxTorque=Vector3.new(0,0,0)*1
1157
rl.angularvelocity=Vector3.new(math.random(0,0),math.random(0,0),math.random(0,0))
1158
rl.Parent=hit
1159
game:GetService("Debris"):AddItem(vp,.25)
1160
game:GetService("Debris"):AddItem(rl,.25)
1161
end)
1162
game:GetService("Debris"):AddItem(Part,5)
1163
game:GetService("Debris"):AddItem(mnt1,5)
1164
game:GetService("Debris"):AddItem(mnt2,5)
1165
game:GetService("Debris"):AddItem(mnt3,5)
1166
game:GetService("Debris"):AddItem(mnt4,5)
1167
for i=1,17 do
1168
wait()
1169
Part.CFrame=Part.CFrame*cf(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.01)
1170
mnt1.CFrame=mnt1.CFrame*cf(0,-1.3,0)*CFrame.fromEulerAnglesXYZ(0,0,0.01)
1171
mnt2.CFrame=mnt2.CFrame*cf(0,-1.3,0)*CFrame.fromEulerAnglesXYZ(0.01,0,0)
1172
mnt3.CFrame=mnt3.CFrame*cf(0,-1.3,0)*CFrame.fromEulerAnglesXYZ(-0.01,0,0)
1173
mnt4.CFrame=mnt4.CFrame*cf(0,-3.3,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
1174
end
1175
--[[wait(3)
1176
Part.Parent=nil]]
1177
end),mnt)
1178
end
1179
1180
function Shield()
1181
local mnt=part(3,workspace,0,0,BrickColor.new("Brown"),"Mount",vt(math.random(5,10)+math.random(),math.random(5,10)+math.random(),math.random(1,2)+math.random()))
1182
mnt.Material="Slate"
1183
mnt.Anchored=true
1184
mnt.CanCollide=true
1185
mnt.CFrame=Torso.CFrame*cf(0,math.random(-15,-10)-math.random(),math.random(4,5))
1186
coroutine.resume(coroutine.create(function(Part)
1187
for i=1,20 do
1188
wait()
1189
Part.CFrame=Part.CFrame*cf(0,1,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
1190
end
1191
while rockthrow==false do
1192
wait()
1193
end
1194
Part.Anchored=true
1195
Part.Velocity=(Torso.CFrame.lookVector*8)+vt(math.random(0,0),math.random(0,0),math.random(0,0))
1196
con1=Part.Touched:connect(function(hit)
1197
if hit.Parent:findFirstChild("Humanoid")~=nil and hit.Parent~=Character then
1198
Part.Parent=nil
1199
end
1200
h=hit.Parent.Humanoid
1201
vp=Instance.new("BodyVelocity")
1202
vp.P=0
1203
vp.maxForce=Vector3.new(math.huge,0,math.huge)
1204
vp.velocity=Torso.CFrame.lookVector*1+Torso.Velocity/1
1205
vp.Parent=hit.Parent.Torso
1206
rl=Instance.new("BodyAngularVelocity")
1207
rl.P=0
1208
rl.maxTorque=Vector3.new(0,0,0)*1
1209
rl.angularvelocity=Vector3.new(math.random(0,0),math.random(0,0),math.random(0,0))
1210
rl.Parent=hit
1211
game:GetService("Debris"):AddItem(vp,.25)
1212
game:GetService("Debris"):AddItem(rl,.25)
1213
end)
1214
game:GetService("Debris"):AddItem(Part,5)
1215
for i=1,17 do
1216
wait()
1217
--Part.CFrame=Part.CFrame*cf(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(0,0,-0.01)
1218
Part.Transparency=Part.Transparency-0.1
1219
end
1220
--[[wait(3)
1221
Part.Parent=nil]]
1222
end),Part)
1223
end
1224
1225
function Lightning(p0,p1,tym,ofs,col,th,tra)
1226
local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
1227
for i=1,tym do
1228
local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true  li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
1229
li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
1230
local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
1231
if tym == i then
1232
local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
1233
li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
1234
else
1235
li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
1236
end
1237
curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,0.25)
1238
end
1239
end
1240
1241
DarkRiftF=function(par,DemMags)
1242
while rifting==true do
1243
wait()
1244
PWN={}
1245
for _,v in pairs(workspace:children()) do
1246
if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
1247
if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
1248
if v~=Character and (v.Torso.Position-par.Position).magnitude<=DemMags then
1249
table.insert(PWN,v.Torso)
1250
end
1251
end
1252
end
1253
end
1254
for _,t in pairs(PWN) do
1255
Mag=(par.Position-t.Position).magnitude/2
1256
t.Parent.Humanoid:TakeDamage(1)
1257
rl=it("BodyAngularVelocity")
1258
rl.P=3000
1259
rl.maxTorque=vt(500000,500000,500000)*5000
1260
rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
1261
rl.Parent=t
1262
game:GetService("Debris"):AddItem(rl,.1)
1263
if Mag<=2 then
1264
t.Parent.Humanoid:TakeDamage(.5)
1265
else
1266
vl=it("BodyVelocity")
1267
vl.P=3000
1268
vl.maxForce=vt(50000000000,50000000000,50000000000)
1269
vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
1270
vl.Parent=t
1271
game:GetService("Debris"):AddItem(vl,.1)
1272
end
1273
end
1274
wait(.08)
1275
end
1276
end
1277
1278
function VoidSun(p0,p1,tym,ofs,col,th,tra)
1279
local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
1280
for i=1,tym do
1281
local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true  li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
1282
li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
1283
local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
1284
if tym == i then
1285
local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
1286
li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
1287
else
1288
li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
1289
end
1290
curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,0.25)
1291
end
1292
end
1293
1294
DarkRiftF=function(par,DemMags)
1295
while rifting==true do
1296
wait()
1297
PWN={}
1298
for _,v in pairs(workspace:children()) do
1299
if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
1300
if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
1301
if v~=Character and (v.Torso.Position-par.Position).magnitude<=DemMags then
1302
table.insert(PWN,v.Torso)
1303
end
1304
end
1305
end
1306
end
1307
for _,t in pairs(PWN) do
1308
Mag=(par.Position-t.Position).magnitude/2
1309
t.Parent.Humanoid:TakeDamage(1)
1310
rl=it("BodyAngularVelocity")
1311
rl.P=2000
1312
rl.maxTorque=vt(500000,500000,500000)*5000
1313
rl.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
1314
rl.Parent=t
1315
game:GetService("Debris"):AddItem(rl,.1)
1316
if Mag<=2 then
1317
t.Parent.Humanoid:TakeDamage(.5)
1318
else
1319
vl=it("BodyVelocity")
1320
vl.P=2000
1321
vl.maxForce=vt(50000000000,50000000000,50000000000)
1322
vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
1323
vl.Parent=t
1324
game:GetService("Debris"):AddItem(vl,.1)
1325
end
1326
end
1327
wait(.08)
1328
end
1329
end
1330
1331
function SunExplosion()
1332
local basepart=part(3,workspace,0,1,BrickColor.new("Really black"),"BasePart",vt(1,1,1))
1333
basepart.Anchored=true
1334
basepart.CFrame=Torso.CFrame*cf(0,50,0)
1335
MagicCircle2(BrickColor.new("White"),basepart.CFrame,1,1,1,0,0,0,30,30,30)
1336
MagicRing(BrickColor.new("White"),Torso.CFrame*euler(1.57,0,0),1,1,1,0,0,0,8,8,8)
1337
so("http://www.roblox.com/asset/?id=2101148",basepart,1,0.6)
1338
local c = game.Workspace:GetChildren()
1339
for i = 1, #c do
1340
local hum = c[i]:findFirstChild("Humanoid")
1341
if hum ~= nil and hum.Health ~= 0 then
1342
local head = c[i]:findFirstChild("Head")
1343
if head ~= nil then
1344
local targ = head.Position - basepart.Position
1345
local mag = targ.magnitude
1346
if mag <= 280 and c[i].Name ~= Player.Name then
1347
attackdebounce=false
1348
Damagefunc2(head,10,basepart)
1349
end
1350
end
1351
end
1352
end
1353
game:GetService("Debris"):AddItem(basepart,1)
1354
end
1355
1356
function thwack()
1357
attack=true
1358
for i=0,1,0.2 do
1359
wait()
1360
RW.C0=cf(1.5, 0.5, 0) * euler(1+2.5*i,0,0)
1361
end
1362
so("http://roblox.com/asset/?id=10209640",RightArm,1,1.1)
1363
con1=prt13.Touched:connect(function(hit) Damagefunc1(hit,5,20) end)
1364
for i=0,1,0.2 do
1365
wait()
1366
wld1.C0=euler(1+1*i,0,0)*cf(0,1,0)
1367
RW.C0=cf(1.5, 0.5, 0) * euler(3.5-3*i,0,0)
1368
LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,-0.2)
1369
end
1370
con1:disconnect()
1371
attack=false
1372
end
1373
1374
function Explosion()
1375
--SpecialEffect()
1376
attack=true
1377
CrystalEffect(prt8)
1378
ChangeBaseColor("Bright red")
1379
for i=0,1,0.1 do
1380
wait()
1381
wld1.C0=euler(1+0.57*i,0,0)*cf(0,1,0)
1382
RW.C0=cf(1.5, 0.5, 0) * euler(1+2.5*i,0,0)
1383
end
1384
so("http://roblox.com/asset/?id=10209640",RightArm,1,1.1)
1385
for i=0,1,0.2 do
1386
wait()
1387
RW.C0=cf(1.5, 0.5, 0) * euler(3.5-4*i,0,0)
1388
if i==0.8 then
1389
print("KABOOM")
1390
Explode()
1391
end
1392
end
1393
wait(0.5)
1394
for i=0,1,0.1 do
1395
wait()
1396
wld1.C0=euler(1.57-0.57*i,0,0)*cf(0,1,0)
1397
RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+1.5*i,0,0)
1398
end
1399
attack=false
1400
end
1401
1402
function Pickle()
1403
attack=true
1404
CrystalEffect(prt14)
1405
ChangeBaseColor("Dark green")
1406
for i=0,1,0.1 do
1407
wait()
1408
wld1.C0=euler(1+0.57*i,0,0)*cf(0,1,0)
1409
RW.C0=cf(1.5, 0.5, 0) * euler(1-1.5*i,0,0)
1410
end
1411
for i=0,1,0.2 do
1412
wait()
1413
wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
1414
RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+2*i,0,0)
1415
end
1416
numb=-5
1417
for i=1,5 do
1418
CreatePickle(Torso.CFrame*cf(0,0,numb))
1419
CreatePickle(Torso.CFrame*euler(0,0.3,0)*cf(0,0,numb))
1420
CreatePickle(Torso.CFrame*euler(0,0.6,0)*cf(0,0,numb))
1421
CreatePickle(Torso.CFrame*euler(0,0.9,0)*cf(0,0,numb))
1422
CreatePickle(Torso.CFrame*euler(0,1.2,0)*cf(0,0,numb))
1423
CreatePickle(Torso.CFrame*euler(0,1.5,0)*cf(0,0,numb))
1424
CreatePickle(Torso.CFrame*euler(0,1.8,0)*cf(0,0,numb))
1425
CreatePickle(Torso.CFrame*euler(0,2.1,0)*cf(0,0,numb))
1426
CreatePickle(Torso.CFrame*euler(0,2.4,0)*cf(0,0,numb))
1427
CreatePickle(Torso.CFrame*euler(0,2.7,0)*cf(0,0,numb))
1428
CreatePickle(Torso.CFrame*euler(0,3,0)*cf(0,0,numb))
1429
CreatePickle(Torso.CFrame*euler(0,3.3,0)*cf(0,0,numb))
1430
CreatePickle(Torso.CFrame*euler(0,3.6,0)*cf(0,0,numb))
1431
CreatePickle(Torso.CFrame*euler(0,3.9,0)*cf(0,0,numb))
1432
CreatePickle(Torso.CFrame*euler(0,4.2,0)*cf(0,0,numb))
1433
CreatePickle(Torso.CFrame*euler(0,4.5,0)*cf(0,0,numb))
1434
CreatePickle(Torso.CFrame*euler(0,4.8,0)*cf(0,0,numb))
1435
CreatePickle(Torso.CFrame*euler(0,5.1,0)*cf(0,0,numb))
1436
CreatePickle(Torso.CFrame*euler(0,5.4,0)*cf(0,0,numb))
1437
CreatePickle(Torso.CFrame*euler(0,5.7,0)*cf(0,0,numb))
1438
CreatePickle(Torso.CFrame*euler(0,6,0)*cf(0,0,numb))
1439
CreatePickle(Torso.CFrame*euler(0,6.3,0)*cf(0,0,numb))
1440
numb=numb-5
1441
wait(0.2)
1442
end
1443
for i=0,1,0.1 do
1444
wait()
1445
wld1.C0=euler(2.57-1.57*i,0,0)*cf(0,1,0)
1446
RW.C0=cf(1.5, 0.5, 0) * euler(1.5-0.5*i,0,0)
1447
end
1448
attack=false
1449
end
1450
1451
function IceSword()
1452
attack=true
1453
CrystalEffect(prt9)
1454
ChangeBaseColor("Bright blue")
1455
for i=0,1,0.1 do
1456
wait()
1457
wld1.C0=euler(1+0.57*i,0,0)*cf(0,1,0)
1458
RW.C0=cf(1.5, 0.5, 0) * euler(1-1.5*i,0,0)
1459
end
1460
for i=0,1,0.2 do
1461
wait()
1462
wld1.C0=euler(1.57+1*i,0,0)*cf(0,1,0)
1463
RW.C0=cf(1.5, 0.5, 0) * euler(-0.5+2*i,0,0)
1464
end
1465
numb=-10
1466
for i=1,5 do
1467
CreateIceSword(Torso.CFrame*cf(0,0,numb))
1468
CreateIceSword(Torso.CFrame*euler(0,0.5,0)*cf(0,0,numb))
1469
CreateIceSword(Torso.CFrame*euler(0,1,0)*cf(0,0,numb))
1470
CreateIceSword(Torso.CFrame*euler(0,-0.5,0)*cf(0,0,numb))
1471
CreateIceSword(Torso.CFrame*euler(0,-1,0)*cf(0,0,numb))
1472
numb=numb-10
1473
wait(0.2)
1474
end
1475
for i=0,1,0.1 do
1476
wait()
1477
wld1.C0=euler(2.57-1.57*i,0,0)*cf(0,1,0)
1478
RW.C0=cf(1.5, 0.5, 0) * euler(1.5-0.5*i,0,0)
1479
end
1480
attack=false
1481
end
1482
1483
function RockSwarm()
1484
attack=true
1485
rockthrow=false
1486
CrystalEffect(prt10)
1487
ChangeBaseColor("Bright green")
1488
for i=0,1,0.1 do
1489
wait()
1490
wld1.C0=euler(1+1.5*i,0,0)*cf(0,1,0)
1491
RW.C0=cf(1.5, 0.5, 0) * euler(1+1.5*i,0,0)
1492
end
1493
Mountain()
1494
for i=10,50 do
1495
Rock()
1496
RockSide1()
1497
wait(0.1)
1498
end
1499
wait(0.5)
1500
for i=0,1,0.1 do
1501
wait()
1502
wld1.C0=euler(2.5-1*i,0,0)*cf(0,1,0)
1503
RW.C0=cf(1.5, 0.5, 0) * euler(2.5-2*i,0,0)
1504
end
1505
for i=0,1,0.2 do
1506
wait()
1507
wld1.C0=euler(1.5+1*i,0,0)*cf(0,1,0)
1508
RW.C0=cf(1.5, 0.5, 0) * euler(0.5+1*i,0,0)
1509
end
1510
rockthrow=true
1511
game:GetService("Chat"):Chat(Character,"AVALANCHE!",2)
1512
wait(1)
1513
for i=0,1,0.1 do
1514
wait()
1515
wld1.C0=euler(2.5-1.5*i,0,0)*cf(0,1,0)
1516
RW.C0=cf(1.5, 0.5, 0) * euler(1.5-0.5*i,0,0)
1517
end
1518
attack=false
1519
end
1520
1521
function RockShard()
1522
attack=true
1523
rockthrow=false
1524
CrystalEffect(prt10)
1525
ChangeBaseColor("Bright green")
1526
for i=0,1,0.1 do
1527
wait()
1528
wld1.C0=euler(1+1.5*i,0,0)*cf(0,1,0)
1529
RW.C0=cf(1.5, 0.5, 0) * euler(1+1.5*i,0,0)
1530
end
1531
Shield()
1532
for i=10,20 do
1533
RockShards()
1534
wait(0.1)
1535
end
1536
wait(0.5)
1537
for i=0,1,0.1 do
1538
wait()
1539
wld1.C0=euler(2.5-1*i,0,0)*cf(0,1,0)
1540
RW.C0=cf(1.5, 0.5, 0) * euler(2.5-2*i,0,0)
1541
end
1542
for i=0,1,0.2 do
1543
wait()
1544
wld1.C0=euler(1.5+1*i,0,0)*cf(0,1,0)
1545
RW.C0=cf(1.5, 0.5, 0) * euler(0.5+1*i,0,0)
1546
end
1547
rockthrow=true
1548
game:GetService("Chat"):Chat(Character,"DIE!",2)
1549
wait(1)
1550
for i=0,1,0.1 do
1551
wait()
1552
wld1.C0=euler(2.5-1.5*i,0,0)*cf(0,1,0)
1553
RW.C0=cf(1.5, 0.5, 0) * euler(1.5-0.5*i,0,0)
1554
end
1555
attack=false
1556
end
1557
1558
function Void()
1559
attack=true
1560
print("Mage SS initiated.")
1561
CrystalEffect(prt11)
1562
ChangeBaseColor("Really black")
1563
local basepart=part(3,workspace,0,0.1,BrickColor.new("Really black"),"BasePart",vt(1,1,1))
1564
local basemesh=mesh("SpecialMesh",basepart,"Sphere","",vt(0,0,0),vt(0,0,0))
1565
basepart.Anchored=true
1566
basepart.CFrame=Torso.CFrame*cf(0,0,-30)
1567
numb=0
1568
coroutine.resume(coroutine.create(function()
1569
for i=0,1,0.05 do
1570
wait()
1571
wld1.C0=euler(1+2*i,0,0)*cf(0,1,0)
1572
RW.C0=cf(1.5, 0.5, 0) * euler(1+0.5*i,0,0)
1573
end
1574
end))
1575
for i=1,60 do
1576
wait()
1577
basemesh.Scale=basemesh.Scale+vt(0.1,0.1,0.1)
1578
Lightning(prt7.Position,basepart.Position+vt(math.random(-numb,numb),math.random(-numb,numb),math.random(-numb,numb)),5,1,"Really black",0.3,0.1)
1579
numb=numb+0.05
1580
end
1581
if Humanoid.Health==0 then
1582
basepart.Parent=nil
1583
return
1584
end
1585
for i=0,1,0.1 do
1586
wait()
1587
wld1.C0=euler(3,0,0)*cf(0,1,0)
1588
RW.C0=cf(1.5, 0.5, 0) * euler(1.5+1.5*i,0,0)
1589
end
1590
rifting=true
1591
coroutine.resume(coroutine.create(function(Part)
1592
coroutine.resume(coroutine.create(function(Partt)
1593
for i=1,300 do
1594
wait()
1595
MagicBlock(BrickColor.new("Really black"),Partt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,1,1,0.2,10,0.2)
1596
MagicCircle(BrickColor.new("Really black"),Partt.CFrame*cf(math.random(-50,50),-8,math.random(-50,50)),1,1,1,0,0,0,0.2,5,0.2)
1597
end
1598
rifting=false
1599
basepart.Parent=nil
1600
end),Part)
1601
DarkRiftF(Part,100)
1602
end),basepart)
1603
wait(1)
1604
for i=0,1,0.1 do
1605
wait()
1606
wld1.C0=euler(3-2*i,0,0)*cf(0,1,0)
1607
RW.C0=cf(1.5, 0.5, 0) * euler(3-2*i,0,0)
1608
end
1609
attack=false
1610
end
1611
1612
function WhiteSun()
1613
attack=true
1614
print("Mage SS initiated.")
1615
CrystalEffect(prt7)
1616
ChangeBaseColor("White")
1617
local basepart=part(3,workspace,0,0.1,BrickColor.new("White"),"BasePart",vt(1,1,1))
1618
local basemesh=mesh("SpecialMesh",basepart,"Sphere","",vt(0,0,0),vt(22,22,22))
1619
basepart.Anchored=true
1620
basepart.CFrame=Torso.CFrame*cf(0,50,0)
1621
numb=0
1622
coroutine.resume(coroutine.create(function()
1623
for i=0,1,0.05 do
1624
wait()
1625
wld1.C0=euler(1+1.5*i,0,0)*cf(0,1,0)
1626
RW.C0=cf(1.5, 0.5, 0) * euler(1+1.5*i,0,0)
1627
end
1628
end))
1629
for i=1,75 do
1630
wait()
1631
basemesh.Scale=basemesh.Scale+vt(0.1,0.1,0.1)
1632
VoidSun(prt7.Position,basepart.Position+vt(math.random(-numb,numb),math.random(-numb,numb),math.random(-numb,numb)),5,1,"White",0.3,0.1)
1633
numb=numb+0.05
1634
end
1635
if Humanoid.Health==0 then
1636
basepart.Parent=nil
1637
return
1638
end
1639
for i=0,1,0.1 do
1640
wait()
1641
wld1.C0=euler(3,0,0)*cf(0,1,0)
1642
RW.C0=cf(1.5, 0.5, 0) * euler(1.5+1.5*i,0,0)
1643
end
1644
rifting=true
1645
coroutine.resume(coroutine.create(function(Part)
1646
coroutine.resume(coroutine.create(function(Partt)
1647
game:GetService("Chat"):Chat(Character,"Dieing star...",2)
1648
for i=1,300 do
1649
wait()
1650
MagicBlock2(BrickColor.new("White"),Partt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),-1,-1,-1,0.2,10,0.2)
1651
MagicCircle(BrickColor.new("White"),Partt.CFrame*cf(math.random(-50,50),-8,math.random(-50,50)),1,1,1,0,0,0,0.2,5,0.2)
1652
basemesh.Scale=basemesh.Scale+vt(-0.1,-0.1,-0.1)
1653
end
1654
game:GetService("Chat"):Chat(Character,"...White Sun!",2)
1655
for i=1,20 do
1656
wait()
1657
MagicCircle2(BrickColor.new("White"),Partt.CFrame*cf(0,0,0),1,1,1,0,0,0,50,50,50)
1658
SunExplosion()
1659
end
1660
game:GetService("Chat"):Chat(Character,"GATES OF HEAVEN!!!",2)
1661
rifting=false
1662
basepart.Parent=nil
1663
end),Part)
1664
DarkRiftF(Part,300)
1665
end),basepart)
1666
wait(1)
1667
for i=0,1,0.1 do
1668
wait()
1669
wld1.C0=euler(3-2*i,0,0)*cf(0,1,0)
1670
RW.C0=cf(1.5, 0.5, 0) * euler(3-2*i,0,0)
1671
end
1672
attack=false
1673
end
1674
1675
function ob1d(mouse)
1676
if attack == true then return end
1677
hold=true
1678
repeat
1679
thwack()
1680
until hold==false
1681
coroutine.resume(coroutine.create(function()
1682
wait(0.5)
1683
if attack==false then
1684
combo=0
1685
wld1.C0=euler(1,0,0)*cf(0,1,0)
1686
RW.C0=cf(1.5, 0.5, 0) * euler(1,0,0)
1687
RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1688
LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,-0.2)
1689
LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
1690
end
1691
end))
1692
end
1693
1694
function ob1u(mouse)
1695
hold = false
1696
end
1697
1698
buttonhold = false
1699
1700
explosiondb=false
1701
icesworddb=false
1702
rockswarmdb=false
1703
pickledb=false
1704
voiddb=false
1705
sundb=false
1706
rocksharddb=false
1707
function key(key)
1708
if attack == true then return end
1709
Humanoid.WalkSpeed=0
1710
if key=="z" and explosiondb==false then
1711
so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.5)
1712
explosiondb=true
1713
Explosion()
1714
coroutine.resume(coroutine.create(function()
1715
wait(5)
1716
explosiondb=false
1717
prt8.Transparency=0.5
1718
end))
1719
end
1720
if key=="b" and pickledb==false then
1721
so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.3)
1722
pickledb=true
1723
Pickle()
1724
coroutine.resume(coroutine.create(function()
1725
wait(10)
1726
pickledb=false
1727
prt14.Transparency=0.5
1728
end))
1729
end
1730
if key=="x" and icesworddb==false then
1731
so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.3)
1732
icesworddb=true
1733
IceSword()
1734
coroutine.resume(coroutine.create(function()
1735
wait(10)
1736
icesworddb=false
1737
prt9.Transparency=0.5
1738
end))
1739
end
1740
if key=="c" and rockswarmdb==false then
1741
so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.3)
1742
rockswarmdb=true
1743
RockSwarm()
1744
coroutine.resume(coroutine.create(function()
1745
wait(15)
1746
rockswarmdb=false
1747
prt10.Transparency=0.5
1748
end))
1749
end
1750
if key=="m" and rocksharddb==false then
1751
so("http://www.roblox.com/asset/?id=2101137",RightArm,1,1.3)
1752
rocksharddb=true
1753
RockShard()
1754
coroutine.resume(coroutine.create(function()
1755
wait(15)
1756
rocksharddb=false
1757
prt10.Transparency=0.5
1758
end))
1759
end
1760
if key=="v" and voiddb==false then
1761
so("http://www.roblox.com/asset/?id=2101137",RightArm,3,0.5)
1762
voiddb=true
1763
Void()
1764
coroutine.resume(coroutine.create(function()
1765
wait(30)
1766
voiddb=false
1767
prt11.Transparency=0.5
1768
end))
1769
end
1770
if key=="n" and sundb==false then
1771
so("http://www.roblox.com/asset/?id=2101137",RightArm,3,0.5)
1772
sundb=true
1773
WhiteSun()
1774
coroutine.resume(coroutine.create(function()
1775
wait(30)
1776
sundb=false
1777
prt7.Transparency=0.5
1778
end))
1779
end
1780
Humanoid.WalkSpeed=16
1781
end
1782
1783
function key2(key)
1784
end
1785
1786
function s(mouse)
1787
mouse.Button1Down:connect(function() ob1d(mouse) end)
1788
mouse.Button1Up:connect(function() ob1u(mouse) end)
1789
mouse.KeyDown:connect(key)
1790
mouse.KeyUp:connect(key2)
1791
unsheathed = true
1792
player = Player
1793
ch = Character
1794
MMouse = mouse
1795
RSH = ch.Torso["Right Shoulder"]
1796
LSH = ch.Torso["Left Shoulder"]
1797
-- 
1798
RSH.Parent = nil
1799
LSH.Parent = nil
1800
-- 
1801
RW.Part0 = ch.Torso
1802
RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
1803
RW.C1 = CFrame.new(0, 0.5, 0)
1804
RW.Part1 = ch["Right Arm"]
1805
RW.Parent = ch.Torso
1806
--_G.R = RW
1807
-- 
1808
LW.Part0 = ch.Torso
1809
LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
1810
LW.C1 = CFrame.new(0, 0.5, 0)
1811
LW.Part1 = ch["Left Arm"]
1812
LW.Parent = ch.Torso
1813
--_G.L = LW
1814
--
1815
equipanim()
1816
end
1817
1818
function ds(mouse)
1819
hideanim()
1820
wait(0)
1821
RW.Parent = nil
1822
LW.Parent = nil
1823
RSH.Parent = player.Character.Torso
1824
LSH.Parent = player.Character.Torso
1825
end
1826
1827
Bin.Selected:connect(s)
1828
Bin.Deselected:connect(ds)
1829
print("Staff loaded.")
1830
-- mediafire
1831
--[[
1832
Copyrighted (C) Fenrier 2013
1833
]]