View difference between Paste ID: r3JCnLDV and zYUMCsBE
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
2
do
3
	script.Parent = owner.Character
4
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
5
	local function NewFakeEvent()
6
		local Bind = Instance.new("BindableEvent")
7
		local Fake;Fake = {Connections = {},
8
		fakeEvent=true;
9
		Connect=function(self,Func)
10
			Bind.Event:connect(Func)
11
			self.Connections[Bind] = true
12
			return setmetatable({Connected = true},{
13
			__index = function (self,Index)
14
				if Index:lower() == "disconnect" then
15
					return function() Fake.Connections[Bind] = false;self.Connected = false end
16
				end
17
				return Fake[Index]
18
			end;
19
			__tostring = function() return "Connection" end;
20
		})
21
		end}
22
		Fake.connect = Fake.Connect;return Fake;
23
	end
24
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
25
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
26
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
27
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
28
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
29
	local function TriggerEvent(self,Event,...)
30
		local Trigger = Mouse[Event]
31
		if Trigger and Trigger.fakeEvent and Trigger.Connections then
32
			for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
33
		end
34
	end
35
	Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
36
	Event.OnServerEvent:Connect(function(FiredBy,Input)
37
		if FiredBy.Name ~= owner.Name then return end
38
		if Input.MouseEvent then
39
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
40
		else
41
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
42
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
43
			for _,Action in pairs(ContextActionService.Actions) do
44
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
45
			end
46
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
47
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
48
		end
49
	end)
50
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
51
	Event.Parent = NLS([[
52
		local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
53
		local Input = function(Input,gameProcessedEvent)
54
			if gameProcessedEvent then return end
55
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
56
		end
57
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
58
		local Hit,Target
59
		while wait(1/30) do
60
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
61
				Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
62
			end
63
		end
64
	]],owner.Character)
65
end
66
RealGame = game;game = setmetatable({},{
67
	__index = function (self,Index)
68
		local Sandbox = function (Thing)
69
			if Thing:IsA("Player") then
70
				local RealPlayer = Thing
71
				return setmetatable({},{
72
					__index = function (self,Index)
73
						local Type = type(RealPlayer[Index])
74
						if Type == "function" then
75
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
76
								return function (self)return InternalData["Mouse"] end
77
							end
78
							return function (self,...)return RealPlayer[Index](RealPlayer,...) end
79
						end
80
						return RealPlayer[Index]
81
					end;
82
					__tostring = function(self) return RealPlayer.Name end
83
				})
84
			end
85
		end
86
		if RealGame[Index] then
87
			local Type = type(RealGame[Index])
88
			if Type == "function" then
89
				if Index:lower() == "getservice" or Index:lower() == "service" then
90
					return function (self,Service)
91
						local FakeServices = {
92
							["players"] = function()
93
								return setmetatable({},{
94
									__index = function (self2,Index2)
95
										local RealService = RealGame:GetService(Service)
96
										local Type2 = type(Index2)
97
										if Type2 == "function" then
98
											return function (self,...) return RealService[Index2](RealService,...)end
99
										else
100
											if Index2:lower() == "localplayer" then return Sandbox(owner) end
101
											return RealService[Index2]
102
										end
103
									end;
104
									__tostring = function(self) return RealGame:GetService(Service).Name end
105
								})
106
							end;
107
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
108
							["userinputservice"] = function() return InternalData["UserInputService"] end;
109
							["runservice"] = function()
110
								return setmetatable({},{
111
									__index = function(self2,Index2)
112
										local RealService = RealGame:GetService(Service)
113
										local Type2 = type(Index2)
114
										if Type2 == "function" then
115
											return function (self,...) return RealService[Index2](RealService,...) end
116
										else
117
											local RunServices = {
118
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
119
												["renderstepped"] = function() return RealService["Stepped"] end
120
											}
121
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
122
											return RealService[Index2]
123
										end
124
									end
125
								})
126
							end
127
						}
128
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
129
						return RealGame:GetService(Service)
130
					end
131
				end
132
				return function (self,...) return RealGame[Index](RealGame,...) end
133
			else
134
				if game:GetService(Index) then return game:GetService(Index) end
135
				return RealGame[Index]
136
			end
137
		end
138
		return nil
139
	end
140
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
141
142
143
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"With this blade forged with the blood of the great one's, you will be cut down!", "Green")
144
wait(2.6)
145
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Annihilation Blade!", "Red")
146
Player=game:GetService("Players").LocalPlayer
147
Character=Player.Character
148
PlayerGui=Player.PlayerGui
149
Backpack=Player.Backpack
150
Torso=Character.Torso
151
Head=Character.Head
152
Humanoid=Character.Humanoid
153
print('Player is Eliagable')
154
LeftArm=Character["Left Arm"]
155
LeftLeg=Character["Left Leg"]
156
RightArm=Character["Right Arm"]
157
RightLeg=Character["Right Leg"]
158
LS=Torso["Left Shoulder"]
159
LH=Torso["Left Hip"]
160
RS=Torso["Right Shoulder"]
161
RH=Torso["Right Hip"]
162
Neck=Torso.Neck
163
it=Instance.new
164
vt=Vector3.new
165
cf=CFrame.new
166
euler=CFrame.fromEulerAnglesXYZ
167
angles=CFrame.Angles
168
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
169
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
170
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
171
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
172
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
173
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
174
RootPart=Character.HumanoidRootPart
175
RootJoint=RootPart.RootJoint
176
RootCF=euler(-1.57,0,3.14)
177
attack=false
178
attackdebounce=false
179
MMouse=nil
180
combo=0
181
local Anim="Idle"
182
local Effects={}
183
equipped=false
184
local idle=0
185
local hold=false
186
local con1=nil
187
local con2=nil
188
local Mode="Binary"
189
local idleanim=0
190
local idleanim2=false
191
local impulse=1
192
local hitfloor,posfloor=nil,nil
193
local damcount=0
194
local guard=false
195
--player
196
player=nil
197
--save shoulders
198
RSH, LSH=nil, nil
199
--welds
200
RW, LW=Instance.new("Weld"), Instance.new("Weld")
201
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
202
LH=Torso["Left Hip"]
203
RH=Torso["Right Hip"]
204
Asset="http://www.roblox.com/asset/?id="
205
Health=879000
206
Humanoid.MaxHealth=879000
207
Humanoid.Health=879000
208
coroutine.resume(coroutine.create(function()
209
for i=1,20 do
210
Humanoid.MaxHealth=879000
211
Humanoid.Health=879000
212
end
213
Humanoid.MaxHealth=879000
214
Humanoid.Health=879000
215
Humanoid:TakeDamage(0)
216
Humanoid.Health=Health
217
end))
218
Humanoid.Health=Health
219
 
220
function swait(num)
221
if num==0 or num==nil then
222
game:service'RunService'.RenderStepped:wait()
223
else
224
for i=0,num do
225
game:service'RunService'.RenderStepped:wait()
226
end
227
end
228
end
229
 
230
if Character:findFirstChild("Hades Judgement Blade",true) ~= nil then
231
Character:findFirstChild("Hades Judgement Blade",true).Parent = nil
232
end
233
if Character:findFirstChild("Demon Blade",true) ~= nil then
234
Character:findFirstChild("Demon Blade",true).Parent = nil
235
end
236
if Player.PlayerGui:findFirstChild("WeaponGUI",true) ~= nil then
237
Player.PlayerGui:findFirstChild("WeaponGUI",true).Parent = nil
238
end
239
 
240
 
241
function NoOutline(Part)
242
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
243
end
244
 
245
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
246
local fp=it("Part")
247
fp.formFactor=formfactor
248
fp.Parent=parent
249
fp.Reflectance=reflectance
250
fp.Transparency=transparency
251
fp.CanCollide=false
252
fp.Locked=true
253
fp.BrickColor=brickcolor
254
fp.Name=name
255
fp.Size=size
256
fp.Position=Torso.Position
257
NoOutline(fp)
258
fp.Material="Granite"
259
fp:BreakJoints()
260
return fp
261
end
262
 
263
function mesh(Mesh,part,meshtype,meshid,offset,scale)
264
local mesh=it(Mesh)
265
mesh.Parent=part
266
if Mesh=="SpecialMesh" then
267
mesh.MeshType=meshtype
268
mesh.MeshId=meshid
269
end
270
mesh.Offset=offset
271
mesh.Scale=scale
272
return mesh
273
end
274
 
275
function weld(parent,part0,part1,c0)
276
local weld=it("Weld")
277
weld.Parent=parent
278
weld.Part0=part0
279
weld.Part1=part1
280
weld.C0=c0
281
return weld
282
end
283
 
284
local fengui=it("GuiMain")
285
fengui.Parent=Player.PlayerGui
286
fengui.Name="WeaponGUI"
287
 
288
local Color1=BrickColor.new("Really red")
289
local Color2=BrickColor.new("Black")
290
local Colorr3=BrickColor.new("Black")
291
local Color4=BrickColor.new("Really red")
292
 
293
local model1=Instance.new("Model")
294
model1.Parent=Character
295
model1.Name="Hades Judgement Blade"
296
BSword={}
297
BSwordWelds={}
298
local model2=Instance.new("Model")
299
model2.Parent=nil
300
model2.Name="Demon Blade"
301
DBlade={}
302
DBladeWelds={}
303
 
304
prt1=part(3,model1,0,1,Color1,"Part1",vt())
305
prt2=part(3,model1,0,0,Color2,"Part2",vt())
306
prt3=part(3,model1,0,0,Color2,"Part3",vt())
307
prt4=part(3,model1,0,0,Colorr3,"Part4",vt())
308
prt5=part(3,model1,0,0,Colorr3,"Part5",vt())
309
prt6=part(3,model1,0.7,0,Color4,"Part6",vt())
310
prt7=part(3,model1,0.7,0,Color4,"Part7",vt())
311
prt8=part(3,model1,0.7,0,Color4,"Part8",vt())
312
prt9=part(3,model1,0.7,0,Color4,"Part9",vt())
313
prt10=part(3,model1,0,0,Colorr3,"Part10",vt())
314
prt11=part(3,model1,0,0,Colorr3,"Part11",vt())
315
prt12=part(3,model1,0,0,Colorr3,"Part12",vt())
316
 
317
prtd1=part(3,model2,0,0.4,BrickColor.new("Really red"),"DPart1",vt())
318
prtd2=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart2",vt())
319
prtd3=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart3",vt())
320
prtd4=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart4",vt())
321
prtd5=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart5",vt())
322
prtd6=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart6",vt())
323
prtd7=part(3,model2,0.8,0,BrickColor.new("Really red"),"DPart7",vt())
324
prtd8=part(3,model2,0.8,0,BrickColor.new("Really red"),"DPart8",vt())
325
prtd9=part(3,model2,0.5,0.2,BrickColor.new("Really red"),"DPart9",vt())
326
prtd10=part(3,model2,0.5,0.2,BrickColor.new("Really red"),"DPart10",vt())
327
prtd11=part(3,model2,0.5,0,BrickColor.new("Really red"),"DPart11",vt())
328
prtd12=part(3,model2,0,0,BrickColor.new("Really Really black"),"DPart12",vt())
329
for _,c in pairs(model2:children()) do
330
if c.className=="Part" then
331
table.insert(DBlade,c)
332
end
333
end
334
light=it("PointLight")
335
light.Brightness=.8
336
light.Color=Color3.new(255/255,50/255,0)
337
--light.Color=BrickColor.new("Really red")
338
light.Range=10
339
light.Parent=prtd9
340
 
341
msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
342
msh2=mesh("CylinderMesh",prt2,"","",vt(0,0,0),vt(2,10,2))
343
msh3=mesh("SpecialMesh",prt3,"Head","",vt(0,0,0),vt(2.5,2,2.5))
344
msh4=mesh("SpecialMesh",prt4,"Sphere","",vt(0,0,0),vt(3,3,3))
345
msh5=mesh("SpecialMesh",prt5,"FileMesh","http://www.roblox.com/asset/?id=9756362",vt(0,0,0),vt(0.5,0.5,1))
346
msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(.5,20,1))
347
msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(.5,20,1))
348
msh8=mesh("SpecialMesh",prt8,"Wedge","",vt(0,0,0),vt(.5,5,1))
349
msh9=mesh("SpecialMesh",prt9,"Wedge","",vt(0,0,0),vt(.5,5,1))
350
msh10=mesh("BlockMesh",prt10,"","",vt(0,0,0),vt(.6,20,0.2))
351
msh11=mesh("SpecialMesh",prt11,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
352
msh12=mesh("SpecialMesh",prt12,"Wedge","",vt(0,0,0),vt(.6,5,0.1))
353
 
354
mshd1=mesh("BlockMesh",prtd1,"","",vt(0,0,0),vt(5.01,3,5.01))
355
mshd2=mesh("BlockMesh",prtd2,"","",vt(0,0,0),vt(5.1,3,5.1))
356
mshd3=mesh("SpecialMesh",prtd3,"Wedge","",vt(0,0,0),vt(5.05,4,3))
357
mshd4=mesh("SpecialMesh",prtd4,"Wedge","",vt(0,0,0),vt(5.05,4,3))
358
mshd5=mesh("SpecialMesh",prtd5,"Wedge","",vt(0,0,0),vt(5.5,6,6))
359
mshd6=mesh("SpecialMesh",prtd6,"Wedge","",vt(0,0,0),vt(5.5,6,6))
360
mshd7=mesh("BlockMesh",prtd7,"","",vt(0,0,0),vt(3,20,1))
361
mshd8=mesh("SpecialMesh",prtd8,"Wedge","",vt(0,0,0),vt(1,3,5))
362
mshd9=mesh("BlockMesh",prtd9,"","",vt(0,0,0),vt(4.5,20,.1))
363
mshd10=mesh("SpecialMesh",prtd10,"Wedge","",vt(0,0,0),vt(.1,4.5,8))
364
mshd11=mesh("CylinderMesh",prtd11,"","",vt(0,0,0),vt(4,5.8,4))
365
mshd12=mesh("CylinderMesh",prtd12,"","",vt(0,0,0),vt(3,5.9,3))
366
 
367
wld1=weld(prt1,prt1,Torso,euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5))
368
wld2=weld(prt2,prt2,prt1,euler(0,0,0)*cf(0,0,0))
369
wld3=weld(prt3,prt3,prt2,euler(0,0,0)*cf(0,1,0))
370
wld4=weld(prt4,prt4,prt2,euler(0,0,0)*cf(0,-1,0))
371
wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,-0.2,0))
372
wld6=weld(prt6,prt6,prt5,euler(0,0,0)*cf(0,-2,0.1))
373
wld7=weld(prt7,prt7,prt5,euler(0,0,0)*cf(0,-2,-0.1))
374
wld8=weld(prt8,prt8,prt6,euler(0,0,0)*cf(0,-2.5,0))
375
wld9=weld(prt9,prt9,prt7,euler(0,3.14,0)*cf(0,-2.5,0))
376
wld10=weld(prt10,prt10,prt5,euler(0,0,0)*cf(0,-2,0))
377
wld11=weld(prt11,prt11,prt10,euler(0,0,0)*cf(0,-2.5,0.01))
378
wld12=weld(prt12,prt12,prt10,euler(0,3.14,0)*cf(0,-2.5,-0.01))
379
 
