View difference between Paste ID: 0QGcKcTy and QBXdzmdL
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
2
print("FE Compatibility: by WaverlyCole & Mokiros")
3
InternalData = {}
4
do
5
	script.Parent = owner.Character
6
	local Event = Instance.new("RemoteEvent")
7
	Event.Name = "UserInput"
8
	local function NewFakeEvent()
9
		local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
10
		return Fake
11
	end
12
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
13
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
14
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
15
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
16
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
17
	local function TriggerEvent(self,Event,...)
18
		local Trigger = Mouse[Event]
19
		if Trigger and Trigger.fakeEvent and Trigger.Function then
20
			Trigger.Function(...)
21
		end
22
	end
23
	Mouse.TrigEvent = TriggerEvent
24
	UserInputService.TrigEvent = TriggerEvent
25
	Event.OnServerEvent:Connect(function(FiredBy,Input)
26
		if FiredBy.Name ~= owner.Name then end
27
		if Input.MouseEvent then
28
			Mouse.Target = Input.Target
29
			Mouse.Hit = Input.Hit
30
		else
31
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
32
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then
33
				return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
34
			end
35
			for _,Action in pairs(ContextActionService.Actions) do
36
				for _,Key in pairs(Action.Keys) do
37
					if Key==Input.KeyCode then
38
						Action.Function(Action.Name,Input.UserInputState,Input)
39
					end
40
				end
41
			end
42
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
43
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
44
		end
45
	end)
46
	InternalData["Mouse"] = Mouse
47
	InternalData["ContextActionService"] = ContextActionService
48
	InternalData["UserInputService"] = UserInputService
49
	Event.Parent = NLS([[
50
		local Player = owner
51
		local Event = script:WaitForChild("UserInput")
52
		local UserInputService = game:GetService("UserInputService")
53
		local Mouse = Player:GetMouse()
54
		local Input = function(Input,gameProcessedEvent)
55
			if gameProcessedEvent then return end
56
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
57
		end
58
		UserInputService.InputBegan:Connect(Input)
59
		UserInputService.InputEnded:Connect(Input)
60
		local Hit,Target
61
		while wait(1/30) do
62
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
63
				Hit,Target = Mouse.Hit,Mouse.Target
64
				Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
65
			end
66
		end
67
	]],owner.Character)
68
end
69
RealGame = game;game = setmetatable({},{
70
	__index = function (self,Index)
71
		local Sandbox = function (Thing)
72
			if Thing:IsA("Player") then
73
				local RealPlayer = Thing
74
				return setmetatable({},{
75
					__index = function (self,Index)
76
						local Type = type(RealPlayer[Index])
77
						if Type == "function" then
78
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
79
								return function (self)
80
									return InternalData["Mouse"]
81
								end
82
							end
83
							return function (self,...)
84
								return RealPlayer[Index](RealPlayer,...)
85
							end
86
						else
87
							if Index == "PlrObj" then
88
								return RealPlayer
89
							end
90
							return RealPlayer[Index]
91
						end
92
					end;
93
					__tostring = function(self)
94
						return RealPlayer.Name
95
					end
96
				})
97
			end
98
		end
99
		if RealGame[Index] then
100
			local Type = type(RealGame[Index])
101
			if Type == "function" then
102
				if Index:lower() == "getservice" or Index:lower() == "service" then
103
					return function (self,Service)
104
						if Service:lower() == "players" then
105
							return setmetatable({},{
106
								__index = function (self2,Index2)
107
									local RealService = RealGame:GetService(Service)
108
									local Type2 = type(Index2)
109
									if Type2 == "function" then
110
										return function (self,...)
111
											return RealService[Index2](RealService,...)
112
										end
113
									else
114
										if Index2:lower() == "localplayer" then
115
											return Sandbox(owner)
116
										end
117
										return RealService[Index2]
118
									end
119
								end;
120
								__tostring = function(self)
121
									return RealGame:GetService(Service).Name
122
								end
123
							})
124
						elseif Service:lower() == "contextactionservice" then
125
							return InternalData["ContextActionService"]
126
						elseif Service:lower() == "contextactionservice" then
127
							return InternalData["UserInputService"]
128
						elseif Service:lower() == "runservice" then
129
							return setmetatable({},{
130
								__index = function(self2,Index2)
131
									local RealService = RealGame:GetService(Service)
132
									local Type2 = type(Index2)
133
									if Type2 == "function" then
134
										return function (self,...)
135
											return RealService[Index2](RealService,...)
136
										end
137
									else
138
										if Index2:lower() == "bindtorenderstep" then
139
											return function (self,Name,Priority,Function)
140
												return RealGame:GetService("RunService").Stepped:Connect(Function)
141
											end
142
										end
143
										if Index2:lower() == "renderstepped" then
144
											return RealService["Stepped"]
145
										end
146
										return RealService[Index2]
147
									end
148
								end
149
							})
150
						else
151
							return RealGame:GetService(Service)
152
						end
153
					end
154
				end
155
				return function (self,...)
156
					return RealGame[Index](RealGame,...)
157
				end
158
			else
159
				if game:GetService(Index) then
160
					return game:GetService(Index)
161
				end
162
				return RealGame[Index]
163
			end
164
		else
165
			return nil
166
		end
167
	end
168
});Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
169
print("Complete! Running...")
170
171
plr = game.Players.LocalPlayer
172
char = plr.Character
173
hum = char.Humanoid
174
local cam = game.Workspace.CurrentCamera
175
t = char.Torso
176
h = char.Head
177
ra = char["Right Arm"]
178
la = char["Left Arm"]
179
rl = char["Right Leg"]
180
ll = char["Left Leg"]
181
tors = char.Torso
182
lleg = char["Left Leg"]
183
root = char.HumanoidRootPart
184
hed = char.Head
185
rleg = char["Right Leg"]
186
rarm = char["Right Arm"]
187
larm = char["Left Arm"]
188
vt = Vector3.new
189
bc = BrickColor.new
190
br = BrickColor.random
191
it = Instance.new
192
cf = CFrame.new
193
local targetted = nil
194
local killcount = 0
195
local requirekillA = 15
196
local requirekillX = 50
197
local maxA = 15
198
local maxX = 50
199
if plr.Name == "soins1" then
200
maxX = 0
201
requirekillX = maxX
202
end
203
local unlockedA = true
204
local unlockedX = true
205
local LeftModeUnlocked = false
206
207
kan = Instance.new("Sound",char)
208
kan.Volume = 6
209
kan.PlaybackSpeed = 0.4
210
kan.Pitch = 0.2
211
kan.SoundId = "rbxassetid://583415095"
212
kan.Name = "kreepery"
213
kan.Looped = true
214
kan:Play()
215
216
abss = Instance.new("BillboardGui",char)
217
abss.Size = UDim2.new(10,0,10,0)
218
abss.Enabled = false
219
imgl = Instance.new("ImageLabel",abss)
220
imgl.Position = UDim2.new(0,0,0,0)
221
imgl.Size = UDim2.new(1,0,1,0)
222
imgl.Image = "http://www.roblox.com/asset/?id=118777235"
223
imgl.BackgroundTransparency = 1
224
imgl.ImageColor3 = Color3.new(0,0,0)
225
imgl2 = Instance.new("ImageLabel",abss)
226
imgl2.Position = UDim2.new(-0.5,0,-0.5,0)
227
imgl2.Size = UDim2.new(2,0,2,0)
228
imgl2.Image = "http://www.roblox.com/asset/?id=135465292"
229
imgl2.BackgroundTransparency = 1
230
imgl2.ImageColor3 = Color3.new(0,0,0)
231
img2 = Instance.new("ImageLabel",abss)
232
img2.Position = UDim2.new(0,0,0,0)
233
img2.Size = UDim2.new(1,0,1,0)
234
img2.Image = "rbxassetid://118777235"
235
img2.BackgroundTransparency = 1
236
img2.ImageColor3 = Color3.new(0,0,0)
237
238
function CameraShake(Times, Power)
239
coroutine.resume(coroutine.create(function()
240
FV = Instance.new("BoolValue", Character)
241
FV.Name = "CameraShake"
242
for ShakeNum=1,Times do
243
swait()
244
local ef=Power
245
  if ef>=1 then
246
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
247
  else
248
   ef=Power*10
249
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
250
  end	
251
end
252
Humanoid.CameraOffset = Vector3.new(0,0,0)
253
FV:Destroy()
254
end))
255
end
256
257
CamShake=function(Part,Distan,Power,Times) 
258
local de=Part.Position
259
for i,v in pairs(workspace:children()) do
260
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
261
for _,c in pairs(v:children()) do
262
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
263
local Noob=v.Humanoid
264
if Noob~=nil then
265
if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
266
--[[local ss=script.CamShake:clone()
267
ss.Parent=Noob
268
ss.Power.Value=Power
269
ss.Times.Value=Times
270
ss.Disabled=false]]
271
CameraShake(Times, Power)
272
end
273
end
274
end
275
end
276
end
277
end
278
end
279
280
function chatfunc(text,color)
281
local chat = coroutine.wrap(function()
282
if Character:FindFirstChild("TalkingBillBoard")~= nil then
283
Character:FindFirstChild("TalkingBillBoard"):destroy()
284
end
285
local naeeym2 = Instance.new("BillboardGui",Character)
286
naeeym2.Size = UDim2.new(0,100,0,40)
287
naeeym2.StudsOffset = Vector3.new(0,3,0)
288
naeeym2.Adornee = Character.Head
289
naeeym2.Name = "TalkingBillBoard"
290
local tecks2 = Instance.new("TextLabel",naeeym2)
291
tecks2.BackgroundTransparency = 1
292
tecks2.BorderSizePixel = 0
293
tecks2.Text = ""
294
tecks2.Font = "SciFi"
295
tecks2.TextSize = 30
296
tecks2.TextStrokeTransparency = 0
297
tecks2.TextColor3 = color
298
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
299
tecks2.Size = UDim2.new(1,0,0.5,0)
300
local tecks3 = Instance.new("TextLabel",naeeym2)
301
tecks3.BackgroundTransparency = 1
302
tecks3.BorderSizePixel = 0
303
tecks3.Text = ""
304
tecks3.Font = "SciFi"
305
tecks3.TextSize = 30
306
tecks3.TextStrokeTransparency = 0
307
tecks3.TextColor3 = Color3.new(0,0,0)
308
tecks3.TextStrokeColor3 = color
309
tecks3.Size = UDim2.new(1,0,0.5,0)
310
coroutine.resume(coroutine.create(function()
311
while true do
312
swait(1)
313
tecks2.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
314
tecks3.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
315
tecks2.Rotation = math.random(-15,15)
316
tecks3.Rotation = math.random(-15,15)
317
end
318
end))
319
for i = 1,string.len(text),1 do
320
CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
321
tecks2.Text = string.sub(text,1,i)
322
tecks3.Text = string.sub(text,1,i)
323
swait(1)
324
end
325
wait(1)
326
local randomrot = math.random(1,2)
327
if randomrot == 1 then
328
for i = 1, 50 do
329
swait()
330
tecks2.Rotation = tecks2.Rotation - .75
331
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
332
tecks2.TextTransparency = tecks2.TextTransparency + .04
333
tecks3.Rotation = tecks2.Rotation + .75
334
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
335
tecks3.TextTransparency = tecks2.TextTransparency + .04
336
end
337
elseif randomrot == 2 then
338
	for i = 1, 50 do
339
swait()
340
tecks2.Rotation = tecks2.Rotation + .75
341
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
342
tecks2.TextTransparency = tecks2.TextTransparency + .04
343
tecks3.Rotation = tecks2.Rotation - .75
344
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
345
tecks3.TextTransparency = tecks2.TextTransparency + .04
346
end
347
end
348
naeeym2:Destroy()
349
end)
350
chat()
351
end
352
353
354
local Create = LoadLibrary("RbxUtility").Create
355
356
CFuncs = {	
357
	["Part"] = {
358
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
359
			local Part = Create("Part"){
360
				Parent = Parent,
361
				Reflectance = Reflectance,
362
				Transparency = Transparency,
363
				CanCollide = false,
364
				Locked = true,
365
				BrickColor = BrickColor.new(tostring(BColor)),
366
				Name = Name,
367
				Size = Size,
368
				Material = Material,
369
			}
370
			RemoveOutlines(Part)
371
			return Part
372
		end;
373
	};
374
	
375
	["Mesh"] = {
376
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
377
			local Msh = Create(Mesh){
378
				Parent = Part,
379
				Offset = OffSet,
380
				Scale = Scale,
381
			}
382
			if Mesh == "SpecialMesh" then
383
				Msh.MeshType = MeshType
384
				Msh.MeshId = MeshId
385
			end
386
			return Msh
387
		end;
388
	};
389
	
390
	["Mesh"] = {
391
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
392
			local Msh = Create(Mesh){
393
				Parent = Part,
394
				Offset = OffSet,
395
				Scale = Scale,
396
			}
397
			if Mesh == "SpecialMesh" then
398
				Msh.MeshType = MeshType
399
				Msh.MeshId = MeshId
400
			end
401
			return Msh
402
		end;
403
	};
404
	
405
	["Weld"] = {
406
		Create = function(Parent, Part0, Part1, C0, C1)
407
			local Weld = Create("Weld"){
408
				Parent = Parent,
409
				Part0 = Part0,
410
				Part1 = Part1,
411
				C0 = C0,
412
				C1 = C1,
413
			}
414
			return Weld
415
		end;
416
	};
417
418
	["Sound"] = {
419
		Create = function(id, par, vol, pit) 
420
			coroutine.resume(coroutine.create(function()
421
				local S = Create("Sound"){
422
					Volume = vol,
423
					Pitch = pit or 1,
424
					SoundId = id,
425
					Parent = par or workspace,
426
				}
427
				wait() 
428
				S:play() 
429
				game:GetService("Debris"):AddItem(S, 10)
430
			end))
431
		end;
432
	};
433
434
["LongSound"] = {
435
		Create = function(id, par, vol, pit) 
436
			coroutine.resume(coroutine.create(function()
437
				local S = Create("Sound"){
438
					Volume = vol,
439
					Pitch = pit or 1,
440
					SoundId = id,
441
					Parent = par or workspace,
442
				}
443
				wait() 
444
				S:play() 
445
				game:GetService("Debris"):AddItem(S, 30)
446
			end))
447
		end;
448
	};
449
	
450
	["ParticleEmitter"] = {
451
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
452
			local fp = Create("ParticleEmitter"){
453
				Parent = Parent,
454
				Color = ColorSequence.new(Color1, Color2),
455
				LightEmission = LightEmission,
456
				Size = Size,
457
				Texture = Texture,
458
				Transparency = Transparency,
459
				ZOffset = ZOffset,
460
				Acceleration = Accel,
461
				Drag = Drag,
462
				LockedToPart = LockedToPart,
463
				VelocityInheritance = VelocityInheritance,
464
				EmissionDirection = EmissionDirection,
465
				Enabled = Enabled,
466
				Lifetime = LifeTime,
467
				Rate = Rate,
468
				Rotation = Rotation,
469
				RotSpeed = RotSpeed,
470
				Speed = Speed,
471
				VelocitySpread = VelocitySpread,
472
			}
473
			return fp
474
		end;
475
	};
476
477
	CreateTemplate = {
478
	
479
	};
480
}
481
482
483
484
New = function(Object, Parent, Name, Data)
485
	local Object = Instance.new(Object)
