View difference between Paste ID: pPTk1j1t and D8rz1frU
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY jmgraven
3
--\\====================================================//--
4
--https://github.com/Mokiros/roblox-FE-compatibility
5
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
6
local Player,game,owner = owner,game
7
local RealPlayer = Player
8
do
9
	print("FE Compatibility code V2 by Mokiros")
10
	local RealPlayer = RealPlayer
11-
Player = game:GetService("Players").owner
11+
	script.Parent = RealPlayer.Character
12
13
	--Fake event to make stuff like Mouse.KeyDown work
14
	local Disconnect_Function = function(this)
15
		this[1].Functions[this[2]] = nil
16
	end
17
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
18
	local FakeEvent_Metatable = {__index={
19
		Connect = function(this,f)
20
			local i = tostring(math.random(0,10000))
21
			while this.Functions[i] do
22
				i = tostring(math.random(0,10000))
23
			end
24
			this.Functions[i] = f
25
			return setmetatable({this,i},Disconnect_Metatable)
26
		end
27
	}}
28
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
29
	local function fakeEvent()
30
		return setmetatable({Functions={}},FakeEvent_Metatable)
31
	end
32
33
	--Creating fake input objects with fake variables
34
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
35
    FakeMouse.keyUp = FakeMouse.KeyUp
36
    FakeMouse.keyDown = FakeMouse.KeyDown
37
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
38
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
39
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
40
	end}
41
	--Merged 2 functions into one by checking amount of arguments
42
	CAS.UnbindAction = CAS.BindAction
43
44
	--This function will trigger the events that have been :Connect()'ed
45
	local function TriggerEvent(self,ev,...)
46
		for _,f in pairs(self[ev].Functions) do
47
			f(...)
48
		end
49
	end
50
	FakeMouse.TriggerEvent = TriggerEvent
51
	UIS.TriggerEvent = TriggerEvent
52
53
	--Client communication
54
	local Event = Instance.new("RemoteEvent")
55
	Event.Name = "UserInput_Event"
56
	Event.OnServerEvent:Connect(function(plr,io)
57
	    if plr~=RealPlayer then return end
58
		FakeMouse.Target = io.Target
59
		FakeMouse.Hit = io.Hit
60
		if not io.isMouse then
61
			local b = io.UserInputState == Enum.UserInputState.Begin
62
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
63
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
64
			end
65
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
66
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
67
			end
68
			for _,t in pairs(CAS.Actions) do
69
				for _,k in pairs(t.Keys) do
70
					if k==io.KeyCode then
71
						t.Function(t.Name,io.UserInputState,io)
72
					end
73
				end
74
			end
75
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
76
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
77
	    end
78
	end)
79
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
80
	local Mouse = owner:GetMouse()
81
	local UIS = game:GetService("UserInputService")
82
	local input = function(io,RobloxHandled)
83
		if RobloxHandled then return end
84
		--Since InputObject is a client-side instance, we create and pass table instead
85
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
86
	end
87
	UIS.InputBegan:Connect(input)
88
	UIS.InputEnded:Connect(input)
89
90
	local h,t
91
	--Give the server mouse data every second frame, but only if the values changed
92
	--If player is not moving their mouse, client won't fire events
93
	local HB = game:GetService("RunService").Heartbeat
94
	while true do
95
		if h~=Mouse.Hit or t~=Mouse.Target then
96
			h,t=Mouse.Hit,Mouse.Target
97
			Event:FireServer({isMouse=true,Target=t,Hit=h})
98
		end
99
		--Wait 2 frames
100
		for i=1,2 do
101
			HB:Wait()
102
		end
103
	end]==],script)
104
105
	----Sandboxed game object that allows the usage of client-side methods and services
106
	--Real game object
107
	local RealGame = game
108
109
	--Metatable for fake service
110
	local FakeService_Metatable = {
111
		__index = function(self,k)
112
			local s = rawget(self,"_RealService")
113
			if s then
114
				return typeof(s[k])=="function"
115
				and function(_,...)return s[k](s,...)end or s[k]
116
			end
117
		end,
118
		__newindex = function(self,k,v)
119
			local s = rawget(self,"_RealService")
120
			if s then s[k]=v end
121
		end
122
	}
123
	local function FakeService(t,RealService)
124
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
125
		return setmetatable(t,FakeService_Metatable)
126
	end
127
128
	--Fake game object
129
	local FakeGame = {
130
		GetService = function(self,s)
131
			return rawget(self,s) or RealGame:GetService(s)
132
		end,
133
		Players = FakeService({
134
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
135
		},"Players"),
136
		UserInputService = FakeService(UIS,"UserInputService"),
137
		ContextActionService = FakeService(CAS,"ContextActionService"),
138
		RunService = FakeService({
139
			_btrs = {},
140
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
141
			BindToRenderStep = function(self,name,_,fun)
142
				self._btrs[name] = self.Heartbeat:Connect(fun)
143
			end,
144
			UnbindFromRenderStep = function(self,name)
145
				self._btrs[name]:Disconnect()
146
			end,
147
		},"RunService")
148
	}
149
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
150
	FakeGame.service = FakeGame.GetService
151
	FakeService(FakeGame,game)
152
	--Changing owner to fake player object to support owner:GetMouse()