380
wldd1=weld(prtd1,prtd1,RightArm,euler(0,0,0)*cf(0,.21,0))
381
wldd2=weld(prtd1,prtd2,prtd1,euler(0,0,0)*cf(0,.5,0))
382
wldd3=weld(prtd1,prtd3,prtd2,euler(0,1.57,0)*cf(.21,-.6,0))
383
wldd4=weld(prtd1,prtd4,prtd2,euler(0,-1.57,0)*cf(-.21,-.6,0))
384
wldd5=weld(prtd1,prtd5,prtd2,euler(0,-1.57,0)*cf(.1,-.1,0))
385
wldd6=weld(prtd1,prtd6,prtd5,euler(0,0,3.14)*cf(0,1.2,0))
386
wldd7=weld(prtd1,prtd7,prtd2,euler(0,0,0)*cf(0,2.5,0))
387
wldd8=weld(prtd1,prtd8,prtd7,euler(1.57,1.57,0)*cf(0,2.5,0))
388
wldd9=weld(prtd1,prtd9,prtd7,euler(0,0,0)*cf(0,0,0))
389
wldd10=weld(prtd1,prtd10,prtd8,euler(0,0,0)*cf(0,0,0.3))
390
wldd11=weld(prtd1,prtd11,prtd1,euler(1.57,0,0)*cf(0,1,0))
391
wldd12=weld(prtd1,prtd12,prtd11,euler(0,0,0)*cf(0,0,0))
392
for _,c in pairs(prtd1:children()) do
393
if c.className=="Weld" then
394
table.insert(DBladeWelds,c)
395
print(c)
396
end
397
end
398
 
399
for i=-.9,.9,0.2 do
400
prt13=part(3,model1,0,0,Color1,"Part13",vt())
401
msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(2.2,1,2.2))
402
wld13=weld(prt13,prt13,prt1,euler(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*cf(0,i,0))
403
end
404
 
405
local hitbox1=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
406
local hitbox2=part(3,nil,0,1,BrickColor.new("Really black"),"Hitbox",vt(1,1,1))
407
 
408
if (script.Parent.className~="HopperBin") then
409
Tool=Instance.new("HopperBin")
410
Tool.Parent=Backpack
411
Tool.Name="Hades Judgement Blade"
412
script.Parent=Tool
413
end
414
Bin=script.Parent
415
--Bin=Tool
416
 
417
local bodvel=Instance.new("BodyVelocity")
418
bodvel.Name="FixerVel"
419
local bg=Instance.new("BodyGyro")
420
bg.Name="FixerGyro"
421
 
422
so = function(id,par,vol,pit)
423
coroutine.resume(coroutine.create(function()
424
local sou = Instance.new("Sound",par or workspace)
425
sou.Parent=par
426
sou.Volume=vol
427
sou.Pitch=pit or 1
428
sou.SoundId=id
429
swait()
430
sou:Play()
431
game:GetService("Debris"):AddItem(sou,6)
432
end))
433
end
434
 
435
function clerp(a,b,t)
436
local qa = {QuaternionFromCFrame(a)}
437
local qb = {QuaternionFromCFrame(b)}
438
local ax, ay, az = a.x, a.y, a.z
439
local bx, by, bz = b.x, b.y, b.z
440
local _t = 1-t
441
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
442
end
443
 
444
function QuaternionFromCFrame(cf)
445
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
446
local trace = m00 + m11 + m22
447
if trace > 0 then
448
local s = math.sqrt(1 + trace)
449
local recip = 0.5/s
450
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
451
else
452
local i = 0
453
if m11 > m00 then
454
i = 1
455
end
456
if m22 > (i == 0 and m00 or m11) then
457
i = 2
458
end
459
if i == 0 then
460
local s = math.sqrt(m00-m11-m22+1)
461
local recip = 0.5/s
462
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
463
elseif i == 1 then
464
local s = math.sqrt(m11-m22-m00+1)
465
local recip = 0.5/s
466
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
467
elseif i == 2 then
468
local s = math.sqrt(m22-m00-m11+1)
469
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
470
end
471
end
472
end
473
 
474
function QuaternionToCFrame(px, py, pz, x, y, z, w)
475
local xs, ys, zs = x + x, y + y, z + z
476
local wx, wy, wz = w*xs, w*ys, w*zs
477
local xx = x*xs
478
local xy = x*ys
479
local xz = x*zs
480
local yy = y*ys
481
local yz = y*zs
482
local zz = z*zs
483
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))
484
end
485
 
486
function QuaternionSlerp(a, b, t)
487
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
488
local startInterp, finishInterp;
489
if cosTheta >= 0.0001 then
490
if (1 - cosTheta) > 0.0001 then
491
local theta = math.acos(cosTheta)
492
local invSinTheta = 1/math.sin(theta)
493
startInterp = math.sin((1-t)*theta)*invSinTheta
494
finishInterp = math.sin(t*theta)*invSinTheta  
495
else
496
startInterp = 1-t
497
finishInterp = t
498
end
499
else
500
if (1+cosTheta) > 0.0001 then
501
local theta = math.acos(-cosTheta)
502
local invSinTheta = 1/math.sin(theta)
503
startInterp = math.sin((t-1)*theta)*invSinTheta
504
finishInterp = math.sin(t*theta)*invSinTheta
505
else
506
startInterp = t-1
507
finishInterp = t
508
end
509
end
510
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
511
end
512
 
513
function hideanim()
514
equipped=false
515
attack=true
516
if Mode=="Binary" then
517
so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
518
for i=0,1,0.1 do
519
swait()
520
wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
521
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
522
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
523
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
524
end
525
wld1.Part1=Torso
526
wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
527
for i=0,1,0.2 do
528
swait()
529
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(0.5,0,0),.3)
530
end
531
for i=0,1,0.1 do
532
swait()
533
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
534
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
535
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
536
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
537
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
538
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
539
end
540
--wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
541
else
542
for i=0,1,0.1 do
543
swait()
544
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
545
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
546
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.5,0,0),.3)
547
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
548
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
549
LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
550
end
551
so("http://roblox.com/asset/?id=161006163",RightArm,1,.4)
552
so("http://roblox.com/asset/?id=160867463",RightArm,1,1.2)
553
for i=0,1,0.015 do
554
swait()
555
for i=1,3 do
556
if math.random(1,5)==1 then
557
MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,0-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
558
else
559
MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
560
end
561
end
562
end
563
model2.Parent=nil
564
for i=0,1,0.1 do
565
swait()
566
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
567
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.4)
568
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,0),.4)
569
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.4)
570
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
571
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
572
end
573
end
574
Torso.Neck.C0=necko
575
Torso.Neck.C1=necko2
576
RootJoint.C0=RootCF
577
RW.C0=cf(1.5,0.5,0)*euler(0,0,0)
578
RW.C1=cf(0,0.5,0)*euler(0,0,0)
579
LW.C0=cf(-1.5,0.5,0)*euler(0,0,0)
580
LW.C1=cf(0,0.5,0)*euler(0,0,0)
581
RH.C0=RHC0
582
RH.C1=RHC1
583
LH.C0=LHC0
584
LH.C1=LHC1
585
Mode="Binary"
586
attack=false
587
end
588
 