486
	for Index, Value in pairs(Data or {}) do
487
		Object[Index] = Value
488
	end
489
	Object.Parent = Parent
490
	Object.Name = Name
491
	return Object
492
end
493
local halocolor = BrickColor.new("Dark indigo")
494
local wepcolor = BrickColor.new("Really black")
495
local MutantParts = Instance.new("Model",char)
496
local MutantParts2 = Instance.new("Model",char)
497
498
function CreateParta(parent,transparency,reflectance,material,brickcolor)
499
local p = Instance.new("Part")
500
p.TopSurface = 0
501
p.BottomSurface = 0
502
p.Parent = parent
503
p.Size = Vector3.new(0.1,0.1,0.1)
504
p.Transparency = transparency
505
p.Reflectance = reflectance
506
p.CanCollide = false
507
p.Locked = true
508
p.BrickColor = brickcolor
509
p.Material = material
510
return p
511
end
512
513
function CreateMesh(parent,meshtype,x1,y1,z1)
514
local mesh = Instance.new("SpecialMesh",parent)
515
mesh.MeshType = meshtype
516
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
517
return mesh
518
end
519
520
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
521
local mesh = Instance.new("SpecialMesh",parent)
522
mesh.MeshType = "FileMesh"
523
mesh.MeshId = meshid
524
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
525
mesh.Scale = Vector3.new(x1,y1,z1)
526
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
527
return mesh
528
end
529
530
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
531
local weld = Instance.new("Weld")
532
weld.Parent = parent
533
weld.Part0 = part0
534
weld.Part1 = part1
535
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
536
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
537
return weld
538
end
539
540
--larm.Name = "MutatedLeftArm"
541
542
extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
543
CreateMesh(extend,"Brick",0.65,1,0.65)
544
CreateWeld(extend,larm,extend,0,0.25,0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
545
extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
546
CreateMesh(extend,"Brick",0.65,1,0.65)
547
CreateWeld(extend,larm,extend,0.25,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
548
extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
549
CreateMesh(extend,"Brick",0.65,1,0.65)
550
CreateWeld(extend,larm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
551-
extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
551+
552-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
552+
553-
CreateWeld(extendblood,larm,extendblood,-0.15,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
553+
554-
extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
554+
555-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
555+
556-
CreateWeld(extendblood,larm,extendblood,-0.275,0.2,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
556+
557-
extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
557+
558-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
558+
559-
CreateWeld(extendblood,larm,extendblood,0.05,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
559+
560-
extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
560+
561-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
561+
562-
CreateWeld(extendblood,larm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
562+
563-
extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
563+
564-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
564+
565-
CreateWeld(extendblood,larm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
565+
566-
extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
566+
567-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
567+
568-
CreateWeld(extendblood,larm,extendblood,0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
568+
569-
extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
569+
570-
CreateMesh(extendblood,"Brick",0.05,1.5,0.05)
570+
571-
CreateWeld(extendblood,larm,extendblood,0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
571+
572
CreateMesh(extendcl,"Wedge",0.05,1,3)
573
CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
574
extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White"))
575
CreateMesh(extendcl,"Wedge",0.05,1,1)
576
CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(-90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
577
extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
578
CreateMesh(extend,"Brick",0.65,1,0.65)
579
CreateWeld(extend,rarm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
580
extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
581
CreateMesh(extend,"Brick",0.65,1,0.65)
582
CreateWeld(extend,rarm,extend,0.275,-0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
583
extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
584
CreateMesh(extend,"Brick",0.65,1,0.65)
585
CreateWeld(extend,rarm,extend,-0.205,0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
586
extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
587
CreateMesh(extendsph,"Sphere",1.25,1.25,1.25)
588
CreateWeld(extendsph,rarm,extendsph,0.125,0,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
589
extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
590
CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
591
CreateWeld(extendsph,rarm,extendsph,-0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
592
extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
593
CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
594
CreateWeld(extendsph,rarm,extendsph,0.315,-0.5,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
595
extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
596
CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
597
CreateWeld(extendsph,rarm,extendsph,-0.235,0.45,-0.3,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
598
599
600
for i, v in pairs(MutantParts:GetChildren()) do
601
if v:IsA("Part") then
602
v.Transparency = 1
603
end
604
end
605
606
for i, v in pairs(MutantParts2:GetChildren()) do
607
if v:IsA("Part") then
608
v.Transparency = 1
609
end
610
end
611
function RemoveOutlines(part)
612
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
613
end
614
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
615
  local Part = Create("Part")({
616
    Parent = Parent,
617
    Reflectance = Reflectance,
618
    Transparency = Transparency,
619-
extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
619+
620-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
620+
621-
CreateWeld(extendblood,rarm,extendblood,-0.15,0,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
621+
622-
extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
622+
623-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
623+
624-
CreateWeld(extendblood,rarm,extendblood,-0.275,0.2,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
624+
625-
extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
625+
626-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
626+
627-
CreateWeld(extendblood,rarm,extendblood,0.25,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
627+
628-
extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
628+
629-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
629+
630-
CreateWeld(extendblood,rarm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
630+
631-
extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
631+
632-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
632+
633-
CreateWeld(extendblood,rarm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
633+
634-
extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
634+
635-
CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
635+
636-
CreateWeld(extendblood,rarm,extendblood,-0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
636+
637-
extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
637+
638-
CreateMesh(extendblood,"Brick",0.05,1.5,0.05)
638+
639-
CreateWeld(extendblood,rarm,extendblood,-0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
639+
640
  return Msh
641
end
642
function CreateWeld(Parent, Part0, Part1, C0, C1)
643
  local Weld = Create("Weld")({
644
    Parent = Parent,
645
    Part0 = Part0,
646
    Part1 = Part1,
647
    C0 = C0,
648
    C1 = C1
649
  })
650
  return Weld
651
end
652
653
local ff = Instance.new("ForceField",char)
654
ff.Visible = false
655
656
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
657
  local gui = it(GuiType)
658
  gui.Parent = parent
659
  gui.Text = text
660
  gui.BackgroundTransparency = backtrans
661
  gui.BackgroundColor3 = backcol
662
  gui.SizeConstraint = "RelativeXY"
663
  gui.TextXAlignment = "Center"
664
  gui.TextYAlignment = "Center"
665
  gui.Position = pos
666
  gui.Size = size
667
  gui.Font = "SourceSans"
668
  gui.FontSize = "Size14"
669
  gui.TextWrapped = false
670
  gui.TextStrokeTransparency = 0
671
  gui.TextColor = BrickColor.new("White")
672
  return gui
673
end
674
---- GUI set
675
local basgui = it("GuiMain")
676
basgui.Parent = plr.PlayerGui
677
basgui.Name = "Killcounter GUI"
678
local basframe = it("Frame")
679
basframe.Parent = basgui
680
basframe.BackgroundColor3 = Color3.new(255, 255, 255)
681
basframe.BackgroundTransparency = 1
682
basframe.BorderColor3 = Color3.new(17, 17, 17)
683
basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
684
basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
685
686
local basframelist = it("Frame")
687
basframelist.Parent = basgui
688
basframelist.BackgroundColor3 = Color3.new(255, 255, 255)
689
basframelist.BackgroundTransparency = 1
690
basframelist.BorderColor3 = Color3.new(17, 17, 17)
691
basframelist.Size = UDim2.new(0.2, 0, 0.2, 0)
692
basframelist.Position = UDim2.new(0.8, 0, 0.8, 0)
693
694
local uhh = gui("TextLabel", basframe, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
695
uhh.ZIndex = 2
696
uhh.Font = "Arcade"
697
uhh.TextStrokeColor3 = Color3.new(180,180,0)
698
uhh.TextColor3 = Color3.new(0,0,0)
699
uhh.BackgroundTransparency = 1
700
uhh.BorderSizePixel = 0.65
701
uhh.TextScaled = false
702
uhh.TextXAlignment = "Left"
703
uhh.Text = "Kills : 0"
704
uhh.TextSize = 54
705
706
707
local uhh2 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.8, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
708
uhh2.ZIndex = 2
709
uhh2.Font = "Bodoni"
710
uhh2.TextStrokeColor3 = Color3.new(1,0,0)
711
uhh2.TextColor3 = Color3.new(0,0,0)
712
uhh2.BackgroundTransparency = 1
713
uhh2.BorderSizePixel = 0.65
714
uhh2.TextScaled = false
715
uhh2.TextXAlignment = "Left"
716
uhh2.Text = "Required kills for second mutated arm: 15"
717
uhh2.TextSize = 24
718
local uhh3 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, -0.1, 0), UDim2.new(0.95, 0, 0.15, 0))
719
uhh3.ZIndex = 2
720
uhh3.Font = "Bodoni"
721
uhh3.TextStrokeColor3 = Color3.new(1,0,0)
722
uhh3.TextColor3 = Color3.new(0,0,0)
723
uhh3.BackgroundTransparency = 1
724
uhh3.BorderSizePixel = 0.65
725
uhh3.TextScaled = false
726
uhh3.TextXAlignment = "Left"
727
uhh3.Text = "Required kills for the end: 50"
728
uhh3.TextSize = 24
729
730
731
Player=game:GetService("Players").LocalPlayer
732
Character=Player.Character 
733
local Mouse = Player:GetMouse()
734
PlayerGui=Player.PlayerGui 
735
Backpack=Player.Backpack 
736
Torso=Character.Torso 
737
Head=Character.Head 
738
Humanoid=Character.Humanoid
739
m=Instance.new('Model',Character)
740
LeftArm=Character["Left Arm"] 
741
LeftLeg=Character["Left Leg"] 
742
RightArm=Character["Right Arm"] 
743
RightLeg=Character["Right Leg"] 
744
LS=Torso["Left Shoulder"] 
745
LH=Torso["Left Hip"] 
746
RS=Torso["Right Shoulder"] 
747
RH=Torso["Right Hip"] 
748
Face = Head.face
749
Neck=Torso.Neck
750
it=Instance.new
751
attacktype=1
752
vt=Vector3.new
753
cf=CFrame.new
754
euler=CFrame.fromEulerAnglesXYZ
755
angles=CFrame.Angles
756
cloaked=false
757
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
758
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
759
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
760
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
761
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
762
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
763
RootPart=Character.HumanoidRootPart
764
RootJoint=RootPart.RootJoint
765
RootCF=euler(-1.57,0,3.14)
766
attack = false 
767
attackdebounce = false 
768
deb=false
769
equipped=true
770
hand=false
771
MMouse=nil
772
combo=0
773
mana=0
774
trispeed=.2
775
attackmode='none'
776
local idle=0
777
local Anim="Idle"
778
local Effects={}
779
local gun=false
780
local shoot=false
781
local sine = 0
782
local change = 1
783
player=nil 
784
785
mouse=Player:GetMouse()
786
--save shoulders 
787
RSH, LSH=nil, nil 
788
--welds 
789
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
790
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
791
LH=Torso["Left Hip"]
792
RH=Torso["Right Hip"]
793
TorsoColor=Torso.BrickColor
794
function NoOutline(Part)
795
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
796
end
797
player=Player 
798
ch=Character
799
RSH=ch.Torso["Right Shoulder"] 
800
LSH=ch.Torso["Left Shoulder"] 
801
-- 
802
RSH.Parent=nil 
803
LSH.Parent=nil 
804
-- 
805
RW.Name="Right Shoulder"
806
RW.Part0=ch.Torso 
807
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
808
RW.C1=cf(0, 0.5, 0) 
809
RW.Part1=ch["Right Arm"] 
810
RW.Parent=ch.Torso 
811
-- 
812
LW.Name="Left Shoulder"
813
LW.Part0=ch.Torso 
814
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
815
LW.C1=cf(0, 0.5, 0) 
816
LW.Part1=ch["Left Arm"] 
817
LW.Parent=ch.Torso 
818
819
local Stats=Instance.new("BoolValue")
820
Stats.Name="Stats"
821
Stats.Parent=Character
822
local Atk=Instance.new("NumberValue")
823
Atk.Name="Damage"
824
Atk.Parent=Stats
825
Atk.Value=1
826
local Def=Instance.new("NumberValue")
827
Def.Name="Defense"
828
Def.Parent=Stats
829
Def.Value=1
830
local Speed=Instance.new("NumberValue")
831
Speed.Name="Speed"
832
Speed.Parent=Stats
833
Speed.Value=1
834
local Mvmt=Instance.new("NumberValue")
835
Mvmt.Name="Movement"
836
Mvmt.Parent=Stats
837
Mvmt.Value=1
838
839
local donum=0
840
 
841
842
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
843
local fp=it("Part")
844
fp.formFactor=formfactor 
845
fp.Parent=parent
846
fp.Reflectance=reflectance
847
fp.Transparency=transparency
848
fp.CanCollide=false 
849
fp.Locked=true
850
fp.BrickColor=brickcolor
851
fp.Name=name
852
fp.Size=size
853
fp.Position=Torso.Position 
854
NoOutline(fp)
855
fp.Material="SmoothPlastic"
856
fp:BreakJoints()
857
return fp 
858
end 
859
 
860
function mesh(Mesh,part,meshtype,meshid,offset,scale)
861
local mesh=it(Mesh) 
862
mesh.Parent=part
863
if Mesh=="SpecialMesh" then
864
mesh.MeshType=meshtype
865
if meshid~="nil" then
866
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
867
end
868
end
869
mesh.Offset=offset
870
mesh.Scale=scale
871
return mesh
872
end
873
 
874
function weld(parent,part0,part1,c0)
875
local weld=it("Weld") 
876
weld.Parent=parent
877
weld.Part0=part0 
878
weld.Part1=part1 
879
weld.C0=c0
880
return weld
881
end
882
 
883
local Color1=Torso.BrickColor
884
885
local bodvel=Instance.new("BodyVelocity")
886
local bg=Instance.new("BodyGyro")
887
888
function swait(num)
889
if num==0 or num==nil then
890
game:service'RunService'.Stepped:wait(0)
891
else
892
for i=0,num do
893
game:service'RunService'.Stepped:wait(0)
894
end
895
end
896
end
897
 
898
 
899
so = function(id,par,vol,pit) 
900
coroutine.resume(coroutine.create(function()
901
local sou = Instance.new("Sound",par or workspace)
902
sou.Volume=vol
903
sou.Pitch=pit or 1
904
sou.SoundId=id
905
swait() 
906
sou:play() 
907
game:GetService("Debris"):AddItem(sou,6)
908
end))
909
end
910
 
911
function clerp(a,b,t) 
912
local qa = {QuaternionFromCFrame(a)}
913
local qb = {QuaternionFromCFrame(b)} 
914
local ax, ay, az = a.x, a.y, a.z 
915
local bx, by, bz = b.x, b.y, b.z
916
local _t = 1-t
917
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
918
end 
919
 
920
function QuaternionFromCFrame(cf) 
921
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
922
local trace = m00 + m11 + m22 
923
if trace > 0 then 
924
local s = math.sqrt(1 + trace) 
925
local recip = 0.5/s 
926
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
927
else 
928
local i = 0 
929
if m11 > m00 then
930
i = 1
931
end
932
if m22 > (i == 0 and m00 or m11) then 
933
i = 2 
934
end 
935
if i == 0 then 
936
local s = math.sqrt(m00-m11-m22+1) 
937
local recip = 0.5/s 
938
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
939
elseif i == 1 then 
940
local s = math.sqrt(m11-m22-m00+1) 
941
local recip = 0.5/s 
942
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
943
elseif i == 2 then 
944
local s = math.sqrt(m22-m00-m11+1) 
945
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
946
end 
947
end 
948
end
949
 
950
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
951
local xs, ys, zs = x + x, y + y, z + z 
952
local wx, wy, wz = w*xs, w*ys, w*zs 
953
local xx = x*xs 
954
local xy = x*ys 
955
local xz = x*zs 
956
local yy = y*ys 
957
local yz = y*zs 
958
local zz = z*zs 
959
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)) 
960
end
961
 
962
function QuaternionSlerp(a, b, t) 
963
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
964
local startInterp, finishInterp; 
965
if cosTheta >= 0.0001 then 
966
if (1 - cosTheta) > 0.0001 then 
967
local theta = math.acos(cosTheta) 
968
local invSinTheta = 1/math.sin(theta) 
969
startInterp = math.sin((1-t)*theta)*invSinTheta 
970
finishInterp = math.sin(t*theta)*invSinTheta  
971
else 
972
startInterp = 1-t 
973
finishInterp = t 
974
end 
975
else 
976
if (1+cosTheta) > 0.0001 then 
977
local theta = math.acos(-cosTheta) 
978
local invSinTheta = 1/math.sin(theta) 
979
startInterp = math.sin((t-1)*theta)*invSinTheta 
980
finishInterp = math.sin(t*theta)*invSinTheta 
981
else 
982
startInterp = t-1 
983
finishInterp = t 
984
end 
985
end 
986
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 
987
end
988
989
local function CFrameFromTopBack(at, top, back)
990
local right = top:Cross(back)
991
return CFrame.new(at.x, at.y, at.z,
992
right.x, top.x, back.x,
993
right.y, top.y, back.y,
994
right.z, top.z, back.z)
995
end
996
997
function Triangle(a, b, c)
998
local edg1 = (c-a):Dot((b-a).unit)
999
local edg2 = (a-b):Dot((c-b).unit)
1000
local edg3 = (b-c):Dot((a-c).unit)
1001
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1002
a, b, c = a, b, c
1003
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1004
a, b, c = b, c, a
1005
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1006
a, b, c = c, a, b
1007
else
1008
assert(false, "unreachable")
1009
end
1010
 
1011
local len1 = (c-a):Dot((b-a).unit)
1012
local len2 = (b-a).magnitude - len1
1013
local width = (a + (b-a).unit*len1 - c).magnitude
1014
 
1015
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1016
 
1017
local list = {}
1018
 
1019
if len1 > 0.01 then
1020
local w1 = Instance.new('WedgePart', m)
1021
game:GetService("Debris"):AddItem(w1,5)
1022
w1.Material = "SmoothPlastic"
1023
w1.FormFactor = 'Custom'
1024
w1.BrickColor = BrickColor.new("Really red")
1025
w1.Transparency = 0
1026
w1.Reflectance = 0
1027
w1.Material = "SmoothPlastic"
1028
w1.CanCollide = false
1029
local l1 = Instance.new("PointLight",w1)
1030
l1.Color = Color3.new(170,0,0)
1031
NoOutline(w1)
1032
local sz = Vector3.new(0.2, width, len1)
1033
w1.Size = sz
1034
local sp = Instance.new("SpecialMesh",w1)
1035
sp.MeshType = "Wedge"
1036
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1037
w1:BreakJoints()
1038
w1.Anchored = true
1039
w1.Parent = workspace
1040
w1.Transparency = 0.7
1041
table.insert(Effects,{w1,"Disappear",.01})
1042
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1043
table.insert(list,w1)
1044
end
1045
 
1046
if len2 > 0.01 then
1047
local w2 = Instance.new('WedgePart', m)
1048
game:GetService("Debris"):AddItem(w2,5)
1049
w2.Material = "SmoothPlastic"
1050
w2.FormFactor = 'Custom'
1051
w2.BrickColor = BrickColor.new("Really red")
1052
w2.Transparency = 0
1053
w2.Reflectance = 0
1054
w2.Material = "SmoothPlastic"
1055
w2.CanCollide = false
1056
local l2 = Instance.new("PointLight",w2)
1057
l2.Color = Color3.new(170,0,0)
1058
NoOutline(w2)
1059
local sz = Vector3.new(0.2, width, len2)
1060
w2.Size = sz
1061
local sp = Instance.new("SpecialMesh",w2)
1062
sp.MeshType = "Wedge"
1063
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1064
w2:BreakJoints()
1065
w2.Anchored = true
1066
w2.Parent = workspace
1067
w2.Transparency = 0.7
1068
table.insert(Effects,{w2,"Disappear",.01})
1069
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1070
table.insert(list,w2)
1071
end
1072
return unpack(list)
1073
end
1074
 
1075
1076
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1077
  if hit.Parent == nil then
1078
    return
1079
  end
1080
  local h = hit.Parent:FindFirstChild("Humanoid")
1081
  for _, v in pairs(hit.Parent:children()) do
1082
    if v:IsA("Humanoid") then
1083
      h = v
1084
    end
1085
  end
1086
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
1087
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1088
      return
1089
    end
1090
    local c = Create("ObjectValue")({
1091
      Name = "creator",
1092
      Value = game:service("Players").LocalPlayer,
1093
      Parent = h
1094
    })
1095
    game:GetService("Debris"):AddItem(c, 0.5)
1096
    if HitSound ~= nil and HitPitch ~= nil then
1097
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1098
    end
1099
    local Damage = math.random(minim, maxim)
1100
    local blocked = false
1101
    local block = hit.Parent:findFirstChild("Block")
1102
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1103
      blocked = true
1104
      block.Value = block.Value - 1
1105
      print(block.Value)
1106
    end
1107
    if blocked == false then
1108
      HitHealth = h.Health
1109
      h.Health = h.Health - Damage
1110
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1111
        print("gained kill")
1112
      end
1113
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1114
    else
1115
      h.Health = h.Health - Damage / 2
1116
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1117
    end
1118
    if Type == "Knockdown" then
1119
      local hum = hit.Parent.Humanoid
1120
      hum.PlatformStand = true
1121
      coroutine.resume(coroutine.create(function(HHumanoid)
1122
        swait(1)
1123
        HHumanoid.PlatformStand = false
1124
      end), hum)
1125
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1126
      local bodvol = Create("BodyVelocity")({
1127
        velocity = angle * knockback,
1128
        P = 5000,
1129
        maxForce = Vector3.new(8000, 8000, 8000),
1130
        Parent = hit
1131
      })
1132
      local rl = Create("BodyAngularVelocity")({
1133
        P = 3000,
1134
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1135
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1136
        Parent = hit
1137
      })
1138
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1139
      game:GetService("Debris"):AddItem(rl, 0.5)
1140
    elseif Type == "Normal" then
1141
      local vp = Create("BodyVelocity")({
1142
        P = 500,
1143
        maxForce = Vector3.new(math.huge, 0, math.huge),
1144
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1145
      })
1146
      if knockback > 0 then
1147
        vp.Parent = hit.Parent.Torso
1148
      end
1149
      game:GetService("Debris"):AddItem(vp, 0.5)
1150
    elseif Type == "Up" then
1151
      local bodyVelocity = Create("BodyVelocity")({
1152
        velocity = Vector3.new(0, 20, 0),
1153
        P = 5000,
1154
        maxForce = Vector3.new(8000, 8000, 8000),
1155
        Parent = hit
1156
      })
1157
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1158
      local bodyVelocity = Create("BodyVelocity")({
1159
        velocity = Vector3.new(0, 20, 0),
1160
        P = 5000,
1161
        maxForce = Vector3.new(8000, 8000, 8000),
1162
        Parent = hit
1163
      })
1164
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1165
    elseif Type == "Leech" then
1166
      local hum = hit.Parent.Humanoid
1167
      if hum ~= nil then
1168
        for i = 0, 2 do
1169
          Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
1170
        end
1171
        Humanoid.Health = Humanoid.Health + 10
1172
      end
1173
    elseif Type == "UpKnock" then
1174
      local hum = hit.Parent.Humanoid
1175
      hum.PlatformStand = true
1176
      if hum ~= nil then
1177
        hitr = true
1178
      end
1179
      coroutine.resume(coroutine.create(function(HHumanoid)
1180
        swait(5)
1181
        HHumanoid.PlatformStand = false
1182
        hitr = false
1183
      end), hum)
1184
      local bodyVelocity = Create("BodyVelocity")({
1185
        velocity = Vector3.new(0, 20, 0),
1186
        P = 5000,
1187
        maxForce = Vector3.new(8000, 8000, 8000),
1188
        Parent = hit
1189
      })
1190
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1191
      local bodyVelocity = Create("BodyVelocity")({
1192
        velocity = Vector3.new(0, 20, 0),
1193
        P = 5000,
1194
        maxForce = Vector3.new(8000, 8000, 8000),
1195
        Parent = hit
1196
      })
1197
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1198
    elseif Type == "Snare" then
1199
      local bp = Create("BodyPosition")({
1200
        P = 2000,
1201
        D = 100,
1202
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1203
        position = hit.Parent.Torso.Position,
1204
        Parent = hit.Parent.Torso
1205
      })
1206
      game:GetService("Debris"):AddItem(bp, 1)
1207
    elseif Type == "Slashnare" then
1208
      Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
1209
      for i = 1, math.random(4, 5) do
1210
        Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
1211
      end
1212
      local bp = Create("BodyPosition")({
1213
        P = 2000,
1214
        D = 100,
1215
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1216
        position = hit.Parent.Torso.Position,
1217
        Parent = hit.Parent.Torso
1218
      })
1219
      game:GetService("Debris"):AddItem(bp, 1)
1220
    elseif Type == "Spike" then
1221
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1222
      local bp = Create("BodyPosition")({
1223
        P = 2000,
1224
        D = 100,
1225
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1226
        position = hit.Parent.Torso.Position,
1227
        Parent = hit.Parent.Torso
1228
      })
1229
      game:GetService("Debris"):AddItem(bp, 1)
1230
    elseif Type == "Freeze" then
1231
      local BodPos = Create("BodyPosition")({
1232
        P = 50000,
1233
        D = 1000,
1234
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1235
        position = hit.Parent.Torso.Position,
1236
        Parent = hit.Parent.Torso
1237
      })
1238
      local BodGy = Create("BodyGyro")({
1239
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1240
        P = 20000,
1241
        Parent = hit.Parent.Torso,
1242
        cframe = hit.Parent.Torso.CFrame
1243
      })
1244
      hit.Parent.Torso.Anchored = true
1245
      coroutine.resume(coroutine.create(function(Part)
1246
        swait(1.5)
1247
        Part.Anchored = false
1248
      end), hit.Parent.Torso)
1249
      game:GetService("Debris"):AddItem(BodPos, 3)
1250
      game:GetService("Debris"):AddItem(BodGy, 3)
1251
    end
1252
    local debounce = Create("BoolValue")({
1253
      Name = "DebounceHit",
1254
      Parent = hit.Parent,
1255
      Value = true
1256
    })
1257
    game:GetService("Debris"):AddItem(debounce, Delay)
1258
    c = Instance.new("ObjectValue")
1259
    c.Name = "creator"
1260
    c.Value = Player
1261
    c.Parent = h
1262
    game:GetService("Debris"):AddItem(c, 0.5)
1263
  end
1264
end
1265
function ShowDamage(Pos, Text, Time, Color)
1266
  local Rate = 0.03333333333333333
1267
  local Pos = Pos or Vector3.new(0, 0, 0)
1268
  local Text = Text or ""
1269
  local Time = Time or 2
1270
  local Color = Color or Color3.new(1, 0, 1)
1271
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1272
  EffectPart.Anchored = true
1273
  local BillboardGui = Create("BillboardGui")({
1274
    Size = UDim2.new(3, 0, 3, 0),
1275
    Adornee = EffectPart,
1276
    Parent = EffectPart
1277
  })
1278
  local TextLabel = Create("TextLabel")({
1279
    BackgroundTransparency = 1,
1280
    Size = UDim2.new(1, 0, 1, 0),
1281
    Text = Text,
1282
    TextColor3 = Color,
1283
    TextScaled = true,
1284
    Font = Enum.Font.ArialBold,
1285
    Parent = BillboardGui
1286
  })
1287
  game.Debris:AddItem(EffectPart, Time + 0.1)
1288
  EffectPart.Parent = game:GetService("Workspace")
1289
  delay(0, function()
1290
    local Frames = Time / Rate
1291
    for Frame = 1, Frames do
1292
      wait(Rate)
1293
      local Percent = Frame / Frames
1294
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1295
      TextLabel.TextTransparency = Percent
1296
    end
1297
    if EffectPart and EffectPart.Parent then
1298
      EffectPart:Destroy()
1299
    end
1300
  end)
1301
end
1302
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1303
  for _, c in pairs(workspace:children()) do
1304
    local hum = c:findFirstChild("Humanoid")
1305
    if hum ~= nil then
1306
      local head = c:findFirstChild("Torso")
1307
      if head ~= nil then
1308
        local targ = head.Position - Part.Position
1309
        local mag = targ.magnitude
1310
        if magni >= mag and c.Name ~= Player.Name then
1311
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1312
        end
1313
      end
1314
    end
1315
  end
1316
end
1317
1318
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1319
  for _, c in pairs(workspace:children()) do
1320
    local hum = c:findFirstChild("Humanoid")
1321
    if hum ~= nil then
1322
      local head = c:findFirstChild("Torso")
1323
      if head ~= nil then
1324
        local targ = head.Position - Part.Position
1325
        local mag = targ.magnitude
1326
        if magni >= mag and c.Name ~= Player.Name then
1327
	MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
1328
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1329
        end
1330
      end
1331
    end
1332
  end
1333
end
1334
1335
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1336
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1337
end 
1338
1339
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1340
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1341
prt.Anchored=true
1342
prt.CFrame=cframe
1343
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1344
--http://www.roblox.com/asset/?id=4770560
1345
game:GetService("Debris"):AddItem(prt,2)
1346
CF=prt.CFrame
1347
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
1348
for i=0,1,0.2 do
1349
wait()
1350
Part.CFrame=CF*cf(0,0,-0.4)
1351
end
1352
for i=0,1,delay do
1353
wait()
1354
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
1355
Mesh.Scale=Mesh.Scale
1356
end
1357
for i=0,1,0.1 do
1358
wait()
1359
Part.Transparency=i
1360
end
1361
Part.Parent=nil
1362
end),prt,msh,CF)
1363
end
1364
 
1365
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1366
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1367
prt.Anchored=true
1368
prt.Material = "Neon"
1369
prt.CFrame=cframe
1370
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1371
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1372
game:GetService("Debris"):AddItem(prt,5)
1373
coroutine.resume(coroutine.create(function(Part,Mesh) 
1374
for i=0,1,delay do
1375
swait()
1376
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1377
Part.Transparency=i
1378
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1379
end
1380
Part.Parent=nil
1381
end),prt,msh)
1382
end
1383
1384
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1385
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1386
prt.Anchored=true
1387
prt.Material = "Neon"
1388
prt.CFrame=cframe
1389
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1390
game:GetService("Debris"):AddItem(prt,5)
1391
coroutine.resume(coroutine.create(function(Part,Mesh) 
1392
	local rtype = rottype
1393
for i=0,1,delay do
1394
swait()
1395
if rtype == 1 then
1396
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1397
elseif rtype == 2 then
1398
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1399
end
1400
Part.Transparency=i
1401
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1402
end
1403
Part.Parent=nil
1404
end),prt,msh)
1405
end
1406
1407
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1408
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1409
prt.Anchored=true
1410
prt.CFrame=cframe
1411
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1412
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1413
game:GetService("Debris"):AddItem(prt,5)
1414
coroutine.resume(coroutine.create(function(Part,Mesh) 
1415
for i=0,1,delay do
1416
wait()
1417
Part.Transparency=i
1418
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1419
end
1420
Part.Parent=nil
1421
end),prt,msh)
1422
end
1423
1424
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1425
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1426
prt.Anchored=true
1427
prt.Material = "Neon"
1428
prt.CFrame=cframe
1429
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1430
game:GetService("Debris"):AddItem(prt,5)
1431
coroutine.resume(coroutine.create(function(Part,Mesh) 
1432
	local rtype = rottype
1433
for i=0,1,delay do
1434
swait()
1435
if rtype == 1 then
1436
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1437
elseif rtype == 2 then
1438
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1439
end
1440
Part.Transparency=i
1441
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1442
end
1443
Part.Parent=nil
1444
end),prt,msh)
1445
end
1446
1447
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1448
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
1449
prt.Anchored=true
1450
prt.Material = "Neon"
1451
prt.CFrame=cframe
1452
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1453
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1454
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1455
game:GetService("Debris"):AddItem(prt,5)
1456
coroutine.resume(coroutine.create(function(Part,Mesh) 
1457
	local rtype = rottype
1458
for i=0,1,delay do
1459
swait()
1460
if rtype == 1 then
1461
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1462
elseif rtype == 2 then
1463
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1464
end
1465
dec.Transparency=i
1466
dec2.Transparency=i
1467
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1468
end
1469
Part.Parent=nil
1470
end),prt,msh)
1471
end
1472
1473
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1474
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1475
prt.Anchored=true
1476
prt.Material = "Neon"
1477
prt.CFrame=cframe
1478
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1479
game:GetService("Debris"):AddItem(prt,5)
1480
coroutine.resume(coroutine.create(function(Part,Mesh) 
1481
	local rtype = rottype
1482
for i=0,1,delay do
1483
swait()
1484
if rtype == 1 then
1485
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1486
elseif rtype == 2 then
1487
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1488
end
1489
prt.Transparency=i
1490
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1491
end
1492
Part.Parent=nil
1493
end),prt,msh)
1494
end
1495
1496
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
1497
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1498
prt.Anchored=true
1499
prt.Material = "Neon"
1500
prt.CFrame=cframe
1501
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
1502
game:GetService("Debris"):AddItem(prt,5)
1503
coroutine.resume(coroutine.create(function(Part,Mesh) 
1504
	local rtype = rottype
1505
for i=0,1,delay do
1506
swait()
1507
if rtype == 1 then
1508
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
1509
elseif rtype == 2 then
1510
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
1511
end
1512
prt.Transparency=i
1513
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
1514
end
1515
Part.Parent=nil
1516
end),prt,msh)
1517
end
1518
1519
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
1520
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1521
prt.Anchored=true
1522
prt.Material = "Neon"
1523
prt.CFrame=cframe
1524
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1525
game:GetService("Debris"):AddItem(prt,5)
1526
coroutine.resume(coroutine.create(function(Part,Mesh) 
1527
	local rtype = rottype
1528
for i=0,1,delay do
1529
swait()
1530
if rtype == 1 then
1531
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1532
elseif rtype == 2 then
1533
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1534
end
1535
prt.Transparency=i
1536
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1537
end
1538
Part.Parent=nil
1539
end),prt,msh)
1540
end
1541
1542
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1543
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1544
prt.Anchored=true
1545
prt.Material = "Neon"
1546
prt.CFrame=cframe
1547
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1548
game:GetService("Debris"):AddItem(prt,5)
1549
coroutine.resume(coroutine.create(function(Part,Mesh) 
1550
	local rtype = rottype
1551
for i=0,1,delay do
1552
swait()
1553
if rtype == 1 then
1554
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1555
elseif rtype == 2 then
1556
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1557
end
1558
prt.Transparency=i
1559
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1560
end
1561
Part.Parent=nil
1562
end),prt,msh)
1563
end
1564
 
1565
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1566
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1567
prt.Anchored=false
1568
prt.CFrame=cframe
1569
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1570
local wld=weld(prt,prt,Parent,cframe)
1571
game:GetService("Debris"):AddItem(prt,5)
1572
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1573
for i=0,1,delay do
1574
wait()
1575
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
1576
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1577
Part.Transparency=i
1578
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1579
end
1580
Part.Parent=nil
1581
end),prt,msh,wld)
1582
end
1583
 
1584
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1585
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1586
prt.Anchored=false
1587
prt.CFrame=cframe
1588
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1589
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
1590
game:GetService("Debris"):AddItem(prt,5)
1591
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1592
for i=0,1,delay do
1593
wait()
1594
Weld.C0=euler(i*20,0,0)
1595
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1596
Part.Transparency=i
1597
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1598
end
1599
Part.Parent=nil
1600
end),prt,msh,wld)
1601
end
1602
 
1603
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1604
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1605
prt.Anchored=true
1606
prt.CFrame=cframe
1607
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1608
game:GetService("Debris"):AddItem(prt,2)
1609
coroutine.resume(coroutine.create(function(Part,Mesh) 
1610
for i=0,1,delay do
1611
wait()
1612
Part.CFrame=Part.CFrame
1613
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1614
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1615
prt2.Anchored=true
1616
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1617
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
1618
game:GetService("Debris"):AddItem(prt2,2)
1619
coroutine.resume(coroutine.create(function(Part,Mesh) 
1620
for i=0,1,0.1 do
1621
wait()
1622
Part.CFrame=Part.CFrame*cf(0,0.5,0)
1623
end
1624
Part.Parent=nil
1625
end),prt2,msh2)
1626
end
1627
for i=0,1,delay*2 do
1628
wait()
1629
Part.CFrame=Part.CFrame
1630
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
1631
end
1632
Part.Parent=nil
1633
end),prt,msh)
1634
end
1635
 
1636
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1637
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1638
prt.Anchored=true
1639
prt.CFrame=cframe
1640
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1641
game:GetService("Debris"):AddItem(prt,2)
1642
coroutine.resume(coroutine.create(function(Part,Mesh) 
1643
for i=0,1,delay do
1644
wait()
1645
Part.CFrame=Part.CFrame
1646
Part.Transparency=i
1647
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1648
end
1649
Part.Parent=nil
1650
end),prt,msh)
1651
end
1652
 
1653
function BreakEffect(brickcolor,cframe,x1,y1,z1)
1654
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1655
prt.Anchored=true
1656
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1657
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1658
game:GetService("Debris"):AddItem(prt,2)
1659
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
1660
CF=Part.CFrame
1661
Numbb=0
1662
randnumb=math.random()/10
1663
rand1=math.random()/10
1664
for i=0,1,rand1 do
1665
wait()
1666
CF=CF*cf(0,math.random()/2,0)
1667
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
1668
Part.CFrame=CF*euler(Numbb,0,0)
1669
Part.Transparency=i
1670
Numbb=Numbb+randnumb
1671
end
1672
Part.Parent=nil
1673
end),prt,CF,Numbb,randnumb)
1674
end
1675
 
1676
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1677
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1678
prt.Anchored=true
1679
prt.CFrame=cframe
1680
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
1681
game:GetService("Debris"):AddItem(prt,5)
1682
coroutine.resume(coroutine.create(function(Part,Mesh) 
1683
for i=0,1,delay do
1684
wait()
1685
Part.CFrame=Part.CFrame*euler(0,0.7,0)
1686
Part.Transparency=i
1687
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1688
end
1689
Part.Parent=nil
1690
end),prt,msh)
1691
end
1692
 
1693
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1694
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1695
prt.Anchored=true
1696
prt.CFrame=cframe
1697
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
1698
game:GetService("Debris"):AddItem(prt,2)
1699
coroutine.resume(coroutine.create(function(Part,Mesh) 
1700
for i=0,1,delay do
1701
wait()
1702
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
1703
Part.Transparency=i
1704
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1705
end
1706
Part.Parent=nil
1707
end),prt,msh)
1708
end
1709
 
1710
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
1711
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1712
prt.Anchored=true
1713
prt.CFrame=cframe*cf(x,y,z)
1714
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
1715
game:GetService("Debris"):AddItem(prt,5)
1716
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
1717
local num=math.random()
1718
local num2=math.random(-3,2)+math.random()
1719
local numm=0
1720
for i=0,1,delay*2 do
1721
swait()
1722
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
1723
Part.Transparency=i
1724
numm=numm+0.01
1725
end
1726
Part.Parent=nil
1727
Mesh.Parent=nil
1728
end),prt,msh,x,y,z)
1729
end
1730
1731
function dmgstart(dmg,what)
1732
	hitcon = what.Touched:connect(function(hit)
1733
		local hum = hit.Parent:FindFirstChild("Humanoid")
1734
		if hum and not hum:IsDescendantOf(Character) then
1735
			hum:TakeDamage(dmg)
1736
		end
1737
	end)
1738
end
1739
1740
function dmgstop()
1741
	hitcon:disconnect()
1742
end
1743
1744
function Cloak()
1745
Face.Parent=nil
1746
cloaked=true
1747
        for _,v in pairs(Torso.Parent:children()) do
1748
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
1749
                coroutine.resume(coroutine.create(function() 
1750
                for i=0,1,0.2 do
1751
                wait()
1752
                v.Transparency=i
1753
                end
1754
                v.Transparency=1
1755
                end))
1756
                end
1757
                if v.className=="Hat" then
1758
                hatp=v.Handle
1759
                coroutine.resume(coroutine.create(function(derp) 
1760
                for i=0,1,0.2 do
1761
                wait()
1762
                derp.Transparency=i
1763
                end
1764
                derp.Transparency=1
1765
                end),hatp)
1766
                end
1767
        end
1768
        for _,v in pairs(m:children()) do
1769
                if v.className=="Part" then
1770
                coroutine.resume(coroutine.create(function() 
1771
                for i=0,1,0.2 do
1772
                wait()
1773
                v.Transparency=i
1774
                end
1775
                v.Transparency=1
1776
                end))
1777
                end
1778
        end
1779
end
1780
 
1781
function UnCloak()
1782
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
1783
Face.Parent=Head 
1784
cloaked=false
1785
        for _,v in pairs(Torso.Parent:children()) do
1786
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
1787
                coroutine.resume(coroutine.create(function() 
1788
                for i=0,1,0.1 do
1789
                wait()
1790
                v.Transparency=v.Transparency-0.1
1791
                end
1792
                v.Transparency=0
1793
                end))
1794
                end
1795
                if v.className=="Hat" then
1796
                hatp=v.Handle
1797
                coroutine.resume(coroutine.create(function(derp) 
1798
                for i=0,1,0.1 do
1799
                wait()
1800
                derp.Transparency=derp.Transparency-0.1
1801
                end
1802
                derp.Transparency=0
1803
                end),hatp)
1804
                end
1805
        end
1806
        for _,v in pairs(m:children()) do
1807
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
1808
                coroutine.resume(coroutine.create(function() 
1809
                for i=0,1,0.1 do
1810
                wait()
1811
                v.Transparency=v.Transparency-0.1
1812
                end
1813
                v.Transparency=0
1814
                end))
1815
                v.Transparency=0
1816
                end
1817
        end
1818
end
1819
1820
local origcolor = BrickColor.new("Dark indigo")
1821
---- This section of explosions.
1822
function Explode(rad,par,pitch,vol,mindam,maxdam)
1823
	local expart = Instance.new("Part",char)
1824
	local expart2 = Instance.new("Part",char)
1825
	local rin = Instance.new("Part",char)
1826
	local rin2 = Instance.new("Part",char)
1827
	local partMesh = Instance.new("SpecialMesh",expart)
1828
	partMesh.MeshType = "Sphere"
1829
	local partMesh2 = Instance.new("SpecialMesh",expart2)
1830
	partMesh2.MeshType = "Sphere"
1831
	local partMesh3 = Instance.new("SpecialMesh",rin)
1832
	partMesh3.MeshType = "Brick"
1833
	local partMesh4 = Instance.new("SpecialMesh",rin2)
1834
	partMesh4.MeshType = "Brick"
1835
	CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
1836
	partMesh.Scale = vt(rad,rad,rad)
1837
	expart.Size = vt(1,1,1)
1838
	expart.Transparency = 1
1839
	expart.Anchored = true
1840
	expart.Material = "Neon"
1841
	expart.BrickColor = bc("White")
1842
	expart.CFrame = par.CFrame
1843
	partMesh2.Scale = vt(rad,rad,rad)
1844
	expart2.Size = vt(1.15,1.15,1.15)
1845
	expart2.Transparency = 0.75
1846
	expart2.Anchored = true
1847
	expart2.Material = "Glass"
1848
	expart2.BrickColor = par.BrickColor
1849
	expart2.CFrame = par.CFrame
1850
	rin.Size = vt(1.15,1.15,1.15)
1851
	rin.Transparency = 1
1852
	rin.Anchored = true
1853
	rin.Material = "Neon"
1854
	rin.BrickColor = par.BrickColor
1855
	rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
1856
	rin2.Size = vt(1.15,1.15,1.15)
1857
	rin2.Transparency = 1
1858
	rin2.Anchored = true
1859
	rin2.Material = "Neon"
1860
	rin2.BrickColor = par.BrickColor
1861
	rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
1862
	partMesh3.Scale = vt(0,1,0)
1863
	partMesh4.Scale = vt(0,1,0)
1864
local dec2 = Instance.new("Decal", rin)
1865
dec2.Face = "Top"
1866
dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
1867
dec2.Parent = rin
1868
local dec2b = dec2:Clone()
1869
dec2b.Face = "Bottom"
1870
dec2b.Parent = rin
1871
1872
local dec2a = Instance.new("Decal", rin2)
1873
dec2a.Face = "Top"
1874
dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
1875
dec2a.Parent = rin2
1876
local dec2ab = dec2a:Clone()
1877
dec2ab.Face = "Bottom"
1878
dec2ab.Parent = rin2
1879
expart.CanCollide = false
1880
expart2.CanCollide = false
1881
rin.CanCollide = false
1882
rin2.CanCollide = false
1883
MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
1884
        local value = 1*rad/6.5
1885
	for i = 0, 199 do
1886
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1887
		expart.CFrame = expart.CFrame
1888
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
1889
		expart2.CFrame = expart.CFrame
1890
                value = value - 0.035*rad/30
1891
                if value < 7.5 then
1892
	partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
1893
		rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
1894
	partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
1895
		rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
1896
		end
1897
                if value < 0 then
1898
dec2.Transparency = dec2.Transparency + 0.025
1899
dec2a.Transparency = dec2a.Transparency + 0.025
1900
dec2b.Transparency = dec2b.Transparency + 0.025
1901
dec2ab.Transparency = dec2ab.Transparency + 0.025
1902
		expart.Transparency = expart.Transparency + 0.025
1903
		expart2.Transparency = expart2.Transparency + 0.025
1904
		rin.Transparency = rin.Transparency + 0.025
1905
		rin2.Transparency = rin2.Transparency + 0.025
1906
                end
1907
		swait()
1908
	end
1909
game:GetService("Debris"):AddItem(expart, 1)
1910
game:GetService("Debris"):AddItem(expart2, 1)
1911
game:GetService("Debris"):AddItem(rin, 1)
1912
game:GetService("Debris"):AddItem(rin2, 1)
1913
end
1914
1915
function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
1916
	local expart = Instance.new("Part",char)
1917
	local expart2 = Instance.new("Part",char)
1918
	local partMesh = Instance.new("SpecialMesh",expart)
1919
	partMesh.MeshType = "Sphere"
1920
	local partMesh2 = Instance.new("SpecialMesh",expart2)
1921
	partMesh2.MeshType = "Sphere"
1922
	CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
1923
	partMesh.Scale = vt(rad,rad,rad)
1924
	expart.Size = vt(1,1,1)
1925
	expart.Transparency = 0
1926
	expart.Anchored = true
1927
	expart.Material = "Neon"
1928
	expart.BrickColor = bc("White")
1929
	expart.CFrame = par.CFrame
1930
	partMesh2.Scale = vt(rad,rad,rad)
1931
	expart2.Size = vt(1.15,1.15,1.15)
1932
	expart2.Transparency = 0.5
1933
	expart2.Anchored = true
1934
	expart2.Material = "Neon"
1935
	expart2.BrickColor = par.BrickColor
1936
	expart2.CFrame = par.CFrame
1937
expart.CanCollide = false
1938
expart2.CanCollide = false
1939
MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
1940
        local value = 1*rad/6.5
1941
	for i = 0, 75 do
1942
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1943
		expart.CFrame = expart.CFrame
1944
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
1945
		expart2.CFrame = expart.CFrame
1946
                value = value - 0.035*rad/5
1947
                if value < 0 then
1948
value = 0
1949
		expart.Transparency = expart.Transparency + 0.05
1950
		expart2.Transparency = expart2.Transparency + 0.05
1951
                end
1952
		swait()
1953
	end
1954
game:GetService("Debris"):AddItem(expart, 1)
1955
game:GetService("Debris"):AddItem(expart2, 1)
1956
end
1957
1958
function AreaDanger(rad,par,mindam,maxdam)
1959
	local expart = Instance.new("Part",char)
1960
	local partMesh = Instance.new("SpecialMesh",expart)
1961
	CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
1962
	partMesh.MeshType = "Sphere"
1963
	partMesh.Scale = vt(rad,rad,rad)
1964
	expart.Size = vt(1,1,1)
1965
	expart.Transparency = 0.5
1966
	expart.Anchored = true
1967
	expart.Material = "Neon"
1968
	expart.CanCollide = false
1969
	expart.BrickColor = par.BrickColor
1970
	expart.CFrame = par.CFrame
1971
        local value = 1*rad/5
1972
MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
1973
	for i = 0, 14 do
1974
		wait()
1975
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1976
		expart.CFrame = expart.CFrame
1977
                value = value - 0.035*rad
1978
                if value < 0 then
1979
	value = 0
1980
end
1981
	end
1982
	wait(0.25)
1983
CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
1984
wait(0.5)
1985
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
1986
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
1987
MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
1988
MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
1989
for i = 0, 14 do
1990
		wait()
1991
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1992
		expart.CFrame = expart.CFrame
1993
                value = value - 0.035*rad/2
1994
end
1995
expart.Transparency = 1
1996
game:GetService("Debris"):AddItem(expart, 5)
1997
end
1998
1999
function Swarmsplosions(negrad,rad,par,mindam,maxdam)
2000
		CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
2001
	CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
2002
	CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
2003
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
2004
			MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
2005
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
2006
	for i = 0, 24 do
2007
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
2008
	end
2009
	for i = 0, 24 do
2010
	local expart = Instance.new("Part",char)
2011
	expart.Transparency = 1
2012
	expart.Anchored = true
2013
	expart.CanCollide = false
2014
	expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
2015
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
2016
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
2017
MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
2018
MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
2019
for i = 0, 9 do
2020
		MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
2021
	end
2022
game:GetService("Debris"):AddItem(expart, 2)
2023
wait(0.1)
2024
	end
2025
end
2026
2027
function EXterPlosion(par)
2028
		CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
2029
	CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
2030
	CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
2031
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
2032
			MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
2033
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
2034
			MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
2035
	for i = 0, 24 do
2036
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
2037
	end
2038
	for i = 0, 24 do
2039
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
2040
	end
2041
end
2042
----
2043
2044
local stackingpower = 1
2045
2046
function HellsCore()
2047
	attack = true
2048
	--[[for i = 0,1,0.1 do
2049
		swait()
2050
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
2051
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
2052
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
2053
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
2054
	end]]--
2055
2056
local rng = Instance.new("Part", char)
2057
CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
2058
        rng.Anchored = true
2059
        rng.BrickColor = origcolor
2060
        rng.CanCollide = false
2061
        rng.FormFactor = 3
2062
        rng.Name = "Ring"
2063
        rng.Material = "Neon"
2064
        rng.Size = Vector3.new(1, 1, 1)
2065
        rng.Transparency = 1
2066
        rng.TopSurface = 0
2067
        rng.BottomSurface = 0
2068
        rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
2069
        local rngm = Instance.new("SpecialMesh", rng)
2070
        rngm.MeshType = "Brick"
2071
local dec = Instance.new("Decal",rng)
2072
dec.Texture = "http://www.roblox.com/asset/?id=401466968"
2073
dec.Face = "Top"
2074
local dec2 = dec:Clone()
2075
dec2.Parent = rng
2076
dec2.Face = "Bottom"
2077
2078
local scaler2 = 1
2079
scaler2 = 1*3
2080
for i = 0,10,0.1 do
2081
swait()
2082
scaler2 = scaler2 - 0.01*3
2083
rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
2084
end
2085
wait(3)
2086
for i = 0,10,0.1 do
2087
swait()
2088
scaler2 = scaler2 - 0.01*3
2089
dec.Transparency = dec.Transparency + 0.01
2090
dec2.Transparency = dec2.Transparency + 0.01
2091
rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
2092
end
2093
rng:Destroy()
2094
attack = false 
2095
end
2096
2097
2098
function FaceMouse()
2099
  Cam = workspace.CurrentCamera
2100
  return {
2101
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
2102
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2103
  }
2104
end
2105
2106
function FaceMouse2()
2107
  Cam = workspace.CurrentCamera
2108
  return {
2109
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
2110
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2111
  }
2112
end
2113
2114
2115
local HoldingZ = false
2116
local HoldingX = false
2117
local HoldingC = false
2118
local HoldingV = false
2119
local HoldingB = false
2120
2121
2122
function RingEffect(pos,startsize,size,col)
2123
local lb = Instance.new("Part")
2124
  lb.Parent = char
2125
    lb.BrickColor = col
2126
     lb.CanCollide = false
2127
lb.Material = "Neon"
2128
     lb.Anchored = true
2129
lb.TopSurface = 0
2130
        lb.BottomSurface = 0
2131
     lb.Transparency = 1
2132
     lb.Size = vt(1,1,1)
2133
     lb.CFrame = pos
2134
local thingery = Instance.new("SpecialMesh",lb)
2135
     thingery.MeshType = "Brick"
2136
thingery.Scale = vt(startsize,0.1,startsize)
2137
local dec2 = Instance.new("Texture", lb)
2138
dec2.Face = "Top"
2139
dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
2140
dec2.Color3 = lb.Color
2141
dec2.Parent = lb
2142
dec2.StudsPerTileU = startsize
2143
dec2.StudsPerTileV = startsize
2144
local dec2b = dec2:Clone()
2145
dec2b.Face = "Bottom"
2146
dec2b.Parent = lb
2147
local randomrot = math.random(1,2)
2148
coroutine.resume(coroutine.create(function()
2149
for i = 0, 19 do
2150
swait()
2151
if randomrot == 1 then
2152
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
2153
elseif randomrot == 2 then
2154
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
2155
end
2156
dec2.Transparency = dec2.Transparency + 0.05
2157
dec2b.Transparency = dec2b.Transparency + 0.05
2158
dec2.StudsPerTileU = dec2.StudsPerTileU + size
2159
dec2.StudsPerTileV = dec2.StudsPerTileV + size
2160
dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
2161
dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
2162
thingery.Scale = thingery.Scale + vt(size,0,size)
2163
end
2164
lb:Destroy()
2165
end))
2166
end
2167
2168
function SlowRingEffect(pos,startsize,size,col)
2169
local lb = Instance.new("Part")
2170
  lb.Parent = char
2171
    lb.BrickColor = col
2172
     lb.CanCollide = false
2173
lb.Material = "Neon"
2174
     lb.Anchored = true
2175
lb.TopSurface = 0
2176
        lb.BottomSurface = 0
2177
     lb.Transparency = 1
2178
     lb.Size = vt(1,1,1)
2179
     lb.CFrame = pos
2180
local thingery = Instance.new("SpecialMesh",lb)
2181
     thingery.MeshType = "Brick"
2182
thingery.Scale = vt(startsize,0.1,startsize)
2183
local dec2 = Instance.new("Decal", lb)
2184
dec2.Face = "Top"
2185
dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
2186
dec2.Color3 = lb.Color
2187
dec2.Parent = lb
2188
local dec2b = dec2:Clone()
2189
dec2b.Face = "Bottom"
2190
dec2b.Parent = lb
2191
local randomrot = math.random(1,2)
2192
coroutine.resume(coroutine.create(function()
2193
for i = 0, 49 do
2194
swait()
2195
if randomrot == 1 then
2196
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
2197
elseif randomrot == 2 then
2198
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
2199
end
2200
dec2.Transparency = dec2.Transparency + 0.02
2201
dec2b.Transparency = dec2b.Transparency + 0.02
2202
thingery.Scale = thingery.Scale + vt(size,0,size)
2203
end
2204
lb:Destroy()
2205
end))
2206
end
2207
2208
2209
function groundringaa(pos)
2210
local rng = Instance.new("Part", char)
2211
        rng.Anchored = true
2212
        rng.BrickColor = origcolor
2213
        rng.CanCollide = false
2214
        rng.FormFactor = 3
2215
        rng.Name = "Ring"
2216
        rng.Size = Vector3.new(1, 1, 1)
2217
        rng.Transparency = 1
2218
        rng.TopSurface = 0
2219
        rng.BottomSurface = 0
2220
        rng.CFrame = pos
2221
        local rngm = Instance.new("SpecialMesh", rng)
2222
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2223
rngm.Scale = Vector3.new(100,100,5)
2224
local scaler2 = -10/2
2225
coroutine.resume(coroutine.create(function()
2226
for i = 0,10,0.1 do
2227
swait()
2228
scaler2 = scaler2 + 0.1/2
2229
rng.Transparency = rng.Transparency - 0.01
2230
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
2231
end
2232
rng:Destroy()
2233
end))
2234
end
2235
2236
function groundringbb(pos)
2237
local rng = Instance.new("Part", char)
2238
        rng.Anchored = true
2239
        rng.BrickColor = origcolor
2240
        rng.CanCollide = false
2241
        rng.FormFactor = 3
2242
        rng.Name = "Ring"
2243
        rng.Size = Vector3.new(1, 1, 1)
2244
        rng.Transparency = 0
2245
        rng.TopSurface = 0
2246
        rng.BottomSurface = 0
2247
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2248
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2249
        local rngm = Instance.new("SpecialMesh", rng)
2250
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2251
rngm.Scale = Vector3.new(0,0,5)
2252
local scaler2 = 10
2253
coroutine.resume(coroutine.create(function()
2254
for i = 0,10*2,0.1 do
2255
swait()
2256
scaler2 = scaler2 - 0.1/2
2257
rng.Transparency = rng.Transparency + 0.005
2258
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
2259
end
2260
rng:Destroy()
2261
end))
2262
end
2263
2264
function groundglowaa(pos)
2265
local rng = Instance.new("Part", char)
2266
        rng.Anchored = true
2267
        rng.BrickColor = origcolor
2268
        rng.CanCollide = false
2269
        rng.FormFactor = 3
2270
rng.Material = "Neon"
2271
        rng.Name = "Ring"
2272
        rng.Size = Vector3.new(1, 1, 1)
2273
        rng.Transparency = 0
2274
        rng.TopSurface = 0
2275
        rng.BottomSurface = 0
2276
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2277
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2278
        local rngm = Instance.new("SpecialMesh", rng)
2279
        rngm.MeshType = "Sphere"
2280
rngm.Scale = Vector3.new(0,0,25)
2281
local scaler2 = 10*2
2282
coroutine.resume(coroutine.create(function()
2283
for i = 0,10*2,0.1 do
2284
swait()
2285
scaler2 = scaler2 - 0.1*2/2
2286
rng.Transparency = rng.Transparency + 0.005
2287
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
2288
end
2289
rng:Destroy()
2290
end))
2291
end
2292
2293
function bemaa(pos)
2294
local rng = Instance.new("Part", char)
2295
        rng.Anchored = true
2296
        rng.BrickColor = origcolor
2297
        rng.CanCollide = false
2298
        rng.FormFactor = 3
2299
rng.Material = "Neon"
2300
        rng.Name = "Ring"
2301
        rng.Size = Vector3.new(1, 1, 1)
2302
        rng.Transparency = 0
2303
        rng.TopSurface = 0
2304
        rng.BottomSurface = 0
2305
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2306
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2307
        local rngm = Instance.new("SpecialMesh", rng)
2308
        rngm.MeshType = "Sphere"
2309
rngm.Scale = Vector3.new(0,0,10000)
2310
local scaler2 = 1
2311
coroutine.resume(coroutine.create(function()
2312
for i = 0,99,0.1 do
2313
swait()
2314
scaler2 = scaler2 - 0.0025
2315
rng.Transparency = rng.Transparency + 0.0025
2316
rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
2317
end
2318
rng:Destroy()
2319
end))
2320
end
2321
2322
function bemaashake(pos)
2323
local rng = Instance.new("Part", char)
2324
        rng.Anchored = true
2325
        rng.BrickColor = origcolor
2326
        rng.CanCollide = false
2327
        rng.FormFactor = 3
2328
rng.Material = "Neon"
2329
        rng.Name = "Ring"
2330
        rng.Size = Vector3.new(1, 1, 1)
2331
        rng.Transparency = 0
2332
        rng.TopSurface = 0
2333
        rng.BottomSurface = 0
2334
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2335
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2336
        local rngm = Instance.new("SpecialMesh", rng)
2337
        rngm.MeshType = "Sphere"
2338
local oof = Instance.new("Part",char)
2339
oof.Parent = rng
2340
oof.CFrame = rng.CFrame
2341
oof.CanCollide = false
2342
oof.Anchored = true
2343
oof.Transparency = 1
2344
rngm.Scale = Vector3.new(0,0,10000)
2345
local scaler2 = 1*10
2346
coroutine.resume(coroutine.create(function()
2347
for i = 0,99,0.1 do
2348
swait()
2349
scaler2 = scaler2 - 0.0025*10
2350
rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
2351
rng.Transparency = rng.Transparency + 0.0025
2352
rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
2353
end
2354
rng:Destroy()
2355
end))
2356
end
2357
2358
function groundringlarge(pos)
2359
local rng = Instance.new("Part", char)
2360
        rng.Anchored = true
2361
        rng.BrickColor = origcolor
2362
        rng.CanCollide = false
2363
        rng.FormFactor = 3
2364
        rng.Name = "Ring"
2365
        rng.Size = Vector3.new(1, 1, 1)
2366
        rng.Transparency = 0
2367
        rng.TopSurface = 0
2368
        rng.BottomSurface = 0
2369
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2370
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2371
        local rngm = Instance.new("SpecialMesh", rng)
2372
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2373
rngm.Scale = Vector3.new(0,0,5)
2374
local scaler2 = 10*10
2375
coroutine.resume(coroutine.create(function()
2376
for i = 0,10*2,0.1 do
2377
swait()
2378
scaler2 = scaler2 - 0.1*10/2
2379
rng.Transparency = rng.Transparency + 0.005
2380
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
2381
end
2382
rng:Destroy()
2383
end))
2384
end
2385
2386
function sphere(bonuspeed,type,pos,scale,value,color)
2387
local type = type
2388
local rng = Instance.new("Part", char)
2389
        rng.Anchored = true
2390
        rng.BrickColor = color
2391
        rng.CanCollide = false
2392
        rng.FormFactor = 3
2393
        rng.Name = "Ring"
2394
        rng.Material = "Neon"
2395
        rng.Size = Vector3.new(1, 1, 1)
2396
        rng.Transparency = 0
2397
        rng.TopSurface = 0
2398
        rng.BottomSurface = 0
2399
        rng.CFrame = pos
2400
        local rngm = Instance.new("SpecialMesh", rng)
2401
        rngm.MeshType = "Sphere"
2402
rngm.Scale = scale
2403
local scaler2 = 1
2404
if type == "Add" then
2405
scaler2 = 1*value
2406
elseif type == "Divide" then
2407
scaler2 = 1/value
2408
end
2409
coroutine.resume(coroutine.create(function()
2410
for i = 0,10/bonuspeed,0.1 do
2411
swait()
2412
if type == "Add" then
2413
scaler2 = scaler2 - 0.01*value/bonuspeed
2414
elseif type == "Divide" then
2415
scaler2 = scaler2 - 0.01/value*bonuspeed
2416
end
2417
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2418
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2419
end
2420
rng:Destroy()
2421
end))
2422
end
2423
Humanoid.Animator.Parent = nil
2424
2425
function AppearMutatedLimbs()
2426
hum.WalkSpeed = 0
2427
hum.MaxHealth = math.huge
2428
attack = true
2429
for i = 0,14,0.1 do
2430
swait()
2431
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
2432
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
2433
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
2434
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1)
2435
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
2436
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
2437
end
2438
for i = 0,8,0.1 do
2439
swait()
2440
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
2441
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
2442
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
2443
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(20)),.1)
2444
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
2445
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1)
2446
end
2447
for i = 0,2,0.1 do
2448
swait()
2449
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2450
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2451
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
2452
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
2453
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
2454
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4)
2455
end
2456
for i, v in pairs(MutantParts:GetChildren()) do
2457
if v:IsA("Part") then
2458
v.Transparency = 0
2459
end
2460
end
2461
local bld = Instance.new("ParticleEmitter",larm)
2462
bld.LightEmission = 0.1
2463
bld.Texture = "rbxassetid://284205403"
2464
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
2465
bld.Rate = 500
2466
bld.Lifetime = NumberRange.new(1)
2467
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
2468
bld.Acceleration = vt(0,-25,0)
2469
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
2470
bld.Speed = NumberRange.new(10,25)
2471
bld.EmissionDirection = "Bottom"
2472
bld.VelocitySpread = 100
2473
bld.Rotation = NumberRange.new(-500,500)
2474
bld.RotSpeed = NumberRange.new(-500,500)
2475
local bldef = Instance.new("ParticleEmitter",larm)
2476
bldef.LightEmission = 0.1
2477
bldef.Texture = "rbxassetid://284205403"
2478
bldef.Color = ColorSequence.new(Color3.new(0.5,0,0))
2479
bldef.Rate = 25
2480
bldef.Lifetime = NumberRange.new(1)
2481
bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
2482
bldef.Acceleration = vt(0,-5,0)
2483
bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
2484
bldef.Speed = NumberRange.new(0,0,0)
2485
bldef.EmissionDirection = "Bottom"
2486
bldef.VelocitySpread = 150
2487
bldef.Rotation = NumberRange.new(-500,500)
2488
bldef.RotSpeed = NumberRange.new(-500,500)
2489
game:GetService("Debris"):AddItem(bld,3)
2490
CFuncs["Sound"].Create("rbxassetid://429400881", larm, 2.5, 1)
2491
CFuncs["Sound"].Create("rbxassetid://206082327", larm, 0.75, 1)
2492
for i = 0,1,0.1 do
2493
swait()
2494
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
2495
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
2496
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-60)),.8)
2497
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(60)),.8)
2498
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
2499
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.8)
2500
end
2501
bld.Enabled = false
2502
attack = false
2503
hum.WalkSpeed = 6
2504
end
2505
2506
function AppearMutatedLimbs2()
2507
hum.WalkSpeed = 0
2508
attack = true
2509
LeftModeUnlocked = true
2510
for i = 0,8,0.1 do
2511
swait()
2512
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
2513
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
2514
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
2515
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.1)
2516
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.1)
2517
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1)
2518
end
2519
for i = 0,2,0.1 do
2520
swait()
2521
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2522
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2523
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
2524
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
2525
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(20 + 10 * math.cos(sine / 1))),.4)
2526
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.4)
2527
end
2528
for i, v in pairs(MutantParts2:GetChildren()) do
2529
if v:IsA("Part") then
2530
v.Transparency = 0
2531
end
2532
end
2533
local bld = Instance.new("ParticleEmitter",rarm)
2534
bld.LightEmission = 0.1
2535
bld.Texture = "rbxassetid://284205403"
2536
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
2537
bld.Rate = 500
2538
bld.Lifetime = NumberRange.new(1)
2539
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
2540
bld.Acceleration = vt(0,-25,0)
2541
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
2542
bld.Speed = NumberRange.new(10,25)
2543
bld.EmissionDirection = "Bottom"
2544
bld.VelocitySpread = 100
2545
bld.Rotation = NumberRange.new(-500,500)
2546
bld.RotSpeed = NumberRange.new(-500,500)
2547
local bldef = Instance.new("ParticleEmitter",rarm)
2548
bldef.LightEmission = 0.1
2549
bldef.Texture = "rbxassetid://284205403"
2550
bldef.Color = ColorSequence.new(Color3.new(0.5,0,0))
2551
bldef.Rate = 25
2552
bldef.Lifetime = NumberRange.new(1)
2553
bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
2554
bldef.Acceleration = vt(0,-5,0)
2555
bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
2556
bldef.Speed = NumberRange.new(0,0,0)
2557
bldef.EmissionDirection = "Bottom"
2558
bldef.VelocitySpread = 150
2559
bldef.Rotation = NumberRange.new(-500,500)
2560
bldef.RotSpeed = NumberRange.new(-500,500)
2561
game:GetService("Debris"):AddItem(bld,3)
2562
CFuncs["Sound"].Create("rbxassetid://429400881", rarm, 2.5, 1)
2563
CFuncs["Sound"].Create("rbxassetid://206082327", rarm, 0.75, 1)
2564
for i = 0,1,0.1 do
2565
swait()
2566
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.8)
2567
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.8)
2568
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.8)
2569
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.8)
2570
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.8)
2571
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.8)
2572
end
2573
bld.Enabled = false
2574
attack = false
2575
hum.WalkSpeed = 6
2576
end
2577
2578
function TargetSelect(person)
2579
local dd=coroutine.wrap(function()
2580
if targetted ~= person then
2581
targetted = person
2582
img2.Size = UDim2.new(1,0,1,0)
2583
img2.ImageTransparency = 0
2584
img2.Position = UDim2.new(0,0,0,0)
2585
img2.ImageColor3 = Color3.new(0,0,0)
2586
for i = 0, 2, 0.1 do
2587
swait()
2588
img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
2589
img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
2590
img2.ImageTransparency = img2.ImageTransparency + 0.05
2591
end
2592
end
2593
end)
2594
dd()
2595
end
2596
2597
function FindNearestTorso(Position, Distance, SinglePlayer)
2598
	if SinglePlayer then
