View difference between Paste ID: HRu74QZ1 and jZ0Uq0Gv
SHOW: | | - or go back to the newest paste.
1
--[[											
2
Crystal Warden script made by Fenrier.
3
Made for an upcoming game I will be making. Don't expect it to be out anytime soon though.
4
And hello hacker :D
5
Have fun with my scripts by the way c:
6
]] 
7
wait(1/60)
8
Player = game:GetService("Players").LocalPlayer 
9
Character = Player.Character 
10
PlayerGui = Player.PlayerGui 
11
Backpack = Player.Backpack 
12
Torso = Character.Torso 
13
Head = Character.Head 
14
Humanoid = Character.Humanoid
15
LeftArm = Character["Left Arm"] 
16
LeftLeg = Character["Left Leg"] 
17
RightArm = Character["Right Arm"] 
18
RightLeg = Character["Right Leg"] 
19
LS = Torso["Left Shoulder"] 
20
LH = Torso["Left Hip"] 
21
RS = Torso["Right Shoulder"] 
22
RH = Torso["Right Hip"] 
23
Neck = Torso.Neck
24
it=Instance.new
25
vt=Vector3.new
26
cf=CFrame.new
27
euler=CFrame.fromEulerAnglesXYZ
28
angles=CFrame.Angles
29
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
30
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
31
attack = false 
32
attacktype = 1 
33
attackdebounce = false 
34
ssdebounce=false
35
MMouse=nil
36
combo=0
37
local CrystalNumb=0
38
local Crystals={}
39-
CrystalColor=BrickColor.new("Really red")
39+
CrystalColor=BrickColor.new("Bright blue")
40
--player 
41
player = nil 
42
--save shoulders 
43
RSH, LSH = nil, nil 
44
--welds 
45
RW, LW = Instance.new("Weld"), Instance.new("Weld") 
46
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
47
48
49
if Character:findFirstChild("Crystal Gauntlet",true) ~= nil then 
50
Character:findFirstChild("Crystal Gauntlet",true).Parent = nil 
51
end 
52
53
54
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
55
local fp = it("Part")
56
fp.Material = "SmoothPlastic"
57
fp.formFactor = formfactor 
58
fp.Parent = parent
59
fp.Reflectance = reflectance
60
fp.Transparency = transparency
61
fp.CanCollide = false 
62
fp.Locked=true
63
fp.BrickColor = brickcolor
64
fp.Name = name
65
fp.Size = size
66
fp.Position = Torso.Position 
67
fp.BottomSurface="Smooth"
68
fp.TopSurface="Smooth"
69
fp:BreakJoints()
70
return fp 
71
end 
72
73
function swait(num)
74
	if num == 0 or num == nil then
75
		game:service'RunService'.Heartbeat:wait(0)
76
	else
77
		for i = 0, num do
78
			game:service'RunService'.Heartbeat:wait(0)
79
		end
80
	end