589
function equipanim()
590
equipped=true
591
attack=true
592
for i=0,1,0.2 do
593
swait()
594
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
595
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3,0,0),.4)
596
end
597
for i=0,1,0.1 do
598
swait()
599
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.5,0,-0.6),.3)
600
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
601
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
602
end
603
so("rbxasset://sounds\\unsheath.wav",prt1,1,.6)
604
wld1.Part1=RightArm
605
wld1.C0=euler(.2,0,-.5)*cf(0,1,0)
606
for i=0,1,0.1 do
607
swait()
608
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,0),.3)
609
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-0.5),.3)
610
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(.5,-0.5,0),.3)
611
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
612
end
613
for i=0,1,0.1 do
614
swait()
615
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
616
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
617
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
618
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1,-0.5,-0.7),.3)
619
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1,-0.5,0.5),.3)
620
end
621
--wld1=weld(prt1,prt1,RightArm,euler(1.57,0,0)*cf(0,1,-0.3))
622
wld1.C0=euler(1.57,0,0)*cf(0,1,-0.3)
623
Torso.Neck.C0=necko*euler(0,0,0.5)
624
RootJoint.C0=RootCF*euler(0,0,-0.5)
625
RW.C0=cf(1,0.5,-0.5)*euler(1,-0.5,-0.7)
626
RW.C1=cf(0,0.5,0)*euler(0,0,0)
627
LW.C0=cf(-1,0.5,-0.5)*euler(1,-0.5,0.5)
628
LW.C1=cf(0,0.5,0)*euler(0,0,0)
629
attack=false
630
end
631
 
632
function Stomp()
633
Humanoid.WalkSpeed=0
634
Torso.Velocity=RootPart.CFrame.lookVector*0
635
so("http://roblox.com/asset/?id=157878578",Torso,1,0.8)
636
so("http://roblox.com/asset/?id=2760979",Torso,1,0.4)
637
--so("http://roblox.com/asset/?id=2101148",Torso,1,0.6)
638
MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0),1,1,1,1.5,1,1.5,0.05)
639
Dam=math.random(5,10)
640
Humanoid.Health=Humanoid.Health-Dam
641
MagniDamage(Torso,50,50,50,math.random(10000,20000),"Knockdown")
642
--[[for i=0,1,0.2 do
643
swait()
644
if Mode=="Binary" then
645
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
646
end
647
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,0.5),.3)
648
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-1.2),.3)
649
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
650
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,0),.3)
651
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.3)
652
LH.C0=clerp(LH.C0,cf(-1.1,-.5,-0.5)*euler(-0.2,-1.3,0),.3)
653
end
654
for i=0,1,0.1 do
655
swait()
656
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.6,0,0),.3)
657
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*euler(0,0,0),.3)
658
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.4,1.57,0),.3)
659
LH.C0=clerp(LH.C0,cf(-1.2,-.2,-0.5)*euler(-0.3,-1.3,0),.3)
660
end]]
661
swait(10)
662
Humanoid.WalkSpeed=16
663
end
664
 
665
function attackone()
666
attack=true
667
for i=0,1,0.1 do
668
swait()
669
wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
670
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
671
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
672
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2,-0.5,-0.2),.3)
673
LW.C0=clerp(LW.C0,cf(-.5,0.5,-0.5)*euler(2.5,-0.5,0.8),.3)
674
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
675
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
676
end
677
hitbox1.Parent=model1
678
hitbox1.Size=vt(1,5,1)
679
hitbox1.Transparency=1
680
hitbox1.CFrame=prt10.CFrame
681
--con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
682
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
683
so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
684
blcf=nil
685
scfr=nil
686
for i=0,1,0.25 do
687
swait()
688
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
689
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
690
local h = 5
691
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)
692
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
693
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)
694
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
695
scfr = blcf
696
elseif not scfr then
697
scfr = blcf
698
end
699
hitbox1.CFrame=prt10.CFrame
700
wld1.C0=clerp(wld1.C0,euler(1.8,0,0)*cf(0,1,-0.3),.3)
701
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.3),.3)
702
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.3),.3)
703
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.3,-.3),.3)
704
LW.C0=clerp(LW.C0,cf(-0.8,0.2,-0.5)*euler(.5,-0.5,1),.3)
705
end
706
for i=0,1,0.1 do
707
swait()
708
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
709
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
710
local h = 5
711
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)
712
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
713
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)
714
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
715
scfr = blcf
716
elseif not scfr then
717
scfr = blcf
718
end
719
hitbox1.CFrame=prt10.CFrame
720
wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,1,-0.3),.3)
721
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-.9),.3)
722
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.9),.3)
723
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-.8,-.3),.3)
724
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.1,-0.5,.7),.3)
725
end
726
con1:disconnect()
727
hitbox1.Parent=nil
728
attack=false
729
end
730
 
731
function attacktwo()
732
attack=true
733
for i=0,1,0.1 do
734
swait()
735
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
736
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
737
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
738
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
739
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
740
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
741
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
742
end
743
hitbox1.Parent=model1
744
hitbox1.Size=vt(1,5,1)
745
hitbox1.Transparency=1
746
hitbox1.CFrame=prt10.CFrame
747
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
748
so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
749
blcf=nil
750
scfr=nil
751
for i=0,1,0.1 do
752
swait()
753
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
754
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
755
local h = 5
756
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)
757
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
758
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)
759
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
760
scfr = blcf
761
elseif not scfr then
762
scfr = blcf
763
end
764
hitbox1.CFrame=prt10.CFrame
765
wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.3)
766
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
767
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
768
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
769
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
770
end
771
con1:disconnect()
772
hitbox1.Parent=nil
773
attack=false
774
end
775
 
776
function attackthree()
777
attack=true
778
for i=0,1,0.1 do
779
swait()
780
wld1.C0=clerp(wld1.C0,euler(1.57,0,-.785)*cf(0,.8,0),.3)
781
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
782
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
783
RW.C0=clerp(RW.C0,cf(1,1,0)*euler(2.8,0,-.785),.3)
784
LW.C0=clerp(LW.C0,cf(-1,1,0)*euler(2.8,0,.785),.3)
785
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
786
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
787
end
788
hitbox1.Parent=model1
789
hitbox1.Size=vt(1,5,1)
790
hitbox1.Transparency=1
791
hitbox1.CFrame=prt10.CFrame
792
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,20000,math.random(1,5),"Normal",RootPart,.5,1) end)
793
so("http://roblox.com/asset/?id=161006212",prt10,1,.9)
794
blcf=nil
795
scfr=nil
796
for i=0,1,0.25 do
797
swait()
798
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
799
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
800
local h = 5
801
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)
802
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
803
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)
804
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
805
scfr = blcf
806
elseif not scfr then
807
scfr = blcf
808
end
809
hitbox1.CFrame=prt10.CFrame
810
wld1.C0=clerp(wld1.C0,euler(1.7,0,0)*cf(0,1,0),.4)
811
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,-.6),.4)
812
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.6),.4)
813
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.5,0,.2),.4)
814
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-.2),.4)
815
end
816
for i=0,1,0.2 do
817
swait()
818
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
819
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
820
local h = 5
821
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)
822
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
823
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)
824
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
825
scfr = blcf
826
elseif not scfr then
827
scfr = blcf
828
end
829
hitbox1.CFrame=prt10.CFrame
830
wld1.C0=clerp(wld1.C0,euler(2,0,0)*cf(0,.7,-.3),.4)
831
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-.8),.4)
832
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,.8),.4)
833
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.2,-.4,.4),.4)
834
end
835
con1:disconnect()
836
hitbox1.Parent=nil
837
attack=false
838
end
839
 
840
function SpinSlash()
841
attack=true
842
for i=0,1,0.1 do
843
swait()
844
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
845
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.8),.4)
846
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.2,0,-0.8),.4)
847
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(2.2,-1.2,0)*euler(0,0,1),.4)
848
LW.C0=clerp(LW.C0,cf(.1,0.5,-0.8)*euler(1.8,-0.5,1),.4)
849
--RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
850
--LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
851
end
852
hitbox1.Parent=model1
853
hitbox1.Size=vt(1,5,1)
854
hitbox1.Transparency=1
855
hitbox1.CFrame=prt10.CFrame
856
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,10000,15000,math.random(1,5),"Normal",RootPart,.2,1) end)
857
blcf=nil
858
scfr=nil
859
so("http://roblox.com/asset/?id=161006212",prt10,1,.6)
860
repeat
861
hitbox1.Parent=model1
862
hitbox1.Size=vt(1,5,1)
863
hitbox1.Transparency=1
864
hitbox1.CFrame=prt10.CFrame
865
for i=0,1,0.15 do
866
swait()
867
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
868
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
869
local h = 5
870
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)
871
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
872
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)
873
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
874
scfr = blcf
875
elseif not scfr then
876
scfr = blcf
877
end
878
hitbox1.CFrame=prt10.CFrame
879
wld1.C0=clerp(wld1.C0,euler(1.2,0,0)*cf(0,1,-0.3),.3)
880
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.3,0,0),.3)
881
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3),.25)
882
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(-0.5,0,0),.3)
883
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-1.57,0)*euler(0.5,0,0),.3)
884
RH.C0=clerp(RH.C0,RHC0,.3)
885
LH.C0=clerp(LH.C0,LHC0,.3)
886
end
887
for i=0,1,0.05 do
888
swait()
889
if i>=0.45 and i<=0.5 then
890
so("http://roblox.com/asset/?id=161006212",prt10,1,.7)
891
end
892
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
893
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
894
local h = 5
895
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)
896
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
897
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)
898
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
899
scfr = blcf
900
elseif not scfr then
901
scfr = blcf
902
end
903
hitbox1.CFrame=prt10.CFrame
904
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0,0,2.3+6*i),1)
905
end
906
until hold==false
907
con1:disconnect()
908
hitbox1.Parent=nil
909
attack=false
910
end
911
 