2599
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
2600
	end
2601
	local List = {}
2602
	for i, v in pairs(workspace:GetChildren()) do
2603
		if v:IsA("Model") then
2604
			if v:findFirstChild("Torso") then
2605
				if v ~= Character then
2606
					if (v.Torso.Position - Position).magnitude <= Distance then
2607
						table.insert(List, v)
2608
					end 
2609
				end 
2610
			end 
2611
		end 
2612
	end
2613
	return List
2614
end
2615
2616
function LockOn()
2617
if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2618
TargetSelect(Mouse.Target.Parent)
2619
CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
2620
elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
2621
TargetSelect(Mouse.Target.Parent)
2622
if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
2623
targetted = nil
2624
end
2625
CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
2626
end
2627
end
2628
2629
function dmg(dude)
2630
if dude.Name ~= Character then
2631
local bgf = Instance.new("BodyGyro",dude.Head)
2632
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
2633
local val = Instance.new("BoolValue",dude)
2634
val.Name = "IsHit"
2635
local ds = coroutine.wrap(function()
2636
if dude.Name ~= "isaacsantamaria01" then
2637
killcount = killcount + 1
2638
dude:WaitForChild("Torso"):BreakJoints()
2639
wait(0.5)
2640
targetted = nil
2641
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
2642
coroutine.resume(coroutine.create(function()
2643
for i, v in pairs(dude:GetChildren()) do
2644
if v:IsA("Accessory") then
2645
v:Destroy()
2646
end
2647
if v:IsA("Humanoid") then
2648
v:Destroy()
2649
end
2650
if v:IsA("CharacterMesh") then
2651
v:Destroy()
2652
end
2653
if v:IsA("Model") then
2654
v:Destroy()
2655
end
2656
if v:IsA("Part") then
2657
for x, o in pairs(v:GetChildren()) do
2658
if o:IsA("Decal") then
2659
o:Destroy()
2660
end
2661
end
2662
coroutine.resume(coroutine.create(function()
2663
v.Material = "Neon"
2664
v.CanCollide = false
2665
local bld = Instance.new("ParticleEmitter",v)
2666
bld.LightEmission = 1
2667
bld.Texture = "rbxassetid://284205403"
2668
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
2669
bld.Rate = 50
2670
bld.Lifetime = NumberRange.new(1)
2671
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
2672
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
2673
bld.Speed = NumberRange.new(0,0,0)
2674
bld.Rotation = NumberRange.new(-500,500)
2675
bld.RotSpeed = NumberRange.new(-500,500)
2676
        local sbs = Instance.new("BodyPosition", v)
2677
        sbs.P = 3000
2678
        sbs.D = 1000
2679
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
2680
        sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
2681
v.Color = Color3.new(0,0,0)
2682
end))
2683
coroutine.resume(coroutine.create(function()
2684
for i = 0, 49 do
2685
swait(1)
2686
v.Transparency = v.Transparency + 0.02
2687
end
2688
v:Destroy()
2689
dude:Destroy()
2690
end))
2691
end
2692
end
2693
end))
2694
else
2695
bgf:Destroy()
2696
sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
2697
end
2698
end)
2699
ds()
2700
end
2701
end
2702
2703
2704
local Grabbed = false
2705
2706
function QuickStab()
2707
attack = true
2708
hum.WalkSpeed = 0
2709
swait(1)
2710
CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
2711
RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3)
2712
	if targetted.Name ~= "isaacsantamaria01" then