81
end
82
83
function mesh(Mesh,part,meshtype,meshid,offset,scale)
84
local mesh = it(Mesh) 
85
mesh.Parent = part
86
if Mesh=="SpecialMesh" then
87
mesh.MeshType = meshtype
88
mesh.MeshId = meshid
89
end
90
mesh.Offset=offset
91
mesh.Scale=scale
92
return mesh
93
end
94
95
function weld(parent,part0,part1,c0)
96
local weld = it("Weld") 
97
weld.Parent = parent
98
weld.Part0 = part0 
99
weld.Part1 = part1 
100
weld.C0 = c0
101
return weld
102
end
103
104
local modelzorz = Instance.new("Model") 
105
modelzorz.Parent = Character 
106
modelzorz.Name = "Crystal Gauntlet" 
107
108-
local prt1=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part1",vt(1,1,1))
108+
local prt1=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Part1",vt(1,1,1))
109
local prt2=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part2",vt(1,1,1))
110
local prt3=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part3",vt(1,1,1))
111-
local prt4=part(3,modelzorz,0,0,BrickColor.new("Really red"),"Part4",vt(1,1,1))
111+
local prt4=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Part4",vt(1,1,1))
112
local prt5=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part5",vt(1,1,1))
113
local prt6=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part6",vt(1,1,1))
114-
local prt7=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Part7",vt(1,1,1))
114+
local prt7=part(3,modelzorz,0,0,BrickColor.new("Bright blue"),"Part7",vt(1,1,1))
115
prt7.Material = "Neon"
116
117
local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1.1,0.6,1.1))
118
local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(1.1,0.8,0.5))
119
local msh3=mesh("CylinderMesh",prt3,"","",vt(0,0,0),vt(0.8,0.2,0.8))
120
local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(1.05,0.2,1.05))
121
local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.5,0.65,0.2))
122
local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.2,0.65,1.01))
123
local msh7=mesh("SpecialMesh",prt7,"Sphere","",vt(0,0,0),vt(0.6,0.6,0.6))
124
125
local wld1=weld(prt1,prt1,LeftArm,euler(0,0,0)*cf(0,-0.5,0))
126
local wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0.7,0))
127
local wld3=weld(prt3,prt3,prt2,euler(0,0,1.57)*cf(0.5,0.4,0))
128
local wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,0.2,0))
129
local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0.3,0.3,0))
130
local wld6=weld(prt6,prt6,prt4,euler(0,0,0)*cf(0,0.3,0))
131
local wld7=weld(prt7,prt7,prt3,euler(0,0,0)*cf(0,0,0))
132
133
if (script.Parent.className ~= "HopperBin") then 
134
Tool = Instance.new("HopperBin") 
135
Tool.Parent = Backpack 
136
Tool.Name = "Crystal Gauntlet" 
137
script.Parent = Tool 
138
end 
139
Bin = script.Parent 
140
141
local bg = it("BodyGyro") 
142
bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge 
143
bg.P = 20e+003 
144
bg.Parent = nil 
145
146
so = function(id,par,vol,pit) 
147
coroutine.resume(coroutine.create(function()
148
local sou = Instance.new("Sound",par or workspace)
149
sou.Volume=vol
150
sou.Pitch=pit or 1
151
sou.SoundId=id
152
swait() 
153
sou:play() 
154
wait(6) 
155
sou:Remove() 
156
end))
157
end
158
159
function hideanim() 
160
equipped=false
161
wait(0.1) 
162
bg.Parent=nil
163
end 
164
165
function equipanim() 
166
equipped=true
167
wait(0.1) 
168
RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
169
RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
170
LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
171
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
172
end 
173
174
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
175
return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
176
end 
177
spread=2
178
range=500
179
rangepower=50
180
function shoottrail(mouse,baseprt)
181
coroutine.resume(coroutine.create(function() 
182
local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread))) * (baseprt.Position-MMouse.Hit.p).magnitude/100
183
local dir = CFrame.new((baseprt.Position+MMouse.Hit.p)/2,MMouse.Hit.p+spreadvector)
184
local hit,pos = rayCast(baseprt.Position,dir.lookVector,10,modelzorz)
185
local rangepos = range
186
local function drawtrail(From,To)
187
local effectsmsh = Instance.new("CylinderMesh")
188
effectsmsh.Scale = Vector3.new(1,1,1)
189
effectsmsh.Name = "Mesh"
190
local effectsg = Instance.new("Part")
191
effectsg.formFactor = 3
192
effectsg.CanCollide = false
193
effectsg.Name = "Eff"
194
effectsg.Locked = true
195
effectsg.Anchored = true
196
effectsg.Size = Vector3.new(0.2,0.2,0.2)
197
effectsg.Parent = modelzorz
198
effectsmsh.Parent = effectsg
199
effectsg.BrickColor = CrystalColor
200
effectsg.Reflectance = 0.4
201
local LP = From
202
local point1 = To
203
local mg = (LP - point1).magnitude
204
effectsmsh.Scale = Vector3.new(2,mg*5,2)
205
effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
206
coroutine.resume(coroutine.create(function()
207
for i = 0 , 1 , 0.1 do
208
swait()
209
effectsg.Transparency = 1*i
210
effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
211
end 
212
effectsg.Parent = nil 
213
end))
214
end
215
local newpos = baseprt.Position
216
local inc = rangepower
217
repeat
218
swait() swait() 
219
rangepos = rangepos - 10
220
dir = dir * CFrame.Angles(math.rad(-1),0,0)
221
hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
222
drawtrail(newpos,pos)
223
newpos = newpos + (dir.lookVector * inc)
224
if inc >= 20 then
225
inc = inc - 10
226
end
227
if hit ~= nil then
228
rangepos = 0
229
end
230
until rangepos <= 0
231
if hit ~= nil then
232
if hit.Parent:FindFirstChild("Humanoid") ~= nil then
233
hum = hit.Parent.Humanoid
234
tTorso=hit.Parent.Torso
235
Damagefunc1(hit,5,30)
236
attackdebounce=false
237
--ADmg(hum,hit)
238
elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
239
hum = hit.Parent.Parent.Humanoid
240
tTorso=hit.Parent.Parent.Torso
241
Damagefunc1(hit.Parent.Parent.Torso,5,30)
242
attackdebounce=false
243
--ADmg(hum,hit)
244
end
245
end
246
end))
247
end
248
249
function MagicCircle(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
250
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
251
prt.Anchored=true
252
prt.CFrame=cframe*cf(x2,y2,z2)
253
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
254
coroutine.resume(coroutine.create(function() 
255
for i=0,1,0.1 do
256
swait()
257
prt.CFrame=prt.CFrame
258
prt.Transparency=i
259
msh.Scale=msh.Scale+vt(x3,y3,z3)
260
end
261
prt.Parent=nil
262
end))
263
end
264
265
function SpecialEffect() 
266-
local prt=part(3,workspace,1,0,BrickColor.new("Really red"),"Part",vt(1,1,1))
266+
local prt=part(3,workspace,1,0,BrickColor.new("Bright blue"),"Part",vt(1,1,1))
267
prt.Anchored=true
268
prt.CFrame=Torso.CFrame
269
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
270
coroutine.resume(coroutine.create(function(Part,Mesh) 
271
for i=0,1,0.2 do
272
swait()
273
Part.Transparency=i
274
Mesh.Scale=Mesh.Scale+vt(10,10,10)
275
end
276
prt.Parent=nil
277
end),prt,msh)
278
end 
279
280
Damagefunc1=function(hit,Damage,Knockback)
281
	if hit.Parent==nil then
282
		return
283
	end
284
	CPlayer=Bin 
285
	h=hit.Parent:FindFirstChild("Humanoid")
286
	if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
287
	if attackdebounce == false then 
288
	attackdebounce = true 
289
	coroutine.resume(coroutine.create(function() 
290
	wait(0.2) 
291
	attackdebounce = false 
292
	end)) 
293
	Damage=Damage
294
--[[		if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
295
			return
296
		end]]
297
--			hs(hit,1.2) 
298
			c=Instance.new("ObjectValue")
299
			c.Name="creator"
300
			c.Value=game.Players.LocalPlayer
301
			c.Parent=h
302
			game:GetService("Debris"):AddItem(c,.5)
303
		Damage=Damage+math.random(0,10)
304
--		h:TakeDamage(Damage)
305
		blocked=false
306
		block=hit.Parent:findFirstChild("Block")
307
		if block~=nil then
308
		print("herp")
309
		if block.Value>0 then
310
		blocked=true
311
		block.Value=block.Value-1
312
		print(block.Value)
313
		end
314
		end
315
		if blocked==false then
316
--		h:TakeDamage(Damage)
317
		h.Health=h.Health-Damage
318
		showDamage(hit.Parent,Damage,.5)
319
		else
320
		h.Health=h.Health-1
321
		showDamage(hit.Parent,1,.5)
322
		end
323
		vp=Instance.new("BodyVelocity")
324
		vp.P=500
325
		vp.maxForce=Vector3.new(math.huge,0,math.huge)
326
--		vp.velocity=Character.Torso.CFrame.lookVector*Knockback
327
		vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
328
		if Knockback>0 then
329
			vp.Parent=hit.Parent.Torso
330
		end
331
		game:GetService("Debris"):AddItem(vp,.25)
332
				c=Instance.new("ObjectValue")
333
			c.Name="creator"
334
			c.Value=Player
335
			c.Parent=h
336
			game:GetService("Debris"):AddItem(c,.5)
337
		CRIT=false
338
		hitDeb=true
339
		AttackPos=6
340
	end
341
	end 
342
end
343
344
Damagefunc2=function(hit,Damage,Knockback)
345
	if attackdebounce == false then 
346
	attackdebounce = true 
347
	coroutine.resume(coroutine.create(function() 
348
	wait(0.1) 
349
	attackdebounce = false 
350
	end)) 
351
	if hit.Parent==nil then
352
		return
353
	end
354
	CPlayer=Bin 
355
	blocked=false
356
	h=hit.Parent:FindFirstChild("Humanoid")
357
	if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
358
		Damage=Damage
359
			c=it("ObjectValue")
360
			c.Name="creator"
361
			c.Value=game.Players.LocalPlayer
362
			c.Parent=h
363
			game:GetService("Debris"):AddItem(c,.5)
364
--			print(c.Value)
365
--[[		if math.random(0,99)+math.random()<=7.8 then
366
			CRIT=true
367
			Damage=Damage*2
368
			s=it("Sound")
369
			s.SoundId="http://www.roblox.com/asset/?id=2801263"
370
			s.Volume=1
371
			s.Pitch=2
372
			s.Parent=hit
373
			s.PlayOnRemove=true
374
			s.Parent=nil
375
	
376
		end]]
377
		Damage=Damage+math.random(0,10)
378
--		Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
379
		blocked=false
380
		block=hit.Parent:findFirstChild("Block")
381
		if block~=nil then
382
		print("herp")
383
		if block.Value>0 then
384
		blocked=true
385
		block.Value=block.Value-3
386
		print(block.Value)
387
		end
388
		end
389
		if blocked==false then
390
--		h:TakeDamage(Damage)
391
--		h.Humanoid.Health=h.Humanoid.Health-Damage
392
		showDamage(hit.Parent,Damage,.5)
393
		else
394
		h.Humanoid.Health=h.Humanoid.Health-1
395
		showDamage(hit.Parent,1,.5)
396
		end
397
--if blocked==false then
398
local angle = (hit.Position-(Torso.Position+Vector3.new(0,0,0))).unit
399
print(angle)
400
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
401
		rl=Instance.new("BodyAngularVelocity")
402
		rl.P=3000
403
		rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
404
		rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
405
		rl.Parent=hit
406
coroutine.resume(coroutine.create(function(vel) 
407
wait(1) 
408
vel:Remove() 
409
end),rl) 
410
--end
411
local bodyVelocity=Instance.new("BodyVelocity")
412
bodyVelocity.velocity=angle*40+Vector3.new(0,0,0)
413
bodyVelocity.P=5000
414
bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
415
bodyVelocity.Parent=hit
416
coroutine.resume(coroutine.create(function(Vel) 
417
wait(0.7) 
418
Vel:Remove() 
419
end),bodyVelocity) 
420
				c=it("ObjectValue")
421
			c.Name="creator"
422
			c.Value=Player
423
			c.Parent=h
424
			game:GetService("Debris"):AddItem(c,.5)
425
		CRIT=false
426
		hitDeb=true
427
		AttackPos=6
428
	end
429
	end 
430
end
431
432
showDamage=function(Char,Dealt,du)
433
	m=Instance.new("Model")
434
	m.Name=tostring(Dealt)
435
	h=Instance.new("Humanoid")
436
	h.Health=0
437
	h.MaxHealth=0
438
	h.Parent=m
439
	c=Instance.new("Part")
440
	c.Transparency=0
441
	c.BrickColor=BrickColor:Red()
442
	if CRIT==true then
443-
		c.BrickColor=BrickColor.new("Really red")
443+
		c.BrickColor=BrickColor.new("Bright blue")
444
	end
445
	c.Name="Head"
446
	c.TopSurface=0
447
	c.BottomSurface=0
448
	c.formFactor="Plate"
449
	c.Size=Vector3.new(1,.4,1)
450
	ms=Instance.new("CylinderMesh")
451
	ms.Scale=Vector3.new(.8,.8,.8)
452
	if CRIT==true then
453
		ms.Scale=Vector3.new(1,1.25,1)
454
	end
455
	ms.Parent=c
456
	c.Reflectance=0
457
	Instance.new("BodyGyro").Parent=c
458
	c.Parent=m
459
	c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
460
	f=Instance.new("BodyPosition")
461
	f.P=2000
462
	f.D=100
463
	f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
464
	f.position=c.Position+Vector3.new(0,3,0)
465
	f.Parent=c
466
	game:GetService("Debris"):AddItem(m,.5+du)
467
	c.CanCollide=false
468
	m.Parent=workspace
469
	c.CanCollide=false
470
end
471
472
function CrystalEffect(crystal)
473
clone=crystal:Clone()
474
clone.Parent=workspace
475
clone.Weld:remove()
476
clone.Anchored=true
477
clone.CFrame=crystal.CFrame
478
Mesh=clone.Mesh
479
coroutine.resume(coroutine.create(function(Part,Meshh) 
480
for i=0.5,1,0.05 do
481
swait()
482
Part.Transparency=i
483
Meshh.Scale=Meshh.Scale+vt(0.3,0.3,0.3)
484
end
485
Part.Parent=nil
486
end),clone,Mesh)
487
end
488
489
function MakeCrystals()
490
attack=true
491
for i=0,1,0.1 do
492
swait()
493
RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
494
RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
495
LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
496
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+2.07*i,0.4-0.4*i)
497
end
498
while crystalhold==true do
499
if CrystalNumb<100 then
500
so("http://www.roblox.com/asset/?id=106626284",Torso,1,2) 
501
CrystalEffect(prt7)
502
CrystalNumb=CrystalNumb+1
503
print(CrystalNumb)
504
local base=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part1",vt(1,1,1))
505
base.Anchored=true
506
base.CFrame=prt7.CFrame
507
table.insert(Crystals,base)
508
local crystall=part(3,base,0.4,0,CrystalColor,"Crystal",vt(2,2,2))
509
local msh=mesh("SpecialMesh",crystall,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(2,2,2))
510
crystall.Anchored=false
511
crystall.CFrame=base.CFrame
512
fd=Instance.new("BodyPosition")
513
fd.P=10000
514
fd.D=1000
515
fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
516
fd.position=base.Position
517
fd.Parent=crystall
518
coroutine.resume(coroutine.create(function(BodyPos,Part,BasePart) 
519
while BasePart.Parent~=nil do
520
swait()
521
BodyPos.position=BasePart.Position
522
end
523
Part.Parent=nil
524
end),fd,crystall,base)
525
end
526
wait(0)
527
end
528
for i=0,1,0.1 do
529
swait()
530
RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
531
RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
532
LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
533
LW.C1=cf(0, 0.5, 0) * euler(0,1.57-2.07*i,0.4-0.4+0.4*i)
534
end
535
attack=false
536
end
537
538
function attackone()
539
attack=true
540
hitted=false
541
CrystalEffect(prt7)
542
randomnumb=math.random(4,#Crystals)
543
item=Crystals[randomnumb]
544
item.CFrame=LeftArm.CFrame*cf(0,-5,0)
545
CrystalNumb=CrystalNumb-1
546
table.remove(Crystals,randomnumb)
547
for i=0,1,0.1 do
548
swait()
549
item.CFrame=LeftArm.CFrame*cf(0,-5,0)
550
RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
551
RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
552
LW.C0=cf(-1.5, 0.5, 0) * euler(0.8-0.8*i,0,0)
553
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4+1.17*i)
554
end
555
so("http://roblox.com/asset/?id=10209640",LeftArm,1,1) 
556
Cryst=item.Crystal
557
con1=Cryst.Touched:connect(function(hit) 
558
if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
559
so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5) 
560
Cryst.Parent=nil
561
hitted=true
562
for i=1,math.random(4,8) do
563
local brokecryst=part(3,workspace,0.4,0,Cryst.BrickColor,"Crystal",vt(1,1,1))
564
local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
565
brokecryst.CanCollide=true
566
brokecryst.CFrame=Cryst.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
567
brokecryst.Velocity=vt(math.random(-40,40),math.random(-40,40),math.random(-40,40))
568
game:GetService("Debris"):AddItem(brokecryst,4)
569
end
570
end
571
Damagefunc1(hit,10,20) 
572
end) 
573
for i=0,1,0.2 do
574
swait()
575
item.CFrame=LeftArm.CFrame*cf(0,-5,0)
576
RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
577
RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
578
LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0,-3*i,0)
579
LW.C1=cf(0, 0.5, 0) * euler(0,-1.57,1.57)
580
end
581
wait(0.5)
582
con1:disconnect()
583
if hitted==true then
584
item.Parent=nil
585
elseif hitted==false then
586
CrystalNumb=CrystalNumb+1
587
table.insert(Crystals,item)
588
end
589
attack=false
590
end
591
592
function Shatter()
593
attack=true
594
Damage=0
595
for i=0,1,0.1 do
596
swait()
597
RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
598
LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(0.8+0.8*i,0,0)
599
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-1.6*i)
600
end
601
CrystalEffect(prt7)
602
for e=1,#Crystals do
603
Damage=Damage+5
604
so("http://www.roblox.com/asset/?id=12222005",Torso,1,1.5) 
605
CrystalNumb=CrystalNumb-1
606
Crystals[e].Parent=nil
607
for i=1,math.random(4,10) do
608
local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
609
local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
610
brokecryst.CanCollide=true
611
brokecryst.CFrame=Crystals[e].CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
612
brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
613
game:GetService("Debris"):AddItem(brokecryst,4)
614
end
615
--table.remove(Crystals,c)
616
end
617
local cc = game.Workspace:GetChildren()
618
for i = 1, #cc do
619
local hum = cc[i]:findFirstChild("Humanoid")
620
if hum ~= nil and hum.Health ~= 0 then
621
local head = cc[i]:findFirstChild("Head")
622
if head ~= nil then
623
local targ = head.Position - Torso.Position
624
local mag = targ.magnitude
625
if mag <= 20 and cc[i].Name ~= Player.Name then 
626
attackdebounce=false
627
Damagefunc2(head,5,10)
628
end
629
end
630
end
631
end
632
for i=1,10 do
633
print("nou")
634
for e=1,#Crystals do
635
print(#Crystals)
636
table.remove(Crystals,e)
637
end
638
end
639
wait(0.4)
640
for i=0,1,0.1 do
641
swait()
642
RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
643
LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.6-0.8*i,0,0)
644
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,-1.2+1.6*i)
645
end
646
CrystalNumb=0
647
attack=false
648
end
649
650
function ShardJab()
651
attack=true
652
for i=0,1,0.5 do
653
swait()
654
RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
655
LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+2.2*i,0,0)
656
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5-1.07*i,0.4-0.4*i)
657
end
658
for i=1,10 do
659
randomnumb=math.random(1,#Crystals)
660
item=Crystals[randomnumb]
661
item.CFrame=Torso.CFrame*cf(math.random(-6,6),math.random(6,8),math.random(-6,6))
662
coroutine.resume(coroutine.create(function(Part) 
663
CrystalNumb=CrystalNumb-1
664
table.remove(Crystals,randomnumb)
665
CrystalEffect(prt7)
666
wait()
667
so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5) 
668
Part.Crystal.Parent=nil
669
for i=1,math.random(2,6) do
670
local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
671
local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
672
brokecryst.CanCollide=true
673
brokecryst.CFrame=Part.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
674
brokecryst.Velocity=vt(math.random(-50,50),math.random(-50,50),math.random(-50,50))
675
game:GetService("Debris"):AddItem(brokecryst,4)
676
end
677
for i=1,3 do
678
local Shard=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
679
local mshh=mesh("SpecialMesh",Shard,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,1.5,0.5))
680
fd=Instance.new("BodyPosition")
681
fd.P=10000
682
fd.D=1000
683
fd.maxForce=Vector3.new(math.huge,math.huge,math.huge)
684
fd.position=Part.Position+vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
685
fd.Parent=Shard
686
local bg = it("BodyGyro") 
687
bg.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge 
688
bg.P = 20e+003 
689
bg.Parent=Shard
690
bg.cframe=CFrame.new(Shard.Position,MMouse.Hit.p)*euler(1.57,0,0)
691
--bg.cframe=CFrame.new(pos1,targetpos)
692
coroutine.resume(coroutine.create(function(Part) 
693
wait(0)
694
shoottrail(MMouse,Part)
695
Part.Parent=nil
696
end),Shard)
697
end
698
end),item)
699
end
700
wait()
701
for i=0,1,0.5 do
702
swait()
703
RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
704
LW.C0=cf(-1.5, 0.5, 0) * euler(3-2.2*i,0,0)
705
LW.C1=cf(0, 0.5, 0) * euler(0,-1.57+1.07*i,0.4*i)
706
end
707
item.Parent=nil
708
attack=false
709
end
710
711
function ShardWave()
712
attack=true
713
Humanoid.WalkSpeed=0
714
for i=0,1,0.5 do
715
swait()
716
RW.C0=cf(1.5, 0.5, 0) * euler(0.2-0.4*i,0,0)
717
LW.C0=cf(-1.5, 0.5, 0) * euler(0.8+0.77*i,0,0)
718
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5+0.5*i,0.4-0.4*i)
719
end
720
MainCF=Torso.CFrame*cf(0,0,-5)
721
for i=1,50 do
722
wait(0.05)
723
MainCF=MainCF*cf(0,0,-2)
724
CrystalEffect(prt7)
725
local CrystDerp=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(5,5,5))
726
local mshh=mesh("SpecialMesh",CrystDerp,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(3+math.random(),math.random(3,5)+math.random(),4+math.random()))
727
CrystDerp.CFrame=MainCF*cf(math.random(-5,5),math.random(-20,-15),math.random(-5,5))
728
CrystDerp.Anchored=true
729
game:GetService("Debris"):AddItem(CrystDerp,4)
730
coroutine.resume(coroutine.create(function(Part) 
731
for i=1,10 do
732
swait()
733
Part.CFrame=Part.CFrame*cf(0,2,0)
734
end
735
wait(1)
736
local cc = game.Workspace:GetChildren()
737
for i = 1, #cc do
738
local hum = cc[i]:findFirstChild("Humanoid")
739
if hum ~= nil and hum.Health ~= 0 then
740
local head = cc[i]:findFirstChild("Head")
741
if head ~= nil then
742
local targ = head.Position - Part.Position
743
local mag = targ.magnitude
744
if mag <= 5 and cc[i].Name ~= Player.Name then 
745
attackdebounce=false
746
Damagefunc1(head,5,10)
747
end
748
end
749
end
750
end
751
so("http://www.roblox.com/asset/?id=12222005",Part,1,1.5) 
752
for i=1,math.random(2,6) do
753
local brokecryst=part(3,workspace,0.4,0,CrystalColor,"Crystal",vt(1,1,1))
754
local mshh=mesh("SpecialMesh",brokecryst,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(math.random()-math.random(),math.random()+math.random(0,1),math.random()-math.random()))
755
brokecryst.CanCollide=true
756
brokecryst.CFrame=Part.CFrame*cf(math.random(-3,3),math.random(-3,3),math.random(-3,3))*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
757
brokecryst.Velocity=vt(math.random(-100,100),math.random(-100,100),math.random(-100,100))
758
game:GetService("Debris"):AddItem(brokecryst,4)
759
end
760
Part.Transparency=1
761
end),CrystDerp)
762
end
763
Humanoid.WalkSpeed=16
764
for i=0,1,0.1 do
765
swait()
766
RW.C0=cf(1.5, 0.5, 0) * euler(-0.2+0.4*i,0,0)
767
LW.C0=cf(-1.5, 0.5, 0) * euler(1.57-0.77*i,0,0)
768
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5*i,0.4*i)
769
end
770
attack=false
771
end
772
773
function ob1d(mouse) 
774
if attack == true or CrystalNumb==0 then return end 
775
hold=true
776
attackone()
777
RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
778
RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
779
LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
780
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
781
end 
782
783
function ob1u(mouse) 
784
hold = false 
785
end 
786
787
buttonhold = false 
788
789
eul=0
790
function key(key) 
791
if attack == true then return end 
792
if key=="z" then
793
ShardWave()
794
end
795
if key=="x" and CrystalNumb>=4 then
796
Shatter()
797
end
798
if key=="c" and CrystalNumb>=3 then
799
ShardJab()
800
end
801
if key=="v" then
802
crystalhold=true
803
MakeCrystals()
804
end
805
RW.C0=cf(1.5, 0.5, 0) * euler(0.2,0,0)
806
RW.C1=cf(0, 0.5, 0) * euler(0,0,-0.2)
807
LW.C0=cf(-1.5, 0.5, 0) * euler(0.8,0,0)
808
LW.C1=cf(0, 0.5, 0) * euler(0,-0.5,0.4)
809
end 
810
811
function key2(key) 
812
if key=="v" then
813
crystalhold=false
814
end
815
end 
816
817
function s(mouse) 
818
mouse.Button1Down:connect(function() ob1d(mouse) end) 
819
mouse.Button1Up:connect(function() ob1u(mouse) end) 
820
mouse.KeyDown:connect(key) 
821
mouse.KeyUp:connect(key2) 
822
unsheathed = true 
823
player = Player 
824
ch = Character 
825
MMouse = mouse 
826
RSH = ch.Torso["Right Shoulder"] 
827
LSH = ch.Torso["Left Shoulder"] 
828
-- 
829
RSH.Parent = nil 
830
LSH.Parent = nil 
831
-- 
832
RW.Part0 = ch.Torso 
833
RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
834
RW.C1 = CFrame.new(0, 0.5, 0) 
835
RW.Part1 = ch["Right Arm"] 
836
RW.Parent = ch.Torso 
837
--_G.R = RW 
838
-- 
839
LW.Part0 = ch.Torso 
840
LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
841
LW.C1 = CFrame.new(0, 0.5, 0) 
842
LW.Part1 = ch["Left Arm"] 
843
LW.Parent = ch.Torso 
844
--_G.L = LW 
845
--
846
equipanim() 
847
end 
848
849
function ds(mouse) 
850
hideanim() 
851
swait() 
852
RW.Parent = nil 
853
LW.Parent = nil 
854
RSH.Parent = player.Character.Torso 
855
LSH.Parent = player.Character.Torso 
856
end 
857
858
Bin.Selected:connect(s) 
859
Bin.Deselected:connect(ds) 
860
print("Crystal Gauntlet loaded.")
861
862
print(#Crystals)
863
numbb=0
864
datnumb=0
865
while true do
866
swait()
867
datnumb=0
868
BaseNumb=6.28
869
BaseNumb=BaseNumb/CrystalNumb
870
for d=1,#Crystals do
871
datnumb=datnumb+BaseNumb
872
local Crystal=Crystals[d]
873
if Crystal.className=="Part" then
874
coroutine.resume(coroutine.create(function(Part) 
875
if #Crystals~=0 then
876
Part.CFrame=CFrame.new(Torso.Position)*euler(0,1+datnumb,0)*cf(0,0,5+(CrystalNumb/3))
877
numbb=numbb+0.05
878
--print(BaseNumb)
879
end
880
end),Crystal)
881
end
882
end
883
end
884
-- mediafire
885
--[[ 
886
Copyrighted (C) Fenrier 2013
887
]]