912
function BinarySwing()
913
attack=true
914
for i=0,1,0.1 do
915
swait()
916
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
917
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.8),.3)
918
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*euler(0,0,-0.8),.3)
919
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,-2,0)*euler(.5,0,0),.3)
920
LW.C0=clerp(LW.C0,cf(-.2,-.1,-0.5)*euler(1,-1.8,0)*euler(.9,0,0),.3)
921
RH.C0=clerp(RH.C0,RHC0*cf(.2,1,.1)*euler(0,-.5,-.2),.3)
922
LH.C0=clerp(LH.C0,LHC0*cf(-.2,1,.1)*euler(0,.5,.2),.3)
923
end
924
Humanoid.Jump=true
925
bodvol=Instance.new("BodyVelocity")
926
bodvol.Parent=RootPart
927
bodvol.velocity=vt(0,1,0)*100
928
bodvol.P=5000
929
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
930
--Torso.Velocity=vt(0,1,0)*100
931
hitbox1.Parent=model1
932
hitbox1.Size=vt(1,5,1)
933
hitbox1.Transparency=1
934
hitbox1.CFrame=prt10.CFrame
935
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(10000,20000),"Normal",RootPart,.2,1) end)
936
so("http://roblox.com/asset/?id=161006212",prt10,1,.8)
937
blcf=nil
938
scfr=nil
939
for i=0,1,0.1 do
940
swait()
941
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
942
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
943
local h = 5
944
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)
945
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
946
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)
947
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
948
scfr = blcf
949
elseif not scfr then
950
scfr = blcf
951
end
952
hitbox1.CFrame=prt10.CFrame
953
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-2.4,0)*euler(.1,0,0),.3)
954
LW.C0=clerp(LW.C0,cf(-.2,.8,-0.5)*euler(3.1,-1.8,0)*euler(.9,0,0),.3)
955
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.8),.3)
956
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,1.3),.3)
957
RH.C0=clerp(RH.C0,RHC0,.3)
958
LH.C0=clerp(LH.C0,LHC0,.3)
959
end
960
con1:disconnect()
961
hitbox1.Parent=nil
962
bodvol.Parent=nil
963
attack=false
964
end
965
 
966
function BinaryImpulse()
967
attack=true
968
if impulse==1 then
969
impulse=2
970
Humanoid.Jump=true
971
for i=0,1,0.2 do
972
swait()
973
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
974
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
975
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0.5,0),.45)
976
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
977
LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
978
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
979
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
980
end
981
blcf=nil
982
scfr=nil
983
hitbox1.Parent=model1
984
hitbox1.Size=vt(1,5,1)
985
hitbox1.Transparency=1
986
hitbox1.CFrame=prt10.CFrame
987
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,20000,30000,math.random(10,20),"Normal",RootPart,.5,1) end)
988
for i=1,3 do
989
so("http://roblox.com/asset/?id=161006212",prt10,1,1)
990
for i=0,1,0.1 do
991
swait()
992
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
993
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
994
local h = 5
995
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)
996
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
997
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)
998
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
999
scfr = blcf
1000
elseif not scfr then
1001
scfr = blcf
1002
end
1003
hitbox1.CFrame=prt10.CFrame
1004
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
1005
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
1006
RootJoint.C0=RootCF*euler(0,0.5,6.6*i)
1007
end
1008
end
1009
con1:disconnect()
1010
hitbox1.Parent=nil
1011
elseif impulse==2 then
1012
impulse=3
1013
Humanoid.Jump=true
1014
for i=0,1,0.2 do
1015
swait()
1016
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.45)
1017
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.45)
1018
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,-0.5,0),.45)
1019
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.45)
1020
LW.C0=clerp(LW.C0,cf(0,0.5,-0.7)*euler(1.5,-1.5,0)*euler(.7,0,0),.45)
1021
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
1022
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
1023
end
1024
blcf=nil
1025
scfr=nil
1026
hitbox1.Parent=model1
1027
hitbox1.Size=vt(1,5,1)
1028
hitbox1.Transparency=1
1029
hitbox1.CFrame=prt10.CFrame
1030
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,20000),"Normal",RootPart,.5,1) end)
1031
for i=1,3 do
1032
so("http://roblox.com/asset/?id=161006212",prt10,1,1.05)
1033
for i=0,1,0.1 do
1034
swait()
1035
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
1036
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
1037
local h = 5
1038
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)
1039
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1040
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)
1041
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1042
scfr = blcf
1043
elseif not scfr then
1044
scfr = blcf
1045
end
1046
hitbox1.CFrame=prt10.CFrame
1047
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(-.5,0,0),.3)
1048
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-1.5,0)*euler(.5,0,0),.3)
1049
RootJoint.C0=RootCF*euler(0,-0.5,6.6*i)
1050
end
1051
end
1052
con1:disconnect()
1053
hitbox1.Parent=nil
1054
elseif impulse==3 then
1055
impulse=1
1056
for i=0,1,0.2 do
1057
swait()
1058
wld1.C0=clerp(wld1.C0,euler(1.57,0,-0.785)*cf(0,1,-0.3),.45)
1059
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,0),.45)
1060
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.45)
1061
RW.C0=clerp(RW.C0,cf(1,0.8,-0.5)*euler(3,0,-0.785),.45)
1062
LW.C0=clerp(LW.C0,cf(-1,0.8,-0.5)*euler(3,0,0.785),.45)
1063
RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.45)
1064
LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.45)
1065
end
1066
Humanoid.Jump=true
1067
blcf=nil
1068
scfr=nil
1069
hitbox1.Parent=model1
1070
hitbox1.Size=vt(1,5,1)
1071
hitbox1.Transparency=1
1072
hitbox1.CFrame=prt10.CFrame
1073
con1=hitbox1.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(20000,30000),"Normal",RootPart,.5,1) end)
1074
for i=1,3 do
1075
so("http://roblox.com/asset/?id=161006195",prt10,1,1)
1076
for i=0,1,0.1 do
1077
swait()
1078
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
1079
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
1080
local h = 5
1081
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)
1082
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1083
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)
1084
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1085
scfr = blcf
1086
elseif not scfr then
1087
scfr = blcf
1088
end
1089
hitbox1.CFrame=prt10.CFrame
1090
wld1.C0=clerp(wld1.C0,euler(2,0,-0.785)*cf(0,1,-0.3),.45)
1091
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.45)
1092
RW.C0=clerp(RW.C0,cf(1,0.3,-0.5)*euler(.5,0,-0.785),.3)
1093
LW.C0=clerp(LW.C0,cf(-1,0.3,-0.5)*euler(.5,0,0.785),.3)
1094
RootJoint.C0=RootCF*euler(6.28*i,0,0)
1095
end
1096
end
1097
con1:disconnect()
1098
hitbox1.Parent=nil
1099
end
1100
attack=false
1101
end
1102
 
1103
function Bash()
1104
attack=true
1105
for i=0,1,0.1 do
1106
swait()
1107
wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
1108
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1)*euler(0.5,0,0),.3)
1109
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
1110
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.4,0)*euler(-.6,0,0),.3)
1111
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1,-1,0)*euler(.5,0,0),.3)
1112
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,2.5,0),.3)
1113
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1,0),.3)
1114
end
1115
Torso.Velocity=RootPart.CFrame.lookVector*200
1116
so("http://roblox.com/asset/?id=2767090",Torso,1,.7)
1117
MagicWave(Color4,RootPart.CFrame*euler(1.57,0,0),1,1,1,1,1,1,0.05)
1118
hit=nil
1119
for i=1,20 do
1120
if hit==nil then
1121
swait()
1122
end
1123
hit,pos=rayCast(RootPart.Position,RootPart.CFrame.lookVector,6,Character)
1124
end
1125
Torso.Velocity=RootPart.CFrame.lookVector*0
1126
Humanoid.WalkSpeed=0
1127
for i=0,1,0.1 do
1128
swait()
1129
wld1.C0=clerp(wld1.C0,euler(1.1,0,0)*cf(0,1,-0.4),.3)
1130
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(-0.2,0,0),.3)
1131
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1.4),.3)
1132
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(3,-1.4,0)*euler(-.6,0,0),.3)
1133
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(2.3,-1.4,0)*euler(.5,0,0),.3)
1134
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0),.3)
1135
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0),.3)
1136
end
1137
so("http://roblox.com/asset/?id=161006195",prt10,1,.5)
1138
blcf=nil
1139
scfr=nil
1140
for i=0,1,0.2 do
1141
swait()
1142
local blcf = prt10.CFrame*CFrame.new(0,.5,0)
1143
if scfr and (prt10.Position-scfr.p).magnitude > .1 then
1144
local h = 5
1145
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)
1146
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1147
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)
1148
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1149
scfr = blcf
1150
elseif not scfr then
1151
scfr = blcf
1152
end
1153
wld1.C0=clerp(wld1.C0,euler(2.2,0,0)*cf(0,.8,-0.3),.45)
1154
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1.4)*euler(0.4,0,0),.45)
1155
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3)*euler(0,0,-1.4),.45)
1156
RW.C0=clerp(RW.C0,cf(.5,0.2,-0.5)*euler(3,-1.4,0)*euler(-2.7,0,0),.45)
1157
LW.C0=clerp(LW.C0,cf(-1.2,0.1,-0.3)*euler(0,-1.4,0)*euler(.5,0,0),.45)
1158
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.45)
1159
LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.45)
1160
end
1161
hit,pos=rayCast(prt10.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
1162
if hit~=nil then
1163
local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
1164
ref.Anchored=true
1165
ref.CFrame=cf(pos)
1166
game:GetService("Debris"):AddItem(ref,3)
1167
for i=1,10 do
1168
Col=hit.BrickColor
1169
local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
1170
groundpart.Anchored=true
1171
groundpart.Material=hit.Material
1172
groundpart.CanCollide=true
1173
groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1174
game:GetService("Debris"):AddItem(groundpart,5)
1175
end
1176
so("http://roblox.com/asset/?id=157878578",ref,.6,1.2)
1177
MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
1178
MagniDamage(ref,50,50,50,math.random(10000,20000),"Knockdown")
1179
end
1180
swait(50)
1181
Humanoid.WalkSpeed=16
1182
attack=false
1183
end
1184
 
1185
function UnleashTheDemon()
1186
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Now you're in for a show, you'll be sent to the abyss when i'm done!", "Green")
1187
wait(2.6)
1188
game.Chat:Chat(game.Players.LocalPlayer.Character.Head,"Mannitus's Voiding Blade!", "Red")
1189
attack=true
1190
so("rbxasset://sounds\\unsheath.wav",prt1,1,.8)
1191
for i=0,1,0.1 do
1192
swait()
1193
wld1.C0=clerp(wld1.C0,euler(.2,0,-.5)*cf(0,1,0),.3)
1194
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.4,0,-0.5),.3)
1195
RW.C0=clerp(RW.C0,cf(1.3,0.5,0.2)*euler(3.4,0,0),.3)
1196
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,0),.3)
1197
RH.C0=clerp(RH.C0,RHC0,.4)
1198
LH.C0=clerp(LH.C0,LHC0,.4)
1199
end
1200
wld1.Part1=Torso
1201
wld1.C0=euler(3.7,1.57,0)*cf(-1.5,-2.3,-.5)
1202
for i=0,1,0.1 do
1203
swait()
1204
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
1205
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,-0.4),.3)
1206
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.3,0,0),.3)
1207
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.4,-1.57,0)*euler(1.2,0,0),.3)
1208
end
1209
so("http://roblox.com/asset/?id=178452217",RightArm,.5,.4)
1210
so("http://roblox.com/asset/?id=168586586",RightArm,.5,.6)
1211
so("http://roblox.com/asset/?id=160740121",RightArm,1,.8)
1212
num=0
1213
for i=0,1,0.01 do
1214
swait()
1215
if num>=10 then
1216
num=0
1217
MagicWave(BrickColor.new("Really Really black"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05)
1218
end
1219
for i=1,2 do
1220
if math.random(1,5)==1 then
1221
MagicBlock(BrickColor.new("Really Really black"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
1222
else
1223
MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(math.random(-100,100)/100,-math.random(0,700)/100,math.random(-100,100)/100),math.random(30,80)/100,math.random(30,80)/100,math.random(30,80)/100,.5,.5,.5,0.05)
1224
end
1225
end
1226
num=num+1
1227
end
1228
so("http://roblox.com/asset/?id=168586621",RightArm,1,.5)
1229
so("http://roblox.com/asset/?id=160867463",RightArm,1,.8)
1230
for i=1,4 do
1231
MagicBlock(BrickColor.new("Bright red"),RightArm.CFrame*cf(0,-.5-math.random(0,500)/100,0),2,2,2,.5,.5,.5,0.05)
1232
end
1233
MagicWave(BrickColor.new("Really red"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,.5,.3,.5,0.01)
1234
Mode="Demon"
1235
model2.Parent=Character
1236
for i=1,#DBlade do
1237
DBlade[i].Parent=model2
1238
DBladeWelds[i].Parent=DBlade[1]
1239
end
1240
for i=0,1,0.1 do
1241
swait()
1242
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.4),.3)
1243
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
1244
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,-0.5,1),.3)
1245
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(1.4,0.5,-1.3),.3)
1246
end
1247
swait(50)
1248
attack=false
1249
end
1250
 