2713
	local grab = nil
2714
	for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 5)) do
2715
		if v:FindFirstChild('Head') then
2716
			Grabbed = true
2717
			grab = v
2718
		end
2719
	end
2720
if Grabbed == true then
2721
for i = 0,2,0.1 do
2722
swait()
2723
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2724
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2725
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
2726
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
2727
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
2728
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4)
2729
end
2730
dmg(grab)
2731
local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
2732
bld.LightEmission = 0.1
2733
bld.Texture = "rbxassetid://284205403"
2734
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
2735
bld.Rate = 500
2736
bld.Lifetime = NumberRange.new(1)
2737
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
2738
bld.Acceleration = vt(0,-25,0)
2739
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
2740
bld.Speed = NumberRange.new(10,50)
2741
bld.EmissionDirection = "Front"
2742
bld.VelocitySpread = 25
2743
bld.Rotation = NumberRange.new(-500,500)
2744
bld.RotSpeed = NumberRange.new(-500,500)
2745
game:GetService("Debris"):AddItem(bld,3)
2746
CFuncs["Sound"].Create("rbxassetid://206082327", targetted.Torso, 2.5, 0.9)
2747
for i = 0,1,0.1 do
2748
swait()
2749
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
2750
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
2751
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
2752
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
2753
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
2754
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8)
2755
end
2756
bld.Enabled = false
2757
end
2758
else
2759
for i = 0,8,0.1 do
2760
swait()
2761
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2762
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2763
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(60)),.4)
2764
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.8)
2765
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
2766
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(60 - 5 * math.cos(sine / 1))),.4)
2767
end
2768
local randomized = math.random(1,3)
2769
if randomized == 1 then
2770
chatfunc("No... i cant.",Color3.new(0.5,0,0))
2771
elseif randomized == 2 then
2772
chatfunc("Why would i do this...",Color3.new(0.5,0,0))
2773
elseif randomized == 3 then
2774
chatfunc("Oh... i thought you're my enemy...",Color3.new(0.5,0,0))
2775
end
2776
--[[for i = 0,3,0.1 do
2777
swait()
2778
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2779
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2780
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
2781
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8)
2782
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
2783
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4)
2784
end]]--
2785
end
2786
Grabbed = false
2787
attack = false
2788
hum.WalkSpeed = 6
2789
end
2790
2791
2792
function BlinkingStab()
2793
attack = true
2794
hum.WalkSpeed = 0
2795
swait(1)
2796
	if targetted.Name ~= "isaacsantamaria01" then
