View difference between Paste ID: NareCs6a and KJ7W5bTU
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,game,owner = owner,game
3
local RealPlayer = Player
4
do
5
	print("FE Compatibility code by Mokiros")
6
	local rp = RealPlayer
7
	script.Parent = rp.Character
8
	
9
	--RemoteEvent for communicating
10
	local Event = Instance.new("RemoteEvent")
11
	Event.Name = "UserInput_Event"
12
13
	--Fake event to make stuff like Mouse.KeyDown work
14
	local function fakeEvent()
15
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16
		t.connect = t.Connect
17
		return t
18
	end
19
20
	--Creating fake input objects with fake variables
21
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25
	end}
26
	--Merged 2 functions into one by checking amount of arguments
27
	CAS.UnbindAction = CAS.BindAction
28
29
	--This function will trigger the events that have been :Connect()'ed
30
	local function te(self,ev,...)
31
		local t = m[ev]
32
		if t and t._fakeEvent then
33
			for _,f in pairs(t.Functions) do
34
				f(...)
35
			end
36
		end
37
	end
38
	m.TrigEvent = te
39
	UIS.TrigEvent = te
40
41
	Event.OnServerEvent:Connect(function(plr,io)
42
	    if plr~=rp then return end
43
		m.Target = io.Target
44
		m.Hit = io.Hit
45
		if not io.isMouse then
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49
			end
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local Mouse = Player:GetMouse()
66
	local UIS = game:GetService("UserInputService")
67
	local input = function(io,a)
68
		if a then return end
69
		--Since InputObject is a client-side instance, we create and pass table instead
70
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71
	end
72
	UIS.InputBegan:Connect(input)
73
	UIS.InputEnded:Connect(input)
74
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
85
	----Sandboxed game object that allows the usage of client-side methods and services
86
	--Real game object
87
	local _rg = game
88
89
	--Metatable for fake service
90
	local fsmt = {
91
		__index = function(self,k)
92
			local s = rawget(self,"_RealService")
93
			if s then return s[k] end
94
		end,
95
		__newindex = function(self,k,v)
96
			local s = rawget(self,"_RealService")
97
			if s then s[k]=v end
98
		end,
99
		__call = function(self,...)
100
			local s = rawget(self,"_RealService")
101
			if s then return s(...) end
102
		end
103
	}
104
	local function FakeService(t,RealService)
105
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106
		return setmetatable(t,fsmt)
107
	end
108
109
	--Fake game object
110
	local g = {
111
		GetService = function(self,s)
112
			return self[s]
113
		end,
114
		Players = FakeService({
115
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116
		},"Players"),
117
		UserInputService = FakeService(UIS,"UserInputService"),
118
		ContextActionService = FakeService(CAS,"ContextActionService"),
119
	}
120
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121
	g.service = g.GetService
122
	
123
	g.RunService = FakeService({
124
		RenderStepped = _rg:GetService("RunService").Heartbeat,
125
		BindToRenderStep = function(self,name,_,fun)
126
127
		end,
128
		UnbindFromRenderStep = function(self,name)
129
			self._btrs[name]:Disconnect()
130
		end,
131
	},"RunService")
132
133
	setmetatable(g,{
134
		__index=function(self,s)
135
			return _rg:GetService(s) or typeof(_rg[s])=="function"
136
			and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137
		end,
138
		__newindex = fsmt.__newindex,
139
		__call = fsmt.__call
140
	})
141
	--Changing owner to fake player object to support owner:GetMouse()
142
	game,owner = g,g.Players.LocalPlayer
143
end
144
145
Player_Size = 1 --Size of the player.
146
local change = 1
147
148
local plr = owner
149
local mou = plr:GetMouse()
150
local char = plr.Character
151
local hum = char.Humanoid
152
local hed = char.Head
153
local root = char.HumanoidRootPart
154
local rootj = root.RootJoint
155
local tors = char.Torso
156
local ra = char["Right Arm"]
157
local la = char["Left Arm"]
158
local rl = char["Right Leg"]
159
local ll = char["Left Leg"]
160
local neck = tors["Neck"]
161
local mouse = plr:GetMouse()
162
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
163
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
164
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
165
local maincolor = BrickColor.new("Dark green")
166
exploitable = true
167
local Player = game.Players.localPlayer
168
local Character = Player.Character
169
local Humanoid = Character.Humanoid
170
local Mouse = Player:GetMouse()
171
local LeftArm = Character["Left Arm"]
172
local RightArm = Character["Right Arm"]
173
local LeftLeg = Character["Left Leg"]
174
local RightLeg = Character["Right Leg"]
175
local Head = Character.Head
176
local Torso = Character.Torso
177
178
BTAUNT = Instance.new("Sound", tors)
179
BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2783948945"
180
BTAUNT.Volume = 10
181
BTAUNT.Pitch = 1
182
BTAUNT.Looped = false
183
BTAUNT.TimePosition = 0.2
184
185
186
187
cam = game.Workspace.CurrentCamera
188
CF = CFrame.new
189
VT = Vector3.new
190
angles = CFrame.Angles
191
attack = false
192
Euler = CFrame.fromEulerAnglesXYZ
193
Rad = math.rad
194
IT = Instance.new
195
BrickC = BrickColor.new
196
Cos = math.cos
197
COS = math.cos
198
Acos = math.acos
199
Sin = math.sin
200
Asin = math.asin
201
Abs = math.abs
202
Mrandom = math.random
203
Floor = math.floor
204
205
Player = owner
206
PlayerGui = Player.PlayerGui
207
Cam = workspace.CurrentCamera
208
Backpack = Player.Backpack
209
Character = Player.Character
210
Humanoid = Character.Humanoid
211
Mouse = Player:GetMouse()
212
RootPart = Character["HumanoidRootPart"]
213
Torso = Character["Torso"]
214
Head = Character["Head"]
215
RightArm = Character["Right Arm"]
216
LeftArm = Character["Left Arm"]
217
RightLeg = Character["Right Leg"]
218
LeftLeg = Character["Left Leg"]
219
RootJoint = RootPart["RootJoint"]
220
Neck = Torso["Neck"]
221
RightShoulder = Torso["Right Shoulder"]
222
LeftShoulder = Torso["Left Shoulder"]
223
RightHip = Torso["Right Hip"]
224
LeftHip = Torso["Left Hip"]
225
local SIZE = 1
226
227
necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
228
RSH, LSH = nil, nil
229
RW = Instance.new("Weld")
230
LW = Instance.new("Weld")
231
RH = tors["Right Hip"]
232
LH = tors["Left Hip"]
233
RSH = tors["Right Shoulder"]
234
LSH = tors["Left Shoulder"]
235
RSH.Parent = nil
236
LSH.Parent = nil
237
RW.Name = "RW"
238
RW.Part0 = tors
239
RW.C0 = CF(1.5, 0.5, 0)
240
RW.C1 = CF(0, 0.5, 0)
241
RW.Part1 = ra
242
RW.Parent = tors
243
LW.Name = "LW"
244
LW.Part0 = tors
245
LW.C0 = CF(-1.5, 0.5, 0)
246
LW.C1 = CF(0, 0.5, 0)
247
LW.Part1 = la
248
LW.Parent = tors
249
Effects = {}
250
251
local sine=0
252
Animation_Speed = 1
253
local CHANGE = 2 / Animation_Speed
254
255
rootj.Parent = root
256
neck.Parent = tors
257
RW.Parent = tors
258
LW.Parent = tors
259
RH.Parent = tors
260
LH.Parent = tors
261
----------------------------------------------------------------------------------
262
rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
263
rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
264
neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
265
neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
266
RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
267
LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
268
----------------------------------------------------------------------------------
269
RH.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))
270
LH.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))
271
RH.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))
272
LH.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))
273
--hat.Parent = Character
274
----------------------------------------------------------------------------------
275
local SONG = 268126560
276
local SONG2 = 638448542
277
local Music = Instance.new("Sound",tors)
278
Music.Volume = 2.5
279
Music.Looped = true
280
Music.Pitch = 1 --Pitcher
281
 function Cso(ID, PARENT, VOLUME, PITCH)