153
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
154
end
155
156
157
wait(0.2)
158
159
160
161
Player = owner
162
PlayerGui = Player.PlayerGui
163
Cam = workspace.CurrentCamera
164
Backpack = Player.Backpack
165
Character = Player.Character
166
Humanoid = Character.Humanoid
167
Mouse = Player:GetMouse()
168
RootPart = Character["HumanoidRootPart"]
169
Torso = Character["Torso"]
170
Head = Character["Head"]
171
RightArm = Character["Right Arm"]
172
LeftArm = Character["Left Arm"]
173
RightLeg = Character["Right Leg"]
174
LeftLeg = Character["Left Leg"]
175
RootJoint = RootPart["RootJoint"]
176
Neck = Torso["Neck"]
177
RightShoulder = Torso["Right Shoulder"]
178
LeftShoulder = Torso["Left Shoulder"]
179
RightHip = Torso["Right Hip"]
180
LeftHip = Torso["Left Hip"]
181
local sick = Instance.new("Sound",Character)
182
sick.SoundId = "rbxassetid://815335430"
183
sick.Looped = true
184
sick.Pitch = 1
185
sick.Volume = 2
186
sick:Play()
187
Humanoid.DisplayDistanceType = "None"
188
script.Name = "CREEP"
189
190
IT = Instance.new
191
CF = CFrame.new
192
VT = Vector3.new
193
RAD = math.rad
194
C3 = Color3.new
195
UD2 = UDim2.new
196
BRICKC = BrickColor.new
197
ANGLES = CFrame.Angles
198
EULER = CFrame.fromEulerAnglesXYZ
199
COS = math.cos
200
ACOS = math.acos
201
SIN = math.sin
202
ASIN = math.asin
203
ABS = math.abs
204
MRANDOM = math.random
205
FLOOR = math.floor
206
207
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
208
	local NEWMESH = IT(MESH)
209
	if MESH == "SpecialMesh" then
210
		NEWMESH.MeshType = MESHTYPE
211
		if MESHID ~= "nil" and MESHID ~= "" then
212
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
213
		end
214
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
215
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
216
		end
217
	end
218
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
219
	NEWMESH.Scale = SCALE
220
	NEWMESH.Parent = PARENT
221
	return NEWMESH
222
end
223
224
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
225
	local NEWPART = IT("Part")
226
	NEWPART.formFactor = FORMFACTOR
227
	NEWPART.Reflectance = REFLECTANCE
228
	NEWPART.Transparency = TRANSPARENCY
229
	NEWPART.CanCollide = false
230
	NEWPART.Locked = true
231
	NEWPART.Anchored = true
232
	if ANCHOR == false then
233
		NEWPART.Anchored = false
234
	end
235
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
236
	NEWPART.Name = NAME
237
	NEWPART.Size = SIZE
238
	NEWPART.Position = Torso.Position
239
	NEWPART.Material = MATERIAL
240
	NEWPART:BreakJoints()
241
	NEWPART.Parent = PARENT
242
	return NEWPART
243
end
244
245
--//=================================\\
246
--||		  CUSTOMIZATION
247
--\\=================================//
248
249
Player_Size = 2 --Size of the player.
250
Animation_Speed = 3
251
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
252
253
local Speed = 16
254
local Effects2 = {}
255
256
--//=================================\\
257
--|| 	  END OF CUSTOMIZATION
258
--\\=================================//
259
260
	local function weldBetween(a, b)
261
	    local weldd = Instance.new("ManualWeld")
262
	    weldd.Part0 = a
263
	    weldd.Part1 = b
264
	    weldd.C0 = CFrame.new()
265
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
266
	    weldd.Parent = a
267
	    return weldd
268
	end
269
270
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
271
if TYPE == "Gem" then
272
	local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
273
	acs.Anchored = false
274
    acs.CanCollide = false
275
	acs.CFrame = PART.CFrame
276
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
277
weldBetween(PART,acs)
278
elseif TYPE == "Skull" then
279
	local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
280
	acs.Anchored = false
281
    acs.CanCollide = false
282
	acs.CFrame = PART.CFrame
283
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
284
weldBetween(PART,acs)
285
elseif TYPE == "Eye" then
286
	local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
287
	acs.Anchored = false
288
    acs.CanCollide = false
289
	acs.CFrame = PART.CFrame
290
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
291
weldBetween(PART,acs)
292
end
293
end
294
295
--//=================================\\
296
--|| 	      USEFUL VALUES
297
--\\=================================//
298
299
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
300
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
301
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
302
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
303
local CHANGEDEFENSE = 0
304
local CHANGEDAMAGE = 0
305
local CHANGEMOVEMENT = 0
306
local ANIM = "Idle"
307
local ATTACK = false
308
local EQUIPPED = false
309
local HOLD = false
310
local COMBO = 1
311
local Rooted = false
312
local SINE = 0
313
local KEYHOLD = false
314
local CHANGE = 2 / Animation_Speed
315
local WALKINGANIM = false
316
local WALK = 0
317
local VALUE1 = false
318
local VALUE2 = false
319
local ROBLOXIDLEANIMATION = IT("Animation")
320
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
321
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
322
--ROBLOXIDLEANIMATION.Parent = Humanoid
323
local WEAPONGUI = IT("ScreenGui", PlayerGui)
324
WEAPONGUI.Name = "Weapon GUI"
325
local Weapon = IT("Model")
326
Weapon.Name = "Adds"
327
local Effects = IT("Folder", Weapon)
328
Effects.Name = "Effects"
329
local ANIMATOR = Humanoid.Animator
330
local ANIMATE = Character.Animate
331
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
332
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
333
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
334
local HITBLOCKSOUNDS = {"199148933", "199148947"}
335
local UNANCHOR = true
336
local TAUNTS = {"368794227","368794903","368794985"}
337
338
local SKILLTEXTCOLOR = C3(0,0,0)
339
340
--//=================================\\
341
--\\=================================//
342
343
344
--//=================================\\
345
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
346
--\\=================================//
347
348
ArtificialHB = Instance.new("BindableEvent", script)
349
ArtificialHB.Name = "ArtificialHB"
350
351
script:WaitForChild("ArtificialHB")
352
353
frame = Frame_Speed
354
tf = 0
355
allowframeloss = false
356
tossremainder = false
357
lastframe = tick()
358
script.ArtificialHB:Fire()
359
360
game:GetService("RunService").Heartbeat:connect(function(s, p)
361
	tf = tf + s
362
	if tf >= frame then
363
		if allowframeloss then
364
			script.ArtificialHB:Fire()
365
			lastframe = tick()
366
		else
367
			for i = 1, math.floor(tf / frame) do
368
				script.ArtificialHB:Fire()
369
			end
370
		lastframe = tick()
371
		end
372
		if tossremainder then
373
			tf = 0
374
		else
375
			tf = tf - frame * math.floor(tf / frame)
376
		end
377
	end
378
end)
379
380
--//=================================\\
381
--\\=================================//
382
383
384
385
386
387
--//=================================\\
388
--|| 	      SOME FUNCTIONS
389
--\\=================================//
390
391
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
392
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
393
end
394
395
function PositiveAngle(NUMBER)
396
	if NUMBER >= 0 then