1251
function Demonattackone()
1252
attack=true
1253
--[[
1254
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-0.4),.3)
1255
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
1256
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1,0,0),.3)
1257
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2),.3)
1258
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-0.2,1.57,0),.3)
1259
LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
1260
]]
1261
for i=0,1,0.1 do
1262
swait()
1263
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,-1),.3)
1264
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
1265
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.3,0,.5),.3)
1266
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.7,0,-0.7),.3)
1267
RH.C0=clerp(RH.C0,cf(1,-1,-.6)*euler(-.3,1.57,0)*euler(0,.5,0),.3)
1268
LH.C0=clerp(LH.C0,cf(-1,-.3,0)*euler(0.5,-.8,0)*euler(-.5,0,0),.3)
1269
end
1270
hitbox2.Parent=model2
1271
hitbox2.Size=vt(1,6,1)
1272
hitbox2.Transparency=1
1273
hitbox2.CFrame=prtd7.CFrame
1274
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
1275
so("http://roblox.com/asset/?id=28144425",prtd7,1,.7)
1276
blcf=nil
1277
scfr=nil
1278
for i=0,1,0.08 do
1279
swait()
1280
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1281
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1282
local h = 5
1283
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)
1284
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1285
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)
1286
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1287
scfr = blcf
1288
elseif not scfr then
1289
scfr = blcf
1290
end
1291
hitbox2.CFrame=prtd7.CFrame
1292
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,1),.3)
1293
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
1294
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-0.5,1)*euler(1.3,0,-1.7),.3)
1295
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
1296
RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.3,1.57,0)*euler(0,-1,0),.3)
1297
LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.3,-2.3,0)*euler(0,0,0),.3)
1298
end
1299
con1:disconnect()
1300
hitbox2.Parent=nil
1301
attack=false
1302
end
1303
 
1304
function Demonattacktwo()
1305
attack=true
1306
for i=0,1,0.1 do
1307
swait()
1308
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,1.2),.3)
1309
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,-0.7),.3)
1310
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.4,-1.2,.6)*euler(1.1,0,-1.7),.3)
1311
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
1312
RH.C0=clerp(RH.C0,cf(1,-.6,0)*euler(-.1,1.57,0)*euler(0,-1,0),.3)
1313
LH.C0=clerp(LH.C0,cf(-1,-1,-0.3)*euler(-0.1,-2.3,0)*euler(0,0,0),.3)
1314
end
1315
hitbox2.Parent=model2
1316
hitbox2.Size=vt(1,6,1)
1317
hitbox2.Transparency=1
1318
hitbox2.CFrame=prtd7.CFrame
1319
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
1320
so("http://roblox.com/asset/?id=28144425",prtd7,1,.5)
1321
blcf=nil
1322
scfr=nil
1323
for i=0,1,0.1 do
1324
swait()
1325
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1326
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1327
local h = 5
1328
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)
1329
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1330
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)
1331
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1332
scfr = blcf
1333
elseif not scfr then
1334
scfr = blcf
1335
end
1336
hitbox2.CFrame=prtd7.CFrame
1337
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.4)*euler(0.1,0,-0.8),.3)
1338
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.7),.3)
1339
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-.8,.6)*euler(0.5,0,.5),.3)
1340
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.7,0,-0.7),.3)
1341
RH.C0=clerp(RH.C0,cf(1,-.8,-0.3)*euler(-0.2,1.57,0),.3)
1342
LH.C0=clerp(LH.C0,cf(-1,-.6,-0.2)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
1343
end
1344
con1:disconnect()
1345
hitbox2.Parent=nil
1346
attack=false
1347
end
1348
 
1349
function Demonattackthree()
1350
attack=true
1351
for i=0,1,0.1 do
1352
swait()
1353
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.1,0,-0.2),.3)
1354
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.4),.3)
1355
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.9,-1.8,0)*euler(.5,0,0),.3)
1356
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
1357
RH.C0=clerp(RH.C0,cf(1,-.7,-.3)*euler(-0.2,1.57,0),.3)
1358
LH.C0=clerp(LH.C0,cf(-1,-.7,0)*euler(0.2,-1.2,0)*euler(-.2,0,0),.3)
1359
end
1360
Humanoid.WalkSpeed=0
1361
hitbox2.Parent=model2
1362
hitbox2.Size=vt(1,6,1)
1363
hitbox2.Transparency=1
1364
hitbox2.CFrame=prtd7.CFrame
1365
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,50,50,math.random(10000,50000),"Lifesteal",RootPart,.5,1) end)
1366
so("http://roblox.com/asset/?id=28144425",prtd7,1,.6)
1367
blcf=nil
1368
scfr=nil
1369
for i=0,1,0.15 do
1370
swait()
1371
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1372
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1373
local h = 5
1374
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)
1375
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1376
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)
1377
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1378
scfr = blcf
1379
elseif not scfr then
1380
scfr = blcf
1381
end
1382
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,0.6),.4)
1383
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-0.6),.4)
1384
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.55,-1.5,0)*euler(.3,0,0),.4)
1385
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.4)
1386
RH.C0=clerp(RH.C0,cf(1,-.1,-.4)*euler(0.4,1.57,0)*euler(-.2,0,0),.4)
1387
LH.C0=clerp(LH.C0,cf(-1,-.9,0)*euler(-0.2,-1.2,0)*euler(-.2,0,0),.4)
1388
if i==0.6 then
1389
hit,pos=rayCast(prtd8.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1390
if hit~=nil then
1391
local ref=part(3,workspace,0,1,BrickColor.new("Really black"),"Effect",vt())
1392
ref.Anchored=true
1393
ref.CFrame=cf(pos)
1394
game:GetService("Debris"):AddItem(ref,3)
1395
for i=1,5 do
1396
Col=hit.BrickColor
1397
local groundpart=part(3,workspace,0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
1398
groundpart.Anchored=true
1399
groundpart.Material=hit.Material
1400
groundpart.CanCollide=true
1401
groundpart.CFrame=cf(pos)*cf(math.random(-200,200)/100,0,math.random(-200,200)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1402
game:GetService("Debris"):AddItem(groundpart,3)
1403
end
1404
so("http://roblox.com/asset/?id=157878578",ref,.6,1.5)
1405
MagicWave(hit.BrickColor,cf(pos),1,1,1,.7,.7,.7,0.05)
1406
MagniDamage(ref,50,50,50,math.random(10000,20000),"Normal")
1407
end
1408
end
1409
end
1410
con1:disconnect()
1411
hitbox2.Parent=nil
1412
swait(10)
1413
Humanoid.WalkSpeed=16
1414
attack=false
1415
end
1416
 
1417
function LetItBuild()
1418
attack=true
1419
for i=0,1,0.1 do
1420
swait()
1421
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.2,0,-1),.3)
1422
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,1),.3)
1423
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.6,0,.4),.3)
1424
LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
1425
RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
1426
LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
1427
end
1428
local num=0
1429
local magik=0
1430
local num2=0
1431
while holdx==true do
1432
swait()
1433
if magik<25 then
1434
if num>=10 then
1435
Humanoid:TakeDamage(0)
1436
pos1=Torso.Position+vt(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100)
1437
pos2=prtd8.Position--+vt(math.random(-50,50)/100,math.random(-50,50)/100,math.random(-50,50)/100)
1438
Lightning(pos1,pos2,5,3,"Really red",.1,.5,.5)
1439
MagicCircle(BrickColor.new("Really red"),cf(pos1),5,5,5,1,1,1,.1)
1440
MagicBlood(BrickColor.new("Really red"),Torso.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
1441
so("http://www.roblox.com/asset/?id=178452221",Torso,.1,1.5)
1442
magik=magik+1
1443
num=0
1444
end
1445
end
1446
num=num+1
1447
num2=num2+magik
1448
if num2>=50 then
1449
MagicBlood(BrickColor.new("Really Really black"),cf(prtd8.Position)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,1,.1,0.1)
1450
num2=0
1451
end
1452
--MagicBlock(BrickColor.new("Really red"),cf(prtd8.Position)*cf(math.random(-100,100)/100,math.random(-100,100)/100,math.random(-100,100)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),magik/5,magik/5,magik/5,magik/8,magik/8,magik/8,.1)
1453
end
1454
Torso.Velocity=RootPart.CFrame.lookVector*(10*magik)
1455
blcf=nil
1456
scfr=nil
1457
hitbox2.Parent=model2
1458
hitbox2.Size=vt(1,6,1)
1459
hitbox2.Transparency=1
1460
hitbox2.CFrame=prtd7.CFrame
1461
con1=hitbox2.Touched:connect(function(hit) Damagefunc(hit,math.ceil((200000/200000)),magik,1,"Lifesteal",RootPart,.5,1) end)
1462
for i=1,3 do
1463
so("http://roblox.com/asset/?id=28144425",prtd7,1,1)
1464
for i=0,1,0.1 do
1465
swait()
1466
hitbox2.CFrame=prtd7.CFrame
1467
local blcf = prtd7.CFrame*CFrame.new(0,-.5,0)
1468
if scfr and (prtd7.Position-scfr.p).magnitude > .1 then
1469
local h = 5
1470
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)
1471
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1472
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)
1473
if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
1474
scfr = blcf
1475
elseif not scfr then
1476
scfr = blcf
1477
end
1478
RootJoint.C0=RootCF*cf(0,0,-0.8)*euler(0,0,6.28*i)*euler(0.2,0,-1)
1479
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.4,0,0),.3)
1480
LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
1481
RH.C0=clerp(RH.C0,cf(1,-.6,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
1482
LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-.6,0)*euler(-.4,0,0),.3)
1483
end
1484
end
1485
con1:disconnect()
1486
hitbox2.Parent=nil
1487
attack=false
1488
end
1489
 