282
	local NSound = nil
283
	coroutine.resume(coroutine.create(function()
284
		NSound = IT("Sound", PARENT)
285
		NSound.Volume = VOLUME
286
		NSound.Pitch = PITCH
287
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
288
		swait()
289
		NSound:play()
290
		game:GetService("Debris"):AddItem(NSound, 10)
291
	end))
292
	return NSound
293
end
294
----------------------------------------------------------------------------------
295
local equipped = false
296
local idle = 0
297
local change = 1
298
local val = 0
299
local toim = 0
300
local idleanim = 0.4
301
local sine = 0
302
local Sit = 1
303
----------------------------------------------------------------------------------
304
hum.WalkSpeed = 16
305
hum.JumpPower = 70
306
----------------------------------------------------------------------------------
307
function clerp(a, b, t)
308
    local qa = {
309
        QuaternionFromCFrame(a)
310
    }
311
    local qb = {
312
        QuaternionFromCFrame(b)
313
    }
314
    local ax, ay, az = a.x, a.y, a.z
315
    local bx, by, bz = b.x, b.y, b.z
316
    local _t = 1 - t
317
    return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
318
end
319
320
function swait(num)
321
    if num == 0 or num == nil then
322
        game:service("RunService").Stepped:wait(0)
323
    else
324
        for i = 0, num do