397
		NUMBER = 0
398
	end
399
	return NUMBER
400
end
401
402
function NegativeAngle(NUMBER)
403
	if NUMBER <= 0 then
404
		NUMBER = 0
405
	end
406
	return NUMBER
407
end
408
409
function Swait(NUMBER)
410
	if NUMBER == 0 or NUMBER == nil then
411
		ArtificialHB.Event:wait()
412
	else
413
		for i = 1, NUMBER do
414
			ArtificialHB.Event:wait()
415
		end
416
	end
417
end
418
419
function QuaternionFromCFrame(cf)
420
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
421
	local trace = m00 + m11 + m22
422
	if trace > 0 then 
423
		local s = math.sqrt(1 + trace)
424
		local recip = 0.5 / s
425
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
426
	else
427
		local i = 0
428
		if m11 > m00 then
429
			i = 1
430
		end
431
		if m22 > (i == 0 and m00 or m11) then
432
			i = 2
433
		end
434
		if i == 0 then
435
			local s = math.sqrt(m00 - m11 - m22 + 1)
436
			local recip = 0.5 / s
437
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
438
		elseif i == 1 then
439
			local s = math.sqrt(m11 - m22 - m00 + 1)
440
			local recip = 0.5 / s
441
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
442
		elseif i == 2 then
443
			local s = math.sqrt(m22 - m00 - m11 + 1)
444
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
445
		end
446
	end
447
end
448
 
449
function QuaternionToCFrame(px, py, pz, x, y, z, w)
450
	local xs, ys, zs = x + x, y + y, z + z
451
	local wx, wy, wz = w * xs, w * ys, w * zs
452
	local xx = x * xs
453
	local xy = x * ys
454
	local xz = x * zs
455
	local yy = y * ys
456
	local yz = y * zs
457
	local zz = z * zs
458
	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))
459
end
460
 
461
function QuaternionSlerp(a, b, t)
462
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
463
	local startInterp, finishInterp;
464
	if cosTheta >= 0.0001 then
465
		if (1 - cosTheta) > 0.0001 then
466
			local theta = ACOS(cosTheta)
467
			local invSinTheta = 1 / SIN(theta)
468
			startInterp = SIN((1 - t) * theta) * invSinTheta
469
			finishInterp = SIN(t * theta) * invSinTheta
470
		else
471
			startInterp = 1 - t
472
			finishInterp = t
473
		end
474
	else
475
		if (1 + cosTheta) > 0.0001 then
476
			local theta = ACOS(-cosTheta)
477
			local invSinTheta = 1 / SIN(theta)
478
			startInterp = SIN((t - 1) * theta) * invSinTheta
479
			finishInterp = SIN(t * theta) * invSinTheta
480
		else
481
			startInterp = t - 1
482
			finishInterp = t
483
		end
484
	end
485
	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
486
end
487
488
function Clerp(a, b, t)
489
	local qa = {QuaternionFromCFrame(a)}
490
	local qb = {QuaternionFromCFrame(b)}
491
	local ax, ay, az = a.x, a.y, a.z
492
	local bx, by, bz = b.x, b.y, b.z
493
	local _t = 1 - t
494
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
495
end
496
497
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
498
	local frame = IT("Frame")
499
	frame.BackgroundTransparency = TRANSPARENCY
500
	frame.BorderSizePixel = BORDERSIZEPIXEL
501
	frame.Position = POSITION
502
	frame.Size = SIZE
503
	frame.BackgroundColor3 = COLOR
504
	frame.BorderColor3 = BORDERCOLOR
505
	frame.Name = NAME
506
	frame.Parent = PARENT
507
	return frame
508
end
509
510
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
511
	local label = IT("TextLabel")
512
	label.BackgroundTransparency = 1
513
	label.Size = UD2(1, 0, 1, 0)
514
	label.Position = UD2(0, 0, 0, 0)
515
	label.TextColor3 = TEXTCOLOR
516
	label.TextStrokeTransparency = STROKETRANSPARENCY
517
	label.TextTransparency = TRANSPARENCY
518
	label.FontSize = TEXTFONTSIZE
519
	label.Font = TEXTFONT
520
	label.BorderSizePixel = BORDERSIZEPIXEL
521
	label.TextScaled = false
522
	label.Text = TEXT
523
	label.Name = NAME
524
	label.Parent = PARENT
525
	return label
526
end
527
528
function NoOutlines(PART)
529
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
530
end
531
532
533
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
534
	local NEWWELD = IT(TYPE)
535
	NEWWELD.Part0 = PART0
536
	NEWWELD.Part1 = PART1
537
	NEWWELD.C0 = C0
538
	NEWWELD.C1 = C1
539
	NEWWELD.Parent = PARENT
540
	return NEWWELD
541
end
542
543
function CreateSound(ID, PARENT, VOLUME, PITCH)
544
	local NEWSOUND = nil
545
	coroutine.resume(coroutine.create(function()
546
		NEWSOUND = IT("Sound", PARENT)
547
		NEWSOUND.Volume = VOLUME
548
		NEWSOUND.Pitch = PITCH
549
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
550
		Swait()
551
		NEWSOUND:play()
552
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
553
	end))