2797
for i = 0,2,0.1 do
2798
swait()
2799
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2800
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2801
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4)
2802
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
2803
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
2804
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4)
2805
end
2806
RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,2)
2807
CFuncs["Sound"].Create("rbxassetid://743521497", char, 1, 1)
2808
dmg(targetted)
2809
local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
2810
bld.LightEmission = 0.1
2811
bld.Texture = "rbxassetid://284205403"
2812
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
2813
bld.Rate = 500
2814
bld.Lifetime = NumberRange.new(1)
2815
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
2816
bld.Acceleration = vt(0,-25,0)
2817
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
2818
bld.Speed = NumberRange.new(10,50)
2819
bld.EmissionDirection = "Front"
2820
bld.VelocitySpread = 25
2821
bld.Rotation = NumberRange.new(-500,500)
2822
bld.RotSpeed = NumberRange.new(-500,500)
2823
game:GetService("Debris"):AddItem(bld,3)
2824
CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Torso, 1,1)
2825
for i = 0,1,0.1 do
2826
swait()
2827
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
2828
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
2829
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
2830
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
2831
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
2832
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8)
2833
end
2834
bld.Enabled = false
2835
else
2836
for i = 0,8,0.1 do
2837
swait()
2838
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2839
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2840
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4)
2841
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
2842
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
2843
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4)
2844
end
2845
local randomized = math.random(1,3)
2846
if randomized == 1 then
2847
chatfunc("Wait.. a minute... wrong guy...",Color3.new(0.5,0,0))
2848
elseif randomized == 2 then
2849
chatfunc("I forgot about you...",Color3.new(0.5,0,0))
2850
elseif randomized == 3 then
2851
chatfunc("Oh. sorry...",Color3.new(0.5,0,0))
2852
end
2853
--[[for i = 0,3,0.1 do
2854
swait()
2855
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2856
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
2857
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
2858
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8)
2859
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
2860
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4)
2861
end]]--
2862
end
2863
attack = false
2864
hum.WalkSpeed = 6
2865
end
2866
2867
2868
function Tele()
2869
sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
2870
sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
2871
CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
2872
RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3)
2873
sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
2874
sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
2875
end
2876
2877
function uhhnolikeokthen()
2878
hum.WalkSpeed = 0
2879
attack = true
2880
CFuncs["Sound"].Create("rbxassetid://163315655", root, 1,1)
2881
for i = 0,10,0.1 do
2882
swait()
2883
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
2884
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
2885
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
2886
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
2887
RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1)
2888
LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1)
2889
end
2890
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("White"))
2891
sphere(6,"Add",root.CFrame,vt(0,0,0),0.5,BrickColor.new("White"))
2892
sphere(9,"Add",root.CFrame,vt(0,0,0),0.75,BrickColor.new("White"))
2893
CFuncs["Sound"].Create("rbxassetid://1213175909", root, 3,1)
2894
CFuncs["Sound"].Create("rbxassetid://239000203", root, 2,1)
2895
CFuncs["Sound"].Create("rbxassetid://579687077", root, 2,0.9)
2896
	for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 25)) do