1490
function YourMoveCreep()
1491
attack=true
1492
local pers=nil
1493
for i=0,1,0.1 do
1494
swait()
1495
cost=Humanoid.Health-0
1496
Humanoid:TakeDamage(0)
1497
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(0.2,0,-1.3),.3)
1498
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0.2,1.3),.3)
1499
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,1)*euler(.5,0,0),.3)
1500
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,-0.4,0)*euler(0,0,-1.7),.3)
1501
RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,1.57,0),.3)
1502
LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
1503
end
1504
local blockprt=part(3,Character,0,1,BrickColor.new("Really Really black"),"Block",vt(8,.1,8))
1505
blockprt.Anchored=true
1506
blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
1507
conbl=blockprt.Touched:connect(function(hit)
1508
if hit.Parent.Parent:findFirstChild("Torso")~=nil then
1509
hit=hit.Parent.Parent.Torso
1510
end
1511
if hit.Parent:findFirstChild("Torso")~=nil and hit.Parent~=Character and guard==true then
1512
pers=hit
1513
print("HIT")
1514
guard=false
1515
end
1516
end)
1517
num=0
1518
while guard==true do
1519
swait()
1520
if num>10 then
1521
num=0
1522
MagicBlock(BrickColor.new("Really red"),LeftArm.CFrame*cf(0,-1,0),1,1,1,.7,.7,.7,0.05)
1523
MagicCircle(BrickColor.new("Really Really black"),LeftArm.CFrame*cf(0,-1,0),1,.1,1,6,0,6,0.1)
1524
end
1525
blockprt.CFrame=LeftArm.CFrame*cf(0,-1,0)
1526
num=num+1
1527
end
1528
conbl:disconnect()
1529
blockprt.Parent=nil
1530
print(pers)
1531
if pers~=nil then
1532
for i=0,1,0.1 do
1533
swait()
1534
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.7)*euler(-0.2,0,1.6),.3)
1535
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,-0.2,-1),.3)
1536
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-1,1)*euler(1,0,0),.3)
1537
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
1538
RH.C0=clerp(RH.C0,cf(.1,-1,-.9)*euler(-0.2,1.57,0)*euler(-.7,-1.57,0),.3)
1539
LH.C0=clerp(LH.C0,cf(-.8,-.4,0)*euler(0.2,-1.2,0)*euler(-.2,1.4,0),.3)
1540
end
1541
swait(200)
1542
end
1543
attack=false
1544
end
1545
 
1546
function MagniDamage(Part,magni,mindam,maxdam,knock,Type)
1547
for _,c in pairs(workspace:children()) do
1548
local hum=c:findFirstChild("Humanoid")
1549
if hum~=nil then
1550
local head=c:findFirstChild("Torso")
1551
if head~=nil then
1552
local targ=head.Position-Part.Position
1553
local mag=targ.magnitude
1554
if mag<=magni and c.Name~=Player.Name then
1555
Damagefunc(head,mindam,maxdam,knock,Type,Part,.2,1,nil,1)
1556
end
1557
end
1558
end
1559
end
1560
end
1561
 
1562
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1563
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
1564
end
1565
 
1566
local Point=Torso.CFrame*cf(0,Torso.Size.Y,0)
1567
LastPoint=Point
1568
function effect(Color,Ref,LP,P1,returnn)
1569
local effectsmsh=Instance.new("CylinderMesh")
1570
effectsmsh.Scale=Vector3.new(0.2,1,0.2)
1571
effectsmsh.Name="Mesh"
1572
local effectsg=Instance.new("Part")
1573
effectsg.formFactor=3
1574
effectsg.CanCollide=false
1575
effectsg.Name="Eff"
1576
effectsg.Locked=true
1577
effectsg.Anchored=true
1578
effectsg.Size=Vector3.new(0.5,1,0.5)
1579
effectsg.Parent=workspace
1580
effectsmsh.Parent=effectsg
1581
effectsg.BrickColor=BrickColor.new(Color)
1582
effectsg.Reflectance=Ref
1583
local point1=P1
1584
local mg=(LP.p - point1.p).magnitude
1585
effectsg.Size=Vector3.new(0.5,mg,0.5)
1586
effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
1587
effectsmsh.Scale=Vector3.new(0.2,1,0.2)
1588
game:GetService("Debris"):AddItem(effectsg,2)
1589
if returnn then return effectsg end
1590
coroutine.resume(coroutine.create(function(Part,Mesh)
1591
if not returnn then
1592
for i=0,1,0.05 do
1593
wait()
1594
Part.Transparency=1*i
1595
Mesh.Scale=Vector3.new(0.5-0.5*i,1,0.5-0.5*i)
1596
end
1597
Part.Parent=nil
1598
end
1599
end),effectsg,effectsmsh)
1600
end
1601
 
1602
local function CFrameFromTopBack(at, top, back)
1603
local right = top:Cross(back)
1604
return CFrame.new(at.x, at.y, at.z,
1605
right.x, top.x, back.x,
1606
right.y, top.y, back.y,
1607
right.z, top.z, back.z)
1608
end
1609
 
1610
function Triangle(a, b, c)
1611
local edg1 = (c-a):Dot((b-a).unit)
1612
local edg2 = (a-b):Dot((c-b).unit)
1613
local edg3 = (b-c):Dot((a-c).unit)
1614
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1615
a, b, c = a, b, c
1616
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1617
a, b, c = b, c, a
1618
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1619
a, b, c = c, a, b
1620
else
1621
assert(false, "unreachable")
1622
end
1623
 
1624
local len1 = (c-a):Dot((b-a).unit)
1625
local len2 = (b-a).magnitude - len1
1626
local width = (a + (b-a).unit*len1 - c).magnitude
1627
 
1628
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1629
 
1630
local list = {}
1631
1632
if len2 > 0.01 then
1633
end
1634
return unpack(list)
1635
end
1636
 --[[
1637
Things for effects
1638
put the variables in one table
1639
like effect={brick,interval,i}
1640
]]
1641
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1642
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1643
prt.Anchored=true
1644
prt.CFrame=cframe
1645
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1646
game:GetService("Debris"):AddItem(prt,5)
1647
table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) --part, type, delay
1648
--[[coroutine.resume(coroutine.create(function(Part,Mesh,dur)
1649
for i=0,1,delay do
1650
wait()
1651
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1652
Part.Transparency=i
1653
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1654
end
1655
Part.Parent=nil
1656
end),prt,msh)]]
1657
end
1658
 
1659
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1660
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1661
prt.Anchored=true
1662
prt.CFrame=cframe
1663
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1664
game:GetService("Debris"):AddItem(prt,5)
1665
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1666
--[[coroutine.resume(coroutine.create(function(Part,Mesh)
1667
local wld=nil
1668
for i=0,1,delay do
1669
wait()
1670
Part.CFrame=Part.CFrame
1671
Part.Transparency=i
1672
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1673
end
1674
Part.Parent=nil
1675
end),prt,msh)]]
1676
end
1677
 
1678
function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1679
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1680
prt.Anchored=true
1681
prt.CFrame=cframe
1682
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
1683
game:GetService("Debris"):AddItem(prt,5)
1684
table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1685
end
1686
 
1687
function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1688
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
1689
prt.Anchored=true
1690
prt.CFrame=cframe
1691
msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
1692
game:GetService("Debris"):AddItem(prt,5)
1693
--table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1694
Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
1695
--[[coroutine.resume(coroutine.create(function(Part,Mesh)
1696
for i=0,1,delay do
1697
wait()
1698
Part.CFrame=Part.CFrame
1699
Part.Transparency=i
1700
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1701
end
1702
Part.Parent=nil
1703
end),prt,msh)]]
1704
end
1705
 
1706
function MagicCylinder2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1707
local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
1708
prt.Anchored=true
1709
prt.CFrame=cframe
1710
msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1711
game:GetService("Debris"):AddItem(prt,5)
1712
--table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
1713
Effects[#Effects+1]={prt,"Cylinder",delay,x3,y3,z3} --part, type, delay
1714
--[[coroutine.resume(coroutine.create(function(Part,Mesh)
1715
for i=0,1,delay do
1716
wait()
1717
Part.CFrame=Part.CFrame
1718
Part.Transparency=i
1719
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1720
end
1721
Part.Parent=nil
1722
end),prt,msh)]]
1723
end
1724
 
1725
function MagicBlood(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1726
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt())
1727
prt.Anchored=true
1728
prt.CFrame=cframe
1729
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1730
game:GetService("Debris"):AddItem(prt,5)
1731
table.insert(Effects,{prt,"Blood",delay,x3,y3,z3})
1732
end
1733
 
1734
function ElecEffect(cff,x,y,z)
1735
local prt=part(3,workspace,0,0,BrickColor.new("Bright red"),"Part",vt(1,1,1))
1736
prt.Anchored=true
1737
prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
1738
prt.CFrame=cf(prt.Position)
1739
--prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
1740
game:GetService("Debris"):AddItem(prt,2)
1741
xval=math.random()/2
1742
yval=math.random()/2
1743
zval=math.random()/2
1744
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
1745
Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay
1746
end
1747
 
1748
function Lightning(p0,p1,tym,ofs,col,th,tra,last)
1749
--[[p0=pos1
1750
p1=pos2
1751
tym=times
1752
ofs=offset
1753
col=color
1754
th=size
1755
tra=transparency
1756
last=lastingtime]]
1757
local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
1758
for i=1,tym do
1759
local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true  li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
1760
li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
1761
local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
1762
if tym == i then
1763
local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
1764
li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
1765
else
1766
li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
1767
end
1768
curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,last)
1769
end
1770
end
1771
 
1772
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1773
        if hit.Parent==nil then
1774
                return
1775
        end
1776
        h=hit.Parent:FindFirstChild("Humanoid")
