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