2897
		if v:FindFirstChild('Torso') then
2898
dmg(v)
2899
CFuncs["Sound"].Create("rbxassetid://206082327", v.Torso, 1, 0.9)
2900
local bld = Instance.new("ParticleEmitter",v.Torso)
2901
bld.LightEmission = 0.1
2902
bld.Texture = "rbxassetid://284205403"
2903
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
2904
bld.Rate = 500
2905
bld.Lifetime = NumberRange.new(1)
2906
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
2907
bld.Acceleration = vt(0,-25,0)
2908
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
2909
bld.Speed = NumberRange.new(10,50)
2910
bld.EmissionDirection = "Front"
2911
bld.VelocitySpread = 2500
2912
bld.Rotation = NumberRange.new(-500,500)
2913
bld.RotSpeed = NumberRange.new(-500,500)
2914
coroutine.resume(coroutine.create(function()
2915
swait(4)
2916
bld.Enabled = false
2917
game:GetService("Debris"):AddItem(bld,3)
2918
end))
2919
		end
2920
	end
2921
for i = 0,28,0.1 do
2922
swait()
2923
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
2924
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
2925
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
2926
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5)
2927
RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5)
2928
LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5)
2929
end
2930
attack = false
2931
hum.WalkSpeed = 6
2932
end
2933
2934
function deadworld()
2935
hum.WalkSpeed = 0
2936
attack = true
2937
chatfunc("You... you will regret this!",Color3.new(0.5,0,0))
2938
for i = 0,10,0.1 do
2939
swait()
2940
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
2941
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
2942
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
2943
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
2944
RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1)
2945
LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1)
2946
end
2947
coroutine.resume(coroutine.create(function()
2948
CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1)
2949
sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
2950
sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
2951
sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
2952
coroutine.resume(coroutine.create(function()
2953
for i = 0, 9 do
2954
swait(3)
2955
sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
2956
end
2957
end))
2958
CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1)
2959
CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1)
2960
local blastpitch = 1
2961
for i = 0,2 do
2962
wait(1.5)
2963
sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
2964
sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
2965
sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
2966
coroutine.resume(coroutine.create(function()
2967
for i = 0, 9 do
2968
swait(3)
2969
sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
2970
end
2971
end))
2972
blastpitch = blastpitch - 0.15
2973
CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch)
2974
end
2975
wait(2)
2976
for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do
2977
		if v:FindFirstChild('Torso') then