554
	return NEWSOUND
555
end
556
557
function CFrameFromTopBack(at, top, back)
558
	local right = top:Cross(back)
559
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
560
end
561
562
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
563
	local wave = CreatePart(3, Effects, "Neon", 0, 0.9, BRICKC(COLOR), "Effect", VT(1,1,1), true)
564
	local mesh = IT("SpecialMesh",wave)
565
	mesh.MeshType = "Sphere"
566
	mesh.Scale = SIZE
567
	mesh.Offset = VT(0,0,0)
568
	wave.CFrame = CFRAME
569
	coroutine.resume(coroutine.create(function(PART)
570
		for i = 1, WAIT do
571
			Swait()
572
			mesh.Scale = mesh.Scale + GROW
573
			wave.Transparency = wave.Transparency + (0.1/WAIT)
574
			if wave.Transparency > 0.99 then
575
				wave:remove()
576
			end
577
		end
578
	end))
579
end
580
581
function MakeForm(PART,TYPE)
582
	if TYPE == "Cyl" then
583
		local MSH = IT("CylinderMesh",PART)
584
	elseif TYPE == "Ball" then
585
		local MSH = IT("SpecialMesh",PART)
586
		MSH.MeshType = "Sphere"
587
	elseif TYPE == "Wedge" then
588
		local MSH = IT("SpecialMesh",PART)
589
		MSH.MeshType = "Wedge"
590
	end
591
end
592
593
function CheckTableForString(Table, String)
594
	for i, v in pairs(Table) do
595
		if string.find(string.lower(String), string.lower(v)) then
596
			return true
597
		end
598
	end
599
	return false
600
end
601
602
function CheckIntangible(Hit)
603
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
604
	if Hit and Hit.Parent then
605
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
606
			return true
607
		end
608
	end
609
	return false
610
end
611
612
Debris = game:GetService("Debris")
613
614
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
615
	local Direction = CFrame.new(StartPos, Vec).lookVector
616
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
617
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
618
	if RayHit and CheckIntangible(RayHit) then
619
		if DelayIfHit then
620
			wait()
621
		end
622
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
623
	end
624
	return RayHit, RayPos, RayNormal
625
end
626
627
function turnto(position)
628
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
629
end
630
631
--//=================================\\
632
--|| 			SPEECH
633
--\\=================================//
634
635
function chatfunc(text,waitt)
636
local chat = coroutine.wrap(function()
637
if Character:FindFirstChild("TalkingBillBoard")~= nil then
638
Character:FindFirstChild("TalkingBillBoard"):destroy()
639
end
640
local naeeym2 = Instance.new("BillboardGui",Character)
641
naeeym2.Size = UDim2.new(0,100,0,40)
642
naeeym2.StudsOffset = Vector3.new(0,5,0)
643
naeeym2.Adornee = Character.Head
644
naeeym2.Name = "TalkingBillBoard"
645
naeeym2.AlwaysOnTop = true
646
local tecks2 = Instance.new("TextLabel",naeeym2)
647
tecks2.BackgroundTransparency = 1
648
tecks2.BorderSizePixel = 0
649
tecks2.Text = ""
650
tecks2.Font = "SciFi"
651
tecks2.TextSize = 30
652
tecks2.TextStrokeTransparency = 1
653
tecks2.TextColor3 = SKILLTEXTCOLOR
654
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
655
tecks2.Size = UDim2.new(1,0,0.5,0)
656
for i = 1,string.len(text),1 do
657
tecks2.Text = string.sub(text,1,i)
658
Swait()
659
end
660
wait(waitt)
661
coroutine.resume(coroutine.create(function()
662
	for i = 1, 10 do
663
		tecks2.TextTransparency = tecks2.TextTransparency + 0.1
664
		Swait()
665
	end
666
	naeeym2:Destroy()
667
end))
668
end)
669
chat()
670
end
671
672
--//=================================\\
673
--||	     WEAPON CREATION
674
--\\=================================//
675
676
if Player_Size ~= 1 then
677
RootPart.Size = RootPart.Size * Player_Size
678
Torso.Size = Torso.Size * Player_Size
679
Head.Size = Head.Size * Player_Size
680
RightArm.Size = RightArm.Size * Player_Size
681
LeftArm.Size = LeftArm.Size * Player_Size
682
RightLeg.Size = RightLeg.Size * Player_Size
683
LeftLeg.Size = LeftLeg.Size * Player_Size
684
RootJoint.Parent = RootPart
685
Neck.Parent = Torso
686
RightShoulder.Parent = Torso
687
LeftShoulder.Parent = Torso
688
RightHip.Parent = Torso
689
LeftHip.Parent = Torso
690
	
691
RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
692
	RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
693
	Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
694
	Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
695
	RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
696
	LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
697
	--if Disable_Moving_Arms == false then
698
		RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
699
		LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
700
	--else
701
		--RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
702
		--LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
703
	--end
704
	RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
705
	LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
706
	RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
707
	LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
