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