2978
dmg(v)
2979
end
2980
end
2981
tors:Destroy()
2982
CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75)
2983
CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5)
2984
sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
2985
sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
2986
sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
2987
coroutine.resume(coroutine.create(function()
2988
for i = 0, 49 do
2989
swait(3)
2990
sphere(1,"Add",root.CFrame*CFrame.new(math.random(-175,175),math.random(-175,175),math.random(-175,175)),vt(0,0,0),2,BrickColor.new("Really red"))
2991
sphere(1,"Add",root.CFrame*CFrame.new(math.random(-375,375),math.random(-375,375),math.random(-375,375)),vt(0,0,0),8,BrickColor.new("Really red"))
2992
end
2993
end))
2994
end))
2995
for i = 0,280,0.1 do
2996
swait()
2997
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
2998
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
2999
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
3000
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5)
3001
RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5)
3002
LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5)
3003
end
3004
attack = false
3005
hum.WalkSpeed = 6
3006
end
3007
coroutine.resume(coroutine.create(function()
3008
AppearMutatedLimbs()
3009
end))
3010
3011
mouse.Button1Down:connect(function()
3012
	if attack == false and targetted ~= nil then
3013
	BlinkingStab()
3014
	end
3015
end)
3016
3017
mouse.KeyDown:connect(function(k)
3018
        if k == "q" and attack == false then
3019
LockOn()
3020
        end
3021
        if k == "e" and attack == false and targetted ~= nil then
3022
Tele()
3023
        end
3024
        if k == "z" and attack == false and targetted ~= nil then
3025
QuickStab()
3026
        end
3027
        if k == "x" and attack == false then
3028
uhhnolikeokthen()
3029
        end
3030
        if k == "l" and attack == false and unlockedA == true and LeftModeUnlocked == false then
3031
AppearMutatedLimbs2()
3032
        end
3033
        if k == "p" and attack == false and unlockedX == true then
3034
deadworld()
3035
        end
3036
        if k == "t" and attack == false and plr.Name == "isaacsantamaria01" then
3037
attack = true
3038
chatfunc("HAH",Color3.new(0.5,0,0))
3039
CFuncs["Sound"].Create("rbxassetid://695281161", root, 5,1.4)
3040
for i = 0, 1, 0.1 do
3041
swait()
3042
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.9)
3043
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.9)
3044
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.9)
3045
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.9)
3046
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(10)),.9)
3047
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(-10)),.9)
3048
end
3049
attack = false
3050
        end