708
end
709
710
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
711
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
712
MakeForm(part,"Ball")
713
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
714
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
715
MakeForm(part,"Ball")
716
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
717
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
718
MakeForm(part,"Ball")
719
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
720
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
721
MakeForm(part,"Ball")
722
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
723
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,0.6) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
724
MakeForm(part,"Ball")
725
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
726
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0))
727
MakeForm(part,"Ball")
728
local CLAW1 = part
729
CLAW1.CanCollide = true
730
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
731
local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(-0.50,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
732
MakeForm(part,"Ball")
733
734
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
735
local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
736
MakeForm(part,"Ball")
737
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
738
local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
739
MakeForm(part,"Ball")
740
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
741
local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
742
MakeForm(part,"Ball")
743
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
744
local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
745
MakeForm(part,"Ball")
746
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
747
local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,0.6) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
748
MakeForm(part,"Ball")
749
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false)
750
local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
751
MakeForm(part,"Ball")
752
local CLAW2 = part
753
CLAW2.CanCollide = true
754
local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false)
755
local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(0.50,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
756
MakeForm(part,"Ball")
757
758
for _, c in pairs(Weapon:GetChildren()) do
759
	if c.ClassName == "Part" then
760
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
761
	end
762
end
763
764
Weapon.Parent = Character
765
766
Humanoid.Died:connect(function()
767
	ATTACK = true
768
end)
769
770
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
771
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
772
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
773
774
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shriek", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
775
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Devour", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
776
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Neck snap", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
777
778
--//=================================\\
779
--||	     DAMAGE FUNCTIONS
780
--\\=================================//
781
782
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
783
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
784
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
785
	local BODYGYRO = IT("BodyGyro", STATPART)
786
	local BODYPOSITION = IT("BodyPosition", STATPART)
787
	BODYPOSITION.P = 2000
788
	BODYPOSITION.D = 100
789
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
790
	BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
791
	game:GetService("Debris"):AddItem(STATPART ,5)
792
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
793
	BILLBOARDGUI.Adornee = STATPART
794
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
795
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
796
	BILLBOARDGUI.AlwaysOnTop = false
797
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
798
	TEXTLABEL.BackgroundTransparency = 1
799
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
800
	TEXTLABEL.Text = TEXT
801
	TEXTLABEL.Font = "SciFi"
802
	TEXTLABEL.FontSize="Size42"
803
	TEXTLABEL.TextColor3 = COLOR
804
	TEXTLABEL.TextStrokeTransparency = 1
805
	TEXTLABEL.TextScaled = true
806
	TEXTLABEL.TextWrapped = true
807
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
808
		if LABELTYPE == "Normal" then
809
			for i = 1, 30 do
810
				Swait()
811
				STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
812
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
813
			end
814
		elseif LABELTYPE == "Debuff" then
815
			for i = 1, 30 do
816
				Swait()
817
				STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
818
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
819
			end
820
		elseif LABELTYPE == "Shock" then
821
			local ORIGIN = STATPART.Position
822
			for i = 1, 30 do
823
				Swait()
824
				STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
825
				TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
826
			end
827
		end
828
		THEPART.Parent = nil
829
	end),STATPART, BODYPOSITION, TEXTLABEL)
830
end
831
832
--//=================================\\
833
--||			DAMAGING
834
--\\=================================//
835
836
function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier)
837
	if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
838
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
839
		local dmg = math.random(min,max)
840
		if humanoid.Health > 0 then
841
			if beserk == true then
842
				humanoid.Health = 0
843
			else
844
				CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], hit, 3, MRANDOM(7, 12) / 10)
845
				hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
846
				if math.random(1,100) < critrate+1 then
847
					humanoid.Health = humanoid.Health - dmg*critmultiplier
848
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
849
				else
850
					humanoid.Health = humanoid.Health - dmg
851
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
852
				end
853
				local defence = Instance.new("BoolValue",hit.Parent)
854
				defence.Name = ("HitBy"..Player.Name)
855
				game:GetService("Debris"):AddItem(defence, 0.5)
856
			end
857
		end
858
	end
859
end
860
861
function AoEStun(POS,RANGE,LAST)
862
	for i,v in ipairs(workspace:GetChildren()) do
863
	if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
864
		local body = v:GetChildren()
865
			for part = 1, #body do
866
				if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
867
					if(body[part].Position - POS).Magnitude < RANGE then
868
						if v.ClassName == "Model" then
869
							if v:FindFirstChild("Humanoid") then
870
								if v.Humanoid.Health ~= 0 then
871
									Stun(v.Humanoid,LAST)
872
									local defence = Instance.new("BoolValue",v)
873
									defence.Name = ("StunnedBy"..Player.Name)
874
									game:GetService("Debris"):AddItem(defence, 0.1)
875
								end
876
							end
877
						end
878
					end
879
				end
880
			end
881
		end
882
	end
883
end
884
885
function Stun(HUMANOID,LAST)
886
	if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then
887
		HUMANOID.PlatformStand = true
888
		local defence = Instance.new("BoolValue",HUMANOID.Parent)
889
		defence.Name = ("StunnedBy"..Player.Name)
890
		game:GetService("Debris"):AddItem(defence, LAST)
891
		if HUMANOID.Parent:FindFirstChild("Head") then
892
			StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3))
893
		end
894
		coroutine.resume(coroutine.create(function()
895
			Swait(LAST*50)
896
			HUMANOID.PlatformStand = false
897
		end))
898
	end
899
end
900
901
--//=================================\\
902
--||	ATTACK FUNCTIONS AND STUFF
903
--\\=================================//
904
905
function AttackTemplate()
906
	ATTACK = true
907
	Rooted = false
908
	for i=0, 1, 0.1 / Animation_Speed do
909
		Swait()
910
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
911
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
912
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
913
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
914
		RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
915
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
916
	end
917
	ATTACK = false
918
	Rooted = false
919
end
920
921
function Strike()
922
	ATTACK = true
923
	Rooted = false
924
	CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Head, 3, 2)
925
	for i=0, 0.5, 0.1 / Animation_Speed do
926
		Swait()
927
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
928
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
929
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
930
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
931
		RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.5 / Animation_Speed)
932
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed)
933
	end
934
	local HIT1 = CLAW1.Touched:Connect(function(hit)
935
		dealdamage(hit,25,65,6,false,5,2)
936
	end)
937
	local HIT2 = CLAW2.Touched:Connect(function(hit)
938
		dealdamage(hit,25,65,6,false,5,2)
939
	end)
940
	for i=0, 0.5, 0.1 / Animation_Speed do
941
		Swait()