1777
        for _,v in pairs(hit.Parent:children()) do
1778
        if v:IsA("Humanoid") then
1779
        h=v
1780
        end
1781
        end
1782
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
1783
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
1784
        end
1785
        if hit.Parent.className=="Hat" then
1786
        hit=hit.Parent.Parent:findFirstChild("Head")
1787
        end
1788
        -- and hit.Parent~=CannonTarget.Parent or hit.Parent~=RailgunTarget.Parent
1789
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1790
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
1791
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1792
                        return
1793
                end]]
1794
--                        hs(hit,1.2)
1795
                        so("http://www.roblox.com/asset/?id=10209590",hit,1,math.random(50,100)/100)
1796
                        --so("rbxasset://sounds\\unsheath.wav",hit,1,math.random(200,250)/100)
1797
                        c=Instance.new("ObjectValue")
1798
                        c.Name="creator"
1799
                        c.Value=game:service("Players").LocalPlayer
1800
                        c.Parent=h
1801
                        game:GetService("Debris"):AddItem(c,.5)
1802
                Damage=math.random(minim,maxim)
1803
                if Mode=="Demon" then
1804
                Damage=Damage+damcount
1805
                end
1806
--                h:TakeDamage()
1807
                blocked=false
1808
                block=hit.Parent:findFirstChild("Block")
1809
                if block~=nil then
1810
                print(block.className)
1811
                if block.className=="NumberValue" then
1812
                if block.Value>0 then
1813
                blocked=true
1814
                if decreaseblock==nil then
1815
                block.Value=block.Value-1
1816
                end
1817
                end
1818
                end
1819
                if block.className=="IntValue" then
1820
                if block.Value>0 then
1821
                blocked=true
1822
                if decreaseblock~=nil then
1823
                block.Value=block.Value-1
1824
                end
1825
                end
1826
                end
1827
                end
1828
                if blocked==false then
1829
--                h:TakeDamage(Damage)
1830
                h.Health=h.Health-Damage
1831
                else
1832
                h.Health=h.Health-(Damage/0)
1833
                end
1834
                if Type=="Knockdown" then
1835
                hum=hit.Parent.Humanoid
1836
hum.PlatformStand=true
1837
coroutine.resume(coroutine.create(function(HHumanoid)
1838
swait(1)
1839
HHumanoid.PlatformStand=false
1840
end),hum)
1841
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1842
--hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1843
local bodvol=Instance.new("BodyVelocity")
1844
bodvol.velocity=angle*knockback
1845
bodvol.P=5000
1846
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1847
bodvol.Parent=hit
1848
rl=Instance.new("BodyAngularVelocity")
1849
rl.P=3000
1850
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1851
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1852
rl.Parent=hit
1853
game:GetService("Debris"):AddItem(bodvol,.5)
1854
game:GetService("Debris"):AddItem(rl,.5)
1855
                elseif Type=="Normal" then
1856
                vp=Instance.new("BodyVelocity")
1857
                vp.P=500
1858
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1859
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1860
                if KnockbackType==1 then
1861
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/100
1862
                elseif KnockbackType==2 then
1863
                vp.velocity=Property.CFrame.lookVector*knockback
1864
                end
1865
                if knockback>-100 then
1866
                        vp.Parent=hit.Parent.Torso
1867
                end
1868
                game:GetService("Debris"):AddItem(vp,.5)
1869
                elseif Type=="Lifesteal" then
1870
                for i=1,5 do