3051
end)
3052
idleanim=.4
3053
while true do
3054
swait()
3055
imgl.Rotation = imgl.Rotation + 3
3056
imgl2.Rotation = imgl2.Rotation - 3
3057
img2.Rotation = img2.Rotation - 3
3058
if targetted ~= nil then
3059
abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
3060
abss.Enabled = true
3061
elseif targetted == nil then
3062
abss.Adornee = nil
3063
abss.Enabled = false
3064
end
3065
while true and imgl.Rotation >= 360 do
3066
imgl.Rotation = 0	
3067
imgl2.Rotation = 0	
3068
img2.Rotation = 0	
3069
end
3070
uhh.Rotation = math.random(-1,1)
3071
uhh.Position = UDim2.new(-0.15, 0, 0.35, 0) + UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
3072
uhh.Text = "Kills : " ..killcount
3073
if killcount < maxA then
3074
uhh2.Text = "Required kills for second mutated arm: " ..requirekillA-killcount
3075
elseif killcount >= maxA then
3076
unlockedA = true
3077
uhh2.Text = "Second mutated arm unlocked. (L)"
3078
end
3079
if killcount < maxX then
3080
uhh3.Text = "Required kills for the end: " ..requirekillX-killcount
3081
elseif killcount >= maxX then
3082
unlockedX = true
3083
uhh3.Text = "The end unlocked. (P to activate)"
3084
end
3085
  sine = sine + change
3086
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
3087
local velderp=RootPart.Velocity.y
3088
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
3089
if equipped==true or equipped==false then
3090
if attack==false then
3091
idle=idle+1
3092
else
3093
idle=0
3094
end
3095
if idle>=500 then
3096
if attack==false then
3097
--Sheath()
3098
end
3099
end
3100
if RootPart.Velocity.y > 1 and hitfloor==nil then 
3101
Anim="Jump"
3102
if attack==false then
3103
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
3104
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
3105
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3106
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
3107
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
3108
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
3109
end
3110
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
3111
Anim="Fall"
3112
if attack==false then
3113
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
3114
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
3115
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3116
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3117
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
3118
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
3119
end
3120
elseif torvel<1 and hitfloor~=nil then
3121
Anim="Idle"
3122
if attack==false then
3123
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
3124
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
3125
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
3126
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 - 10 * math.cos(sine / 1))),.1)
3127
if LeftModeUnlocked == false then
3128
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
3129
else
3130
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1)
3131
end
3132
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
3133
end
3134
elseif torvel>2 and torvel<22 and hitfloor~=nil then
3135
Anim="Walk"
3136
if attack==false then
3137
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10 + 40 * math.cos(sine / 18))),.1)
3138
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 40 * math.cos(sine / 18))),.1)
3139
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
3140
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1)
3141
if LeftModeUnlocked == false then
3142
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 40 * math.cos(sine / 18)),math.rad(0),math.rad(10)),.1)
3143
else
3144
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1)
3145
end
3146
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
3147
end
3148
elseif torvel>=22 and hitfloor~=nil then
3149
Anim="Run"
3150
if attack==false then
3151
RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
3152
LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
3153
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
3154
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
3155
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
3156
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
3157
end
3158
end
3159
end
3160
end