942
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.1, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.75 / Animation_Speed)
943
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
944
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15*2, 0.5*2, -1) * ANGLES(RAD(55), RAD(75), RAD(-22)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
945
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, 0.5*2, -1) * ANGLES(RAD(55), RAD(-75), RAD(22)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
946
		RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-5)), 0.75 / Animation_Speed)
947
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-25)), 0.75 / Animation_Speed)
948
	end
949
	HIT1:disconnect()
950
	HIT2:disconnect()
951
	ATTACK = false
952
	Rooted = false
953
end
954
955
function Shriek()
956
	ATTACK = true
957
	Rooted = false
958
	for i=0, 2.5, 0.1 / Animation_Speed do
959
		Swait()
960
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
961
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
962
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
963
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
964
		RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
965
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
966
	end
967
	Rooted = true
968
	CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Effects, 10, 1)
969
	for i=0, 4, 0.1 / Animation_Speed do
970
		Swait()
971
		AoEStun(Head.Position,40,12)
972
		MagicSphere(VT(0,0,0),5,Head.CFrame,"Pearl",VT(15,15,15))
973
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4*2, -0.65*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(55), RAD(0), RAD(0)), 0.7 / Animation_Speed)
974
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-35+MRANDOM(-5,5)), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,1))), 1)
975
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(-15), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
976
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(-15), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
977
		RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(15)), 0.75 / Animation_Speed)
978
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-55)), 0.75 / Animation_Speed)
979
	end
980
	ATTACK = false
981
	Rooted = false
982
end
983
984
local asd = Instance.new("ParticleEmitter")
985
asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
986
asd.LightEmission = .1
987
asd.Size = NumberSequence.new(0.2)
988
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
989
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
990
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
991
asd.Transparency = bbb
992
asd.Size = aaa
993
asd.ZOffset = .9
994
asd.Acceleration = Vector3.new(0, -15, 0)
995
asd.LockedToPart = false
996
asd.EmissionDirection = "Back"
997
asd.Lifetime = NumberRange.new(1, 2)
998
asd.Rotation = NumberRange.new(-100, 100)
999
asd.RotSpeed = NumberRange.new(-100, 100)
1000
asd.Speed = NumberRange.new(2,6)
1001
asd.Enabled = false
1002
asd.VelocitySpread = 5
1003
1004
function getbloody(victim,amount)
1005
local PART = IT("Part",Effects)
1006
PART.Transparency = 1
1007
PART.Size = victim.Size
1008
PART.Anchored = true
1009
PART.CanCollide = false
1010
PART.CFrame = CF(victim.Position,victim.CFrame*CF(0,1,0).p)
1011
local HITPLAYERSOUNDS = {"356551938","264486467"}
1012
Debris:AddItem(PART,5)
1013
local prtcl = asd:Clone()
1014
prtcl.Parent = PART
1015
prtcl:Emit(amount*10)
1016
end
1017
1018
function Devour()
1019
	ATTACK = true
1020
	Rooted = false
1021
	local TORS = nil
1022
	local WELD = nil
1023
	local HIT1 = CLAW1.Touched:Connect(function(hit)
1024
		if hit.Parent:FindFirstChildOfClass("Humanoid") then
1025
			TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1026
			if TORS ~= nil then
1027
				UNANCHOR = false
1028
				Rooted = true
1029
				RootPart.Anchored = true
1030
				WELD = CreateWeldOrSnapOrMotor("Weld", TORS, RightArm, TORS, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
1031
			end
1032
		end
1033
	end)
1034
	for i=1, 45 do
1035
		Swait()
1036
		if TORS ~= nil then
1037
			break
1038
		end
1039
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1040
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1041
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1042
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1043
		RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1044
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1045
	end
1046
	HIT1:disconnect()
1047
	if TORS ~= nil then
1048
		for i=0, 2, 0.1 / Animation_Speed do
1049
			Swait()
1050
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1051
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1052
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1053
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1054
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1055
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1056
		end
1057
		for i=0, 0.3, 0.1 / Animation_Speed do
1058
			Swait()
1059
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1.5 / Animation_Speed)
1060
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1.15 / Animation_Speed)
1061
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, -1, -1.5) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1062
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, -1, -1.2) * ANGLES(RAD(160), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1.15 / Animation_Speed)
1063
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1.15 / Animation_Speed)
1064
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1.15 / Animation_Speed)
1065
		end
1066
		local HITPLAYERSOUNDS2 = {"356551938","264486467"}
1067
		if TORS ~= nil then
1068
			if TORS.Parent:FindFirstChild("Head") then
1069
				CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], Head, 1, (math.random(8,12)/10))
1070
				CreateSound("230346233", Head, 10, (math.random(5,7)/10))
1071
				getbloody(TORS,4)
1072
				TORS.Parent.Head:remove()
1073
				TORS.Parent:remove()
1074
				for i=0, 1, 0.1 / Animation_Speed do
1075
					Swait()
1076
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1.5 / Animation_Speed)
1077
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1.15 / Animation_Speed)
1078
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, -1, -1.2) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1079
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, -1, -1.2) * ANGLES(RAD(160), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1.15 / Animation_Speed)
1080
					RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1.15 / Animation_Speed)
1081
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1.15 / Animation_Speed)
1082
				end
1083
			end
1084
		end
1085
		UNANCHOR = true
1086
	end
1087
	ATTACK = false
1088
	Rooted = false
1089
end
1090
1091
function Snap()
1092
	ATTACK = true
1093
	Rooted = false
1094
	local TORS = nil
1095
	local WELD = nil