1871
                MagicBlood(BrickColor.new("Really red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.1,.1,.1,.1,2,.1,0.05)
1872
                end
1873
                vp=Instance.new("BodyVelocity")
1874
                vp.P=500
1875
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1876
                if KnockbackType==1 then
1877
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/250
1878
                elseif KnockbackType==2 then
1879
                vp.velocity=Property.CFrame.lookVector*knockback
1880
                end
1881
                if knockback>-250 then
1882
                        vp.Parent=hit.Parent.Torso
1883
                end
1884
                game:GetService("Debris"):AddItem(vp,.5)
1885
                Heal=math.ceil(Damage/25100)
1886
                Humanoid.Health=Humanoid.Health+Heal
1887
                elseif Type=="Up" then
1888
                local bodyVelocity=Instance.new("BodyVelocity")
1889
                bodyVelocity.velocity=vt(0,30,0)
1890
                bodyVelocity.P=5000
1891
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1892
                bodyVelocity.Parent=hit
1893
                game:GetService("Debris"):AddItem(bodyVelocity,1)
1894
                rl=Instance.new("BodyAngularVelocity")
1895
                rl.P=3000
1896
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1897
                rl.angularvelocity=Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
1898
                rl.Parent=hit
1899
                game:GetService("Debris"):AddItem(rl,.5)
1900
                elseif Type=="Snare" then
1901
                bp=Instance.new("BodyPosition")
1902
                bp.P=2000
1903
                bp.D=100
1904
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1905
                bp.position=hit.Parent.Torso.Position
1906
                bp.Parent=hit.Parent.Torso
1907
                game:GetService("Debris"):AddItem(bp,1)
1908
                elseif Type=="Charge" then
1909
                Charge=Charge+1
1910
                coroutine.resume(coroutine.create(function(Part)
1911
                swait(30)
1912
                for i=1,5 do
1913
                swait(5)
1914
                so("rbxasset://sounds\\unsheath.wav",hit,1,2)
1915
                MagicCircle(BrickColor.new("Bright red"),hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05)
1916
                newdam=math.random(1,5)
1917
                if blocked==false then
1918
                h:TakeDamage()
1919
                else
1920
                h:TakeDamage(newdam/0)
1921
                end
1922
                end
1923
                end),hit)
1924
                end
1925
                        debounce=Instance.new("BoolValue")
1926
                        debounce.Name="DebounceHit"
1927
                        debounce.Parent=hit.Parent
1928
                        debounce.Value=true
1929
                        game:GetService("Debris"):AddItem(debounce,Delay)
1930
                        c=Instance.new("ObjectValue")
1931
                        c.Name="creator"
1932
                        c.Value=Player
1933
                        c.Parent=h
1934
                        game:GetService("Debris"):AddItem(c,.5)
1935
                CRIT=false
1936
                hitDeb=true
1937
                AttackPos=6
1938
        end
1939
end
1940
 
1941
showDamage=function(Char,Dealt,du,Color)
1942
        m=Instance.new("Model")
1943
        m.Name=tostring(Dealt)
1944
        h=Instance.new("Humanoid")
1945
        h.Health=0
1946
        h.MaxHealth=0
1947
        h.Parent=m
1948
        c=Instance.new("Part")
1949
        c.Transparency=1
1950
        c.BrickColor=Color
1951
        c.Name="Head"
1952
        c.TopSurface=0
1953
        c.BottomSurface=0
1954
        c.formFactor="Plate"
1955
        c.Size=Vector3.new(1,.4,1)
1956
        ms=Instance.new("CylinderMesh")
1957
        ms.Scale=Vector3.new(.8,.8,.8)
1958
        if CRIT==true then
1959
                ms.Scale=Vector3.new(1,1.25,1)
1960
        end
1961
        ms.Parent=c
1962
        c.Reflectance=0
1963
        Instance.new("BodyGyro").Parent=c
1964
        c.Parent=m
1965
        if Char:findFirstChild("Head")~=nil then
1966
        c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
1967
        elseif Char.Parent:findFirstChild("Head")~=nil then
1968
        c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
1969
        end
1970
        f=Instance.new("BodyPosition")
1971
        f.P=2000
1972
        f.D=100
1973
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1974
        f.position=c.Position+Vector3.new(0,3,0)
1975
        f.Parent=c
1976
        game:GetService("Debris"):AddItem(m,.5+du)
1977
        c.CanCollide=false
1978
        m.Parent=workspace
1979
        c.CanCollide=false
1980
end
1981
 
1982
combo=0
1983
function ob1d(mouse)
1984
hold=true
1985
if attack==true or equipped==false then return end
1986
if Mode=="Binary" then
1987
idle=0
1988
if Anim=="Run" then
1989
SpinSlash()
1990
else
1991
if combo==0 then
1992
combo=1
1993
attackone()
1994
elseif combo==1 then
1995
combo=2
1996
attacktwo()
1997
elseif combo==2 then
1998
combo=0
1999
attackthree()
2000
end
2001
end
2002
else
2003
if combo==0 then
2004
combo=1
2005
Demonattackone()
2006
elseif combo==1 then
2007
combo=2
2008
Demonattacktwo()
2009
elseif combo==2 then
2010
combo=0
2011
Demonattackthree()
2012
end
2013
end
2014
coroutine.resume(coroutine.create(function()
2015
for i=1,20 do
2016
if attack==false then
2017
swait()
2018
end
2019
end
2020
if attack==false then
2021
combo=0
2022
--equipanim()
2023
end
2024
end))
2025
end
2026
 
2027
function ob1u(mouse)
2028
hold = false
2029
end
2030
 
2031
buttonhold = false
2032
 
2033
eul=0
2034
holdx=false
2035
equipped=false
2036
function key(key)
2037
if key=="c" then
2038
if guard==true then
2039
guard=false
2040
else
2041
guard=true
2042
end
2043
end
2044
if key=="x" then
2045
holdx=true
2046
end
2047
if attack==true then return end
2048
if key=="f" then
2049
if equipped==false then
2050
equipped=true
2051
RSH=ch.Torso["Right Shoulder"]
2052
LSH=ch.Torso["Left Shoulder"]
2053
--
2054
RSH.Parent=nil
2055
LSH.Parent=nil
2056
--
2057
RW.Name="Right Shoulder"
2058
RW.Part0=ch.Torso
2059
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
2060
RW.C1=cf(0, 0.5, 0)
2061
RW.Part1=ch["Right Arm"]
2062
RW.Parent=ch.Torso
2063
--
2064
LW.Name="Left Shoulder"
2065
LW.Part0=ch.Torso
2066
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
2067
LW.C1=cf(0, 0.5, 0)
2068
LW.Part1=ch["Left Arm"]
2069
LW.Parent=ch.Torso
2070
--
2071
equipanim()
2072
else
2073
equipped=false
2074
hideanim()
2075
swait(0)
2076
RW.Parent=nil
2077
LW.Parent=nil
2078
RSH.Parent=player.Character.Torso
2079
LSH.Parent=player.Character.Torso
2080
end
2081
end
2082
if equipped==false then return end
2083
if Mode=="Binary" then
2084
if key=="q" then
2085
idle=500
2086
end
2087
if key=="z" and hitfloor~=nil then
2088
BinarySwing()
2089
end
2090
if key=="x" then
2091
BinaryImpulse()
2092
end
2093
if key=="c" then
2094
Bash()
2095
end
2096
if key=="v" then
2097
UnleashTheDemon()
2098
end
2099
end
2100
if Mode=="Demon" then
2101
if key=="x" then
2102
LetItBuild()
2103
end
2104
if key=="c" then
2105
YourMoveCreep()
2106
end
2107
end
2108
if key=="0" then
2109
Humanoid.WalkSpeed=(180)
2110
end
2111
end
2112
 
2113
function key2(key)
2114
if key=="0" then
2115
Humanoid.WalkSpeed=16
2116
end
2117
if key=="x" then
2118
holdx=false
2119
end
2120
end
2121
 
2122
function s(mouse)
2123
mouse.Button1Down:connect(function() ob1d(mouse) end)
2124
mouse.Button1Up:connect(function() ob1u(mouse) end)
2125
mouse.KeyDown:connect(key)
2126
mouse.KeyUp:connect(key2)
2127
 
2128
player=Player
2129
ch=Character
2130
MMouse=mouse
2131
end
2132
 
2133
function ds(mouse)
2134
end
2135
 
2136
Bin.Selected:connect(s)
2137
Bin.Deselected:connect(ds)
2138
print("Fixer the Demon Mercenary loaded.")
2139
 
2140
local thenum=0
2141
while true do
2142
swait()
2143
if Mode=="Demon" then
2144
if thenum>=5 then
2145
ElecEffect(prtd7.CFrame,2,4,2)
2146
thenum=0
2147
end
2148
thenum=thenum+1
2149
for _,c in pairs(Character:children()) do
2150
for _,v in pairs(c:children()) do
2151
if v.className=="BodyGyro" or v.className=="BodyPosition" or v.className=="BodyVelocity" or v.className=="BodyAngularVelocity" then
2152
if v.Name~="FixerVel" and v.Name~="FixerGyro" then
2153
v.Parent=nil
2154
end
2155
end
2156
end
2157
end
2158
end
2159
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
2160
local velderp=RootPart.Velocity.y
2161
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
2162
if equipped==true then
2163
if Anim=="Idle" and attack==false and Mode=="Binary" then
2164
idle=idle+1
2165
else
2166
idle=0
2167
end
2168
if idleanim>=0.3 then
2169
idleanim2=true
2170
elseif idleanim<=0 then
2171
idleanim2=false
2172
end
2173
if idleanim2==false then
2174
if Anim=="Walk" then
2175
idleanim=idleanim+0.005
2176
elseif Anim=="Idle" then
2177
idleanim=idleanim+0.003
2178
end
2179
else
2180
if Anim=="Walk" then
2181
idleanim=idleanim-0.005
2182
elseif Anim=="Idle" then
2183
idleanim=idleanim-0.003
2184
end
2185
end
2186
if RootPart.Velocity.y > 1 and hitfloor==nil then
2187
Anim="Jump"
2188
if attack==false and Mode=="Binary" then
2189
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
2190
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3,0,-0.2),.3)
2191
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
2192
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
2193
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
2194
RH.C0=clerp(RH.C0,cf(1,-0.5,-1)*euler(-0.5,1.57,0),.2)
2195
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.7,-1.57,0),.2)
2196
end
2197
if attack==false and Mode=="Demon" then
2198
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
2199
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
2200
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(.8,-0.5,.8)*euler(.1,0,0),.3)
2201
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-0.2),.3)
2202
RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(0.1,1.57,0),.3)
2203
LH.C0=clerp(LH.C0,cf(-1,-.3,-.2)*euler(0.4,-1.57,0)*euler(0,0,0),.3)
2204
end
2205
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
2206
Anim="Fall"
2207
if attack==false and Mode=="Binary" then
2208
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.3)
2209
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.6,0,-0.2),.3)
2210
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0,0,-0.5),.3)
2211
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.4,0,0),.3)
2212
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
2213
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
2214
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
2215
end
2216
if attack==false and Mode=="Demon" then
2217
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.2,0,0),.3)
2218
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.2,0,0),.3)
2219
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.6,0,.5),.3)
2220
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.4,0,-1),.3)
2221
RH.C0=clerp(RH.C0,cf(1,-.7,-.1)*euler(-0.1,1.57,0),.3)
2222
LH.C0=clerp(LH.C0,cf(-1,-.6,-.2)*euler(0.8,-1.57,0)*euler(0,0,0),.3)
2223
end
2224
elseif torvel<1 and hitfloor~=nil then
2225
if Anim=="Fall" then
2226
if velderp<=-70 then
2227
coroutine.resume(coroutine.create(function()
2228
Stomp()
2229
end))
2230
end
2231
end
2232
Anim="Idle"
2233
if idle<=500 then
2234
if attack==false and Mode=="Binary" then
2235
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.3)
2236
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0.5),.3)
2237
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-0.5),.3)
2238
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1-(idleanim/4),-0.5+idleanim,-0.7+(idleanim/2)),.3)
2239
LW.C0=clerp(LW.C0,cf(-1+idleanim,0.5-idleanim,-0.5)*euler(1-idleanim,-0.5+idleanim,0.5),.3)
2240
RH.C0=clerp(RH.C0,RHC0,.2)
2241
LH.C0=clerp(LH.C0,LHC0,.2)
2242
end
2243
if attack==false and Mode=="Demon" then
2244
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5-idleanim)*euler(0.4+(idleanim/2),0,-0.4),.3)
2245
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-idleanim/2,0,0.4),.3)
2246
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.4,-0.5,1)*euler(.1+idleanim,0,0),.3)
2247
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-0.2,0,-0.2-idleanim),.3)
2248
RH.C0=clerp(RH.C0,cf(1,-1,-idleanim)*euler(-0.2-(idleanim/2),1.57,0),.3)
2249
LH.C0=clerp(LH.C0,cf(-1,-.5+idleanim,0)*euler(0.5+(idleanim/2),-1.2,0)*euler(-.2,0,0),.3)
2250
end
2251
else
2252
if attack==false and Mode=="Binary" then
2253
--wld1.C0=clerp(wld1.C0,euler(.2,0,0.1)*cf(0,.8,.3),.1)
2254
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-.3),.1)
2255
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1+(idleanim/2),0,0),.1)
2256
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)*euler(0.1,0,0),.1)
2257
--RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.7,0,1.5),.1)
2258
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0,0,.2),.1)
2259
LW.C0=clerp(LW.C0,cf(-1.2,0.5,-0.3)*euler(1.4,0,.8),.1)
2260
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(-1.2,1.57,0),.15)
2261
LH.C0=clerp(LH.C0,cf(-1.1,0.4,-0.8)*euler(-0.05,-1.57,0),.15)
2262
end
2263
end
2264
elseif torvel>2 and torvel<22 and hitfloor~=nil then
2265
if Anim=="Fall" then
2266
if velderp<=-70 then
2267
coroutine.resume(coroutine.create(function()
2268
Stomp()
2269
end))
2270
end
2271
end
2272
Anim="Walk"
2273
if attack==false and Mode=="Binary" then
2274
wld1.C0=clerp(wld1.C0,euler(0.4,0,-0.5)*cf(0,1,0),.2)
2275
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
2276
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
2277
--RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
2278
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(3-idleanim,0,-0.2+(idleanim/2)),.2)
2279
LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.57,-(idleanim/2),1.3-(idleanim/2)),.2)
2280
RH.C0=clerp(RH.C0,RHC0,.3)
2281
LH.C0=clerp(LH.C0,LHC0,.3)
2282
end
2283
if attack==false and Mode=="Demon" then
2284
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*euler(0.4,0,0),.3)
2285
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,0),.3)
2286
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.2+idleanim),.3)
2287
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(idleanim,0,-0.2),.3)
2288
RH.C0=clerp(RH.C0,cf(1,-.5,0)*euler(0.2,1.57,0),.3)
2289
LH.C0=clerp(LH.C0,cf(-1,-.5,0)*euler(0.5,-1.57,0)*euler(0,0,0),.3)
2290
end
2291
elseif torvel>=22 and hitfloor~=nil then
2292
if Anim=="Fall" then
2293
if velderp<=-70 then
2294
coroutine.resume(coroutine.create(function()
2295
Stomp()
2296
end))
2297
end
2298
end
2299
Anim="Run"
2300
if attack==false and Mode=="Binary" then
2301
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.3,0,0.5),.4)
2302
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-.5)*euler(0.5,0,-0.5),.4)
2303
wld1.C0=clerp(wld1.C0,euler(1.57,0,0)*cf(0,1,-0.3),.4)
2304
RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(1.2,-0.8,-0.2),.4)
2305
LW.C0=clerp(LW.C0,cf(-.7,0.5,-0.7)*euler(1.2,-0.5,0.8),.4)
2306
RH.C0=clerp(RH.C0,RHC0*cf(0,0,0)*euler(0.2,0.2,.5),.3)
2307
--LH.C0=clerp(LH.C0,LHC0*cf(.5,0.5,-.2)*euler(-0.5,0.5,-0.7),.3)
2308
LH.C0=clerp(LH.C0,LHC0*cf(.5,0.2,0)*euler(0,.5,0.2),.3)
2309
end
2310
if attack==false and Mode=="Demon" then
2311
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*euler(0.5,0,-0.4),.3)
2312
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(-0.2,0,.4),.3)
2313
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.5,-0.5,1.5)*euler(.2,0,.4),.3)
2314
LW.C0=clerp(LW.C0,cf(0,0.5,-0.5)*euler(1.57,-1.57,0)*euler(1.5,0,0),.3)
2315
RH.C0=clerp(RH.C0,cf(1,-.3,-.5)*euler(-0.2,2,0)*euler(0,0,0),.3)
2316
LH.C0=clerp(LH.C0,cf(-1,-.2,0)*euler(0.5,-1.2,0)*euler(-.2,0,0),.3)
2317
end
2318
end
2319
end
2320
if #Effects>0 then
2321
--table.insert(Effects,{prt,"Block1",delay})
2322
for e=1,#Effects do
2323
if Effects[e]~=nil then
2324
--for j=1,#Effects[e] do
2325
local Thing=Effects[e]
2326
if Thing~=nil then
2327
local Part=Thing[1]
2328
local Mode=Thing[2]
2329
local Delay=Thing[3]
2330
local IncX=Thing[4]
2331
local IncY=Thing[5]
2332
local IncZ=Thing[6]
2333
if Thing[1].Transparency<=1 then
2334
if Thing[2]=="Block1" then
2335
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2336
Mesh=Thing[1].Mesh
2337
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2338
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2339
elseif Thing[2]=="Cylinder" then
2340
Mesh=Thing[1].Mesh
2341
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2342
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2343
elseif Thing[2]=="Blood" then
2344
Mesh=Thing[1].Mesh
2345
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
2346
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2347
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2348
elseif Thing[2]=="Elec" then
2349
Mesh=Thing[1].Mesh
2350
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
2351
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2352
elseif Thing[2]=="Disappear" then
2353
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2354
end
2355
else
2356
Part.Parent=nil
2357
table.remove(Effects,e)
2358
end
2359
end
2360
--end
2361
end
2362
end
2363
end
2364
end