View difference between Paste ID: wGYT2GGx and ZySsM79t
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
	print("FE Compatibility code by Mokiros")
6
	local rp = RealPlayer
7
	script.Parent = rp.Character
8
	
9
	--RemoteEvent for communicating
10-
Player = game:GetService("Players").DjDarther
10+
	local Event = Instance.new("RemoteEvent")
11
	Event.Name = "UserInput_Event"
12
13
	--Fake event to make stuff like Mouse.KeyDown work
14
	local function fakeEvent()
15
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
		t.connect = t.Connect
17
		return t
18
	end
19
20
	--Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
	end}
26
	--Merged 2 functions into one by checking amount of arguments
27
	CAS.UnbindAction = CAS.BindAction
28
29
	--This function will trigger the events that have been :Connect()'ed
30
	local function te(self,ev,...)
31
		local t = m[ev]
32
		if t and t._fakeEvent then
33
			for _,f in pairs(t.Functions) do
34
				f(...)
35
			end
36
		end
37
	end
38
	m.TrigEvent = te
39
	UIS.TrigEvent = te
40
41
	Event.OnServerEvent:Connect(function(plr,io)
42
	    if plr~=rp then return end
43
		m.Target = io.Target
44
		m.Hit = io.Hit
45
		if not io.isMouse then
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local Mouse = Player:GetMouse()
66
	local UIS = game:GetService("UserInputService")
67
	local input = function(io,a)
68
		if a then return end
69
		--Since InputObject is a client-side instance, we create and pass table instead
70
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
	end
72
	UIS.InputBegan:Connect(input)
73-
local Music = Instance.new("Sound", game.Workspace.DjDarther)
73+
	UIS.InputEnded:Connect(input)
74
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81-
Player = game:GetService("Players").DjDarther
81+
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
85-
warn("Edited by : @Sikke#2497 & DjDarther !")
85+
	----Sandboxed game object that allows the usage of client-side methods and services
86
	--Real game object
87
	local _rg = game
88
89
	--Metatable for fake service
90
	local fsmt = {
91
		__index = function(self,k)
92
			local s = rawget(self,"_RealService")
93
			if s then return s[k] end
94
		end,
95
		__newindex = function(self,k,v)
96
			local s = rawget(self,"_RealService")
97
			if s then s[k]=v end
98
		end,
99
		__call = function(self,...)
100
			local s = rawget(self,"_RealService")
101
			if s then return s(...) end
102
		end
103
	}
104
	local function FakeService(t,RealService)
105
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
		return setmetatable(t,fsmt)
107
	end
108
109-
Player = game:GetService("Players").DjDarther
109+
	--Fake game object
110
	local g = {
111
		GetService = function(self,s)
112
			return self[s]
113
		end,
114
		Players = FakeService({
115
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
		},"Players"),
117
		UserInputService = FakeService(UIS,"UserInputService"),
118
		ContextActionService = FakeService(CAS,"ContextActionService"),
119
	}
120
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
	g.service = g.GetService
122
	
123
	g.RunService = FakeService({
124
		RenderStepped = _rg:GetService("RunService").Heartbeat,
125
		BindToRenderStep = function(self,name,_,fun)
126
			self._btrs[name] = self.Heartbeat:Connect(fun)
127
		end,
128
		UnbindFromRenderStep = function(self,name)
129
			self._btrs[name]:Disconnect()
130
		end,
131
	},"RunService")
132
133
	setmetatable(g,{
134
		__index=function(self,s)
135
			return _rg:GetService(s) or typeof(_rg[s])=="function"
136
			and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
		end,
138
		__newindex = fsmt.__newindex,
139
		__call = fsmt.__call
140
	})
141
	--Changing owner to fake player object to support owner:GetMouse()
142
	game,owner = g,g.Players.LocalPlayer
143
end
144
145
146
--Leaked by N3xul lol
147
--Converted to local by Scenius
148
--[[
149
Made by Fenrier.
150
]] 
151
script.Name = "nigga srsly"
152
ArtificialHB = Instance.new("BindableEvent", script)
153
ArtificialHB.Name = "Heartbeat"
154
script:WaitForChild("Heartbeat")
155
Player = owner
156
Character = Player.Character
157
PlayerGui = Player.PlayerGui
158
script.Parent = PlayerGui
159
Backpack = Player.Backpack
160
Torso = Character.Torso
161
Head = Character.Head
162
Humanoid = Character.Humanoid
163
LeftArm = Character["Left Arm"]
164
LeftLeg = Character["Left Leg"]
165
RightArm = Character["Right Arm"]
166
RightLeg = Character["Right Leg"]
167
ch = Character
168
RootPart = Character.HumanoidRootPart
169
RootJoint = RootPart.RootJoint
170
it=Instance.new
171
vt=Vector3.new
172
cf=CFrame.new
173
euler=CFrame.fromEulerAnglesXYZ
174
angles=CFrame.Angles
175
local decreaseatk=0
176
local decreasedef=0
177
local decreasemvmt=0
178
local Anim="Idle"
179
local Effects={}
180
local armorparts={}
181
local armorwelds={}
182
local weaponparts={}
183
local weaponwelds={}
184
local necko=euler(0,0,0)*cf(0,3,0)
185
local attack=false
186
local jump=false
187
local hitfloor,posfloor=nil,nil
188
local target,distance=nil,nil
189
local meleecooldown=0
190
local mcdadd=1
191
local summoncrystals=0
192
local crystals=false
193
local stunanim=false
194
195
if workspace:findFirstChild("Neflhelm",true) ~= nil then 
196
workspace:findFirstChild("Neflhelm",true).Parent = nil 
197
end 
198
199
function NoOutline(Part)
200
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
201
end
202
203
function swait(num)
204
if num==0 or num==nil then
205
--if Stagger.Value==false or Stun.Value<=100 then
206
script.Heartbeat.Event:wait()
207
--end
208
else
209
for i=0,num do
210
script.Heartbeat.Event:wait()
211
--[[if Stagger.Value==true or Stun.Value>=StunT.Value then
212
break
213
end]]
214
end
215
end
216
end
217
--Music
218
local Music = Instance.new("Sound", game.Workspace.DjDartherALT)
219
Music.SoundId = "rbxassetid://142407859"
220
Music.Volume = 10
221
Music.Pitch = 1.5
222
Music.Looped = true
223
Music:Play()
224
--idk
225
function start()
226
Player = owner
227
228
print("Welcome : "..Player.name)
229
wait(0.06)
230
warn("Edited by : @Sikke#2497 & DjDartherALT !")
231
    wait()
232
    i = 0
233
	while i<1 do
234
		wait()
235
		i = i + 0.01
236
		l.Contrast,l.Saturation,l.Brightness = l.Contrast + 0.02, l.Saturation - 0.0075, l.Brightness + 0.00375
237
		l.TintColor = Color3.new(1,1-i,1-i)
238
	end
239
end
240
241
delay(0,start)
242
243
wait(3)
244
local sky = game.Lighting
245
game.Lighting.TimeOfDay = "00:00:00"
246
sky.Ambient = BrickColor.new("Really black").Color
247
sky.Brightness = 0
248
sky.FogEnd = 50000
249
sky.FogColor = BrickColor.new("Really black").Color
250
script.Name = "nigga srsly"
251
ArtificialHB = Instance.new("BindableEvent", script)
252
ArtificialHB.Name = "Heartbeat"
253
script:WaitForChild("Heartbeat")
254
Player = owner
255
Character = Player.Character
256
PlayerGui = Player.PlayerGui
257
script.Parent = PlayerGui
258
Backpack = Player.Backpack
259
Torso = Character.Torso
260
Head = Character.Head
261
Humanoid = Character.Humanoid
262
LeftArm = Character["Left Arm"]
263
LeftLeg = Character["Left Leg"]
264
RightArm = Character["Right Arm"]
265
RightLeg = Character["Right Leg"]
266
ch = Character
267
RootPart = Character.HumanoidRootPart
268
RootJoint = RootPart.RootJoint
269
it=Instance.new
270
vt=Vector3.new
271
cf=CFrame.new
272
euler=CFrame.fromEulerAnglesXYZ
273
angles=CFrame.Angles
274
local decreaseatk=50
275
local decreasedef=100
276
local decreasemvmt=0
277
local Anim="Idle"
278
local Effects={}
279
local armorparts={}
280
local armorwelds={}
281
local weaponparts={}
282
local weaponwelds={}
283
local necko=euler(0,0,0)*cf(0,3,0)
284
local attack=false
285
local jump=false
286
local hitfloor,posfloor=nil,nil
287
local target,distance=nil,nil
288
local meleecooldown=0
289
local mcdadd=1
290
local summoncrystals=0
291
local crystals=false
292
local stunanim=false
293
294
Humanoid.WalkSpeed=7
295
--30hz Pacemaker
296
frame = 1/30
297
tf = 0
298
allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
299
tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
300
lastframe = tick()
301
script.Heartbeat:Fire() --ayy lmao
302
303
game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
304
	tf = tf + s
305
	if tf >= frame then
306
		if allowframeloss then
307
			script.Heartbeat:Fire()
308
			lastframe=tick()
309
		else
310
			----print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
311
			for i=1, math.floor(tf/frame) do
312
				script.Heartbeat:Fire()
313
			end
314
			lastframe=tick()
315
		end
316
		if tossremainder then
317
			tf = 0
318
		else
319
			tf = tf - frame * math.floor(tf/frame)
320
		end
321
	end
322
end)
323
324
function clerp(a,b,t) 
325
local qa = {QuaternionFromCFrame(a)}
326
local qb = {QuaternionFromCFrame(b)} 
327
local ax, ay, az = a.x, a.y, a.z 
328
local bx, by, bz = b.x, b.y, b.z
329
local _t = 1-t
330
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
331
end 
332
333
function QuaternionFromCFrame(cf) 
334
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
335
local trace = m00 + m11 + m22 
336
if trace > 0 then 
337
local s = math.sqrt(1 + trace) 
338
local recip = 0.5/s 
339
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
340
else 
341
local i = 0 
342
if m11 > m00 then
343
i = 1
344
end
345
if m22 > (i == 0 and m00 or m11) then 
346
i = 2 
347
end 
348
if i == 0 then 
349
local s = math.sqrt(m00-m11-m22+1) 
350
local recip = 0.5/s 
351
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
352
elseif i == 1 then 
353
local s = math.sqrt(m11-m22-m00+1) 
354
local recip = 0.5/s 
355
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
356
elseif i == 2 then 
357
local s = math.sqrt(m22-m00-m11+1) 
358
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
359
end 
360
end 
361
end
362
363
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
364
local xs, ys, zs = x + x, y + y, z + z 
365
local wx, wy, wz = w*xs, w*ys, w*zs 
366
local xx = x*xs 
367
local xy = x*ys 
368
local xz = x*zs 
369
local yy = y*ys 
370
local yz = y*zs 
371
local zz = z*zs 
372
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
373
end
374
375
function QuaternionSlerp(a, b, t) 
376
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
377
local startInterp, finishInterp; 
378
if cosTheta >= 0.0001 then 
379
if (1 - cosTheta) > 0.0001 then 
380
local theta = math.acos(cosTheta) 
381
local invSinTheta = 1/math.sin(theta) 
382
startInterp = math.sin((1-t)*theta)*invSinTheta 
383
finishInterp = math.sin(t*theta)*invSinTheta  
384
else 
385
startInterp = 1-t 
386
finishInterp = t 
387
end 
388
else 
389
if (1+cosTheta) > 0.0001 then 
390
local theta = math.acos(-cosTheta) 
391
local invSinTheta = 1/math.sin(theta) 
392
startInterp = math.sin((t-1)*theta)*invSinTheta 
393
finishInterp = math.sin(t*theta)*invSinTheta 
394
else 
395
startInterp = t-1 
396
finishInterp = t 
397
end 
398
end 
399
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
400
end
401
402
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
403
local fp=it("Part")
404
fp.formFactor=formfactor 
405
fp.Parent=parent
406
fp.Reflectance=reflectance
407
fp.Transparency=transparency
408
fp.CanCollide=false 
409
fp.Locked=true
410
fp.BrickColor=brickcolor
411
fp.Name=name
412
fp.Size=size
413
NoOutline(fp)
414
fp.Material="SmoothPlastic"
415
fp:BreakJoints()
416
return fp 
417
end 
418
419
function mesh(Mesh,part,meshtype,meshid,offset,scale)
420
local mesh=it(Mesh) 
421
mesh.Parent=part
422
if Mesh=="SpecialMesh" then
423
mesh.MeshType=meshtype
424
if meshid~="nil" then
425
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
426
end
427
end
428
mesh.Offset=offset
429
mesh.Scale=scale
430
return mesh
431
end
432
433
function weld(parent,part0,part1,c0)
434
local weld=it("Motor") 
435
weld.Parent=parent
436
weld.Part0=part0 
437
weld.Part1=part1 
438
weld.C0=c0
439
return weld
440
end
441
442
function gui(GuiType,parent,text,backtrans,backcol,pos,size,image)
443
local gui=it(GuiType) 
444
gui.Parent=parent
445
gui.BackgroundTransparency=backtrans
446
gui.BackgroundColor3=backcol
447
gui.SizeConstraint="RelativeXY" 
448
gui.Position=pos
449
gui.Size=size
450
if GuiType=="TextLabel" then
451
gui.Text=text
452
gui.TextXAlignment="Center" 
453
gui.TextYAlignment="Center" 
454
gui.Font="SourceSans"
455
gui.FontSize="Size14"
456
gui.TextWrapped=false
457
gui.TextStrokeTransparency=0
458
gui.TextColor=BrickColor.new("Really black")
459
elseif GuiType=="ImageLabel" then
460
gui.Image="rbxassetid://"..image
461
gui.ImageColor3=backcol
462
end
463
return gui
464
end
465
466
local nr=NumberRange.new
467
local ns=NumberSequence.new
468
local cs=ColorSequence.new
469
local nsk=NumberSequenceKeypoint.new
470
471
function particle(parent,col1,col2,lightemis,size,texture,transparency,zoffset,accel,drag,ltp,velinher,emisdir,enabled,lifetime,rate,rotation,rotspeed,speed,velspread)
472
local fp=it("ParticleEmitter")
473
fp.Parent=parent
474
fp.Color=cs(col1,col2)
475
fp.LightEmission=lightemis
476
fp.Size=size
477
fp.Texture=texture
478
fp.Transparency=transparency
479
fp.ZOffset=zoffset
480
fp.Acceleration=accel
481
fp.Drag=drag
482
fp.LockedToPart=ltp
483
fp.VelocityInheritance=velinher
484
fp.EmissionDirection=emisdir
485
fp.Enabled=enabled
486
fp.Lifetime=lifetime
487
fp.Rate=rate
488
fp.Rotation=rotation
489
fp.RotSpeed=rotspeed
490
fp.Speed=speed
491
fp.VelocitySpread=velspread
492
return fp 
493
end
494
495
--[[local Head=part(0,Character,0,0,BrickColor.new("really black"),"Head",vt(2,2,2)) Head.Material="Granite"
496
local Torso=part(0,Character,0,0,BrickColor.new("Really black"),"Torso",vt(2,2,2)) Torso.Material="Granite"]]
497
Head.Size = vt(2,2,2)
498
Torso.Size = vt(2,2,2)
499
Head.BrickColor = BrickColor.new("Really black")
500
Torso.BrickColor = BrickColor.new("Really black")
501
Head.Material = "Granite"
502
Torso.Material = "Granite"
503
Head.face:Destroy()
504
workspace.CurrentCamera.CameraSubject = Torso
505
local Back=part(0,Character,0,0,BrickColor.new("Really black"),"Back",vt(2,2,2)) Back.Material="Granite"
506
local Lower1=part(0,Character,0,0,BrickColor.new("Really black"),"Lower1",vt(2,2,2)) Lower1.Material="Granite"
507
local Lower2=part(0,Character,0,0,BrickColor.new("Really black"),"Lower2",vt(2,2,2)) Lower2.Material="Granite"
508
509
--local RootPart=part(0,Character,0,0,BrickColor.new("White"),"HumanoidRootPart",vt(2,2,1))
510
--RootPart.CanCollide=false
511
512
local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
513
local TMesh=mesh("SpecialMesh",Torso,"Sphere","nil",vt(0,0,0),vt(105,105,105))
514
local BMesh=mesh("SpecialMesh",Back,"Sphere","nil",vt(0,0,0),vt(100,100,100))
515
local L1Mesh=mesh("SpecialMesh",Lower1,"Sphere","nil",vt(0,0,0),vt(90,90,90))
516
local L2Mesh=mesh("SpecialMesh",Lower2,"Sphere","nil",vt(0,0,0),vt(90,90,90))
517
518
--[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
519
Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
520
local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
521
--Neck.C1=cf(0,-1.5,0)
522
Neck.C1=cf(0,-80,0)
523
--Neck.C0=clerp(Neck.C0,euler(0,0,0)*cf(0,115,0)*euler(-.3,0,0),.3)
524
local RootJoint=weld(Torso,Torso,RootPart,cf(-1.749,-200,0))
525
local BackJoint=weld(Torso,Torso,Back,cf(0,51,-87.75))
526
local L1Joint=weld(Torso,Torso,Lower1,cf(0,-42,-7.75))
527
local L2Joint=weld(Torso,Torso,Lower2,cf(0,-54.75,-16.749))
528
--Torso.CFrame=cf(0,20,0)
529
RootPart.Anchored=true
530
for d=10,180,10 do
531
for i=10,360,10 do
532
local Hitbox1=part(0,Character,0,1,BrickColor.new("Black"),"Left Arm",vt(1,1,1)) Hitbox1.Material="Granite"
533
local HbMesh=mesh("SpecialMesh",Hitbox1,"Sphere","nil",vt(0,0,0),vt(1,1,1))
534
--local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60/(d/30),d,0)*euler(0,math.rad(i),0))
535
local HHJoint=weld(Hitbox1,Hitbox1,Head,cf(60,0,0)*euler(0,math.rad(i),math.rad(d)))
536
end
537
end
538
539
Humanoid.Animator:Destroy()
540
Character.Animate:Destroy()
541
542
local armor=Instance.new("Model")
543
armor.Parent=Character
544
armor.Name="Body"
545
--RootPart.Parent=armor
546
547
prt1=part(3,armor,0,0,BrickColor.new("Really black"),"Part01",vt(2,2,2)) prt1.Material="Granite"
548
prt2=part(3,armor,0,0,BrickColor.new("Really black"),"Part02",vt(2,2,2))
549
prt3=part(3,armor,0,0,BrickColor.new("Really red"),"Part03",vt(2,2,2)) prt3.Material="Neon"
550
prt4=part(3,armor,0,0,BrickColor.new("Really black"),"Part04",vt(2,2,2))
551
prt5=part(3,armor,0,0,BrickColor.new("Really red"),"Part05",vt(2,2,2)) prt5.Material="Neon"
552
prt6=part(3,armor,0,0,BrickColor.new("Really black"),"Part06",vt(2,2,2)) prt6.Material="Granite"
553
prt7=part(3,armor,0,0,BrickColor.new("Really black"),"Part07",vt(2,2,2)) prt7.Material="Granite"
554
prt8=part(3,armor,0,0,BrickColor.new("Really black"),"Part08",vt(2,2,2)) prt8.Material="Granite"
555
prt9=part(3,armor,0,0,BrickColor.new("Really black"),"Part09",vt(2,2,2)) prt9.Material="Granite"
556
prt10=part(3,armor,0,0,BrickColor.new("Really black"),"Part10",vt(2,2,2)) prt10.Material="Granite"
557
prt11=part(3,armor,.4,0,BrickColor.new("Really black"),"Part11",vt(2,2,2))
558
prt12=part(3,armor,.4,0,BrickColor.new("Really black"),"Part12",vt(2,2,2))
559
prt13=part(3,armor,.4,0,BrickColor.new("Really black"),"Part13",vt(2,2,2))
560
prt14=part(3,armor,.4,0,BrickColor.new("Really black"),"Part14",vt(2,2,2))
561
prt15=part(3,armor,.4,0,BrickColor.new("Really black"),"Part15",vt(2,2,2))
562
prt16=part(3,armor,.4,0,BrickColor.new("Really black"),"Part16",vt(2,2,2))
563
prt17=part(3,armor,.4,0,BrickColor.new("Really black"),"Part17",vt(2,2,2))
564
prt18=part(3,armor,.4,0,BrickColor.new("Really black"),"Part18",vt(2,2,2))
565
prt19=part(3,armor,0,0,BrickColor.new("Really black"),"Part19",vt(2,2,2)) prt19.Material="Granite" --main right arm
566
prt20=part(3,armor,0,0,BrickColor.new("Really black"),"Part20",vt(2,2,2)) prt20.Material="Granite"
567
prt21=part(3,armor,0,0,BrickColor.new("Really black"),"Part21",vt(2,2,2)) prt21.Material="Granite" --second right arm point
568
prt22=part(3,armor,0,0,BrickColor.new("Really black"),"Part22",vt(2,2,2)) prt22.Material="Granite"
569
prt23=part(3,armor,0,0,BrickColor.new("Really black"),"Part23",vt(2,2,2)) prt23.Material="Granite"
570
prt24=part(3,armor,0,0,BrickColor.new("Really black"),"Part24",vt(2,2,2)) prt24.Material="Granite" --third right arm point
571
prt25=part(3,armor,0,0,BrickColor.new("Really black"),"Part25",vt(2,2,2)) prt25.Material="Granite"
572
prt26=part(3,armor,0,0,BrickColor.new("Really black"),"Part26",vt(2,2,2)) prt26.Material="Granite"
573
prt27=part(3,armor,0,0,BrickColor.new("Really black"),"Part27",vt(2,2,2)) prt27.Material="Granite"
574
prt28=part(3,armor,0,0,BrickColor.new("Really black"),"Part28",vt(2,2,2)) prt28.Material="Granite"
575
prt29=part(3,armor,0,0,BrickColor.new("Really black"),"Part29",vt(2,2,2)) prt29.Material="Granite" --fourth right arm point
576
prt30=part(3,armor,0,0,BrickColor.new("Really black"),"Part30",vt(2,2,2)) prt30.Material="Granite"
577
prt31=part(3,armor,0,0,BrickColor.new("Really black"),"Part31",vt(2,2,2)) prt31.Material="Granite"
578
prt32=part(3,armor,0,0,BrickColor.new("Really black"),"Part32",vt(2,2,2)) prt32.Material="Granite"
579
prt33=part(3,armor,0,0,BrickColor.new("Really black"),"Part33",vt(2,2,2)) prt33.Material="Granite" --main left arm
580
prt34=part(3,armor,0,0,BrickColor.new("Really black"),"Part34",vt(2,2,2)) prt34.Material="Granite"
581
prt35=part(3,armor,0,0,BrickColor.new("Really black"),"Part35",vt(2,2,2)) prt35.Material="Granite" --second right arm point
582
prt36=part(3,armor,0,0,BrickColor.new("Really black"),"Part36",vt(2,2,2)) prt36.Material="Granite"
583
prt37=part(3,armor,0,0,BrickColor.new("Really black"),"Part37",vt(2,2,2)) prt37.Material="Granite"
584
prt38=part(3,armor,0,0,BrickColor.new("Really black"),"Part38",vt(2,2,2)) prt38.Material="Granite" --third right arm point
585
prt39=part(3,armor,0,0,BrickColor.new("Really black"),"Part39",vt(2,2,2)) prt39.Material="Granite"
586
prt40=part(3,armor,0,0,BrickColor.new("Really black"),"Part40",vt(2,2,2)) prt40.Material="Granite"
587
prt41=part(3,armor,0,0,BrickColor.new("Really black"),"Part41",vt(2,2,2)) prt41.Material="Granite"
588
prt42=part(3,armor,0,0,BrickColor.new("Really black"),"Part42",vt(2,2,2)) prt42.Material="Granite"
589
prt43=part(3,armor,0,0,BrickColor.new("Really black"),"Part43",vt(2,2,2)) prt43.Material="Granite" --fourth right arm point
590
prt44=part(3,armor,0,0,BrickColor.new("Really black"),"Part44",vt(2,2,2)) prt44.Material="Granite"
591
prt45=part(3,armor,0,0,BrickColor.new("Really black"),"Part45",vt(2,2,2)) prt45.Material="Granite"
592
prt46=part(3,armor,0,0,BrickColor.new("Really black"),"Part46",vt(2,2,2)) prt46.Material="Granite"
593
594
msh1=mesh("SpecialMesh",prt1,"FileMesh","62740878",vt(0,0,0),vt(80,50,80))
595
msh2=mesh("SpecialMesh",prt2,"Sphere","nil",vt(0,0,0),vt(5,10,10))
596
msh3=mesh("SpecialMesh",prt3,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
597
msh4=mesh("SpecialMesh",prt4,"Sphere","nil",vt(0,0,0),vt(5,10,10))
598
msh5=mesh("SpecialMesh",prt5,"Sphere","nil",vt(0,0,0),vt(4,8.5,8.5))
599
msh6=mesh("SpecialMesh",prt6,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
600
msh7=mesh("SpecialMesh",prt7,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
601
msh8=mesh("SpecialMesh",prt8,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
602
msh9=mesh("SpecialMesh",prt9,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
603
msh10=mesh("SpecialMesh",prt10,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
604
msh11=mesh("SpecialMesh",prt11,"FileMesh","9756362",vt(0,0,0),vt(20,90,20))
605
msh12=mesh("SpecialMesh",prt12,"FileMesh","9756362",vt(0,0,0),vt(20,100,27.5))
606
msh13=mesh("SpecialMesh",prt13,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
607
msh14=mesh("SpecialMesh",prt14,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
608
msh15=mesh("SpecialMesh",prt15,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
609
msh16=mesh("SpecialMesh",prt16,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
610
msh17=mesh("SpecialMesh",prt17,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
611
msh18=mesh("SpecialMesh",prt18,"FileMesh","9756362",vt(0,0,0),vt(12.5,90,12.5))
612
msh19=mesh("SpecialMesh",prt19,"Sphere","nil",vt(0,0,0),vt(65,65,65))
613
msh20=mesh("SpecialMesh",prt20,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
614
msh21=mesh("CylinderMesh",prt21,"nil","nil",vt(0,0,0),vt(50,30,50))
615
msh22=mesh("SpecialMesh",prt22,"Sphere","nil",vt(0,0,0),vt(50,50,50))
616
msh23=mesh("SpecialMesh",prt23,"Sphere","nil",vt(0,0,0),vt(50,50,50))
617
msh24=mesh("CylinderMesh",prt24,"nil","nil",vt(0,0,0),vt(65,10,65))
618
msh25=mesh("SpecialMesh",prt25,"Sphere","nil",vt(0,0,0),vt(65,65,65))
619
msh26=mesh("SpecialMesh",prt26,"Sphere","nil",vt(0,0,0),vt(65,65,65))
620
msh27=mesh("SpecialMesh",prt27,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
621
msh28=mesh("SpecialMesh",prt28,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
622
msh29=mesh("CylinderMesh",prt29,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
623
msh30=mesh("SpecialMesh",prt30,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
624
msh31=mesh("SpecialMesh",prt31,"Sphere","nil",vt(0,0,0),vt(85,85,85))
625
msh32=mesh("SpecialMesh",prt32,"FileMesh","1290033",vt(0,0,0),vt(90,90,90))
626
msh33=mesh("SpecialMesh",prt33,"Sphere","nil",vt(0,0,0),vt(65,65,65))
627
msh34=mesh("SpecialMesh",prt34,"FileMesh","1323306",vt(0,0,0),vt(100,100,100))
628
msh35=mesh("CylinderMesh",prt35,"nil","nil",vt(0,0,0),vt(50,30,50))
629
msh36=mesh("SpecialMesh",prt36,"Sphere","nil",vt(0,0,0),vt(50,50,50))
630
msh37=mesh("SpecialMesh",prt37,"Sphere","nil",vt(0,0,0),vt(50,50,50))
631
msh38=mesh("CylinderMesh",prt38,"nil","nil",vt(0,0,0),vt(65,10,65))
632
msh39=mesh("SpecialMesh",prt39,"Sphere","nil",vt(0,0,0),vt(65,65,65))
633
msh40=mesh("SpecialMesh",prt40,"Sphere","nil",vt(0,0,0),vt(65,65,65))
634
msh41=mesh("SpecialMesh",prt41,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
635
msh42=mesh("SpecialMesh",prt42,"FileMesh","1033714",vt(0,0,0),vt(12.5,160,12.5))
636
msh43=mesh("CylinderMesh",prt43,"nil","nil",vt(0,0,0),vt(52.5,60,52.5))
637
msh44=mesh("SpecialMesh",prt44,"Sphere","nil",vt(0,0,0),vt(52.5,52.5,52.5))
638-
local CurrentHealth = math.hugee
638+
639-
Humanoid.MaxHealth  =CurrentHealth
639+
640-
Humanoid.Health  =CurrentHealth
640+
641
local wld1=weld(prt1,prt1,Head,euler(0,math.rad(180),0)*cf(-4.597,-46.367,0))
642
local wld2=weld(prt1,prt2,Head,euler(0,math.rad(90+(90-65)),0)*cf(23.772,0,-50.979))
643
local wld3=weld(prt1,prt3,Head,euler(0,math.rad(90+(90-65)),0)*cf(24.406,0,-52.339))
644
local wld4=weld(prt1,prt4,Head,euler(0,math.rad(65),0)*cf(-23.772,0,-50.979))
645
local wld5=weld(prt1,prt5,Head,euler(0,math.rad(65),0)*cf(-24.406,0,-52.339))
646
local wld6=weld(prt1,prt6,Torso,euler(math.rad(63.644),0,0)*cf(0,-118.531,124.184))
647
local wld7=weld(prt1,prt7,Torso,euler(math.rad(-90-165.516),0,0)*cf(0,-1.816,157.992))
648
local wld8=weld(prt1,prt8,Torso,euler(math.rad(171.785),0,0)*cf(-3.372,67.659,3.285))
649
local wld9=weld(prt1,prt9,Torso,euler(math.rad(-90-55),math.rad(-90-65),0)*cf(-32.5,66.459,35.483))
650
local wld10=weld(prt1,prt10,Torso,euler(math.rad(-90-60),math.rad(-90-115),0)*cf(32.5,66.459,35.483))
651
local wld11=weld(prt1,prt11,Torso,euler(0,math.rad(45),0)*cf(0,0,-104.75))
652
local wld12=weld(prt1,prt12,Torso,euler(0,math.rad(90),0)*cf(0,0,-104.75))
653
local wld13=weld(prt1,prt13,Torso,euler(0,math.rad(90),math.rad(-35))*cf(32.009,-22.413,-88.007))
654
local wld14=weld(prt1,prt14,Torso,euler(0,math.rad(90),math.rad(35))*cf(-32.009,-22.413,-88.007))
655
local wld15=weld(prt1,prt15,Torso,euler(0,math.rad(90),math.rad(90))*cf(32.075,0,-88.007))
656
local wld16=weld(prt1,prt16,Torso,euler(0,math.rad(90),math.rad(-90))*cf(-32.075,0,-88.007))
657
local wld17=weld(prt1,prt17,Torso,euler(0,math.rad(90),math.rad(90-35))*cf(32.009,22.413,-88.007))
658
local wld18=weld(prt1,prt18,Torso,euler(0,math.rad(90),math.rad(-90+35))*cf(-32.009,22.413,-88.007))
659
local wld19=weld(prt1,prt19,Torso,euler(0,0,0)*cf(94,-47.5,-2.248))
660
local wld20=weld(prt1,prt20,prt19,euler(math.rad(90),math.rad(-90+75),0)*cf(21.417,0,79.93))
661
local wld21=weld(prt1,prt21,prt19,euler(0,0,math.rad(90))*cf(74.25,0,0))
662
local wld22=weld(prt1,prt22,prt21,euler(0,0,0)*cf(0,-30,0))
663
local wld23=weld(prt1,prt23,prt21,euler(0,0,0)*cf(0,30,0))
664
local wld24=weld(prt1,prt24,prt21,euler(0,0,0)*cf(0,90.25,0))
665
local wld25=weld(prt1,prt25,prt24,euler(0,0,0)*cf(0,10,0))
666
local wld26=weld(prt1,prt26,prt24,euler(0,0,0)*cf(0,-10,0))
667
local wld27=weld(prt1,prt27,prt24,euler(0,0,math.rad(-90))*cf(88.5,0,0))
668
local wld28=weld(prt1,prt28,prt24,euler(0,0,math.rad(90))*cf(-88.5,0,0))
669
local wld29=weld(prt1,prt29,prt24,euler(0,0,0)*cf(0,125,0))
670
local wld30=weld(prt1,prt30,prt29,euler(0,0,0)*cf(0,-60,0))
671
local wld31=weld(prt1,prt31,prt29,euler(0,0,0)*cf(0,130,0))
672
local wld32=weld(prt1,prt32,prt29,euler(0,0,0)*cf(0,130,0))
673
local wld33=weld(prt1,prt33,Torso,euler(0,0,0)*cf(-94,-47.5,-2.248))
674
local wld34=weld(prt1,prt34,prt33,euler(math.rad(-90),math.rad(-90-75),0)*cf(-21.417,0,79.93))
675
local wld35=weld(prt1,prt35,prt33,euler(0,0,math.rad(90))*cf(-74.25,0,0))
676
local wld36=weld(prt1,prt36,prt35,euler(0,0,0)*cf(0,30,0))
677
local wld37=weld(prt1,prt37,prt35,euler(0,0,0)*cf(0,-30,0))
678
local wld38=weld(prt1,prt38,prt35,euler(0,0,0)*cf(0,-90.25,0))
679
local wld39=weld(prt1,prt39,prt38,euler(0,0,0)*cf(0,-10,0))
680
local wld40=weld(prt1,prt40,prt38,euler(0,0,0)*cf(0,10,0))
681
local wld41=weld(prt1,prt41,prt38,euler(0,0,math.rad(-90))*cf(88.5,0,0))
682
local wld42=weld(prt1,prt42,prt38,euler(0,0,math.rad(90))*cf(-88.5,0,0))
683
local wld43=weld(prt1,prt43,prt38,euler(0,0,0)*cf(0,-125,0))
684
local wld44=weld(prt1,prt44,prt43,euler(0,0,0)*cf(0,60,0))
685
local wld45=weld(prt1,prt45,prt43,euler(0,0,0)*cf(0,-130,0))
686
local wld46=weld(prt1,prt46,prt43,euler(0,0,0)*cf(0,-130,0))
687
688
--[[wld19.C0=clerp(wld19.C0,euler(0,0,0)*cf(94,-47.5,-2.248),.3)
689
wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0),.3)
690
wld24.C0=clerp(wld24.C0,euler(0,0,0)*cf(0,90.25,0),.3)
691
wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),.3)
692
693
wld33.C0=clerp(wld33.C0,euler(0,0,0)*cf(-94,-47.5,-2.248),.3)
694
wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0),.3)
695
wld38.C0=clerp(wld38.C0,euler(0,0,0)*cf(0,-90.25,0),.3)
696
wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),.3)]]
697
698
local effects=it("Model",Character)
699
effects.Name="Effects"
700
701
local refs2={}
702
local createref=true
703
if workspace:findFirstChild("SnowfRef",true) ~= nil then 
704
createref=false
705
end 
706
local refs=it("Model",nil)
707
refs.Name="SnowfRef"
708
709
--circle size 170,170,170
710
711
Ref1=part(0,refs,0,1,BrickColor.new("Black"),"Ref1",vt(210,210,210)) Ref1.CanCollide=true Ref1.Anchored=true Ref1.Shape="Ball"
712
Ref2=part(0,refs,0,1,BrickColor.new("Black"),"Ref2",vt(119,119,119)) Ref2.CanCollide=true Ref2.Anchored=true Ref2.Shape="Ball"
713
Ref3=part(0,refs,0,1,BrickColor.new("Black"),"Ref3",vt(130,130,130)) Ref3.CanCollide=true Ref3.Anchored=true Ref3.Shape="Ball"
714
Ref4=part(0,refs,0,1,BrickColor.new("Black"),"Ref4",vt(130,100,100)) Ref4.CanCollide=true Ref4.Anchored=true Ref4.Shape="Cylinder"
715
Ref5=part(0,refs,0,1,BrickColor.new("Black"),"Ref5",vt(130,130,130)) Ref5.CanCollide=true Ref5.Anchored=true Ref5.Shape="Ball"
716
Ref6=part(0,refs,0,1,BrickColor.new("Black"),"Ref6",vt(160,105,105)) Ref6.CanCollide=true Ref6.Anchored=true Ref6.Shape="Cylinder"
717
Ref7=part(0,refs,0,1,BrickColor.new("Black"),"Ref7",vt(170,170,170)) Ref7.CanCollide=true Ref7.Anchored=true Ref7.Shape="Ball"
718
Ref8=part(0,refs,0,1,BrickColor.new("Black"),"Ref8",vt(130,130,130)) Ref8.CanCollide=true Ref8.Anchored=true Ref8.Shape="Ball"
719
Ref9=part(0,refs,0,1,BrickColor.new("Black"),"Ref9",vt(130,100,100)) Ref9.CanCollide=true Ref9.Anchored=true Ref9.Shape="Cylinder"
720
Ref10=part(0,refs,0,1,BrickColor.new("Black"),"Ref10",vt(130,130,130)) Ref10.CanCollide=true Ref10.Anchored=true Ref10.Shape="Ball"
721
Ref11=part(0,refs,0,1,BrickColor.new("Black"),"Ref11",vt(160,105,105)) Ref11.CanCollide=true Ref11.Anchored=true Ref11.Shape="Cylinder"
722
Ref12=part(0,refs,0,1,BrickColor.new("Black"),"Ref12",vt(170,170,170)) Ref12.CanCollide=true Ref12.Anchored=true Ref12.Shape="Ball"
723
724
if createref==false then
725
refs=workspace.SnowfRef
726
Ref1=refs.Ref1
727
Ref2=refs.Ref2
728
Ref3=refs.Ref3
729
Ref4=refs.Ref4
730
Ref5=refs.Ref5
731
Ref6=refs.Ref6
732
Ref7=refs.Ref7
733
Ref8=refs.Ref8
734
Ref9=refs.Ref9
735
Ref10=refs.Ref10
736
Ref11=refs.Ref11
737
Ref12=refs.Ref12
738
else
739
--refs.Parent=workspace
740
end
741
742
--[[R1wld=weld(Ref1,Ref1,Torso,euler(0,0,0)*cf(0,0,0))
743
R2wld=weld(Ref2,Ref2,Head,euler(0,0,0)*cf(0,0,0))
744
R3wld=weld(Ref3,Ref3,prt19,euler(0,0,0)*cf(0,0,0))
745
R4wld=weld(Ref4,Ref4,prt21,euler(0,0,0)*cf(0,0,0))
746
R5wld=weld(Ref5,Ref5,prt24,euler(0,0,0)*cf(0,0,0))
747
R6wld=weld(Ref6,Ref6,prt29,euler(0,0,0)*cf(0,0,0))
748
R7wld=weld(Ref7,Ref7,prt31,euler(0,0,0)*cf(0,0,0))
749
R8wld=weld(Ref8,Ref8,prt33,euler(0,0,0)*cf(0,0,0))
750
R9wld=weld(Ref9,Ref9,prt35,euler(0,0,0)*cf(0,0,0))
751
R10wld=weld(Ref10,Ref10,prt38,euler(0,0,0)*cf(0,0,0))
752
R11wld=weld(Ref11,Ref11,prt43,euler(0,0,0)*cf(0,0,0))
753
R12wld=weld(Ref12,Ref12,prt45,euler(0,0,0)*cf(0,0,0))]]
754
table.insert(refs2,{Ref1,Torso,cf(0,0,0)})
755
table.insert(refs2,{Ref2,Head,cf(0,0,0)})
756
table.insert(refs2,{Ref3,prt19,cf(0,0,0)})
757
table.insert(refs2,{Ref4,prt21,euler(0,0,math.rad(90))})
758
table.insert(refs2,{Ref5,prt24,cf(0,0,0)})
759
table.insert(refs2,{Ref6,prt29,euler(0,0,math.rad(90))})
760
table.insert(refs2,{Ref7,prt31,cf(0,0,0)})
761
table.insert(refs2,{Ref8,prt33,cf(0,0,0)})
762
table.insert(refs2,{Ref9,prt35,euler(0,0,math.rad(90))})
763
table.insert(refs2,{Ref10,prt38,cf(0,0,0)})
764
table.insert(refs2,{Ref11,prt43,euler(0,0,math.rad(90))})
765
table.insert(refs2,{Ref12,prt45,cf(0,0,0)})
766
767
for _,c in pairs(armor:children()) do
768
table.insert(armorparts,c)
769
end
770
--[[for _,c in pairs(modelzorz:children()) do
771
table.insert(weaponparts,c)
772
end]]
773
for _,c in pairs(prt1:children()) do
774
table.insert(weaponwelds,c)
775
end
776
local hitbox=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
777
--hitbox.Anchored=true
778
local hitbox2=part(3,nil,0,1,BrickColor.new("Black"),"Hitbox",vt(1,1,1))
779
hitbox2.Anchored=true
780
local hitboxCF=cf(0,0,0)
781
782
--TehHealth=500+(#game.Players:GetChildren()*20)
783
local CurrentHealth=10000000000000000000000
784
Humanoid.MaxHealth=CurrentHealth
785
Humanoid.Health=CurrentHealth
786
local Stats=Instance.new("BoolValue")
787
Stats.Name="Stats"
788
Stats.Parent=Character
789
local Alive=Instance.new("BoolValue")
790
Alive.Name="Alive"
791
Alive.Parent=Character
792
Alive.Value=true
793
local Atk=Instance.new("NumberValue")
794
Atk.Name="Damage"
795
Atk.Parent=Stats
796
Atk.Value=1
797
local Def=Instance.new("NumberValue")
798
Def.Name="Defense"
799
Def.Parent=Stats
800
Def.Value=1
801
local Mvmt=Instance.new("NumberValue")
802
Mvmt.Name="Movement"
803
Mvmt.Parent=Stats
804
Mvmt.Value=1
805
local Block=Instance.new("BoolValue")
806
Block.Name="Block"
807
Block.Parent=Stats
808
Block.Value=false
809
local Stun=Instance.new("NumberValue")
810
Stun.Name="Stun"
811
Stun.Parent=Stats
812
Stun.Value=0
813
local StunT=Instance.new("NumberValue")
814
StunT.Name="StunThreshold"
815
StunT.Parent=Stats
816
StunT.Value=800
817
local Rooted=Instance.new("BoolValue")
818
Rooted.Name="Rooted"
819
Rooted.Parent=Stats
820
Rooted.Value=false
821
local Stunned=Instance.new("BoolValue")
822
Stunned.Name="Stunned"
823
Stunned.Parent=Stats
824
Stunned.Value=false
825
local Stagger=Instance.new("BoolValue")
826
Stagger.Name="Stagger"
827
Stagger.Parent=Stats
828
Stagger.Value=false
829
local StaggerHit=Instance.new("BoolValue")
830
StaggerHit.Name="StaggerHit"
831
StaggerHit.Parent=Stats
832
StaggerHit.Value=false
833
local Decrease=Instance.new("BoolValue")
834
Decrease.Name="Decrease"
835
Decrease.Parent=Stats
836
Decrease.Value=false
837
local mana=Instance.new("NumberValue")
838
mana.Name="Mana"
839
mana.Parent=Stats
840
mana.Value=0
841
local boss=Instance.new("BoolValue")
842
boss.Name="Boss"
843
boss.Parent=Stats
844
boss.Value=true
845
local ungrab=Instance.new("BoolValue")
846
ungrab.Name="Ungrabbable"
847
ungrab.Parent=Stats
848
ungrab.Value=true
849
850
local Cryst1=it("Model",nil)
851
Cryst1.Name="Crystal"
852
local C1Head=part(0,Cryst1,0,0,BrickColor.new("Pastel light blue"),"Head",vt(5,10,5)) C1Head.Anchored=true
853
local C1msh=mesh("SpecialMesh",C1Head,"FileMesh","9756362",vt(0,0,0),vt(10,20,10))
854
local C1Torso=part(0,Cryst1,0,.5,BrickColor.new("Pastel light blue"),"Torso",vt()) C1Torso.Anchored=true
855
local C1msh=mesh("SpecialMesh",C1Torso,"FileMesh","9756362",vt(0,0,0),vt(-20,-50,-20))
856
local C1S=Stats:Clone() C1S.Parent=Cryst1
857
local Cryst2=it("Model",nil) Cryst2.Name="Crystal"
858
local C2Head=C1Head:Clone() C2Head.Parent=Cryst2
859
local C2Torso=C1Torso:Clone() C2Torso.Parent=Cryst2
860
local C2S=Stats:Clone() C2S.Parent=Cryst2
861
local Cryst3=it("Model",nil) Cryst3.Name="Crystal"
862
local C3Head=C1Head:Clone() C3Head.Parent=Cryst3
863
local C3Torso=C1Torso:Clone() C3Torso.Parent=Cryst3
864
local C3S=Stats:Clone() C3S.Parent=Cryst3
865
local Cryst4=it("Model",nil) Cryst4.Name="Crystal"
866
local C4Head=C1Head:Clone() C4Head.Parent=Cryst4
867
local C4Torso=C1Torso:Clone() C4Torso.Parent=Cryst4
868
local C4S=Stats:Clone() C4S.Parent=Cryst4
869
local C1Neck=weld(C1Torso,C1Torso,C1Head,euler(0,0,0)*cf(0,0,0))
870
local C2Neck=weld(C2Torso,C2Torso,C2Head,euler(0,0,0)*cf(0,0,0))
871
local C3Neck=weld(C3Torso,C3Torso,C3Head,euler(0,0,0)*cf(0,0,0))
872
local C4Neck=weld(C4Torso,C4Torso,C4Head,euler(0,0,0)*cf(0,0,0))
873
local C1Hum=it("Humanoid")
874
local C2Hum=it("Humanoid")
875
local C3Hum=it("Humanoid")
876
local C4Hum=it("Humanoid")
877
local C1a=false
878
local C2a=false
879
local C3a=false
880
local C4a=false
881
882
so = function(id,par,vol,pit) 
883
local sou = Instance.new("Sound",par or workspace)
884
sou.Volume=vol
885
sou.Pitch=pit or 1
886
sou.SoundId="http://www.roblox.com/asset/?id="..id
887
--swait() 
888
sou:play() 
889
game:GetService("Debris"):AddItem(sou,6)
890
end
891
892
local function CFrameFromTopBack(at, top, back)
893
local right = top:Cross(back)
894
return CFrame.new(at.x, at.y, at.z,
895
right.x, top.x, back.x,
896
right.y, top.y, back.y,
897
right.z, top.z, back.z)
898
end
899
900
function Triangle(a, b, c)
901
local edg1 = (c-a):Dot((b-a).unit)
902
local edg2 = (a-b):Dot((c-b).unit)
903
local edg3 = (b-c):Dot((a-c).unit)
904
if edg1 <= (b-a).magnitude and edg1 >= 0 then
905
a, b, c = a, b, c
906
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
907
a, b, c = b, c, a
908
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
909
a, b, c = c, a, b
910
else 
911
assert(false, "unreachable")
912
end
913
914
local len1 = (c-a):Dot((b-a).unit)
915
local len2 = (b-a).magnitude - len1
916
local width = (a + (b-a).unit*len1 - c).magnitude
917
918
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
919
920
local list = {}
921
922
if len1 > 0.01 then
923
local w1 = Instance.new('WedgePart', m)
924
w1.Name = "Triangle"
925
game:GetService("Debris"):AddItem(w1,5)
926
w1.Material = "SmoothPlastic"
927
w1.FormFactor = 'Custom'
928
w1.BrickColor = BrickColor.new("Teal")
929
w1.Transparency = 0
930
w1.Reflectance = 0
931
w1.Material = "SmoothPlastic"
932
w1.CanCollide = false
933
NoOutline(w1)
934
local sz = Vector3.new(0.2, width, len1)
935
w1.Size = sz
936
local sp = Instance.new("SpecialMesh",w1)
937
sp.MeshType = "Wedge"
938
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
939
w1:BreakJoints()
940
w1.Anchored = true
941
w1.Parent = workspace
942
w1.Transparency = 0.7
943
table.insert(Effects,{w1,"Disappear",.05})
944
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
945
table.insert(list,w1)
946
end
947
948
if len2 > 0.01 then
949
local w2 = Instance.new('WedgePart', m)
950
w2.Name = "Triangle"
951
game:GetService("Debris"):AddItem(w2,5)
952
w2.Material = "SmoothPlastic"
953
w2.FormFactor = 'Custom'
954
w2.BrickColor = BrickColor.new("Teal")
955
w2.Transparency = 0
956
w2.Reflectance = 0
957
w2.Material = "SmoothPlastic"
958
w2.CanCollide = false
959
NoOutline(w2)
960
local sz = Vector3.new(0.2, width, len2)
961
w2.Size = sz
962
local sp = Instance.new("SpecialMesh",w2)
963
sp.MeshType = "Wedge"
964
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
965
w2:BreakJoints()
966
w2.Anchored = true
967
w2.Parent = workspace
968
w2.Transparency = 0.7
969
table.insert(Effects,{w2,"Disappear",.05})
970
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
971
table.insert(list,w2)
972
end
973
return unpack(list)
974
end
975
976
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type)
977
local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
978
prt.Anchored=true
979
prt.CFrame=cframe
980
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
981
game:GetService("Debris"):AddItem(prt,10)
982
if Type==1 or Type==nil then
983
table.insert(Effects,{prt,"Block1",delay,x3,y3,z3,msh})
984
elseif Type==2 then
985
table.insert(Effects,{prt,"Block2",delay,x3,y3,z3,msh})
986
end
987
end
988
989
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
990
local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
991
prt.Anchored=true
992
prt.CFrame=cframe
993
local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
994
game:GetService("Debris"):AddItem(prt,10)
995
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
996
end
997
998
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,push)
999
local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
1000
prt.Anchored=true
1001
prt.CFrame=cframe
1002
local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
1003
game:GetService("Debris"):AddItem(prt,10)
1004
table.insert(Effects,{prt,"Blood",delay,x3,y3,z3,msh,push})
1005
end
1006
1007
function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1008
local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1009
prt.Anchored=true
1010
prt.CFrame=cframe*cf(x2,y2,z2)
1011
local msh=mesh("SpecialMesh",prt,"FileMesh","3270017",vt(0,0,0),vt(x1,y1,z1))
1012
game:GetService("Debris"):AddItem(prt,10)
1013
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
1014
end
1015
1016
function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1017
local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
1018
prt.Anchored=true
1019
prt.CFrame=cframe
1020
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1021
game:GetService("Debris"):AddItem(prt,10)
1022
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
1023
end
1024
1025
function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1026
local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
1027
prt.Anchored=true
1028
prt.CFrame=cframe
1029
local msh=mesh("SpecialMesh",prt,"Head","nil",vt(0,0,0),vt(x1,y1,z1))
1030
game:GetService("Debris"):AddItem(prt,10)
1031
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
1032
end
1033
1034
function ClangEffect(brickcolor,cframe,duration,decrease,size,power)
1035
local prt=part(3,effects,0,1,brickcolor,"Effect",vt())
1036
prt.Anchored=true
1037
prt.CFrame=cframe
1038
local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(5,5,5))
1039
game:GetService("Debris"):AddItem(prt,10)
1040
table.insert(Effects,{prt,"CylinderClang",duration,decrease,size,power,prt.CFrame,nil})
1041
end
1042
1043
function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1044
local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
1045
prt.Anchored=true
1046
prt.CFrame=cframe
1047
local msh=mesh("SpecialMesh",prt,"FileMesh","20329976",vt(0,0,0),vt(x1,y1,z1))
1048
game:GetService("Debris"):AddItem(prt,10)
1049
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
1050
end
1051
1052
function MagicWave2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1053
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1054
prt.Anchored=true
1055
prt.CFrame=cframe
1056
local msh=mesh("SpecialMesh",prt,"FileMesh","1323306",vt(0,0,0),vt(x1,y1,z1))
1057
game:GetService("Debris"):AddItem(prt,10)
1058
table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3,msh,0})
1059
end
1060
1061
function MagicCrystal(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1062
local prt=part(3,effects,0,0,brickcolor,"Effect",vt())
1063
prt.Anchored=true
1064
prt.CFrame=cframe
1065
local msh=mesh("SpecialMesh",prt,"FileMesh","9756362",vt(0,0,0),vt(x1,y1,z1))
1066
game:GetService("Debris"):AddItem(prt,10)
1067
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh})
1068
end
1069
1070
function BreakEffect(brickcolor,cframe,x1,y1,z1)
1071
local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1072
prt.Anchored=true
1073
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1074
game:GetService("Debris"):AddItem(prt,10)
1075
local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
1076
local num=math.random(10,50)/1000
1077
table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
1078
--table.insert(Effects,{prt,"Shatter",.02,msh})
1079
--[[
1080
1=prt
1081
2=Shatter
1082
3=.02
1083
4=Thing[1].CFrame
1084
5=randnum
1085
6=Numbb
1086
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
1087
CF=Part.CFrame
1088
Numbb=0
1089
randnumb=math.random()-math.random()
1090
for i=0,1,0.05 do
1091
wait()
1092
CF=CF*cf(0,1,0)
1093
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
1094
Part.CFrame=CF*euler(Numbb,0,0)
1095
Part.Transparency=i
1096
Numbb=Numbb+randnumb
1097
end
1098
Part.Parent=nil
1099
end),prt,CF,Numbb,randnumb)]]
1100
end
1101
1102
function BreakEffect2(brickcolor,cframe,x1,y1,z1)
1103
local prt=part(3,effects,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1104
prt.Anchored=true
1105
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1106
game:GetService("Debris"):AddItem(prt,10)
1107
local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
1108
local num=math.random(10,50)/1000
1109
table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(300,1000)/100})
1110
end
1111
1112
1113
--Break effect. Credits to whoever made it
1114
local MaxPieces = 10
1115
local Explode = true
1116
local Connection = nil
1117
function IsWhole(Number)
1118
	return math.ceil(Number) == Number
1119
end
1120
function ChangeAxis(Vector,Axis,Value)
1121
	if(Axis == "x")then
1122
		return Vector3.new(Value,Vector.y,Vector.z)
1123
	end
1124
	if(Axis == "y")then
1125
		return Vector3.new(Vector.x,Value,Vector.z)
1126
	end
1127
	if(Axis == "z")then
1128
		return Vector3.new(Vector.x,Vector.y,Value)
1129
	end
1130
end
1131
function Break(mouse)
1132
	local Targ = mouse
1133
	local oldParent = mouse.Parent
1134
	local FF = 1
1135
	if(Targ.formFactor == Enum.FormFactor.Symmetric)then
1136
		FF = 1 
1137
	end
1138
	if(Targ.formFactor == Enum.FormFactor.Brick)then
1139
		FF = 1.2
1140
	end
1141
	if(Targ.formFactor == Enum.FormFactor.Plate)then
1142
		FF = 0.4 
1143
	end
1144
	local New = Targ:Clone()
1145
	local Rotation = Targ.CFrame - Targ.CFrame.p
1146
	local SizeFactorX = 1
1147
	local SizeFactorY = FF
1148
	local SizeFactorZ = 1
1149
	local Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
1150
	while Extra > 1 do
1151
		SizeFactorX = SizeFactorX * 2
1152
		SizeFactorY = SizeFactorY * 2
1153
		SizeFactorZ = SizeFactorZ * 2
1154
		if(SizeFactorX > Targ.Size.x)then
1155
			SizeFactorX = Targ.Size.x
1156
		end
1157
		if(SizeFactorY > Targ.Size.y)then
1158
			SizeFactorY = Targ.Size.y
1159
		end
1160
		if(SizeFactorZ > Targ.Size.z)then
1161
			SizeFactorZ = Targ.Size.z
1162
		end
1163
		Extra = (Targ.Size.x*Targ.Size.y*Targ.Size.z/(SizeFactorX*SizeFactorY*SizeFactorZ))/MaxPieces
1164
	end
1165
	local Start = Targ.Position - (Targ.CFrame.lookVector * (Targ.Size.z/2 + (SizeFactorZ / 2)))-((Targ.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector * (Targ.Size.x/2 + (SizeFactorX / 2)))-((Targ.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * (Targ.Size.y/2 + (SizeFactorY/2)))
1166
	New.Size = Vector3.new(SizeFactorX,SizeFactorY,SizeFactorZ)
1167
	New.Anchored = false
1168
	local OverShootZ = (Targ.Size.z/SizeFactorZ) - math.floor(Targ.Size.z/SizeFactorZ)
1169
	local OverShootX = (Targ.Size.x/SizeFactorX) - math.floor(Targ.Size.x/SizeFactorX)
1170
	local OverShootY = (Targ.Size.y/SizeFactorY) - math.floor(Targ.Size.y/SizeFactorY)
1171
	----print("SizeFactor",SizeFactorX,SizeFactorY,SizeFactorZ)
1172
	----print("OverShoot",OverShootX,OverShootY,OverShootZ)
1173
	for z = 1,math.ceil(Targ.Size.z/SizeFactorZ) do
1174
		if(OverShootZ > 0)then
1175
			if(z == math.ceil(Targ.Size.z/SizeFactorZ))then
1176
				z = z - ((1 - OverShootZ) / 2)
1177
				New.Size = ChangeAxis(New.Size,"z",OverShootZ * SizeFactorZ)
1178
			else
1179
				New.Size = ChangeAxis(New.Size,"z",SizeFactorZ)
1180
			end
1181
		end
1182
		for y = 1,math.ceil(Targ.Size.y/SizeFactorY) do
1183
			if(OverShootY > 0)then
1184
				if(y == math.ceil(Targ.Size.y/SizeFactorY))then
1185
					y = y - ((1 - OverShootY) / 2)
1186
					New.Size = ChangeAxis(New.Size,"y",OverShootY * SizeFactorY)
1187
				else
1188
					New.Size = ChangeAxis(New.Size,"y",SizeFactorY)
1189
				end
1190
			end
1191
			for x = 1,math.ceil(Targ.Size.x/SizeFactorX) do
1192
				if(OverShootX > 0)then
1193
					if(x == math.ceil(Targ.Size.x/SizeFactorX))then
1194
						x = x - ((1 - OverShootX) / 2)
1195
						New.Size = ChangeAxis(New.Size,"x",OverShootX * SizeFactorX)
1196
					else
1197
						New.Size = ChangeAxis(New.Size,"x",SizeFactorX)
1198
					end
1199
				end
1200
				local N = New:Clone()
1201
				N.CFrame = CFrame.new(Start + (Targ.CFrame.lookVector * z * SizeFactorZ)+((Targ.CFrame * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)).lookVector * x * SizeFactorX)+((Targ.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)).lookVector * y * SizeFactorY))*Rotation
1202
				--N.Parent = oldParent
1203
				N.Parent = workspace
1204
				N.CanCollide = false
1205
				N.Velocity = vt(math.random(-300,300),math.random(-20,40),math.random(-300,300))
1206
				N.RotVelocity = vt(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)
1207
				game:GetService("Debris"):AddItem(N,5)
1208
			end
1209
		end
1210
	end
1211
	Targ:Remove()
1212
end
1213
1214
1215
1216
local BodGy=Instance.new("BodyGyro")
1217
BodGy.maxTorque=Vector3.new(0,4e+005,0)
1218
BodGy.P=2000
1219
BodGy.D=100
1220
BodGy.Name="SiegmundGyro"
1221
CF=RootPart.CFrame
1222
BodGy.Parent=RootPart
1223
BodGy.cframe=CF
1224
1225
sizeseq=ns({nsk(0,4),nsk(.027,8.5),nsk(.184,9),nsk(1,10)})
1226
transseq=ns({nsk(0,.375),nsk(.4,1),nsk(1,1)})
1227
local icicleparti1=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.2,sizeseq,"http://www.roblox.com/asset/?id=329766994",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),15,nr(-360,360),nr(-30,30),nr(3),20)
1228
sizeseq=ns({nsk(0,5),nsk(.025,7.7),nsk(.192,9),nsk(1,10)})
1229
transseq=ns({nsk(0,.8),nsk(.3,1),nsk(1,1)})
1230
local icicleparti2=particle(Torso,Color3.new(255/255,255/255,255/255),Color3.new(100/255,100/255,255/255),.3,sizeseq,"http://www.roblox.com/asset/?id=241594419",transseq,0,vt(0,-.5,0),0,false,0,"Bottom",false,nr(7,10),80,nr(-360,360),nr(-30,30),nr(3),20)
1231
sizeseq=ns({nsk(0,.328),nsk(.075,3.11),nsk(.206,4.97),nsk(1,10)})
1232
transseq=ns({nsk(0,.363),nsk(.107,1),nsk(1,1)})
1233
1234
--[[Neck.C0=euler(0,0,0)*cf(0,3,0)*euler(0,.6,0)*euler(-.2,0,0)
1235
RootJoint.C0=cf(0,-2,0)*euler(0,.6,0)
1236
RW.C0=cf(4.5,1.5,0)*euler(-.4,0,.5)*euler(0,0,0)
1237
RW.C1=cf(0,1.5,0)*euler(0,0,0)
1238
LW.C0=cf(-4.5,1.5,0)*euler(.2,0,-.5)
1239
LW.C1=cf(0,1.5,0)*euler(0,0,0)
1240
RH.C0=cf(1.5,-3,0)*euler(0,-.6,0)*euler(0,0,.1)
1241
RH.C1=cf(0,3,0)*euler(0,0,0)
1242
LH.C0=cf(-1.5,-3,0)*euler(0,.6,0)*euler(.1,0,0)
1243
LH.C1=cf(0,3,0)*euler(0,0,0)]]
1244
-- idle pose
1245
--[[Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
1246
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
1247
wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
1248
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),1)
1249
wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),1)
1250
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
1251
1252
wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
1253
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),1)
1254
wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),1)
1255
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)]]
1256
1257
--[[ old idle
1258
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),1)
1259
wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
1260
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
1261
wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),1)
1262
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
1263
1264
wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
1265
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
1266
wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
1267
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
1268
]]
1269
1270
--[[RootJoint.C0=clerp(RootJoint.C0,cf(-1.749,-200,0),1)
1271
wld19.C0=clerp(wld19.C0,euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
1272
wld21.C0=clerp(wld21.C0,euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8),1)
1273
wld24.C0=clerp(wld24.C0,euler(1.4,-.2,0)*cf(0,90.25,0),1)
1274
wld29.C0=clerp(wld29.C0,euler(0,0,0)*cf(0,125,0),1)
1275
1276
wld33.C0=clerp(wld33.C0,euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
1277
wld35.C0=clerp(wld35.C0,euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8),1)
1278
wld38.C0=clerp(wld38.C0,euler(-1.4,-.2,0)*cf(0,-90.25,0),1)
1279
wld43.C0=clerp(wld43.C0,euler(0,0,0)*cf(0,-125,0),1)]]
1280
msh3.Scale=vt(4,0,8.5)
1281
msh5.Scale=vt(4,0,8.5)
1282
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
1283
RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,.1)*cf(-1.749,-60,-30),1)
1284
wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),1)
1285
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.6)*euler(0,-.8,0)*euler(0,0,0),1)
1286
wld24.C0=wld24.C0:lerp(euler(1.4,.5,0)*cf(0,90.25,0),1)
1287
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),1)
1288
1289
wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),1)
1290
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.8)*euler(0,.8,0)*euler(.8,0,0),1)
1291
wld38.C0=wld38.C0:lerp(euler(-.6,1,0)*cf(0,-90.25,0),1)
1292
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),1)
1293
--[[local Ice1=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(57.75,136.17,57.77)) 
1294
Ice1.Material="Ice" 
1295
Ice1.Anchored=true 
1296
Ice1.CFrame=workspace.BossSpawn.CFrame*cf(144.341,286.773,15.162)
1297
local Ice2=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(89.99,35.13,77.57)) Ice2.Material="Ice" Ice2.Anchored=true
1298
Ice2.CFrame=workspace.BossSpawn.CFrame*cf(-53.887,-10.726,-155.145)
1299
local Ice3=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(164.4,63.01,89.76)) Ice3.Material="Ice" Ice3.Anchored=true
1300
Ice3.CFrame=workspace.BossSpawn.CFrame*cf(-107.848,12.137,-93.992)
1301
local Ice4=part(0,armor,.2,0,BrickColor.new("Fog"),"Ice",vt(25.2,179.13,34.57)) 
1302
Ice4.Material="Ice" 
1303
Ice4.Anchored=true 
1304
Ice4.CFrame=workspace.BossSpawn.CFrame*cf(319.875,454.041,179.418)]]
1305
--I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(144.341,286.773,15.162))
1306
--I1wld=weld(Ice1,RootPart,Ice1,euler(0,0,0)*cf(15.162,286.773))
1307
--local HMesh=mesh("SpecialMesh",Head,"Sphere","nil",vt(0,0,0),vt(59.5,59.5,59.5))
1308
1309
--[[local Neck=weld(Torso,Torso,Head,cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
1310
Neck.C1=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)]]
1311
--local Neck=weld(Torso,Torso,Head,euler(0,0,0)*cf(0,35,0))
1312
for i=0,1,0.05 do
1313
swait()
1314
msh3.Scale=vt(4,1+7.5*i,8.5)
1315
msh5.Scale=vt(4,1+7.5*i,8.5)
1316
end
1317
msh3.Scale=vt(4,8.5,8.5)
1318
msh5.Scale=vt(4,8.5,8.5)
1319
stunanim=true
1320
attack=true
1321
stunanim=false
1322
attack=false
1323
--[[for i=0,1,0.02 do
1324
swait()
1325
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.1)
1326
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.1)
1327
wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
1328
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
1329
wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
1330
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
1331
1332
wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
1333
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
1334
wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
1335
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)
1336
end]]
1337
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),1)
1338
--print("START BOSS BATTLE")
1339
1340
function TriIceShards()
1341
--for i=1,math.random(1,4) do
1342
local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1343
local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1344
local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1345
local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1346
local icepart1=part(3,effects,.5,0,BrickColor.new("Pearl"),"Ice",vt()) icepart1.Anchored=true
1347
i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
1348
icepart1.CFrame=dacf
1349
local icepart2=part(3,effects,.5,0,BrickColor.new("Pearl"),"Ice",vt()) icepart2.Anchored=true
1350
i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
1351
icepart2.CFrame=dacf2
1352
local icepart3=part(3,effects,.5,0,BrickColor.new("Pearl"),"Ice",vt()) icepart3.Anchored=true
1353
i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
1354
icepart3.CFrame=dacf3
1355
local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
1356
local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
1357
local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
1358
local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
1359
local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
1360
local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
1361
for i=0,1,0.1 do
1362
swait()
1363
icepart1.CFrame=dacf
1364
icepart2.CFrame=dacf2
1365
icepart3.CFrame=dacf3
1366
dacf=dacf*cf(0,math.random(500,1000)/10,0)
1367
dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
1368
dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
1369
end
1370
local target1,distance1=findRandomTorso(icepart1.Position)
1371
local target2,distance2=findRandomTorso(icepart2.Position)
1372
local target3,distance3=findRandomTorso(icepart3.Position)
1373
MagicBlock(BrickColor.new("Cyan"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
1374
MagicBlock(BrickColor.new("Cyan"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
1375
MagicBlock(BrickColor.new("Cyan"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
1376
if target1~=nil then
1377
so("333475957",icepart1,1,.9)
1378
local MouseLook=cf((icepart1.Position+target1.Position)/2,target1.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
1379
table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
1380
else
1381
icepart1.Parent=nil
1382
end
1383
if target2~=nil then
1384
so("333475957",icepart2,1,.9)
1385
local MouseLook=cf((icepart2.Position+target2.Position)/2,target2.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
1386
table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
1387
else
1388
icepart2.Parent=nil
1389
end
1390
if target3~=nil then
1391
so("333475957",icepart3,1,.9)
1392
local MouseLook=cf((icepart3.Position+target3.Position)/2,target3.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
1393
table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
1394
else
1395
icepart3.Parent=nil
1396
end
1397
--end
1398
end
1399
1400
function TriIceShards2()
1401
--for i=1,math.random(1,4) do
1402
local dacfm=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1403
--[[eul1=math.random(0,800)/1000 eul2=math.random(400,1200)/1000
1404
eul3=math.random(200,1000)/1000
1405
eul4=math.random(0,800)/1000 eul5=math.random(400,1200)/1000
1406
local dacf=Torso.CFrame*euler(-eul1,0,eul2)
1407
local dacf2=Torso.CFrame*euler(-eul3,0,0)
1408
local dacf3=Torso.CFrame*euler(-eul4,0,-eul5)]]
1409
local dacf=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1410
local dacf2=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1411
local dacf3=Torso.CFrame*euler(-1.57+math.random(60,120)/100,0,math.random(-80,80)/100)
1412
local icepart1=part(3,effects,.5,0,BrickColor.new("Pearl"),"Ice",vt()) icepart1.Anchored=true
1413
i1msh=mesh("SpecialMesh",icepart1,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
1414
icepart1.CFrame=dacf
1415
local icepart2=part(3,effects,.5,0,BrickColor.new("Pearl"),"Ice",vt()) icepart2.Anchored=true
1416
i2msh=mesh("SpecialMesh",icepart2,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
1417
icepart2.CFrame=dacf2
1418
local icepart3=part(3,effects,.5,0,BrickColor.new("Pearl"),"Ice",vt()) icepart3.Anchored=true
1419
i3msh=mesh("SpecialMesh",icepart3,"FileMesh","1778999",vt(0,0,0),vt(6,18,6))
1420
icepart3.CFrame=dacf3
1421
local partic1=icicleparti1:Clone() partic1.Parent=icepart1 partic1.Enabled=true
1422
local partic2=icicleparti2:Clone() partic2.Parent=icepart1 partic2.Enabled=true
1423
local partic3=icicleparti1:Clone() partic3.Parent=icepart2 partic3.Enabled=true
1424
local partic4=icicleparti2:Clone() partic4.Parent=icepart2 partic4.Enabled=true
1425
local partic5=icicleparti1:Clone() partic5.Parent=icepart3 partic5.Enabled=true
1426
local partic6=icicleparti2:Clone() partic6.Parent=icepart3 partic6.Enabled=true
1427
for i=0,1,0.1 do
1428
swait()
1429
icepart1.CFrame=dacf
1430
icepart2.CFrame=dacf2
1431
icepart3.CFrame=dacf3
1432
dacf=dacf*cf(0,math.random(500,1000)/10,0)
1433
dacf2=dacf2*cf(0,math.random(500,1000)/10,0)
1434
dacf3=dacf3*cf(0,math.random(500,1000)/10,0)
1435
end
1436
local target1,distance1=findNearestTorso(Head.Position)
1437
local target2,distance2=findNearestTorso(Head.Position)
1438
local target3,distance3=findNearestTorso(Head.Position)
1439
MagicBlock(BrickColor.new("Cyan"),cf(icepart1.Position),60,60,60,20,20,20,.1,1)
1440
MagicBlock(BrickColor.new("Cyan"),cf(icepart2.Position),60,60,60,20,20,20,.1,1)
1441
MagicBlock(BrickColor.new("Cyan"),cf(icepart3.Position),60,60,60,20,20,20,.1,1)
1442
if target1~=nil then
1443
so("333475957",icepart1,1,.9)
1444
local MouseLook=cf((icepart1.Position+target1.Position)/2,target1.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
1445
table.insert(Effects,{MouseLook,"ShootIce",200,icepart1.Position,5,7,0,icepart1,10,1,partic1,partic2})
1446
else
1447
icepart1.Parent=nil
1448
end
1449
if target2~=nil then
1450
so("333475957",icepart2,1,.9)
1451
local MouseLook=cf((icepart2.Position+target2.Position)/2,target2.Position+vt(math.random(-1000,1000)/100,math.random(-1000,1000)/100,math.random(-1000,1000)/100))
1452
table.insert(Effects,{MouseLook,"ShootIce",200,icepart2.Position,5,7,0,icepart2,10,1,partic3,partic4})
1453
else
1454
icepart2.Parent=nil
1455
end
1456
if target3~=nil then
1457
so("333475957",icepart3,1,.9)
1458
local MouseLook=cf((icepart3.Position+target3.Position)/2,target3.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100))
1459
table.insert(Effects,{MouseLook,"ShootIce",200,icepart3.Position,8,10,0,icepart3,10,1,partic5,partic6})
1460
else
1461
icepart3.Parent=nil
1462
end
1463
--end
1464
end
1465
1466
function TriOrbs()
1467
--for i=1,math.random(1,4) do
1468
local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
1469
local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
1470
local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
1471
local icepart1=part(3,effects,0,0,BrickColor.new("Cyan"),"Ice",vt()) icepart1.Anchored=true
1472
i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
1473
icepart1.CFrame=dacf
1474
local icepart2=part(3,effects,0,0,BrickColor.new("Cyan"),"Ice",vt()) icepart2.Anchored=true
1475
i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
1476
icepart2.CFrame=dacf2
1477
local icepart3=part(3,effects,0,0,BrickColor.new("Cyan"),"Ice",vt()) icepart3.Anchored=true
1478
i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
1479
icepart3.CFrame=dacf3
1480
local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
1481
local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
1482
local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
1483
for i=0,1,0.1 do
1484
swait()
1485
icepart1.CFrame=dacf
1486
icepart2.CFrame=dacf2
1487
icepart3.CFrame=dacf3
1488
dacf=dacf*cf(0,math.random(400,800)/10,0)
1489
dacf2=dacf2*cf(0,math.random(400,800)/10,0)
1490
dacf3=dacf3*cf(0,math.random(400,800)/10,0)
1491
end
1492
local target1,distance1=findRandomTorso(icepart1.Position)
1493
local target2,distance2=findRandomTorso(icepart2.Position)
1494
local target3,distance3=findRandomTorso(icepart3.Position)
1495
local test1,dist1=findNearestTorso(Head.Position)
1496
local pos1,pos2,pos3=nil,nil,nil
1497
local refpart1=part(3,effects,0,1,BrickColor.new("Cyan"),"Ref",vt()) refpart1.Anchored=true
1498
local refpart2=part(3,effects,0,1,BrickColor.new("Cyan"),"Ref",vt()) refpart2.Anchored=true
1499
local refpart3=part(3,effects,0,1,BrickColor.new("Cyan"),"Ref",vt()) refpart3.Anchored=true
1500
if target1~=nil then
1501
pos1=target1.Position
1502
refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
1503
end
1504
if target2~=nil then
1505
pos2=target2.Position
1506
refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
1507
end
1508
if target3~=nil then
1509
pos3=target3.Position
1510
refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
1511
end
1512
local move=40
1513
for i=0,1,0.1 do
1514
swait()
1515
move=40-40*i
1516
if target1~=nil then
1517
refpart1.CFrame=cf(refpart1.Position,target1.Position)
1518
MagicCircle2(BrickColor.new("Cyan"),icepart1.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
1519
icepart1.CFrame=dacf
1520
dacf=dacf*cf(0,move,0)
1521
end
1522
if target2~=nil then
1523
refpart2.CFrame=cf(refpart2.Position,target2.Position)
1524
MagicCircle2(BrickColor.new("Cyan"),icepart2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
1525
icepart2.CFrame=dacf2
1526
dacf2=dacf2*cf(0,move,0)
1527
end
1528
if target3~=nil then
1529
refpart3.CFrame=cf(refpart3.Position,target3.Position)
1530
MagicCircle2(BrickColor.new("Cyan"),icepart3.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
1531
icepart3.CFrame=dacf3
1532
dacf3=dacf3*cf(0,move,0)
1533
end
1534
end
1535
local laser1=part(3,effects,0,0,BrickColor.new("Cyan"),"Effect",vt()) laser1.Anchored=true
1536
local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
1537
local laser2=part(3,effects,0,0,BrickColor.new("Cyan"),"Effect",vt()) laser2.Anchored=true
1538
local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
1539
local laser3=part(3,effects,0,0,BrickColor.new("Cyan"),"Effect",vt()) laser3.Anchored=true
1540
local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
1541
local ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1542
ref.Anchored=true
1543
ref.CFrame=cf(0,0,0)
1544
game:GetService("Debris"):AddItem(ref,1)
1545
local ref1=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1546
ref1.Anchored=true
1547
ref1.CFrame=cf(0,0,0)
1548
game:GetService("Debris"):AddItem(ref1,5)
1549
local ice1=0
1550
local ref2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1551
ref2.Anchored=true
1552
ref2.CFrame=cf(0,0,0)
1553
game:GetService("Debris"):AddItem(ref2,5)
1554
local ice2=2
1555
local ref3=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1556
ref3.Anchored=true
1557
ref3.CFrame=cf(0,0,0)
1558
game:GetService("Debris"):AddItem(ref3,5)
1559
local ice3=4
1560
for i=0,3,0.05 do
1561
swait()
1562
ice1=ice1+1
1563
ice2=ice2+1
1564
ice3=ice3+1
1565
if target1~=nil then
1566
if i>1 then
1567
refpart1.CFrame=refpart1.CFrame*cf(0,0,-1.5)
1568
end
1569
local cfnew=cf(icepart1.Position,refpart1.Position)
1570
local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
1571
local mag1=(icepart1.Position-pos1).magnitude 
1572
laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
1573
lmsh1.Scale=vt(10,mag1*5,10)
1574
MagicBlock(BrickColor.new("Cyan"),cf(pos1),5,5,5,5,5,5,.1,1)
1575
ref.CFrame=cf(pos1)
1576
MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
1577
ref1.CFrame=cf(ref.Position)
1578
if ice1%2==0 then
1579
so("333476017",ref1,.3,1.4)
1580
end
1581
end
1582
if target2~=nil then
1583
if i>1 then
1584
refpart2.CFrame=refpart2.CFrame*cf(0,0,-1.5)
1585
end
1586
local cfnew=cf(icepart2.Position,refpart2.Position)
1587
local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
1588
local mag2=(icepart2.Position-pos2).magnitude 
1589
laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
1590
lmsh2.Scale=vt(10,mag2*5,10)
1591
MagicBlock(BrickColor.new("Cyan"),cf(pos2),5,5,5,5,5,5,.1,1)
1592
ref.CFrame=cf(pos2)
1593
MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
1594
ref2.CFrame=cf(ref.Position)
1595
if ice2%2==0 then
1596
so("333476017",ref2,.3,1.4)
1597
end
1598
end
1599
if target3~=nil then
1600
if i>1 then
1601
refpart3.CFrame=refpart3.CFrame*cf(0,0,-1.5)
1602
end
1603
local cfnew=cf(icepart3.Position,refpart3.Position)
1604
local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
1605
local mag3=(icepart3.Position-pos3).magnitude 
1606
laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
1607
lmsh3.Scale=vt(10,mag3*5,10)
1608
MagicBlock(BrickColor.new("Cyan"),cf(pos3),5,5,5,5,5,5,.1,1)
1609
ref.CFrame=cf(pos3)
1610
MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
1611
ref3.CFrame=cf(ref.Position)
1612
if ice3%2==0 then
1613
so("333476017",ref3,.3,1.4)
1614
end
1615
end
1616
end
1617
if target1~=nil then
1618
local pos1=laser1.CFrame
1619
local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
1620
MagicHead(BrickColor.new("Cyan"),pos1,x1,y1,z1,1,1,1,.1)
1621
end
1622
if target2~=nil then
1623
local pos2=laser2.CFrame
1624
local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
1625
MagicHead(BrickColor.new("Cyan"),pos2,x2,y2,z2,1,1,1,.1)
1626
end
1627
if target3~=nil then
1628
local pos3=laser3.CFrame
1629
local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
1630
MagicHead(BrickColor.new("Cyan"),pos3,x3,y3,z3,1,1,1,.1)
1631
end
1632
MagicCircle(BrickColor.new("Cyan"),cf(icepart1.Position),100,100,100,5,5,5,.2)
1633
MagicCircle(BrickColor.new("Cyan"),cf(icepart2.Position),100,100,100,5,5,5,.2)
1634
MagicCircle(BrickColor.new("Cyan"),cf(icepart3.Position),100,100,100,5,5,5,.2)
1635
icepart1.Parent=nil
1636
icepart2.Parent=nil
1637
icepart3.Parent=nil
1638
refpart1.Parent=nil
1639
refpart2.Parent=nil
1640
refpart3.Parent=nil
1641
laser1.Parent=nil
1642
laser2.Parent=nil
1643
laser3.Parent=nil
1644
ref.Parent=nil
1645
end
1646
1647
function TriOrbs2()
1648
--for i=1,math.random(1,4) do
1649
local dacf=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
1650
local dacf2=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
1651
local dacf3=Torso.CFrame*euler(-1.57+math.random(100,150)/100,0,math.random(-80,80)/100)
1652
local icepart1=part(3,effects,0,0,BrickColor.new("Cyan"),"Ice",vt()) icepart1.Anchored=true
1653
i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(100,100,100))
1654
icepart1.CFrame=dacf
1655
local icepart2=part(3,effects,0,0,BrickColor.new("Cyan"),"Ice",vt()) icepart2.Anchored=true
1656
i2msh=mesh("SpecialMesh",icepart2,"Sphere","nil",vt(0,0,0),vt(100,100,100))
1657
icepart2.CFrame=dacf2
1658
local icepart3=part(3,effects,0,0,BrickColor.new("Cyan"),"Ice",vt()) icepart3.Anchored=true
1659
i3msh=mesh("SpecialMesh",icepart3,"Sphere","nil",vt(0,0,0),vt(100,100,100))
1660
icepart3.CFrame=dacf3
1661
local partic1=icicleparti2:Clone() partic1.Parent=icepart1 partic1.Enabled=true
1662
local partic3=icicleparti2:Clone() partic3.Parent=icepart2 partic3.Enabled=true
1663
local partic5=icicleparti2:Clone() partic5.Parent=icepart3 partic5.Enabled=true
1664
for i=0,1,0.1 do
1665
swait()
1666
icepart1.CFrame=dacf
1667
icepart2.CFrame=dacf2
1668
icepart3.CFrame=dacf3
1669
dacf=dacf*cf(0,math.random(400,800)/10,0)
1670
dacf2=dacf2*cf(0,math.random(400,800)/10,0)
1671
dacf3=dacf3*cf(0,math.random(400,800)/10,0)
1672
end
1673
local target1,distance1=findNearestTorso(Head.Position)
1674
local target2,distance2=findNearestTorso(Head.Position)
1675
local target3,distance3=findNearestTorso(Head.Position)
1676
local test1,dist1=findNearestTorso(Head.Position)
1677
local pos1,pos2,pos3=nil,nil,nil
1678
local refpart1=part(3,effects,0,1,BrickColor.new("Cyan"),"Ref",vt()) refpart1.Anchored=true
1679
local refpart2=part(3,effects,0,1,BrickColor.new("Cyan"),"Ref",vt()) refpart2.Anchored=true
1680
local refpart3=part(3,effects,0,1,BrickColor.new("Cyan"),"Ref",vt()) refpart3.Anchored=true
1681
if target1~=nil then
1682
pos1=target1.Position
1683
refpart1.CFrame=cf(pos1)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
1684
end
1685
if target2~=nil then
1686
pos2=target2.Position
1687
refpart2.CFrame=cf(pos2)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
1688
end
1689
if target3~=nil then
1690
pos3=target3.Position
1691
refpart3.CFrame=cf(pos3)*cf(math.random(-3000,3000)/100,math.random(-3000,3000)/100,math.random(-3000,3000)/100)
1692
end
1693
local move=40
1694
for i=0,1,0.1 do
1695
swait()
1696
move=40-40*i
1697
if target1~=nil then
1698
refpart1.CFrame=cf(refpart1.Position,target1.Position)
1699
MagicCircle2(BrickColor.new("Cyan"),icepart1.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
1700
icepart1.CFrame=dacf
1701
dacf=dacf*cf(0,move,0)
1702
end
1703
if target2~=nil then
1704
refpart2.CFrame=cf(refpart2.Position,target2.Position)
1705
MagicCircle2(BrickColor.new("Cyan"),icepart2.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
1706
icepart2.CFrame=dacf2
1707
dacf2=dacf2*cf(0,move,0)
1708
end
1709
if target3~=nil then
1710
refpart3.CFrame=cf(refpart3.Position,target3.Position)
1711
MagicCircle2(BrickColor.new("Cyan"),icepart3.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,60,0),15,40,15,-1,20,-1,.1,-5)
1712
icepart3.CFrame=dacf3
1713
dacf3=dacf3*cf(0,move,0)
1714
end
1715
end
1716
local laser1=part(3,effects,0,0,BrickColor.new("Cyan"),"Effect",vt()) laser1.Anchored=true
1717
local lmsh1=mesh("SpecialMesh",laser1,"Head","nil",vt(0,0,0),vt(10,1,10))
1718
local laser2=part(3,effects,0,0,BrickColor.new("Cyan"),"Effect",vt()) laser2.Anchored=true
1719
local lmsh2=mesh("SpecialMesh",laser2,"Head","nil",vt(0,0,0),vt(10,1,10))
1720
local laser3=part(3,effects,0,0,BrickColor.new("Cyan"),"Effect",vt()) laser3.Anchored=true
1721
local lmsh3=mesh("SpecialMesh",laser3,"Head","nil",vt(0,0,0),vt(10,1,10))
1722
local ref=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1723
ref.Anchored=true
1724
ref.CFrame=cf(0,0,0)
1725
game:GetService("Debris"):AddItem(ref,1)
1726
local ref1=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1727
ref1.Anchored=true
1728
ref1.CFrame=cf(0,0,0)
1729
game:GetService("Debris"):AddItem(ref1,5)
1730
local ice1=0
1731
local ref2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1732
ref2.Anchored=true
1733
ref2.CFrame=cf(0,0,0)
1734
game:GetService("Debris"):AddItem(ref2,5)
1735
local ice2=2
1736
local ref3=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1737
ref3.Anchored=true
1738
ref3.CFrame=cf(0,0,0)
1739
game:GetService("Debris"):AddItem(ref3,5)
1740
local ice3=4
1741
for i=0,3,0.1 do
1742
swait()
1743
ice1=ice1+1
1744
ice2=ice2+1
1745
ice3=ice3+1
1746
if target1~=nil then
1747
if i>1 then
1748
refpart1.CFrame=refpart1.CFrame*cf(0,0,-2)
1749
end
1750
local cfnew=cf(icepart1.Position,refpart1.Position)
1751
local hit1,pos1=rayCast(icepart1.Position,cfnew.lookVector,9999,Character)
1752
local mag1=(icepart1.Position-pos1).magnitude 
1753
laser1.CFrame=CFrame.new((icepart1.Position+pos1)/2,pos1)*angles(1.57,0,0)
1754
lmsh1.Scale=vt(10,mag1*5,10)
1755
MagicBlock(BrickColor.new("Cyan"),cf(pos1),5,5,5,5,5,5,.1,1)
1756
ref.CFrame=cf(pos1)
1757
MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
1758
ref1.CFrame=cf(ref.Position)
1759
if ice1%2==0 then
1760
so("333476017",ref1,.3,1.4)
1761
end
1762
end
1763
if target2~=nil then
1764
if i>1 then
1765
refpart2.CFrame=refpart2.CFrame*cf(0,0,-2)
1766
end
1767
local cfnew=cf(icepart2.Position,refpart2.Position)
1768
local hit2,pos2=rayCast(icepart2.Position,cfnew.lookVector,9999,Character)
1769
local mag2=(icepart2.Position-pos2).magnitude 
1770
laser2.CFrame=CFrame.new((icepart2.Position+pos2)/2,pos2)*angles(1.57,0,0)
1771
lmsh2.Scale=vt(10,mag2*5,10)
1772
MagicBlock(BrickColor.new("Cyan"),cf(pos2),5,5,5,5,5,5,.1,1)
1773
ref.CFrame=cf(pos2)
1774
MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
1775
ref2.CFrame=cf(ref.Position)
1776
if ice2%2==0 then
1777
so("333476017",ref2,.3,1.4)
1778
end
1779
end
1780
if target3~=nil then
1781
if i>1 then
1782
refpart3.CFrame=refpart3.CFrame*cf(0,0,-2)
1783
end
1784
local cfnew=cf(icepart3.Position,refpart3.Position)
1785
local hit3,pos3=rayCast(icepart3.Position,cfnew.lookVector,9999,Character)
1786
local mag3=(icepart3.Position-pos3).magnitude 
1787
laser3.CFrame=CFrame.new((icepart3.Position+pos3)/2,pos3)*angles(1.57,0,0)
1788
lmsh3.Scale=vt(10,mag3*5,10)
1789
MagicBlock(BrickColor.new("Cyan"),cf(pos3),5,5,5,5,5,5,.1,1)
1790
ref.CFrame=cf(pos3)
1791
MagniDamage(ref,5,8,14,0,"Normal",RootPart,.2,1,math.random(6,8),nil,nil,true)
1792
ref3.CFrame=cf(ref.Position)
1793
if ice3%2==0 then
1794
so("333476017",ref3,.3,1.4)
1795
end
1796
end
1797
end
1798
if target1~=nil then
1799
local pos1=laser1.CFrame
1800
local x1=lmsh1.Scale.X local y1=lmsh1.Scale.Y local z1=lmsh1.Scale.Z
1801
MagicHead(BrickColor.new("Cyan"),pos1,x1,y1,z1,1,1,1,.1)
1802
end
1803
if target2~=nil then
1804
local pos2=laser2.CFrame
1805
local x2=lmsh2.Scale.X local y2=lmsh2.Scale.Y local z2=lmsh2.Scale.Z
1806
MagicHead(BrickColor.new("Cyan"),pos2,x2,y2,z2,1,1,1,.1)
1807
end
1808
if target3~=nil then
1809
local pos3=laser3.CFrame
1810
local x3=lmsh3.Scale.X local y3=lmsh3.Scale.Y local z3=lmsh3.Scale.Z
1811
MagicHead(BrickColor.new("Cyan"),pos3,x3,y3,z3,1,1,1,.1)
1812
end
1813
MagicCircle(BrickColor.new("Cyan"),cf(icepart1.Position),100,100,100,5,5,5,.2)
1814
MagicCircle(BrickColor.new("Cyan"),cf(icepart2.Position),100,100,100,5,5,5,.2)
1815
MagicCircle(BrickColor.new("Cyan"),cf(icepart3.Position),100,100,100,5,5,5,.2)
1816
icepart1.Parent=nil
1817
icepart2.Parent=nil
1818
icepart3.Parent=nil
1819
refpart1.Parent=nil
1820
refpart2.Parent=nil
1821
refpart3.Parent=nil
1822
laser1.Parent=nil
1823
laser2.Parent=nil
1824
laser3.Parent=nil
1825
ref.Parent=nil
1826
end
1827
1828
function IceMortar()
1829
for i=1,math.random(2,3) do
1830
local dacf=Torso.CFrame*euler(-1.57+math.random(40,80)/100,0,math.random(-80,80)/100)
1831
local icepart1=part(3,effects,0,0,BrickColor.new("Cyan"),"Ice",vt()) icepart1.Anchored=true
1832
i1msh=mesh("SpecialMesh",icepart1,"Sphere","nil",vt(0,0,0),vt(200,200,200))
1833
icepart1.CFrame=dacf
1834
local inc=100
1835
for i=0,1,0.1 do
1836
swait()
1837
icepart1.CFrame=dacf
1838
dacf=dacf*cf(0,inc,0)
1839
inc=100-100*i
1840
end
1841
local cfinc=99999
1842
MagicHead(BrickColor.new("Cyan"),cf(icepart1.Position)*cf(0,cfinc/10,0),200,cfinc,200,-10,1,-10,.1)
1843
MagicCircle(BrickColor.new("Cyan"),cf(icepart1.Position),200,200,200,-10,0,-10,.1)
1844
icepart1.Transparency=1
1845
so("334325056",icepart1,1,1)
1846
game:GetService("Debris"):AddItem(icepart1,1)
1847
local target1,distance1=findRandomTorso(icepart1.Position)
1848
local test1,dist1=findNearestTorso(Head.Position)
1849
if target1~=nil then
1850
cfda=target1.Position+vt(math.random(-3000,3000)/100,0,math.random(-3000,3000)/100)
1851
local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
1852
local d1=part(3,effects,0,.5,BrickColor.new("Medium blue"),"Effect",vt())
1853
d1.Anchored=true
1854
d1.CFrame=cf(pos2)
1855
msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(200,5,200))
1856
d2=d1:Clone()
1857
d2.Parent=d1
1858
d2.CFrame=cf(d1.Position)
1859
d2.BrickColor=BrickColor.new("White")
1860
d2.Mesh.Scale=vt(0,5,0)
1861
table.insert(Effects,{d1,"SatelliteStrike",d2,d2.Mesh,0})
1862
end
1863
end
1864
end
1865
1866
function TurnSlam()
1867
attack=true
1868
local target,distance=findRandomTorso(RootPart.Position)
1869
if target~=nil or target==nil then
1870
local x,y,z = 0,0,0
1871
for i=0,1,0.02 do
1872
swait()
1873
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
1874
wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),.01)
1875
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,.4,-.6),.01)
1876
wld24.C0=wld24.C0:lerp(euler(2.4,.2,0)*cf(0,90.25,0),.01)
1877
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.01)
1878
1879
wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),.01)
1880
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,-.4,.6),.01)
1881
wld38.C0=wld38.C0:lerp(euler(-2.4,.2,0)*cf(0,-90.25,0),.01)
1882
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.01)
1883
if Stun.Value>=StunT.Value then
1884
break
1885
end
1886
end
1887
for i=0,1,0.01 do
1888
swait()
1889
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.2,0,0),.02)
1890
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.05)
1891
wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.02)
1892
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),.02)
1893
wld24.C0=wld24.C0:lerp(euler(2,-1,0)*cf(0,90.25,0),.02)
1894
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0)*euler(.5,0,1),.02)
1895
1896
wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.02)
1897
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),.02)
1898
wld38.C0=wld38.C0:lerp(euler(-2,-1,0)*cf(0,-90.25,0),.02)
1899
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0)*euler(-.5,0,-1),.02)
1900
if Stun.Value>=StunT.Value then
1901
break
1902
end
1903
end
1904
shockwave=false
1905
ref1a=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1906
ref1a.Anchored=true
1907
ref1a.CFrame=cf(0,-50,0)
1908
game:GetService("Debris"):AddItem(ref1a,3)
1909
ref2a=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1910
ref2a.Anchored=true
1911
ref2a.CFrame=cf(0,-50,0)
1912
game:GetService("Debris"):AddItem(ref2a,3)
1913
incda=80
1914
for i=0,3,0.03 do
1915
swait()
1916
dan=.1
1917
if shockwave==true then
1918
incda=incda+10
1919
if i<1.5 then
1920
MagniDamage(ref1a,incda,10,15,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
1921
MagniDamage(ref2a,incda,10,15,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
1922
end
1923
end
1924
if i>1 then
1925
dan=.05
1926
if shockwave==false then
1927
for i=1,2 do
1928
so("157878578",ref1a,1,0.4) 
1929
so("2101148",ref1a,1,0.6) 
1930
end
1931
for i=1,2 do
1932
so("157878578",ref2a,1,0.4) 
1933
so("2101148",ref2a,1,0.6) 
1934
end
1935
shockwave=true
1936
refcam=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
1937
refcam.Anchored=true
1938
refcam.CFrame=cf(prt31.Position)
1939
refcam.CFrame=refcam.CFrame:lerp(cf(prt45.Position),.5)
1940
game:GetService("Debris"):AddItem(refcam,1)
1941
hitfl1,posfl1=rayCast(prt31.Position,(CFrame.new(prt31.Position,prt31.Position - Vector3.new(0,1,0))).lookVector,50,Character)
1942
MagicRing(BrickColor.new("Pearl"),cf(posfl1)*euler(1.57,0,0),160,160,1,20,20,1,.1)
1943
ref1a.CFrame=cf(posfl1)
1944
hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
1945
MagicRing(BrickColor.new("Pearl"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
1946
ref2a.CFrame=cf(posfl2)
1947
end
1948
else
1949
MagniDamage(prt31,90,50,70,math.random(40,60),"Knockdown2",RootPart,2,1,math.random(25,40),nil,nil,false)
1950
MagniDamage(prt45,90,50,70,math.random(40,60),"Knockdown2",RootPart,2,1,math.random(25,40),nil,nil,false)
1951
end
1952
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),dan)
1953
wld19.C0=wld19.C0:lerp(euler(-.6,.3,0)*cf(94,-47.5,-2.248),dan)
1954
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1,-1.2),dan)
1955
wld24.C0=wld24.C0:lerp(euler(1.2,-1,0)*cf(0,90.25,0),dan)
1956
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0)*euler(-.5,0,0)*euler(0,-.6,0)*euler(.3,0,0),dan)
1957
1958
wld33.C0=wld33.C0:lerp(euler(-.6,-.3,0)*cf(-94,-47.5,-2.248),dan)
1959
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,1,1.2),dan)
1960
wld38.C0=wld38.C0:lerp(euler(-1.2,-1,0)*cf(0,-90.25,0),dan)
1961
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0)*euler(.5,0,0)*euler(0,-.6,0)*euler(-.3,0,0),dan)
1962
if Stun.Value>=StunT.Value then
1963
break
1964
end
1965
end
1966
meleecooldown=0
1967
mcdadd=.05
1968
if CurrentHealth<=1500 then
1969
mcdadd=1
1970
end
1971
--mcdadd=1
1972
end
1973
attack=false
1974
end
1975
1976
function GrandPunch()
1977
attack=true
1978
local target,distance=findRandomTorso(RootPart.Position)
1979
if target~=nil or target==nil then
1980
local x,y,z = 0,0,0
1981
for i=0,1,0.01 do
1982
swait()
1983
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,.5,0),.02)
1984
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.5,0),.02)
1985
wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.02)
1986
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,.3,-.4)*euler(0,-.2,0),.02)
1987
wld24.C0=wld24.C0:lerp(euler(2,0,0)*euler(0,0,0)*cf(0,90.25,0),.02)
1988
wld29.C0=wld29.C0:lerp(euler(0,.5,0)*cf(0,125,0),.02)
1989
1990
wld33.C0=wld33.C0:lerp(euler(-.4,-.8,0)*cf(-94,-47.5,-2.248),.02)
1991
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.2)*euler(0,0,0),.02)
1992
wld38.C0=wld38.C0:lerp(euler(-1,-.4,0)*cf(0,-90.25,0),.02)
1993
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.02)
1994
if Stun.Value>=StunT.Value then
1995
break
1996
end
1997
end
1998
da=0
1999
local oldpos=prt31.Position
2000
for i=0,1.5,0.01 do
2001
swait()
2002
da=da+1
2003
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,-.5,0),.04)
2004
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,-.5,0),.04)
2005
wld19.C0=wld19.C0:lerp(euler(-.8,.6,0)*cf(94,-47.5,-2.248),.04)
2006
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1.2,-.2)*euler(0,-.2,0),.04)
2007
--wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-1.2,-.8)*euler(0,-.2,0),.1)
2008
wld24.C0=wld24.C0:lerp(euler(.8,0,0)*euler(0,0,0)*cf(0,90.25,0),.04)
2009
wld29.C0=wld29.C0:lerp(euler(0,3,0)*cf(0,125,0),.04)
2010
2011
wld33.C0=wld33.C0:lerp(euler(-.4,-.1,0)*cf(-94,-47.5,-2.248),.04)
2012
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,-.2,.2)*euler(0,0,0),.04)
2013
wld38.C0=wld38.C0:lerp(euler(-1.8,-.4,0)*cf(0,-90.25,0),.04)
2014
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.04)
2015
if i<.5 then
2016
if da%4==0 then
2017
MagniDamage(prt31,95,15,20,math.random(60,100),"Knockdown2",prt31,.5,1,math.random(25,40),nil,nil,false)
2018
MagicWave(BrickColor.new("Cyan"),cf(prt31.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
2019
oldpos=prt31.Position
2020
end
2021
end
2022
if Stun.Value>=StunT.Value then
2023
break
2024
end
2025
end
2026
meleecooldown=0
2027
mcdadd=.1
2028
if CurrentHealth<=1500 then
2029
mcdadd=1
2030
end
2031
--mcdadd=50
2032
end
2033
attack=false
2034
end
2035
2036
--[[ punch
2037
wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.1)
2038
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-.8,0,0)*euler(0,-.2,0),.1)
2039
wld24.C0=wld24.C0:lerp(euler(1.2,.8,0)*cf(0,90.25,0),.1)
2040
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
2041
]]
2042
2043
function FrostSlam()
2044
attack=true
2045
local target,distance=findRandomTorso(RootPart.Position)
2046
if target~=nil or target==nil then
2047
local x,y,z = 0,0,0
2048
for i=0,1,0.008 do
2049
swait()
2050
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.015)
2051
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(0,.3,0),.015)
2052
wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.015)
2053
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-1,0,0)*euler(0,-.4,0)*euler(0,0,-.4),.015)
2054
wld24.C0=wld24.C0:lerp(euler(.8,.8,0)*euler(0,-.2,0)*cf(0,90.25,0),.015)
2055
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.015)
2056
2057
wld33.C0=wld33.C0:lerp(euler(.4,-.3,0)*cf(-94,-47.5,-2.248),.015)
2058
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,1)*euler(.5,0,0)*euler(0,.2,0),.015)
2059
wld38.C0=wld38.C0:lerp(euler(-1,-.2,0)*cf(0,-90.25,0),.015)
2060
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.015)
2061
if Stun.Value>=StunT.Value then
2062
break
2063
end
2064
end
2065
da=0
2066
local oldpos=prt45.Position
2067
shockwave=false
2068
ref2a=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
2069
ref2a.Anchored=true
2070
ref2a.CFrame=cf(0,-50,0)
2071
game:GetService("Debris"):AddItem(ref2a,3)
2072
incda=80
2073
for i=0,10,0.02 do
2074
swait()
2075
da=da+1
2076
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,.3,-.2),.025)
2077
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-190,0)*euler(0,.3,0)*euler(-.1,0,0),.025)
2078
wld19.C0=wld19.C0:lerp(euler(-.4,-.3,0)*cf(94,-47.5,-2.248),.025)
2079
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(-1,0,0)*euler(0,-.4,0)*euler(0,0,0),.025)
2080
wld24.C0=wld24.C0:lerp(euler(1,0,0)*euler(0,.3,0)*cf(0,90.25,0),.025)
2081
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.025)
2082
2083
wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.025)
2084
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,1.4,0)*euler(0,0,0),.025)
2085
wld38.C0=wld38.C0:lerp(euler(-.5,0,0)*euler(0,0,-.2)*cf(0,-90.25,0),.025)
2086
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.025)
2087
if i>1 and i<8 then
2088
if da%10==0 then
2089
local do1=0
2090
local do2=0
2091
local rand1=math.random(1,2)
2092
if rand1==1 then do1=math.random(5000,15000)/100
2093
elseif rand1==2 then do1=math.random(-15000,-5000)/100 end
2094
local rand2=math.random(1,2)
2095
if rand2==1 then do2=math.random(5000,15000)/100
2096
elseif rand2==2 then do2=math.random(-15000,-5000)/100 end
2097
cfda=ref2a.Position+vt(do1,10,do2)
2098
local hit2,pos2=rayCast(cfda,(CFrame.new(cfda,cfda - Vector3.new(0,1,0))).lookVector,999,Character)
2099
local d1=part(3,effects,0,.5,BrickColor.new("Cyan"),"Effect",vt())
2100
d1.Anchored=true
2101
d1.CFrame=cf(pos2)
2102
msh=mesh("CylinderMesh",d1,"nil","nil",vt(0,0,0),vt(300,5,300))
2103
d2=d1:Clone()
2104
d2.Parent=d1
2105
d2.CFrame=cf(d1.Position)
2106
d2.BrickColor=BrickColor.new("White")
2107
d2.Mesh.Scale=vt(0,5,0)
2108
table.insert(Effects,{d1,"SatelliteStrike2",d2,d2.Mesh,0})
2109
end
2110
end
2111
if i>1 and i<1.3 then
2112
incda=incda+10
2113
MagniDamage(ref2a,incda,6,8,math.random(0,0),"Knockdown2",RootPart,1.5,1,math.random(8,10),nil,nil,false,"Movement",.1,300)
2114
end
2115
if i<1 then
2116
if da%4==0 then
2117
MagniDamage(prt45,95,15,20,math.random(40,60),"Knockdown2",prt45,.5,1,math.random(25,40),nil,nil,false)
2118
MagicWave(BrickColor.new("Cyan"),cf(prt45.Position,oldpos)*euler(-1.57,0,0),100,100,100,10,10,10,.1)
2119
oldpos=prt45.Position
2120
end
2121
else
2122
if shockwave==false then
2123
shockwave=true
2124
so("157878578",ref2a,1,0.4) 
2125
so("2101148",ref2a,1,0.6) 
2126
hitfl2,posfl2=rayCast(prt45.Position,(CFrame.new(prt45.Position,prt45.Position - Vector3.new(0,1,0))).lookVector,50,Character)
2127
refaa=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
2128
refaa.Anchored=true
2129
refaa.CFrame=cf(posfl2)
2130
game:GetService("Debris"):AddItem(refaa,1)
2131
MagicRing(BrickColor.new("Pearl"),cf(posfl2)*euler(1.57,0,0),160,160,1,20,20,1,.1)
2132
ref2a.CFrame=cf(posfl2)
2133
end
2134
end
2135
if Stun.Value>=StunT.Value then
2136
break
2137
end
2138
end
2139
--print(incda)
2140
meleecooldown=0
2141
mcdadd=.08
2142
if CurrentHealth<=1500 then
2143
mcdadd=1
2144
end
2145
end
2146
attack=false
2147
end
2148
2149
function StunAnim()
2150
attack=true
2151
for i=0,1,0.06 do
2152
swait()
2153
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.7,0,0),.06)
2154
RootJoint.C0=RootJoint.C0:lerp(euler(-.2,0,0)*cf(-1.749,-180,0),.06)
2155
wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.06)
2156
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.6)*euler(0,-.2,0)*euler(-.5,0,0),.06)
2157
wld24.C0=wld24.C0:lerp(euler(1,.1,0)*cf(0,90.25,0),.06)
2158
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
2159
2160
wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.06)
2161
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,-.6)*euler(0,.2,0)*euler(-.5,0,0),.06)
2162
wld38.C0=wld38.C0:lerp(euler(-1,.1,0)*cf(0,-90.25,0),.06)
2163
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
2164
if Humanoid.Health<=0 then
2165
break
2166
end
2167
end
2168
for i=0,1,0.04 do
2169
swait()
2170
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.2,0,0)*euler(0,0,.2),.07)
2171
RootJoint.C0=RootJoint.C0:lerp(euler(-.5,.2,0)*cf(-1.749,-140,0),.07)
2172
wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.07)
2173
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.8)*euler(0,.2,0)*euler(-.4,0,0),.07)
2174
wld24.C0=wld24.C0:lerp(euler(1.2,.3,0)*cf(0,90.25,0),.07)
2175
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.07)
2176
2177
wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.07)
2178
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,.2,0)*euler(.7,0,0),.07)
2179
wld38.C0=wld38.C0:lerp(euler(-1.4,.1,0)*cf(0,-90.25,0),.07)
2180
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.07)
2181
if Humanoid.Health<=0 then
2182
break
2183
end
2184
end
2185
for i=0,1,0.01 do
2186
swait()
2187
msh3.Scale=vt(4,8.5-8*i,8.5)
2188
msh5.Scale=vt(4,8.5-8*i,8.5)
2189
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0)*euler(0,1.5,0),.02)
2190
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
2191
wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
2192
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,1)*euler(0,.2,0)*euler(-.1,0,0),.05)
2193
wld24.C0=wld24.C0:lerp(euler(.5,2.2,0)*cf(0,90.25,0),.05)
2194
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
2195
2196
wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
2197
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.6)*euler(0,-.6,0)*euler(1.6,0,0),.05)
2198
wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
2199
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
2200
if Humanoid.Health<=0 then
2201
break
2202
end
2203
end
2204
msh3.Scale=vt(4,.5,8.5)
2205
msh5.Scale=vt(4,.5,8.5)
2206
--swait(100)
2207
local numb=1300
2208
if CurrentHealth<=1500 then
2209
numb=1000
2210
end
2211
local removedeb=8
2212
for i=0,numb do
2213
swait()
2214
removedeb=removedeb+1
2215
if removedeb>8 then
2216
removedeb=0
2217
for _,c in pairs(Character:children()) do
2218
if c.Name=="DebounceHit" then c.Parent=nil end
2219
end
2220
end
2221
if Humanoid.Health<=0 then
2222
break
2223
end
2224
end
2225
for i=0,1,0.1 do
2226
swait()
2227
msh3.Scale=vt(4,.5+8*i,8.5)
2228
msh5.Scale=vt(4,.5+8*i,8.5)
2229
end
2230
msh3.Scale=vt(4,8.5,8.5)
2231
msh5.Scale=vt(4,8.5,8.5)
2232
for i=0,1,0.02 do
2233
swait()
2234
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-100,0)*euler(-1.3,0,0),.05)
2235
wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
2236
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,.1)*euler(0,.4,0)*euler(1,0,0),.05)
2237
wld24.C0=wld24.C0:lerp(euler(1.6,.1,0)*cf(0,90.25,0),.05)
2238
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
2239
2240
wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
2241
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,-.1)*euler(0,-.4,0)*euler(1,0,0),.05)
2242
wld38.C0=wld38.C0:lerp(euler(-1.6,.1,0)*cf(0,-90.25,0),.05)
2243
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
2244
if Humanoid.Health<=0 then
2245
break
2246
end
2247
end
2248
for i=0,1,0.03 do
2249
swait()
2250
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,0)*euler(-.6,0,0),.06)
2251
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
2252
wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
2253
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.4)*euler(0,-.2,0)*euler(-.3,0,0),.06)
2254
wld24.C0=wld24.C0:lerp(euler(1.2,.1,0)*cf(0,90.25,0),.06)
2255
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
2256
2257
wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
2258
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.4)*euler(0,.2,0)*euler(-.3,0,0),.06)
2259
wld38.C0=wld38.C0:lerp(euler(-1.2,.1,0)*cf(0,-90.25,0),.06)
2260
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
2261
if Humanoid.Health<=0 then
2262
break
2263
end
2264
end
2265
for i=0,1,0.008 do
2266
swait()
2267
if i<.4 then
2268
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(-.1,0,0),.06)
2269
else
2270
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.06)
2271
end
2272
RootJoint.C0=RootJoint.C0:lerp(cf(5,-210,0)*euler(.1,0,0),.06)
2273
wld19.C0=wld19.C0:lerp(euler(.2,.3,0)*cf(94,-47.5,-2.248),.06)
2274
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,0,-.8)*euler(0,-.6,0)*euler(-.5,0,0),.06)
2275
wld24.C0=wld24.C0:lerp(euler(.6,.3,0)*cf(0,90.25,0),.06)
2276
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.06)
2277
2278
wld33.C0=wld33.C0:lerp(euler(.2,-.3,0)*cf(-94,-47.5,-2.248),.06)
2279
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,0,.8)*euler(0,.6,0)*euler(-.5,0,0),.06)
2280
wld38.C0=wld38.C0:lerp(euler(-.6,.3,0)*cf(0,-90.25,0),.06)
2281
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.06)
2282
if Humanoid.Health<=0 then
2283
break
2284
end
2285
end
2286
attack=false
2287
end
2288
2289
function SummonCrystals()
2290
attack=true
2291
for i=0,1,0.01 do
2292
swait()
2293
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.5,0,0),.03)
2294
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-210,0)*euler(.05,0,0),.03)
2295
--[[wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.1)
2296
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.1)
2297
wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.1)
2298
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.1)
2299
2300
wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.1)
2301
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.1)
2302
wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.1)
2303
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.1)]]
2304
wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.03)
2305
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0),.03)
2306
wld24.C0=wld24.C0:lerp(euler(1.8,-.2,0)*cf(0,90.25,0),.03)
2307
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.03)
2308
2309
wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.03)
2310
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0),.03)
2311
wld38.C0=wld38.C0:lerp(euler(-1.8,-.2,0)*cf(0,-90.25,0),.03)
2312
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.03)
2313
end
2314
for i=0,1,0.04 do
2315
swait()
2316
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.6,0,0),.05)
2317
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0)*euler(-.05,0,0),.05)
2318
wld19.C0=wld19.C0:lerp(euler(-.8,.3,0)*cf(94,-47.5,-2.248),.05)
2319
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.2,-.8)*euler(.2,0,0)*euler(0,-.2,0),.05)
2320
wld24.C0=wld24.C0:lerp(euler(1.4,-.2,0)*cf(0,90.25,0),.05)
2321
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.05)
2322
2323
wld33.C0=wld33.C0:lerp(euler(-.8,-.3,0)*cf(-94,-47.5,-2.248),.05)
2324
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.2,.8)*euler(.2,0,0)*euler(0,.2,0),.05)
2325
wld38.C0=wld38.C0:lerp(euler(-1.4,-.2,0)*cf(0,-90.25,0),.05)
2326
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.05)
2327
end
2328
Cryst1.Parent=workspace
2329
C1Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
2330
C1Torso.CFrame=C1Head.CFrame
2331
C1Neck.Parent=C1Head
2332
C1S.Parent=Cryst1
2333
C1Hum.Parent=Cryst1
2334
C1Hum.MaxHealth=200
2335
C1Hum.Health=200
2336
C1Hum.Parent=Cryst1
2337
C1Hum:TakeDamage(1)
2338
C1a=true
2339
for _,c in pairs(Cryst1:children()) do
2340
if c.Name=="DebounceHit" then c.Parent=nil end
2341
end
2342
Cryst2.Parent=workspace
2343
C2Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
2344
C2Torso.CFrame=C2Head.CFrame
2345
C2Neck.Parent=C2Head
2346
C2S.Parent=Cryst2
2347
C2Hum.Parent=Cryst2
2348
C2Hum.MaxHealth=200
2349
C2Hum.Health=200
2350
C2Hum.Parent=Cryst2
2351
C2Hum:TakeDamage(1)
2352
C2a=true
2353
for _,c in pairs(Cryst2:children()) do
2354
if c.Name=="DebounceHit" then c.Parent=nil end
2355
end
2356
Cryst3.Parent=workspace
2357
C3Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
2358
C3Torso.CFrame=C3Head.CFrame
2359
C3Neck.Parent=C3Head
2360
C3S.Parent=Cryst3
2361
C3Hum.Parent=Cryst3
2362
C3Hum.MaxHealth=200
2363
C3Hum.Health=200
2364
C3Hum.Parent=Cryst3
2365
C3Hum:TakeDamage(1)
2366
C3a=true
2367
for _,c in pairs(Cryst3:children()) do
2368
if c.Name=="DebounceHit" then c.Parent=nil end
2369
end
2370
Cryst4.Parent=workspace
2371
C4Head.CFrame=RootPart.CFrame*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)
2372
C4Torso.CFrame=C4Head.CFrame
2373
C4Neck.Parent=C4Head
2374
C4S.Parent=Cryst4
2375
C4Hum.Parent=Cryst4
2376
C4Hum.MaxHealth=200
2377
C4Hum.Health=200
2378
C4Hum.Parent=Cryst4
2379
C4Hum:TakeDamage(1)
2380
C4a=true
2381
for _,c in pairs(Cryst4:children()) do
2382
if c.Name=="DebounceHit" then c.Parent=nil end
2383
end
2384
MagicCircle(BrickColor.new("Cyan"),cf(C1Head.Position),150,400,150,5,10,5,.05)
2385
MagicCircle(BrickColor.new("Cyan"),cf(C2Head.Position),150,400,150,5,10,5,.05)
2386
MagicCircle(BrickColor.new("Cyan"),cf(C3Head.Position),150,400,150,5,10,5,.05)
2387
MagicCircle(BrickColor.new("Cyan"),cf(C4Head.Position),150,400,150,5,10,5,.05)
2388
crystals=true
2389
if CurrentHealth>1500 then
2390
else
2391
end
2392
swait(50)
2393
attack=false
2394
end
2395
2396
function HeavySlam()
2397
attack=true
2398
for i=0,1,0.05 do
2399
swait()
2400
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,3,0),.1)
2401
wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
2402
Neck.C0=clerp(Neck.C0,necko*euler(0,1,0)*euler(-.3,0,0),.1)
2403
RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,1,0),.1)
2404
RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(2,0,.3),.1)
2405
RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
2406
LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.2,0,-.6),.1)
2407
LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
2408
LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,1,0)*euler(.1,0,0),.1)
2409
RH.C0=clerp(RH.C0,cf(1.5,-3,0)*euler(0,-1,0)*euler(.1,0,0),.1)
2410
end
2411
for i=0,1,0.04 do
2412
swait()
2413
wld1.C0=clerp(wld1.C0,euler(1,0,0)*cf(0,3,0),.1)
2414
wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.1)
2415
Neck.C0=clerp(Neck.C0,necko*euler(0,-.2,0)*euler(-.4,0,0),.1)
2416
RootJoint.C0=clerp(RootJoint.C0,cf(0,-2,0)*euler(0,-.2,0),.1)
2417
RW.C0=clerp(RW.C0,cf(4.5,1.5,0)*euler(3.5,0,0)*euler(0,.2,0),.1)
2418
RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
2419
LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.4,0,-.6),.1)
2420
LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.1)
2421
LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-.3,0,0),.1)
2422
RH.C0=clerp(RH.C0,cf(1.5,-3,-1)*euler(0,0,0)*euler(-.1,0,0),.1)
2423
end
2424
so("161006212",prt9,1,.6)
2425
con1=hitbox.Touched:connect(function(hit) Damagefunc(hit,10,15,math.random(50,70),"Knockdown2",RootPart,2,1,math.random(20,40),nil,true) end) 
2426
hitbox.Parent=modelzorz
2427
hitbox.Size=vt(2,20,8)
2428
hitboxCF=prt9.CFrame*cf(0,0,0)
2429
hitbox.CFrame=hitboxCF
2430
blcf=nil
2431
scfr=nil
2432
for i=0,1,0.02 do
2433
swait()
2434
--[[local blcf = prt9.CFrame*cf(0,0,0)
2435
if scfr and (prt9.Position-scfr.p).magnitude > .1 then
2436
local h = 14
2437
local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2438
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2439
local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2440
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
2441
scfr = blcf
2442
elseif not scfr then
2443
scfr = blcf
2444
end]]
2445
hitboxCF=prt9.CFrame*cf(0,0,0)
2446
hitbox.CFrame=hitboxCF
2447
wld1.C0=clerp(wld1.C0,euler(2.5,0,0)*cf(0,3,0),.4)
2448
wld2.C0=clerp(wld2.C0,euler(0,0,0)*cf(0,1,0),.4)
2449
Neck.C0=clerp(Neck.C0,necko*euler(0,0,0)*euler(-.6,0,0),.2)
2450
RootJoint.C0=clerp(RootJoint.C0,cf(0,0,0)*euler(0,0,0),.2)
2451
RW.C0=clerp(RW.C0,cf(2.5,1.5,-1)*euler(.5,0,-.2)*euler(0,0,0),.4)
2452
RW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
2453
LW.C0=clerp(LW.C0,cf(-4.5,1.5,0)*euler(-.8,0,-.6),.2)
2454
LW.C1=clerp(LW.C1,cf(0,1.5,0)*euler(0,0,0),.2)
2455
LH.C0=clerp(LH.C0,cf(-1.5,-3,0)*euler(0,0,0)*euler(-1,0,0),.2)
2456
RH.C0=clerp(RH.C0,cf(1.5,-1,-1.5)*euler(0,0,0)*euler(-.1,0,0),.2)
2457
if i>=.16 and i<=.17 then
2458
hit,pos=rayCast(prt9.Position,(CFrame.new(prt9.Position,prt9.Position - Vector3.new(0,1,0))).lookVector,10,Character)
2459
if hit~=nil then
2460
ref=part(3,workspace,0,1,BrickColor.new("Black"),"Reference",vt())
2461
ref.Anchored=true
2462
ref.CFrame=cf(pos)
2463
so("199145477",prt9,1,.8) 
2464
game:GetService("Debris"):AddItem(ref,1)
2465
--MagniDamage(ref,30,1,5,math.random(50,70),"Knockdown2",false,"Movement",.2,400,math.random(90,100))
2466
MagniDamage(ref,30,1,5,math.random(200,400),"Knockdown2",false,"Movement",.2,200,math.random(90,100))
2467
MagicWave(BrickColor.new("Bright stone grey"),cf(ref.Position),1,1,1,2,2,2,.05)
2468
end
2469
end
2470
end
2471
con1:disconnect()
2472
hitbox.Parent=nil
2473
attack=false
2474
end
2475
2476
local magref=part(3,effects,0,.5,BrickColor.new("Black"),"Effect",vt())
2477
magref.Anchored=true
2478
magref.CFrame=cf(0,0,0)
2479
magref.Parent=nil
2480
local mrmsh=mesh("SpecialMesh",magref,"Sphere","nil",vt(0,0,0),vt(1,1,1))
2481
2482
function MagniDamage(Part,magni,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
2483
--magref.CFrame=cf(Part.Position)
2484
--mrmsh.Scale=vt(magni*10,magni*10,magni*10)
2485
for _,c in pairs(workspace:children()) do
2486
local hum=c:findFirstChild("Humanoid")
2487
if hum~=nil then
2488
local head=nil
2489
for _,d in pairs(c:children()) do
2490
--if d.Name=="Torso" or d.Name=="Head" or d.Name=="HumanoidRootPart" or d.Name=="HitPart" then
2491
if d.className=="Part" then
2492
head=d
2493
if head~=nil then
2494
local targ=head.Position-Part.Position
2495
local mag=targ.magnitude
2496
if mag<=magni and c.Name~=Character.Name and c.Name~="Crystal" then 
2497
if stun==nil then
2498
stun=math.random(5,10)
2499
end
2500
local Rang=nil
2501
if Ranged==false then
2502
Rang=true
2503
end
2504
local stag=nil
2505
if shbash==true then
2506
stag=true
2507
end
2508
Damagefunc(head,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration)
2509
--Damagefunc(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,DecreaseState,DecreaseAmount,Duration)
2510
end
2511
end
2512
end
2513
end
2514
end
2515
end
2516
end
2517
2518
function DecreaseStat(Model,Stat,Amount,Duration)
2519
if Model:findFirstChild("Stats")~=nil then
2520
if Model.Stats[Stat]~=nil then
2521
Model.Stats[Stat].Value=Model.Stats[Stat].Value-Amount
2522
d=Instance.new("NumberValue",Model.Stats.Decrease)
2523
dur=Instance.new("NumberValue",d)
2524
dur.Name="Duration"
2525
dur.Value=Duration
2526
game:GetService("Debris"):AddItem(d,40)
2527
if Stat=="Damage" then
2528
d.Name="DecreaseAtk"
2529
elseif Stat=="Defense" then
2530
d.Name="DecreaseDef"
2531
elseif Stat=="Movement" then
2532
d.Name="DecreaseMvmt"
2533
end
2534
if Model:findFirstChild("Torso")~=nil then
2535
display=""
2536
if Stat=="Damage" then
2537
if Amount>0 then
2538
display="-Damage"
2539
else
2540
display="+Damage"
2541
end
2542
elseif Stat=="Defense" then
2543
if Amount>0 then
2544
display="-Defense"
2545
else
2546
display="+Defense"
2547
end
2548
elseif Stat=="Movement" then
2549
if Amount>0 then
2550
display="-Movement"
2551
else
2552
display="+Movement"
2553
end
2554
end
2555
showDamage(Model,display,"Debuff")
2556
end
2557
d.Value=Amount
2558
table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
2559
end
2560
end
2561
end
2562
2563
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
2564
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
2565
end 
2566
2567
function findNearestTorso(pos)
2568
	local list = game.Workspace:children()
2569
	local torso = nil
2570
	local dist = 10000
2571
	local temp = nil
2572
	local human = nil
2573
	local temp2 = nil
2574
	for x = 1, #list do
2575
		temp2 = list[x]
2576
		if (temp2.className == "Model") and (temp2.Name~=Character.Name) and (temp2.Name~="Crystal") then
2577
			temp = temp2:findFirstChild("Torso")
2578
			human = temp2:findFirstChild("Humanoid")
2579
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
2580
				if (temp.Position - pos).magnitude < dist then
2581
					local dohit=true
2582
					if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
2583
					if temp2:findFirstChild("Alive")==nil then dohit=false end
2584
					if dohit==true then
2585
					torso = temp
2586
					dist = (temp.Position - pos).magnitude
2587
					end
2588
				end
2589
			end
2590
		end
2591
	end
2592
	return torso,dist
2593
end
2594
2595
function findRandomTorso(pos)
2596
	local list = game.Workspace:children()
2597
	local torso = nil
2598
	local dist = 10000
2599
	local temp = nil
2600
	local human = nil
2601
	local temp2 = nil
2602
	local list2 = {}
2603
	for x = 1, #list do
2604
		temp2 = list[x]
2605
		if (temp2.className == "Model") and (temp2.Name~=Character.Name) and (temp2.Name~="Crystal") then
2606
			temp = temp2:findFirstChild("Torso")
2607
			human = temp2:findFirstChild("Humanoid")
2608
			if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
2609
				if pos.magnitude < dist then
2610
					local dohit=true
2611
					if temp2:findFirstChild("Stats")~=nil then if temp2.Stats:findFirstChild("Boss")~=nil then if temp2.Stats.Boss.Value==true then dohit=false end end end
2612
					if temp2:findFirstChild("Alive")==nil then dohit=false end
2613
					if dohit==true then
2614
					torso = temp
2615
					table.insert(list2,temp)
2616
					end
2617
				end
2618
			end
2619
		end
2620
	end
2621
	if #list2>0 then
2622
	rand=math.random(1,#list2)
2623
	return list2[rand],dist
2624
	else
2625
	return nil,dist
2626
	end
2627
end
2628
2629
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,incstun,stagger,staghit,ranged,DecreaseState,DecreaseAmount,Duration,Sound)
2630
if hit.Parent==nil then
2631
return
2632
end
2633
h=hit.Parent:FindFirstChild("Humanoid")
2634
--[[for _,v in pairs(hit.Parent:children()) do
2635
if v:IsA("Humanoid") then
2636
h=v
2637
end
2638
end]]
2639
--[[if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
2640
h=hit.Parent.Parent:FindFirstChild("Humanoid")
2641
end]]
2642
if hit.Parent.className=="Hat" then
2643
hit=hit.Parent.Parent:findFirstChild("Head")
2644
end
2645
if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent.Name~="Crystal" and hit.Parent:FindFirstChild("Torso")~=nil then
2646
if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
2647
if Sound=="GreatHit" then
2648
so("200632875",hit,1,1)
2649
end
2650
game:GetService("Debris"):AddItem(c,.5)
2651
minim=minim*Atk.Value
2652
maxim=maxim*Atk.Value
2653
Damage=0
2654
if minim==maxim or minim>maxim then
2655
Damage=maxim
2656
else
2657
Damage=math.random(minim,maxim)
2658
end
2659
blocked=false
2660
enblock=nil
2661
Stats=hit.Parent:findFirstChild("Stats")
2662
if Stats~=nil then
2663
enblock=Stats:findFirstChild("Block")
2664
if enblock~=nil then
2665
if enblock.Value==true then
2666
blocked=true
2667
end
2668
end
2669
if Stats:findFirstChild("Defense")~=nil then
2670
Damage=Damage/(Stats.Defense.Value)
2671
if Damage<=3 and (ranged==false or ranged==nil) and blocked~=true then
2672
hitnum=math.random(1,5)
2673
if hitnum==1 then so("199149321",hit,1,.7)
2674
elseif hitnum==2 then so("199149338",hit,1,.7)
2675
elseif hitnum==3 then so("199149367",hit,1,.7)
2676
elseif hitnum==4 then so("199149409",hit,1,.7)
2677
elseif hitnum==5 then so("199149452",hit,1,.7)
2678
end
2679
elseif ranged==false or ranged==nil and blocked~=true then
2680
hitnum=math.random(1,6)
2681
if hitnum==1 then so("199149137",hit,1,.7)
2682
elseif hitnum==2 then so("199149186",hit,1,.7)
2683
elseif hitnum==3 then so("199149221",hit,1,.7)
2684
elseif hitnum==4 then so("199149235",hit,1,.7)
2685
elseif hitnum==5 then so("199149269",hit,1,.7)
2686
elseif hitnum==6 then so("199149297",hit,1,.7)
2687
end
2688
end
2689
end
2690
if Stats:findFirstChild("Stun")~=nil then
2691
if blocked==true then
2692
incstun=math.floor(incstun/2)
2693
end
2694
Stats.Stun.Value=Stats.Stun.Value+incstun
2695
end
2696
if Stats:findFirstChild("Stagger")~=nil then
2697
if stagger==true then
2698
Stats.Stagger.Value=true
2699-
Player:GetMouse().KeyDown:connect(function(kek)
2699+
2700
end
2701
end
2702
if blocked==true then
2703
showDamage(hit.Parent,"Block","Damage")
2704
hitnum=math.random(1,2)
2705
if hitnum==1 then so("199148933",hit,1,1)
2706
elseif hitnum==2 then so("199148947",hit,1,1)
2707
end
2708
enblock.Value=false
2709
else
2710
Damage=math.floor(Damage)
2711
h:TakeDamage(Damage)
2712
--[[coroutine.resume(coroutine.create(function(Hum,Dam)
2713
damageFunc:InvokeServer(nil,h,Damage)
2714
--print(Dam)
2715
end),h,Damage)]]
2716
showDamage(hit.Parent,Damage,"Damage")
2717
if DecreaseState~=nil then
2718
if DecreaseState=="Shatter" then
2719
DecreaseStat(hit.Parent,"Movement",DecreaseAmount,Duration)
2720
DecreaseStat(hit.Parent,"Damage",DecreaseAmount,Duration)
2721
else
2722
DecreaseStat(hit.Parent,DecreaseState,DecreaseAmount,Duration)
2723
end
2724
end
2725
if Type=="Knockdown" then
2726
hum=hit.Parent.Humanoid
2727
hum.PlatformStand=true
2728
coroutine.resume(coroutine.create(function(HHumanoid)
2729
swait(1)
2730
HHumanoid.PlatformStand=false
2731
end),hum)
2732
local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
2733
--hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
2734
local bodvol=Instance.new("BodyVelocity")
2735
bodvol.velocity=angle*knockback
2736
bodvol.P=5000
2737
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
2738
bodvol.Parent=hit
2739
rl=Instance.new("BodyAngularVelocity")
2740
rl.P=3000
2741
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
2742
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2743
rl.Parent=hit
2744
game:GetService("Debris"):AddItem(bodvol,.5)
2745
game:GetService("Debris"):AddItem(rl,.5)
2746
elseif Type=="Shatter" then
2747
for i=1,10 do
2748
BreakEffect(BrickColor.new("Cyan"),hit.CFrame,math.random(20,80)/100,math.random(2,10),math.random(20,80)/100)
2749
end
2750
elseif Type=="Knockdown2" then
2751
hum=hit.Parent.Humanoid
2752
local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
2753
local bodvol=Instance.new("BodyVelocity")
2754
bodvol.velocity=angle*knockback
2755
bodvol.P=5000
2756
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
2757
bodvol.Parent=hit
2758
game:GetService("Debris"):AddItem(bodvol,.5)
2759
elseif Type=="Normal" then
2760
vp=Instance.new("BodyVelocity")
2761
vp.P=500
2762
vp.maxForce=Vector3.new(math.huge,0,math.huge)
2763
if KnockbackType==1 then
2764
vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
2765
elseif KnockbackType==2 then
2766
vp.velocity=Property.CFrame.lookVector*knockback
2767
end
2768
game:GetService("Debris"):AddItem(vp,.5)
2769
if knockback>0 then
2770
vp.Parent=hit.Parent.Torso
2771
end
2772
end
2773
end
2774
debounce=Instance.new("BoolValue")
2775
debounce.Name="DebounceHit"
2776
debounce.Parent=hit.Parent
2777
debounce.Value=true
2778
game:GetService("Debris"):AddItem(debounce,Delay)
2779
CRIT=false
2780
end
2781
end
2782
2783
showDamage=function(Char,Dealt,Type)
2784
m=Instance.new("Model")
2785
m.Name="Effect"
2786
c=Instance.new("Part")
2787
c.Transparency=1
2788
c.Name="Head"
2789
c.TopSurface=0
2790
c.BottomSurface=0
2791
c.formFactor="Plate"
2792
c.Size=Vector3.new(1,.4,1)
2793
b=Instance.new("BillboardGui",c)
2794
b.Size=UDim2.new(5,0,5,0)
2795
b.AlwaysOnTop=true
2796
damgui=gui("TextLabel",b,tostring(Dealt),1,Color3.new(0,0,0),UDim2.new(0,0,0,0),UDim2.new(1,0,1,0))
2797
if Type=="Damage" then
2798
damgui.Font="SourceSans"
2799
if Dealt=="Block" then
2800
damgui.TextColor3=BrickColor.new("Bright blue").Color
2801
elseif Dealt<3 then
2802
damgui.TextColor3=BrickColor.new("White").Color
2803
elseif Dealt>=3 and Dealt<20 then
2804
damgui.TextColor3=BrickColor.new("Bright yellow").Color
2805
else
2806
damgui.TextColor3=BrickColor.new("Really red").Color
2807
damgui.Font="SourceSansBold"
2808
end
2809
elseif Type=="Debuff" then
2810
damgui.TextColor3=BrickColor.new("White").Color
2811
elseif Type=="Interrupt" then
2812
damgui.TextColor3=BrickColor.new("New Yeller").Color
2813
end
2814
--damgui.FontSize="Size48"
2815
damgui.TextScaled=true
2816
ms=Instance.new("CylinderMesh")
2817
ms.Scale=Vector3.new(.8,.8,.8)
2818
ms.Parent=c
2819
c.Reflectance=0
2820
Instance.new("BodyGyro").Parent=c
2821
c.Parent=m
2822
if Char:findFirstChild("Head")~=nil then
2823
c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
2824
elseif Char.Parent:findFirstChild("Head")~=nil then
2825
c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(math.random(-100,100)/100,3,math.random(-100,100)/100))
2826
end
2827
f=Instance.new("BodyPosition")
2828
f.P=2000
2829
f.D=100
2830
f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
2831
if Type=="Damage" then
2832
f.position=c.Position+Vector3.new(0,3,0)
2833
elseif Type=="Debuff" or Type=="Interrupt" then
2834
f.position=c.Position+Vector3.new(0,5,0)
2835
end
2836
f.Parent=c
2837
game:GetService("Debris"):AddItem(m,5)
2838
table.insert(Effects,{m,"showDamage",damgui,f,10,1,15,50,100})
2839
c.CanCollide=false
2840
m.Parent=effects
2841
c.CanCollide=false
2842
end
2843
2844
KeyDown:connect(function(kek)
2845
kek = kek:lower()
2846
if kek == "z" then
2847
TurnSlam()
2848
end
2849
if kek == "x" then
2850
GrandPunch()
2851
end
2852
if kek == "c" then
2853
FrostSlam()
2854
end
2855
if kek == "v" then
2856
TriIceShards()
2857
end
2858
if kek == "q" then
2859
TriOrbs()
2860
end
2861
if kek == "e" then
2862
IceMortar()
2863
end
2864
if kek == "r" then
2865
TriIceShards2()
2866
end
2867
if kek == "f" then
2868
TriOrbs2()
2869
end
2870
end)
2871
2872
local stunnum=0
2873
local animnum=0
2874
local idle=1
2875
local animlimit=120
2876
local attacking=false
2877
while Humanoid.Health>0 do
2878
swait()
2879
for _,c in pairs(C1S:children()) do
2880
if c.Name=="Defense" then c.Value=1 end
2881
if c.Name=="Decrease" then
2882
for _,d in pairs(c:children()) do
2883
d.Parent=nil
2884
end
2885
end
2886
end
2887
for _,c in pairs(C2S:children()) do
2888
if c.Name=="Defense" then c.Value=1 end
2889
if c.Name=="Decrease" then
2890
for _,d in pairs(c:children()) do
2891
d.Parent=nil
2892
end
2893
end
2894
end
2895
for _,c in pairs(C3S:children()) do
2896
if c.Name=="Defense" then c.Value=1 end
2897
if c.Name=="Decrease" then
2898
for _,d in pairs(c:children()) do
2899
d.Parent=nil
2900
end
2901
end
2902
end
2903
for _,c in pairs(C4S:children()) do
2904
if c.Name=="Defense" then c.Value=1 end
2905
if c.Name=="Decrease" then
2906
for _,d in pairs(c:children()) do
2907
d.Parent=nil
2908
end
2909
end
2910
end
2911
if stunanim==false then
2912
Humanoid.Health=CurrentHealth
2913
else
2914
CurrentHealth=Humanoid.Health
2915
end
2916
for i=1,#refs2 do
2917
refs2[i][1].CFrame=refs2[i][2].CFrame*refs2[i][3]
2918
end
2919
if meleecooldown<100 then
2920
meleecooldown=meleecooldown+mcdadd
2921
end
2922
hitbox2.Parent=hitbox.Parent
2923
hitbox2.Size=hitbox.Size
2924
hitbox2.CFrame=hitboxCF
2925
--[[target,distance=findNearestTorso(Torso.Position)
2926
if target~=nil then
2927
local test1,dist1=findNearestTorso(Head.Position)
2928
if dist1<200 then
2929
if math.random(1,50)==1 and stunanim==false then --close projectile attack
2930
coroutine.resume(coroutine.create(function()
2931
atktype=math.random(1,4)
2932
if atktype==1 then
2933
TriIceShards2()
2934
elseif atktype==2 then
2935
TriIceShards2()
2936
elseif atktype==3 then
2937
TriIceShards2()
2938
elseif atktype==4 then
2939
TriOrbs2()
2940
end
2941
end))
2942
end
2943
end
2944
local rand=math.random(1,30)
2945
if CurrentHealth<1500 then
2946
rand=math.random(1,20)
2947
end
2948
if rand==1 and stunanim==false then --projectile attack
2949
coroutine.resume(coroutine.create(function()
2950
atktype=math.random(1,4)
2951
if atktype==1 then
2952
TriIceShards()
2953
elseif atktype==2 then
2954
TriIceShards()
2955
elseif atktype==3 then
2956
TriOrbs()
2957
elseif atktype==4 then
2958
IceMortar()
2959
end
2960
end))
2961
end
2962
if math.random(1,50)==1 and attack==false and meleecooldown>=100 and stunanim==false then --melee attack
2963
coroutine.resume(coroutine.create(function()
2964
atktype=math.random(1,3)
2965
if atktype==1 then
2966
TurnSlam()
2967
elseif atktype==2 then
2968
GrandPunch()
2969
elseif atktype==3 then
2970
FrostSlam()
2971
end
2972
end))
2973
end
2974
end
2975
if C1a==true then
2976
if C1Hum.Health<=0 then
2977
C1a=false
2978
summoncrystals=0
2979
Stun.Value=Stun.Value+160
2980
MagicCrystal(BrickColor.new("Pastel light blue"),cf(C1Head.Position),10,20,10,3,3,3,.1)
2981
Cryst1.Parent=nil
2982
end
2983
end
2984
if C2a==true then
2985
if C2Hum.Health<=0 then
2986
C2a=false
2987
summoncrystals=0
2988
Stun.Value=Stun.Value+160
2989
MagicCrystal(BrickColor.new("Pastel light blue"),cf(C2Head.Position),10,20,10,3,3,3,.1)
2990
Cryst2.Parent=nil
2991
end
2992
end
2993
if C3a==true then
2994
if C3Hum.Health<=0 then
2995
C3a=false
2996
summoncrystals=0
2997
Stun.Value=Stun.Value+160
2998
MagicCrystal(BrickColor.new("Pastel light blue"),cf(C3Head.Position),10,20,10,3,3,3,.1)
2999
Cryst3.Parent=nil
3000
end
3001
end
3002
if C4a==true then
3003
if C4Hum.Health<=0 then
3004
C4a=false
3005
summoncrystals=0
3006
Stun.Value=Stun.Value+160
3007
MagicCrystal(BrickColor.new("Pastel light blue"),cf(C4Head.Position),10,20,10,3,3,3,.1)
3008
Cryst4.Parent=nil
3009
end
3010
end
3011
if C1a==false and C2a==false and C3a==false and C4a==false then
3012
if CurrentHealth>1500 then
3013
else
3014
end
3015
crystals=false
3016
end
3017
if CurrentHealth<=1500 then
3018
end
3019
summoncrystals=summoncrystals+.1
3020
if summoncrystals>100 and crystals==false and attack==false then
3021
coroutine.resume(coroutine.create(function()
3022
while attack==true do
3023
swait()
3024
end
3025
SummonCrystals()
3026
end))
3027
end]]
3028
Humanoid.WalkSpeed=0
3029
if Stun.Value>=StunT.Value and stunanim==false and attack==false then
3030
coroutine.resume(coroutine.create(function()
3031
stunanim=true
3032
while attack==true do
3033
swait()
3034
Stun.Value=StunT.Value
3035
end
3036
summoncrystals=0
3037
StunAnim()
3038
Stun.Value=0
3039
stunanim=false
3040
end))
3041
end
3042
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
3043
local velderp=RootPart.Velocity.y
3044
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,10,Character)
3045
for _,c in pairs(Decrease:children()) do
3046
c.Parent=nil
3047
if c:findFirstChild("Duration")~=nil then
3048
c.Duration.Value=c.Duration.Value-9999
3049
if c.Duration.Value<=0 then
3050
c.Parent=nil
3051
end
3052
end
3053
if c.Name=="DecreaseAtk" then
3054
decreaseatk=decreaseatk+c.Value
3055
elseif c.Name=="DecreaseDef" then
3056
decreasedef=decreasedef+c.Value
3057
elseif c.Name=="DecreaseMvmt" then
3058
decreasemvmt=decreasemvmt+c.Value
3059
end
3060
end
3061
Atk.Value=2-decreaseatk
3062
if Atk.Value<=0 then
3063
Atk.Value=100
3064
end
3065
Def.Value=2-decreasedef
3066
if Def.Value<=0 then
3067
Def.Value=0.01
3068
end
3069
Mvmt.Value=0-decreasemvmt
3070
if Mvmt.Value<=0 then
3071
Mvmt.Value=0
3072
end
3073
decreaseatk=0
3074
decreasedef=0
3075
decreasemvmt=0
3076
AtkVal=Atk.Value*100
3077
AtkVal=math.floor(AtkVal)
3078
AtkVal=AtkVal/100
3079
DefVal=Def.Value*100
3080
DefVal=math.floor(DefVal)
3081
DefVal=DefVal/100
3082
MvmtVal=Mvmt.Value*100
3083
MvmtVal=math.floor(MvmtVal)
3084
MvmtVal=MvmtVal/100
3085
if MvmtVal<=0 then
3086
MvmtVal=0
3087
end
3088
animnum=animnum+1
3089
if animnum>=animlimit*5 then
3090
idle=1
3091
animnum=0
3092
elseif animnum>=animlimit*4 then
3093
idle=1
3094
animnum=0
3095
elseif animnum>=animlimit*3 then
3096
idle=4
3097
elseif animnum>=animlimit*2 then
3098
idle=3
3099
elseif animnum>=animlimit*1 then
3100
idle=2
3101
end
3102
if attack==false then --idle anim
3103
if idle==1 or idle==2 then
3104
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
3105
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-200,0),.005)
3106
wld19.C0=wld19.C0:lerp(euler(-.4,.3,0)*cf(94,-47.5,-2.248),.005)
3107
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,-.4,0),.005)
3108
wld24.C0=wld24.C0:lerp(euler(.8,.1,0)*cf(0,90.25,0),.005)
3109
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
3110
3111
wld33.C0=wld33.C0:lerp(euler(-.4,-.3,0)*cf(-94,-47.5,-2.248),.005)
3112
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,.4,0),.005)
3113
wld38.C0=wld38.C0:lerp(euler(-.8,.1,0)*cf(0,-90.25,0),.005)
3114
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
3115
else
3116
Neck.C0=Neck.C0:lerp(euler(0,0,0)*cf(0,35,0)*euler(.4,0,0),.005)
3117
RootJoint.C0=RootJoint.C0:lerp(cf(-1.749,-180,10)*euler(-.2,0,0),.005)
3118
wld19.C0=wld19.C0:lerp(euler(-.2,.3,0)*cf(94,-47.5,-2.248),.005)
3119
wld21.C0=wld21.C0:lerp(euler(0,0,math.rad(90))*cf(74.25,0,0)*euler(0,-.1,-.6)*euler(0,0,0),.005)
3120
wld24.C0=wld24.C0:lerp(euler(1.2,-.2,0)*cf(0,90.25,0),.005)
3121
wld29.C0=wld29.C0:lerp(euler(0,0,0)*cf(0,125,0),.005)
3122
3123
wld33.C0=wld33.C0:lerp(euler(-.2,-.3,0)*cf(-94,-47.5,-2.248),.005)
3124
wld35.C0=wld35.C0:lerp(euler(0,0,math.rad(90))*cf(-74.25,0,0)*euler(0,.1,.6)*euler(0,0,0),.005)
3125
wld38.C0=wld38.C0:lerp(euler(-1.2,-.2,0)*cf(0,-90.25,0),.005)
3126
wld43.C0=wld43.C0:lerp(euler(0,0,0)*cf(0,-125,0),.005)
3127
end
3128
end
3129
if #Effects>0 then
3130
--table.insert(Effects,{prt,"Block1",delay})
3131
for e=1,#Effects do
3132
if Effects[e]~=nil then
3133
--for j=1,#Effects[e] do
3134
local Thing=Effects[e]
3135
if Thing~=nil then
3136
local Part=Thing[1]
3137
local Mode=Thing[2]
3138
local Delay=Thing[3]
3139
local IncX=Thing[4]
3140
local IncY=Thing[5]
3141
local IncZ=Thing[6]
3142
if Thing[2]=="DecreaseStat" then
3143
--table.insert(Effects,{Model,"DecreaseStat",Stat,Amount,Duration,d})
3144
Thing[5]=Thing[5]-1
3145
if Thing[5]<=0 then
3146
if Thing[1]:findFirstChild("Stats")~=nil then
3147
if Thing[1].Stats:findFirstChild("Decrease")~=nil then
3148
--Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4]
3149
end
3150
end
3151
Thing[6].Parent=nil
3152
table.remove(Effects,e)
3153
end
3154
end
3155
if Thing[2]=="CylinderClang" then
3156
if Thing[3]<=1 then
3157
Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0) 
3158
Thing[7]=Thing[1].CFrame
3159
effect("New Yeller",0,Thing[8],Thing[7])
3160
Thing[8]=Thing[7]
3161
Thing[3]=Thing[3]+Thing[4]
3162
else
3163
Part.Parent=nil
3164
table.remove(Effects,e)
3165
end
3166
end
3167
if Thing[2]=="showDamage" then
3168
if Thing[6]<Thing[5] then
3169
Thing[6]=Thing[6]+1
3170
elseif Thing[6]<Thing[7] then
3171
Thing[4].position=Thing[4].position+vt(0,-.2,0)
3172
Thing[6]=Thing[6]+1
3173
elseif Thing[6]<Thing[8] then
3174
Thing[6]=Thing[6]+1
3175
elseif Thing[6]<Thing[9] then
3176
Thing[6]=Thing[6]+1
3177
Thing[4].position=Thing[4].position+vt(0,.2,0)
3178
Thing[3].TextStrokeTransparency=Thing[3].TextStrokeTransparency+.1
3179
Thing[3].TextTransparency=Thing[3].TextTransparency+.1
3180
else
3181
Thing[1].Parent=nil
3182
table.remove(Effects,e)
3183
end
3184
end
3185
if Thing[2]=="ShootIce" then
3186
local Look=Thing[1]
3187
local hit,pos = rayCast(Thing[4],Look.lookVector,Thing[9],Character)
3188
local mag=(Thing[4]-pos).magnitude 
3189
--MagicHead(BrickColor.new(NewCol),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,.2)
3190
Thing[8].CFrame=CFrame.new((Thing[4]+pos)/2,pos)*euler(-1.57,0,0)
3191
Thing[4]=Thing[4]+(Look.lookVector*Thing[9])
3192
Thing[3]=Thing[3]-1
3193
Thing[9]=Thing[9]+.2
3194
if hit~=nil then
3195
Thing[3]=0
3196
--DecreaseStat(hit.Parent,"Movement",.02,50,false)
3197
--Damagefunc(hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,3),nil,nil,true)
3198
ref=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt())
3199
ref.Anchored=true
3200
ref.CFrame=cf(pos)
3201
--MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
3202
game:GetService("Debris"):AddItem(ref,1)
3203
ref2=part(3,effects,0,1,BrickColor.new("Really red"),"Reference",vt(5,5,5))
3204
ref2.Anchored=true
3205
ref2.CFrame=cf(pos)
3206
--MagicCircle(BrickColor.new(NewCol3),cf(pos),5,5,5,1,1,1,0.2)
3207
so("199146181",ref2,1,1.6)
3208
game:GetService("Debris"):AddItem(ref2,5)
3209
--MagicCircle(BrickColor.new("Cyan"),ref.CFrame,40,40,40,1,1,1,.05)
3210
freeze=true
3211
MagicCircle(BrickColor.new("Cyan"),cf(ref.Position),20,20,20,20,20,20,.1)
3212
MagniDamage(ref,15,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(10,15),nil,nil,true,"Movement",.1,100)
3213
freeze=false
3214
for i=1,8 do
3215
BreakEffect(BrickColor.new("Pearl"),ref.CFrame*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100),math.random(60,120)/100,math.random(3,20),math.random(60,120)/100)
3216
end
3217
end
3218
if Thing[3]<=0 then
3219
Thing[8].Transparency=1
3220
Thing[11].Enabled=false
3221
Thing[12].Enabled=false
3222
game:GetService("Debris"):AddItem(Thing[8],5)
3223
table.remove(Effects,e)
3224
end
3225
end
3226
if Thing[2]=="SatelliteStrike" then
3227
if Thing[5]<200 then
3228
Thing[5]=Thing[5]+2
3229
Thing[4].Scale=vt(Thing[5],5,Thing[5])
3230
else
3231
refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
3232
refda.Anchored=true
3233
refda.CFrame=cf(Thing[1].Position)
3234
game:GetService("Debris"):AddItem(refda,1)
3235
so("334325056",refda,1,1)
3236
so("199145739",refda,.8,2)
3237
MagniDamage(refda,20,8,10,0,"Knockdown2",refda,0,1,math.random(10,12),nil,nil,true,"Movement",.4,100)
3238
MagicHead(BrickColor.new("Medium blue"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
3239
MagicBlock(BrickColor.new("Medium blue"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
3240
for i=1,15 do
3241
local freezepart=part(3,effects,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(500,800)/100,math.random(500,800)/100,math.random(500,800)/100))
3242
freezepart.Anchored=true
3243
freezepart.CanCollide=true
3244
freezepart.CFrame=cf(refda.Position)*cf(math.random(-2000,2000)/100,0,math.random(-2000,2000)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
3245
game:GetService("Debris"):AddItem(freezepart,5)
3246
end
3247
Thing[1].Parent=nil
3248
--MagicIcicle(BrickColor.new("Bright green"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
3249
table.remove(Effects,e)
3250
end
3251
end
3252
if Thing[2]=="SatelliteStrike2" then
3253
if Thing[5]<300 then
3254
Thing[5]=Thing[5]+2
3255
Thing[4].Scale=vt(Thing[5],5,Thing[5])
3256
else
3257
refda=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
3258
refda.Anchored=true
3259
refda.CFrame=cf(Thing[1].Position)
3260
game:GetService("Debris"):AddItem(refda,1)
3261
refda2=part(3,effects,0,1,BrickColor.new("Black"),"Reference",vt())
3262
refda2.Anchored=true
3263
refda2.CFrame=refda.CFrame*cf(0,-10,0)
3264
game:GetService("Debris"):AddItem(refda2,1)
3265
so("178452221",refda,1,1.2)
3266
so("334325056",refda,1,1)
3267
MagniDamage(refda,30,8,10,math.random(40,60),"Knockdown2",refda2,0,1,math.random(15,20),nil,nil,true,"Damage",.4,300)
3268
--MagicHead(BrickColor.new("Medium blue"),cf(refda.Position),50,99999,50,-4,1,-4,.1)
3269
MagicBlock(BrickColor.new("Medium blue"),cf(refda.Position),120,120,120,-5,-5,-5,.07,1)
3270
MagicWave2(BrickColor.new("Cyan"),cf(refda.Position),40,30,40,5,8,5,.07)
3271
--[[for i=1,15 do
3272
local freezepart=part(3,effects,0.5,0.5,BrickColor.new("Bright blue"),"Ice Part",vt(math.random(500,800)/100,math.random(500,800)/100,math.random(500,800)/100))
3273
freezepart.Anchored=true
3274
freezepart.CanCollide=true
3275
freezepart.CFrame=cf(refda.Position)*cf(math.random(-1500,1500)/100,0,math.random(-1500,1500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
3276
game:GetService("Debris"):AddItem(freezepart,5)
3277
end]]
3278
Thing[1].Parent=nil
3279
--MagicIcicle(BrickColor.new("Bright green"),cf(Thing[1].Position)*cf(0,-4,0)*euler(math.random(-50,50)/100,0,math.random(-50,50)/100),5,15,5,.05)
3280
table.remove(Effects,e)
3281
end
3282
end
3283
if Thing[2]~="DecreaseStat" and Thing[2]~="showDamage" and Thing[2]~="ShootIce" and Thing[2]~="SatelliteStrike" and Thing[2]~="SatelliteStrike2" then
3284
if Thing[1].Transparency<=1 then
3285
if Thing[2]=="Block1" then
3286
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
3287
Mesh=Thing[7]
3288
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
3289
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3290
elseif Thing[2]=="Block2" then
3291
Thing[1].CFrame=Thing[1].CFrame
3292
Mesh=Thing[7]
3293
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
3294
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3295
elseif Thing[2]=="Cylinder" then
3296
Mesh=Thing[7]
3297
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
3298
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3299
elseif Thing[2]=="Cylinder2" then
3300
Mesh=Thing[7]
3301
if Thing[1].Transparency<=.5 then
3302
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
3303
Thing[8]=Thing[8]+.2
3304
Thing[1].CFrame=Thing[1].CFrame*cf(0,1,0)*euler(0,Thing[8],0)
3305
else
3306
Mesh.Scale=Mesh.Scale+vt(Thing[4]/2,-Thing[5]/1,Thing[6]/2)
3307
Thing[1].CFrame=Thing[1].CFrame*cf(0,-1,0)
3308
end
3309
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3310
elseif Thing[2]=="Shatter" then
3311
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3312
Thing[4]=Thing[4]*cf(0,Thing[7],0)
3313
Thing[1].CFrame=Thing[4]*euler(Thing[6],0,0)
3314
--Thing[1].CFrame=Thing[1].CFrame
3315
Thing[6]=Thing[6]+Thing[5]
3316
elseif Thing[2]=="Blood" then
3317
Mesh=Thing[7]
3318
Thing[1].CFrame=Thing[1].CFrame*cf(0,Thing[8],0)
3319
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
3320
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3321
elseif Thing[2]=="Elec" then
3322
Mesh=Thing[7]
3323
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
3324
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3325
elseif Thing[2]=="Disappear" then
3326
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
3327
end
3328
else
3329
table.remove(Effects,e)
3330
end
3331
end
3332
end
3333
--end
3334
end
3335
end
3336
end
3337
end
3338
refs.Parent=nil
3339
effects.Parent=nil
3340
Humanoid.Parent=nil
3341
for _,c in pairs(Character:children()) do
3342
if c.className=="Part" then
3343
--[[c:BreakJoints()
3344
c.CanCollide=true
3345
c.Anchored=false]]
3346
c.Anchored=true
3347
end
3348
end
3349
for _,c in pairs(armor:children()) do
3350
if c.className=="Part" then
3351
--[[c:BreakJoints()
3352
c.CanCollide=true
3353
c.Anchored=false]]
3354
c.Anchored=true
3355
end
3356
end
3357
for _,c in pairs(Character:children()) do
3358
if c.className=="Part" then
3359
if c.Name~="Left Arm" then
3360
swait()
3361
end
3362
c:BreakJoints()
3363
c.CanCollide=false
3364
c.Anchored=false
3365
end
3366
end
3367
for _,c in pairs(armor:children()) do
3368
if c.className=="Part" then
3369
swait()
3370
c:BreakJoints()
3371
c.CanCollide=false
3372
c.Anchored=false
3373
end
3374
end
3375
--[[ 
3376
Copyrighted (C) Fenrier 2015
3377
]]