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