1096
	local HIT1 = CLAW1.Touched:Connect(function(hit)
1097
		if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Parent ~= Effects then
1098
			TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1099
			if TORS ~= nil then
1100
				UNANCHOR = false
1101
				Rooted = true
1102
				RootPart.Anchored = true
1103
				WELD = CreateWeldOrSnapOrMotor("Weld", TORS, RightArm, TORS, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
1104
			end
1105
		end
1106
	end)
1107
	for i=1, 45 do
1108
		Swait()
1109
		if TORS ~= nil then
1110
			break
1111
		end
1112
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1113
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1114
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
1115
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1116
		RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1117
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1118
	end
1119
	HIT1:disconnect()
1120
	if TORS ~= nil then
1121
		local CLONE = IT("Model",Weapon)
1122
		CLONE.Name = "Corpse"
1123
		for i=0, 2, 0.1 / Animation_Speed do
1124
			Swait()
1125
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1126
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1127
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1128
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1129
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1130
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1131
		end
1132
		for i=0, 2, 0.1 / Animation_Speed do
1133
			Swait()
1134
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1135
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
1136
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1137
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.5) * ANGLES(RAD(80), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1138
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1139
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1140
		end
1141
		for i=0, 3, 0.1 / Animation_Speed do
1142
			Swait()
1143
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1144
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
1145
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1146
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(70), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1147
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1148
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1149
		end
1150
		local HITPLAYERSOUNDS = {"356551938","264486467"}
1151
		local DummyHead = nil
1152
		local q = TORS.Parent:GetChildren()
1153
		for i = 1,#q do
1154
			if q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" then
1155
				q[i].Parent = CLONE
1156
				if q[i].ClassName == "Humanoid" then
1157
					q[i].PlatformStand = true
1158
				end
1159
				if q[i].Name == "Head" then
1160
					DummyHead = CLONE.Head:Clone()
1161
					q[i]:ClearAllChildren()
1162
					q[i].Transparency = 1
1163
				end
1164
			else
1165
				q[i]:remove()
1166
			end
1167
		end
1168
		local TORS2 = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso")
1169
		DummyHead.Parent = Effects
1170
		local WELD1 = CreateWeldOrSnapOrMotor("Weld", DummyHead, LeftArm, DummyHead, CF(0,-2.5,0) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
1171
		local WELD2 = CreateWeldOrSnapOrMotor("Weld", TORS2, RightArm, TORS2, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0))
1172
		local HITPLAYERSOUNDS2 = {"356551938","264486467"}
1173
		CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], TORS2, 1, (math.random(8,12)/10))
1174
		getbloody(DummyHead,5)
1175
		for i=0, 3, 0.1 / Animation_Speed do
1176
			Swait()
1177
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1178
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
1179
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1180
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(120), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1181
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1182
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1183
		end
1184
		for i=0, 1, 0.1 / Animation_Speed do
1185
			Swait()
1186
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1187
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1188
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1189
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1190
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1191
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1192
		end
1193
		WELD1:remove()
1194
		for i=0, 0.5, 0.1 / Animation_Speed do
1195
			Swait()
1196
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1197
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1198
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1199
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1200
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1201
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1202
		end
1203
		local GROWLS = {"368795088","368795352","368795492","368795580"}
1204
		CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10))
1205
		repeat
1206
			Swait()
1207
			turnto(Mouse.Hit.p)
1208
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1209
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1210
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(170), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1211
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1212
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1213
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1214
		until HOLD == true
1215
		WELD2:remove()
1216
		local bv = Instance.new("BodyVelocity") 
1217
		bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1218
		bv.velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300
1219
		bv.Parent = TORS2
1220
		bv.Name = "MOVE"
1221
		coroutine.resume(coroutine.create(function()
1222
			local HIT1 = TORS2.Touched:Connect(function(hit)
1223
				dealdamage(hit,25,65,3,false,5,2)
1224
			end)
1225
			Swait(2)
1226
			HIT1:disconnect()
1227
		end))
1228
		Debris:AddItem(bv,0.2)
1229
		TORS2.Velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300
1230
		for i=0, 1, 0.1 / Animation_Speed do
1231
			Swait()
1232
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1)
1233
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1)
1234
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, 0) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1)
1235
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1)
1236
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1)
1237
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1)
1238
		end
1239
	end
1240
	UNANCHOR = true
1241
	ATTACK = false
1242
	Rooted = false
1243
end
1244
1245
--//=================================\\
1246
--||	  ASSIGN THINGS TO KEYS
1247
--\\=================================//
1248
1249
function MouseDown(Mouse)
1250
	HOLD = true
1251
	if ATTACK == false then
1252
		Strike()
1253
	end
1254
end
1255
1256
function MouseUp(Mouse)
1257
HOLD = false
1258
end
1259
1260
function KeyDown(Key)
1261
	KEYHOLD = true
1262
	if Key == "z" and ATTACK == false then
1263
		Shriek()
1264
	end
1265
1266
	if Key == "b" and ATTACK == false then
1267
		Devour()
1268
	end
1269
1270
	if Key == "c" and ATTACK == false then
1271
		Snap()
1272
	end
1273
1274
	if Key == "q" and ATTACK == false then
1275
		if VALUE1 == false then
1276
			VALUE1 = true
1277
			Speed = 75
1278
			CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Effects, 10, 2)
1279
		elseif VALUE1 == true then
1280
			VALUE1 = false
1281
			Speed = 20
1282
			local GROWLS = {"368795088","368795352","368795492","368795580"}
1283
			CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10))
1284
		end
1285
	end
1286
1287
	if Key == "t" and ATTACK == false then
1288
		local GROWLS = {"368795088","368795352","368795492","368795580"}
1289
		CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10))
1290
	end
1291
end
1292
1293
function KeyUp(Key)
1294
	KEYHOLD = false
1295
end
1296
1297
	Mouse.Button1Down:connect(function(NEWKEY)
1298
		MouseDown(NEWKEY)
1299
	end)
1300
	Mouse.Button1Up:connect(function(NEWKEY)
1301
		MouseUp(NEWKEY)
1302
	end)