325
            game:service("RunService").Stepped:wait(0)
326
        end
327
    end
328
end
329
330
function QuaternionFromCFrame(cf)
331
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
332
    local trace = m00 + m11 + m22
333
    if trace > 0 then
334
        local s = math.sqrt(1 + trace)
335
        local recip = 0.5 / s
336
        return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
337
    else
338
        local i = 0
339
        if m00 < m11 then
340
            i = 1
341
        end
342
        if m22 > (i == 0 and m00 or m11) then
343
            i = 2
344
        end
345
        if i == 0 then
346
            local s = math.sqrt(m00 - m11 - m22 + 1)
347
            local recip = 0.5 / s
348
            return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
349
        elseif i == 1 then
350
            local s = math.sqrt(m11 - m22 - m00 + 1)
351
            local recip = 0.5 / s
352
            return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
353
        elseif i == 2 then
354
            local s = math.sqrt(m22 - m00 - m11 + 1)
355
            local recip = 0.5 / s
356
            return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
357
        end
358
    end
359
end
360
function QuaternionToCFrame(px, py, pz, x, y, z, w)
361
    local xs, ys, zs = x + x, y + y, z + z
362
    local wx, wy, wz = w * xs, w * ys, w * zs
363
    local xx = x * xs
364
    local xy = x * ys
365
    local xz = x * zs
366
    local yy = y * ys
367
    local yz = y * zs
368
    local zz = z * zs
369
    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))
370
end
371
--------------------
372
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
373
374
ArtificialHB = Instance.new("BindableEvent", script)
375
ArtificialHB.Name = "ArtificialHB"
376
377
script:WaitForChild("ArtificialHB")
378
379
frame = Frame_Speed
380
tf = 0
381
allowframeloss = false
382
tossremainder = false
383
lastframe = tick()
384
script.ArtificialHB:Fire()
385
386
game:GetService("RunService").Heartbeat:connect(function(s, p)
387
	tf = tf + s
388
	if tf >= frame then
389
		if allowframeloss then
390
			script.ArtificialHB:Fire()
391
			lastframe = tick()
392
		else
393
			for i = 1, math.floor(tf / frame) do
394
				script.ArtificialHB:Fire()
395
			end
396
		lastframe = tick()
397
		end
398
		if tossremainder then
399
			tf = 0
400
		else
401
			tf = tf - frame * math.floor(tf / frame)
402
		end
403
	end
404
end)
405
406
407
function Swait(NUMBER)
408
	if NUMBER == 0 or NUMBER == nil then
409
		ArtificialHB.Event:wait()
410
	else
411
		for i = 1, NUMBER do
412
			ArtificialHB.Event:wait()
413
		end
414
	end
415
end
416
--------------------
417
local RbxUtility = LoadLibrary("RbxUtility")
418
local Create = RbxUtility.Create
419
----------------------------
420
function QuaternionSlerp(a, b, t)
421
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
422
    local startInterp, finishInterp
423
    if cosTheta >= 1.0E-4 then
424
        if 1 - cosTheta > 1.0E-4 then
425
            local theta = math.acos(cosTheta)
426
            local invSinTheta = 1 / Sin(theta)
427
            startInterp = Sin((1 - t) * theta) * invSinTheta
428
            finishInterp = Sin(t * theta) * invSinTheta
429
        else
430
            startInterp = 1 - t
431
            finishInterp = t
432
        end
433
    elseif 1 + cosTheta > 1.0E-4 then
434
        local theta = math.acos(-cosTheta)
435
        local invSinTheta = 1 / Sin(theta)
436
        startInterp = Sin((t - 1) * theta) * invSinTheta
437
        finishInterp = Sin(t * theta) * invSinTheta
438
    else
439
        startInterp = t - 1
440
        finishInterp = t
441
    end
442
    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
443
end
444
445
function rayCast(Position, Direction, Range, Ignore)
446
    return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
447
end
448
-------------------------
449
-------------------------
450-
char.Head.face.Texture = "http://www.roblox.com/asset/?id=149118048"
450+
char.Head.face.Decal = "http://www.roblox.com/asset/?id=149118048"
451
-------------------------
452
function CreateSound(ID, PARENT, VOLUME, PITCH)
453
	local NEWSOUND = nil
454
	coroutine.resume(coroutine.create(function()
455
		NEWSOUND = IT("Sound", PARENT)
456
		NEWSOUND.Volume = VOLUME
457
		NEWSOUND.Pitch = PITCH
458
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
459
		Swait()
460
		NEWSOUND:play()
461
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
462
	end))
463
	return NEWSOUND