1303
	Mouse.KeyDown:connect(function(NEWKEY)
1304
		KeyDown(NEWKEY)
1305
	end)
1306
	Mouse.KeyUp:connect(function(NEWKEY)
1307
		KeyUp(NEWKEY)
1308
	end)
1309
1310
--//=================================\\
1311
--\\=================================//
1312
1313
1314
function unanchor()
1315
	if UNANCHOR == true then
1316
		g = Character:GetChildren()
1317
		for i = 1, #g do
1318
			if g[i].ClassName == "Part" then
1319
				g[i].Anchored = false
1320
			end
1321
		end
1322
	end
1323
end
1324
1325
1326
--//=================================\\
1327
--||	WRAP THE WHOLE SCRIPT UP
1328
--\\=================================//
1329
1330
Humanoid.Changed:connect(function(Jump)
1331
	if Jump == "Jump" and (Disable_Jump == true) then
1332
		Humanoid.Jump = false
1333
	end
1334
end)
1335
1336
createbodypart("Eye","Really red",Head,VT(0, 0.6, -1.2),VT(12,10,4))
1337
createbodypart("Eye","Really black",Head,VT(0, 0.6, -1.2),VT(7,9,5))
1338
1339
Speed = 20
1340
1341
while true do
1342
	Swait()
1343
	ANIMATE.Parent = nil
1344
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1345
	IDLEANIMATION:Play()
1346
	SINE = SINE + CHANGE
1347
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1348
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1349
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1350
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1351
	local WALKSPEEDVALUE = 5
1352
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1353
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1354
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1355
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1356
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1357
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1358
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1359
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1360
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1361
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1362
	end
1363
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1364
		ANIM = "Jump"
1365
			if ATTACK == false then
1366
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1367
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1368
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(130), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
1369
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(130), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1370
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1371
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1372
	        end
1373
		elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil and ATTACK == false then
1374
			ANIM = "Fall"
1375
			if ATTACK == false then
1376
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1377
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1378
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
1379
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1380
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1381
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1382
			end
1383
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1384
		ANIM = "Idle"
1385
		if ATTACK == false then
1386
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1387
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1388
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1389
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1390
			RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed)
1391
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed)
1392
			if MRANDOM(1,35) == 1 then
1393
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1)
1394
			end
1395
		end
1396
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1397
		ANIM = "Walk"
1398
		WALK = WALK + 1 / Animation_Speed
1399
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1400
			WALK = 0
1401
			if WALKINGANIM == true then
1402
				WALKINGANIM = false
1403
			elseif WALKINGANIM == false then
1404
				WALKINGANIM = true
1405
			end
1406
		end
1407
		--RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1408
		--LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1409
		if ATTACK == false then
1410
			if VALUE1 == false then
1411
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1412
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1413
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15+60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1414
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1415
				RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(-15), RAD(25)), 0.15 / Animation_Speed)
1416
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(15), RAD(-25)), 0.15 / Animation_Speed)
1417
			elseif VALUE1 == true then
1418
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1419
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-55 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1420
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(35), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1421
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(35), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1422
				RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(-15), RAD(65)), 0.15 / Animation_Speed)
1423
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(15), RAD(-65)), 0.15 / Animation_Speed)
1424
			end
1425
		end
1426
	end
1427
if #Effects2>0 then
1428
for e=1,#Effects2 do
1429
if Effects2[e]~=nil then
1430
local Thing=Effects2[e]
1431
if Thing~=nil then
1432
local Part=Thing[1]
1433
local Mode=Thing[2]
1434
local Delay=Thing[3]
1435
local IncX=Thing[4]
1436
local IncY=Thing[5]
1437
local IncZ=Thing[6]
1438
local Part2=Thing[8]
1439
if Thing[1].Transparency<=1 then
1440
if Thing[2]=="Block1" then
1441
Thing[1].CFrame=Thing[1].CFrame
1442
Mesh=Thing[1].Mesh
1443
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1444
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1445
elseif Thing[2]=="Cylinder" then
1446
Mesh=Thing[1].Mesh
1447
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1448
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1449
elseif Thing[2]=="Blood" then
1450
Mesh=Thing[7]
1451
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
1452
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1453
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1454
elseif Thing[2]=="Elec" then
1455
Mesh=Thing[1].Mesh
1456
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
1457
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1458
elseif Thing[2]=="Disappear" then
1459
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1460
end
1461
else
1462
Part.Parent=nil
1463
table.remove(Effects2,e)
1464
end
1465
end
1466
end
1467
end
1468
end
1469
unanchor()
1470
Humanoid.MaxHealth = "inf"
1471
Humanoid.Health = "inf"
1472
if Rooted == false then
1473
	Disable_Jump = false
1474
	Humanoid.WalkSpeed = Speed
1475
elseif Rooted == true then
1476
	Disable_Jump = true
1477
	Humanoid.WalkSpeed = 0
1478
end
1479
q = Character:GetChildren()
1480
for u = 1, #q do
1481
	if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1482
		q[u]:remove()
1483
	elseif q[u].ClassName == "Shirt" then
1484
		q[u]:Destroy()
1485
	elseif q[u].ClassName == "Pants" then
1486
		q[u]:Destroy()
1487
	elseif q[u].ClassName == "CharacterMesh" then
1488
		q[u]:remove()
1489
	elseif q[u].ClassName == "ShirtGraphic" then
1490
		q[u]:remove()
1491
	elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then
1492
		q[u].Color = Color3.new(0,0,0)
1493
	end
1494
end
1495
if Head:FindFirstChild("face") then
1496
	Head.face:remove()
1497
end
1498
Humanoid.Name = "REEE"
1499
end
1500
1501
--//=================================\\
1502
--\\=================================//
1503
1504
1505
1506
1507
1508
--//====================================================\\--
1509
--||			  		 END OF SCRIPT
1510
--\\====================================================//--