464
end
465
---------------------------------------------
466
function Taunt()
467
        attack = true
468
	hum.WalkSpeed = 0
469
        BTAUNT:Play()
470
        repeat
471
        swait()
472
        BTAUNT.Parent = tors
473
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.08)
474
	tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-2.5 * Cos(sine / 1.5))), 0.08)
475
	RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(10)), 0.08)
476
	LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-80), Rad(0)) * angles(Rad(-10.5), Rad(-2.5 * Cos(sine / 1.5)), Rad(-10)), 0.08)
477
        RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(210)), 0.08)
478
	LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
479
	until BTAUNT.Playing == false
480
        attack = false
481
	hum.WalkSpeed = 16
482
end
483
---------------------------------------------
484
function kdown(k)
485
    if k == "t" then
486
        Taunt()
487
    end
488
end
489
 
490
mou.KeyDown:connect(kdown)
491
-----------------------------------------------------------------
492
local equipped = false
493
local idle = 0
494
local change = 1
495
local val = 0
496
local toim = 0
497
local idleanim = 0.4
498
hum.Animator.Parent = nil
499
while true do
500
    swait()
501
    sine = sine + change
502
   
503
    Music.Parent = char
504
    local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
505
    local velderp = root.Velocity.y
506
    hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
507
    if equipped == true or equipped == false then
508
        if attack == false then
509
            idle = idle + 1
510
        else
511
            idle = 0
512
        end
513
        if 1 < root.Velocity.y and hitfloor == nil then
514
            Anim = "Jump"
515
            if attack == false then
516
                rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
517
                tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
518
                RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
519
                LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
520
                LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
521
                RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
522
            end
523
        elseif -1 > root.Velocity.y and hitfloor == nil then
524
            Anim = "Fall"
525
            if attack == false then
526
                rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
527
                tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
528
                RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3)
529
                LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3)
530
                LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
531
                RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
532
            end
533
        elseif torvel < 1 and hitfloor ~= nil then
534
            Anim = "Idle"
535
            change = 1
536
            if attack == false then
537
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
538
                tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
539
                RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
540
                LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
541
                RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1)
542
                LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-5 + 2.5 * Sin(sine / 20))), 0.1)
543
            end
544
        elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
545
            Anim = "Walk"
546
            change = 1
547
            if attack == false then
548
                rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4-2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(5 * Cos(sine / 7))), 0.15)
549
                tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
550
                RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
551
                LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
552
                RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0.15 * Cos(sine / 7)) * angles(Rad(45)  * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.1)
553
                LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), -0.15 * Cos(sine / 7)) * angles(Rad(-45)  * Cos(sine / 7) , Rad(0) ,  Rad(-5) + la.RotVelocity.Y / 75), 0.1)
554
            end
555
        end
556
    end
557
    Music.SoundId = "rbxassetid://"..SONG
558
    Music.Looped = true
559
    Music.Pitch = 1
560
    Music.Volume = 3
561
    Music.Parent = tors
562
    Music:Resume()
563
    if 0 < #Effects then
564
        for e = 1, #Effects do
565
            if Effects[e] ~= nil then
566
                local Thing = Effects[e]
567
                if Thing ~= nil then
568
                    local Part = Thing[1]
569
                    local Mode = Thing[2]
570
                    local Delay = Thing[3]
571
                    local IncX = Thing[4]
572
                    local IncY = Thing[5]
573
                    local IncZ = Thing[6]
574
                    if 1 >= Thing[1].Transparency then
575
                        if Thing[2] == "Block1" then
576
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
577
                            local Mesh = Thing[1].Mesh
578
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
579
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
580
                        elseif Thing[2] == "Block2" then
581
                            Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
582
                            local Mesh = Thing[7]
583
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
584
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
585
                        elseif Thing[2] == "Block3" then
586
                            Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
587
                            local Mesh = Thing[7]
588
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
589
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
590
                        elseif Thing[2] == "Cylinder" then
591
                            local Mesh = Thing[1].Mesh
592
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
593
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
594
                        elseif Thing[2] == "Blood" then
595
                            local Mesh = Thing[7]
596
                            Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
597
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
598
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
599
                        elseif Thing[2] == "Elec" then
600
                            local Mesh = Thing[1].Mesh
601
                            Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
602
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
603
                        elseif Thing[2] == "Disappear" then
604
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
605
                        elseif Thing[2] == "Shatter" then
606
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
607
                            Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
608
                            Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
609
                            Thing[6] = Thing[6] + Thing[5]
610
                        end
611
                    else
612
                        Part.Parent = nil
613
                        table.remove(Effects, e)
614
                    end
615
                end
616
            end
617
        end
618
    end
619
end
620
-------------------------------------------------------
621
--End Animations And Script--
622
-------------------------------------------------------