View difference between Paste ID: BiWQH5V2 and FMcGifEZ
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
	local h,t
87
	--Give the server mouse data every second frame, but only if the values changed
88
	--If player is not moving their mouse, client won't fire events
89
	local HB = game:GetService("RunService").Heartbeat
90
	while true do
91
		if h~=Mouse.Hit or t~=Mouse.Target then
92
			h,t=Mouse.Hit,Mouse.Target
93
			Event:FireServer({isMouse=true,Target=t,Hit=h})
94
		end
95
		--Wait 2 frames
96
		for i=1,2 do
97
			HB:Wait()
98
		end
99
	end]==],script)
100
101
	----Sandboxed game object that allows the usage of client-side methods and services
102
	--Real game object
103
	local RealGame = game
104
105
	--Metatable for fake service
106
	local FakeService_Metatable = {
107
		__index = function(self,k)
108
			local s = rawget(self,"_RealService")
109
			if s then
110
				return typeof(s[k])=="function"
111
				and function(_,...)return s[k](s,...)end or s[k]
112
			end
113
		end,
114
		__newindex = function(self,k,v)
115
			local s = rawget(self,"_RealService")
116
			if s then s[k]=v end
117
		end
118
	}
119
	local function FakeService(t,RealService)
120
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
121
		return setmetatable(t,FakeService_Metatable)
122
	end
123
124
	--Fake game object
125
	local FakeGame = {
126
		GetService = function(self,s)
127
			return rawget(self,s) or RealGame:GetService(s)
128
		end,
129
		Players = FakeService({
130
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
131
		},"Players"),
132
		UserInputService = FakeService(UIS,"UserInputService"),
133
		ContextActionService = FakeService(CAS,"ContextActionService"),
134
		RunService = FakeService({
135
			_btrs = {},
136
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
137
			BindToRenderStep = function(self,name,_,fun)
138
				self._btrs[name] = self.Heartbeat:Connect(fun)
139
			end,
140
			UnbindFromRenderStep = function(self,name)
141
				self._btrs[name]:Disconnect()
142
			end,
143
		},"RunService")
144
	}
145
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
146
	FakeGame.service = FakeGame.GetService
147
	FakeService(FakeGame,game)
148
	--Changing owner to fake player object to support owner:GetMouse()
149
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
150
end
151
152
local Player, Character, Mouse  = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse();
153
local Torso = Character:FindFirstChild("Torso")
154
local rootPart = Character:FindFirstChild("HumanoidRootPart")
155
local Humanoid = Character:FindFirstChild("Humanoid")
156
local Head = Character:FindFirstChild("Head")
157
local Right_Arm = Character:FindFirstChild("Right Arm")
158
local Left_Arm = Character:FindFirstChild("Left Arm")
159
local Right_Leg = Character:FindFirstChild("Right Leg")
160
local Left_Leg = Character:FindFirstChild("Left Leg")
161
local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
162
local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
163
local Right_Hip = Torso:FindFirstChild("Right Hip")
164
local Left_Hip = Torso:FindFirstChild("Left Hip")
165
local Neck = Torso:FindFirstChild("Neck")
166
local rootPart = Character:FindFirstChild("HumanoidRootPart")
167
local rootJoint = rootPart:FindFirstChild("RootJoint")
168
local CurrentIdle = "Idling1"
169
local Degree = 0.0175438596491228
170
local Camera = workspace.CurrentCamera
171
local canremove = false
172
local debounce = false
173
local Size = 1
174
dabbing = false
175
_G.SongName = math.random(1,9025232)
176
sin = math.sin
177
Right_Leg.FormFactor                 = "Custom";
178
Left_Leg.FormFactor                        = "Custom";
179
rootPart.Archivable                 = true;
180
rootJoint.Archivable                 = true;
181
c_new                                                = CFrame.new;
182
c_angles                                        = CFrame.Angles;
183
i_new = Instance.new
184
Humanoid:ClearAllChildren();
185
local isAttacking = false
186
local isSprinting = false
187
local Animations = false
188
local Angle = 0
189
local Axis = 0
190
local angleSpeed = 1
191
local axisSpeed = angleSpeed
192
local currentAnim
193
local levetatingheight = 3
194
local WalkType = "Ground"
195
local holding = false 
196
isFalling = false
197
local val2 = 1
198
local val3 = 1
199
local Sitting = false
200
Jp = Humanoid.JumpPower*Size
201
ws = 16*Size/2
202
val = 1
203
local deb = false
204
drink = false
205
local deb2 = false
206
local deb3 = false
207
local deb5 = false
208
local deb6 = false
209
local Punch2 = false
210
local Punch1 = false
211
local Raising = false
212
local Stomping = false
213
local Grabbing = false
214
 crawl = false
215
 local valz = false
216
 Character.Health:Destroy()
217
local Shielding = false
218
local Clap = false
219
local combo = 1
220
local Charge1 = false
221
local Charge2 = false
222
Mouse.KeyDown:connect(function(key)
223
        if key:byte() == 48 then
224
                isSprinting = true
225
        end
226
        
227
        Mouse.KeyUp:connect(function(key2)
228
                if key:byte() == 48 then
229
                        isSprinting = false
230
                end
231
        end)
232
end)
233
 
234
235
Mouse.KeyDown:connect(function(key)
236
if key == "f" and Animations == false then
237
Charge = true
238
Animations = true
239
wait(1)
240
Charge = false
241
Animations = false
242
end
243
end)
244
245
local z = -8
246
local Finger = false 
247
local Finger2 = false
248
Mouse.Button1Down:connect(function()
249
if combo == 1 and Animations == false then
250
Finger = true
251
Animations = true
252
local audio = Instance.new("Sound", Left_Arm)
253
audio.SoundId = "rbxassetid://242076158"
254
audio.Volume = 4
255
audio:Play()
256
wait(0.4)
257
        local ray = Ray.new(Left_Arm.CFrame.p, (Mouse.Hit.p - Left_Arm.CFrame.p).unit * 300)
258
                local part, position = workspace:FindPartOnRay(ray, Character, false, true)
259
 
260
                local beam = Instance.new("Part", Character)
261
                --beam.BrickColor = BrickColor.new("Bright red")
262
                beam.FormFactor = "Custom"
263
                beam.Material = "Neon"
264
                --beam.Transparency = 0.25
265
                beam.Anchored = true
266
                beam.Locked = true
267
                beam.CanCollide = false
268
                 game:GetService("Debris"):AddItem(beam, 0.6)
269
270
                local distance = (Left_Arm.CFrame.p - position).magnitude
271
                beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
272
                beam.CFrame = CFrame.new(Left_Arm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
273
                spawn(function()
274
                for i = 0,1,0.08 do
275
                beam.Transparency = i*2
276
                beam.Size = beam.Size+Vector3.new(1,1,0)*Size
277
                wait()
278
                end
279
                end)
280
                spawn(function()
281
                local p = Instance.new("Part", Character)
282
                local audio2 = Instance.new("Sound", p)
283
audio2.SoundId = "rbxassetid://287142895"
284
audio2.Volume = 4
285
audio2:Play()
286
                p.TopSurface = 0
287
                p.BottomSurface = 0
288
                p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
289
                p.Anchored = true
290
                p.Material = "Neon"
291
                p.CanCollide = false
292
                game.Debris:AddItem(p, 0.6)
293
                        for i,v in pairs(game.Workspace:GetChildren()) do
294
        torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
295
                if torso and (torso.Position - p.Position).magnitude <= 15*Size/2 and torso.Parent.Name ~= Character.Name then
296
                      torso.Parent.Humanoid:TakeDamage(math.random(10,30)*Size)
297
                     -- torso.Parent.Humanoid.PlatformStand = true
298
             end
299
             end
300
                for i = 0,1,0.05 do
301
                p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
302
                p.Transparency = i*2
303
                wait()
304
                end
305
                end)
306
                
307
                Finger = false
308
                Animations = false
309
                combo = combo+1
310
                elseif combo == 2 and Animations == false then
311
              Finger2 = true
312
              Animations = true
313
local audio = Instance.new("Sound", Right_Arm)
314
audio.SoundId = "rbxassetid://242076158"
315
audio.Volume = 4
316
audio:Play()
317
wait(0.4)
318
        local ray = Ray.new(Right_Arm.CFrame.p, (Mouse.Hit.p - Right_Arm.CFrame.p).unit * 300)
319
                local part, position = workspace:FindPartOnRay(ray, Character, false, true)
320
 
321
                local beam = Instance.new("Part", Character)
322
                --beam.BrickColor = BrickColor.new("Bright red")
323
                beam.FormFactor = "Custom"
324
                beam.Material = "Neon"
325
                --beam.Transparency = 0.25
326
                beam.Anchored = true
327
                beam.Locked = true
328
                beam.CanCollide = false
329
                                game:GetService("Debris"):AddItem(beam, 0.6)
330
                local distance = (Right_Arm.CFrame.p - position).magnitude
331
                beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
332
                beam.CFrame = CFrame.new(Right_Arm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
333
                spawn(function()
334
                for i = 0,1,0.08 do
335
                beam.Transparency = i*2
336
                beam.Size = beam.Size+Vector3.new(1,1,0)*Size
337
                wait()
338
                end
339
                end)
340
                spawn(function()
341
                local p = Instance.new("Part", Character)
342
                local audio2 = Instance.new("Sound", p)
343
audio2.SoundId = "rbxassetid://287142895"
344
audio2.Volume = 4
345
audio2:Play()
346
                p.TopSurface = 0
347
                p.BottomSurface = 0
348
                p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
349
                p.Anchored = true
350
                p.Material = "Neon"
351
                p.CanCollide = false
352
                                game.Debris:AddItem(p, 0.6)
353
354
                        for i,v in pairs(game.Workspace:GetChildren()) do
355
        torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
356
                if torso and (torso.Position - p.Position).magnitude <= 15*Size and torso.Parent.Name ~= Character.Name then
357
                      torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
358
                     -- torso.Parent.Humanoid.PlatformStand = true
359
             end
360
             end
361
                for i = 0,1,0.05 do
362
                p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
363
                p.Transparency = i*2
364
                wait()
365
                end
366
                end)
367
                
368
                Finger2 = false
369
                Animations = false
370
                combo = combo+1
371
                elseif combo == 3 and Animations == false then
372
                Finger = true
373
Animations = true
374
local audio = Instance.new("Sound", Left_Arm)
375
audio.SoundId = "rbxassetid://242076158"
376
audio.Volume = 4
377
audio:Play()
378
wait(0.4)
379
for i = 1,3 do
380
381
z = z+(i*2.6)
382
b = z*Size
383
        local ray = Ray.new(Head.CFrame.p, (Mouse.Hit.p - Head.CFrame.p+Vector3.new(b,2,0)).unit * 300)
384
                local part, position = workspace:FindPartOnRay(ray, Character, false, true)
385
 
386
                local beam = Instance.new("Part", Character)
387
                --beam.BrickColor = BrickColor.new("Bright red")
388
                beam.FormFactor = "Custom"
389
                beam.Material = "Neon"
390
                --beam.Transparency = 0.25
391
                beam.Anchored = true
392
                beam.Locked = true
393
                beam.CanCollide = false
394
                 game:GetService("Debris"):AddItem(beam, 0.6)
395
396
                local distance = (Head.CFrame.p - position).magnitude
397
                beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
398
                beam.CFrame = CFrame.new(Head.CFrame.p+Vector3.new(b,2,0), position) * CFrame.new(Head.CFrame.p+Vector3.new(b,2,0), 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
399
                spawn(function()
400
                for i = 0,1,0.08 do
401
                beam.Transparency = i*2
402
                beam.Size = beam.Size+Vector3.new(1,1,0)*Size
403
                wait()
404
                end
405
                end)
406
                spawn(function()
407
                local p = Instance.new("Part", Character)
408
                local audio2 = Instance.new("Sound", p)
409
audio2.SoundId = "rbxassetid://287142895"
410
audio2.Volume = 4
411
audio2:Play()
412
                p.TopSurface = 0
413
                p.BottomSurface = 0
414
                p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
415
                p.Anchored = true
416
                p.Material = "Neon"
417
                p.CanCollide = false
418
                                game.Debris:AddItem(p, 0.6)
419
420
                        for i,v in pairs(game.Workspace:GetChildren()) do
421
        torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
422
                if torso and (torso.Position - p.Position).magnitude <= 15*Size/2 and torso.Parent.Name ~= Character.Name then
423
                      torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
424
                     -- torso.Parent.Humanoid.PlatformStand = true
425
             end
426
             end
427
                for i = 0,1,0.05 do
428
                p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
429
                p.Transparency = i*2
430
                wait()
431
                end
432
                end)
433
            end
434
            z = -8
435
                Finger = false
436
                Animations = false
437
                combo = combo+1
438
                elseif combo == 4 then
439
                              Finger2 = true
440
              Animations = true
441
local audio = Instance.new("Sound", Right_Arm)
442
audio.SoundId = "rbxassetid://242076158"
443
audio.Volume = 4
444
audio:Play()
445
wait(0.4)
446
for i = 1,15 do
447
--Vector3.new(math.random(-20,20),math.random(20,30),0)
448
        local ray = Ray.new(Head.CFrame.p, (Mouse.Hit.p - Head.CFrame.p).unit * 300)
449
                local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {Character})
450
 
451
                local beam = Instance.new("Part", Character)
452
                --beam.BrickColor = BrickColor.new("Bright red")
453
                beam.FormFactor = "Custom"
454
                beam.Material = "Neon"
455
                beam.Name = "beem"
456
                --beam.Transparency = 0.25
457
                beam.Anchored = true
458
                beam.Locked = true
459
                beam.CanCollide = false
460
                                game:GetService("Debris"):AddItem(beam, 0.6)
461
                local distance = (Head.CFrame.p+Vector3.new(math.random(-20,20),math.random(5,30),0) - position).magnitude
462
                beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
463
                beam.CFrame = CFrame.new(Head.CFrame.p+Vector3.new(math.random(-40,40),math.random(7,50),0) , position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
464
                spawn(function()
465
                for i = 0,1,0.08 do
466
                beam.Transparency = i*2
467
                beam.Size = beam.Size+Vector3.new(1,1,0)*Size
468
                wait()
469
                end
470
                end)
471
                spawn(function()
472
                local p = Instance.new("Part", Character)
473
                local audio2 = Instance.new("Sound", p)
474
audio2.SoundId = "rbxassetid://287142895"
475
audio2.Volume = 4
476
audio2:Play()
477
                p.TopSurface = 0
478
                p.BottomSurface = 0
479
                p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
480
                p.Anchored = true
481
                p.Material = "Neon"
482
                p.CanCollide = false
483
                                game.Debris:AddItem(p, 0.9)
484
485
                        for i,v in pairs(game.Workspace:GetChildren()) do
486
        torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
487
                if torso and (torso.Position - p.Position).magnitude <= 15*Size and torso.Parent.Name ~= Character.Name then
488
                      torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
489
                     -- torso.Parent.Humanoid.PlatformStand = true
490
             end
491
             end
492
                for i = 0,1,0.05 do
493
                p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
494
                p.Transparency = i*2
495
                wait()
496
                end
497
                end)
498
                wait()
499
                end
500
                
501
                Finger2 = false
502
                Animations = false
503
                combo = combo+1
504
                elseif combo == 5 then
505
                              Finger2 = true
506
              Animations = true
507
local audio = Instance.new("Sound", Right_Arm)
508
audio.SoundId = "rbxassetid://242076158"
509
audio.Volume = 4
510
audio:Play()
511
wait(0.4)
512
for i = 1,5 do
513
--Vector3.new(math.random(-20,20),math.random(20,30),0)
514
        local ray = Ray.new(Vector3.new(math.random(-20,20),20,math.random(-20,20)), (Vector3.new(math.random(-20,20),20,math.random(-20,20)) - Head.CFrame.p).unit * 300)
515
                local part, position = workspace:FindPartOnRayWithIgnoreList(ray, {Character})
516
 
517
                local beam = Instance.new("Part", Character)
518
                --beam.BrickColor = BrickColor.new("Bright red")
519
                beam.FormFactor = "Custom"
520
                beam.Material = "Neon"
521
                beam.Name = "beem"
522
                --beam.Transparency = 0.25
523
                beam.Anchored = true
524
                beam.Locked = true
525
                beam.CanCollide = false
526
                                game:GetService("Debris"):AddItem(beam, 0.6)
527
                local distance = (Vector3.new(math.random(-20,20),20,math.random(-20,20)) - position).magnitude
528
                beam.Size = Vector3.new(0.4*Size,0.4*Size, distance)
529
                beam.CFrame = CFrame.new(Vector3.new(math.random(-20,20),20,math.random(-20,20)) , position) * CFrame.new(0, 0, -distance / 2) * CFrame.Angles(0,0,math.random(1,360))
530
                spawn(function()
531
                for i = 0,1,0.08 do
532
                beam.Transparency = i*2
533
                beam.Size = beam.Size+Vector3.new(1,1,0)*Size
534
                wait()
535
                end
536
                end)
537
                spawn(function()
538
                local p = Instance.new("Part", Character)
539
                local audio2 = Instance.new("Sound", p)
540
audio2.SoundId = "rbxassetid://287142895"
541
audio2.Volume = 4
542
audio2:Play()
543
                p.TopSurface = 0
544
                p.BottomSurface = 0
545
                p.CFrame = beam.CFrame*CFrame.new(0,0, -beam.Size.Z/2)
546
                p.Anchored = true
547
                p.Material = "Neon"
548
                p.CanCollide = false
549
                                game.Debris:AddItem(p, 0.9)
550
551
                        for i,v in pairs(game.Workspace:GetChildren()) do
552
        torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
553
                if torso and (torso.Position - p.Position).magnitude <= 15*Size and torso.Parent.Name ~= Character.Name then
554
                      torso.Parent.Humanoid:TakeDamage(math.random(10,20)*Size)
555
                     -- torso.Parent.Humanoid.PlatformStand = true
556
             end
557
             end
558
                for i = 0,1,0.05 do
559
                p.Size = p.Size + Vector3.new(1.5,1.5,1.5)*Size
560
                p.Transparency = i*2
561
                wait()
562
                end
563
                end)
564
                wait()
565
                end
566
                
567
                Finger2 = false
568
                Animations = false
569
                combo = 1
570
end
571
end)
572
573
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
574
        wld = Instance.new("Weld", wp1)
575
        wld.Part0 = wp0
576
        wld.Part1 = wp1
577
        wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
578
        return wld
579
end
580
 
581
function noOutline(part)
582
        Part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
583
end
584
 
585
local function Part(Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
586
        local partie = i_new("Part",parent)
587
        partie.BrickColor = BrickColor.new(Color)
588
        partie.Material = Material
589
        partie.Shape = Shape
590
        partie.Transparency = Transparency
591
        partie.Size = Size
592
        partie.CFrame = CFrame
593
        partie.CanCollide = CanCollide
594
        partie.Anchored = Anchored
595
        return partie
596
end
597
        
598
 
599
 
600
function swait(num)
601
        if num == 0 or num == nil then
602
                game:GetService("RunService").RenderStepped:wait()
603
        else
604
                for i = 0, num do
605
                        game:GetService("RunService").RenderStepped:wait()
606
                end
607
        end
608
end
609
 
610
Humanoid.FreeFalling:connect(function(falling)
611
if falling then
612
isFalling = true
613
elseif not falling then
614
isFalling = false
615
end
616
end)
617
 
618
function mesh(Mesh, part, meshtype, meshid, offset, scale)
619
        local mesh = i_new(Mesh)
620
        mesh.Parent = part
621
        if Mesh == "SpecialMesh" then
622
                mesh.MeshType = meshtype
623
                mesh.MeshId = meshid
624
        end
625
        mesh.Offset = offset
626
        mesh.Scale = scale
627
        return mesh
628
end
629
630
631
function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
632
        return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
633
end
634
 
635
function QuaternionFromCFrame(cf) 
636
        local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
637
        local trace = m00 + m11 + m22 
638
        if trace > 0 then 
639
                local s = math.sqrt(1 + trace) 
640
                local recip = 0.5/s 
641
                return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
642
        else 
643
                local i = 0 
644
                if m11 > m00 then
645
                        i = 1
646
                end
647
                if m22 > (i == 0 and m00 or m11) then 
648
                        i = 2 
649
                end 
650
                if i == 0 then 
651
                        local s = math.sqrt(m00-m11-m22+1) 
652
                        local recip = 0.5/s 
653
                        return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
654
                elseif i == 1 then 
655
                        local s = math.sqrt(m11-m22-m00+1) 
656
                        local recip = 0.5/s 
657
                        return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
658
                elseif i == 2 then 
659
                        local s = math.sqrt(m22-m00-m11+1) 
660
                        local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
661
                end 
662
        end 
663
end
664
 
665
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
666
        local xs, ys, zs = x + x, y + y, z + z 
667
        local wx, wy, wz = w*xs, w*ys, w*zs 
668
        local xx = x*xs 
669
        local xy = x*ys 
670
        local xz = x*zs 
671
        local yy = y*ys 
672
        local yz = y*zs 
673
        local zz = z*zs 
674
        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)) 
675
end
676
 
677
function QuaternionSlerp(a, b, t) 
678
        local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
679
        local startInterp, finishInterp; 
680
        if cosTheta >= 0.0001 then 
681
                if (1 - cosTheta) > 0.0001 then 
682
                        local theta = math.acos(cosTheta) 
683
                        local invSinTheta = 1/math.sin(theta) 
684
                        startInterp = math.sin((1-t)*theta)*invSinTheta 
685
                        finishInterp = math.sin(t*theta)*invSinTheta  
686
                else 
687
                        startInterp = 1-t 
688
                        finishInterp = t 
689
                end 
690
        else 
691
                if (1+cosTheta) > 0.0001 then 
692
                        local theta = math.acos(-cosTheta) 
693
                        local invSinTheta = 1/math.sin(theta) 
694
                        startInterp = math.sin((t-1)*theta)*invSinTheta 
695
                        finishInterp = math.sin(t*theta)*invSinTheta 
696
                else 
697
                        startInterp = t-1 
698
                        finishInterp = t 
699
                end 
700
        end 
701
        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 
702
end
703
704
function clerp(a, b, t) 
705
        local qa = {QuaternionFromCFrame(a)}
706
        local qb = {QuaternionFromCFrame(b)} 
707
        local ax, ay, az = a.x, a.y, a.z 
708
        local bx, by, bz = b.x, b.y, b.z
709
        local _t = 1-t
710
        return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
711
end
712
 
713
714
wait()
715
function bigger (char, S)
716
 tor = char.Torso
717
 larm = char["Left Arm"]
718
 rarm = char["Right Arm"]
719
 lleg = char["Left Leg"]
720
 rleg = char["Right Leg"]
721
 head = char.Head
722
 root = char.HumanoidRootPart
723
 hum = char.Humanoid
724
 
725
 tor.Size = tor.Size*S
726
 larm.Size = larm.Size*S
727
 rarm.Size = rarm.Size*S
728
 lleg.Size = lleg.Size*S
729
 rleg.Size = rleg.Size*S                                                            
730
 root.Size = root.Size*S
731
 hum.HipHeight = hum.HipHeight*S
732
 hum.JumpPower = hum.JumpPower*S/1.1
733
 head.Mesh.Scale = head.Mesh.Scale*S
734
  hum.MaxHealth = 500*S
735
  print(hum.MaxHealth)
736
737
local scale = S
738
scale = scale^-1
739
function scaleCF(cf, n)
740
    local comp = {cf:components()}
741
    local matrix = {}
742
    for i = 4, #comp do
743
        matrix[i-3] = comp[i]
744
    end
745
    return CFrame.new(comp[1]/n, comp[2]/n, comp[3]/n, unpack(matrix))end
746
--[[for _, v in pairs(Character.Head:GetChildren()) do
747
    if v:IsA("Attachment") then
748
        v.Position = v.Position / scale
749
    elseif v:IsA("SpecialMesh") and v.Parent. then
750
        v.Scale = v.Scale / scale
751
        v.Offset = v.Offset / scale
752
    end
753
    end--]]
754
for _, a in pairs(Character:GetChildren()) do
755
    if a:IsA("Accoutrement") then
756
        for _, v in pairs(a.Handle:GetChildren()) do
757
            if v:IsA("Weld") then
758
                v.C0 = scaleCF(v.C0, scale)
759
                v.C1 = scaleCF(v.C1, scale)
760
            elseif v:IsA("Attachment") then
761
                v.Position = v.Position / scale
762
            elseif v:IsA("SpecialMesh") and v.Parent.Name ~= "Head" then
763
                v.Scale = v.Scale / scale
764
                v.Offset = v.Offset / scale
765
            end
766
        end
767
    end
768
end
769
770
771
LA_Weld = newWeld(Torso, Left_Arm, -1.5*S, 0.5*S, 0)
772
Left_Arm.Weld.C1 = CFrame.new(0, 0.5*S, 0)
773
RA_Weld = newWeld(Torso, Right_Arm, 1.5*S, 0.5*S, 0)
774
Right_Arm.Weld.C1 = CFrame.new(0, 0.5*S, 0)
775
LL_Weld = newWeld(Torso, Left_Leg, -0.5*S, -1*S, 0)
776
Left_Leg.Weld.C1 = CFrame.new(0, 1*S, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
777
RL_Weld = newWeld(Torso, Right_Leg, 0.5*S, -1*S, 0)
778
Right_Leg.Weld.C1 = CFrame.new(0, 1*S, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
779
Torso_Weld = newWeld(rootPart, Torso, 0, -1*S, 0)
780
Torso.Weld.C1 = CFrame.new(0, -1*S, 0)
781
Head_Weld = newWeld(Torso, Head, 0, 1.5*S, 0)
782
end
783
 
784
bigger(Character, Size)
785
 
786
sine = 0
787
change = 1
788
789
--[[
790
m2 = Instance.new("SpecialMesh", Right_Arm)
791
        m2.MeshId = "http://www.roblox.com/asset/?id=32328563"
792
        --32328397m2.TextureId = "http://www.roblox.com/asset/?id=21465353"
793
         m2.Scale = Vector3.new(1.2,1.2,1.2)*Size
794
795
m3 = Instance.new("SpecialMesh", Left_Arm)
796
        m3.MeshId = "http://www.roblox.com/asset/?id=32328397"
797
        --m3.TextureId = "http://www.roblox.com/asset/?id=21465353"
798
        m3.Scale = Vector3.new(1.2,1.2,1.2)*Size
799
        
800
        --]]
801
 spawn(function()
802
 
803
 while wait(1.5) do
804
 spawn(function()
805
 while wait(5) do
806
 _G.currentHealth = Humanoid.Health
807
 end
808
 end)
809
 if Humanoid.Health >= _G.currentHealth then
810
 Humanoid.Health = Humanoid.Health+Humanoid.MaxHealth/30
811
 end
812
 end
813
 end)
814
 
815
 
816
game:GetService("RunService").Stepped:connect(function()
817
Camera.CameraSubject = Torso
818
        Angle = (Angle % 100) + angleSpeed/10
819
        Axis = (Axis % 100) + axisSpeed/10
820
        walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
821
        jumpVel = Torso.Velocity.Y
822
        sine = change + sine
823
 
824
        if (Humanoid.Jump) and jumpVel > 1 then
825
                currentAnim = "Jumping"
826
        elseif walkingMagnitude < 2 then
827
                currentAnim = "Idling"
828
        elseif isSprinting == true then
829
                currentAnim = "Sprinting"
830
        elseif walkingMagnitude > 2 then
831
                isSprinting = false
832
                currentAnim = "Walking"
833
        elseif isAttacking == true then
834
                currentAnim = "Attacking"
835
        end
836
 
837
 
838
        if currentAnim == "Jumping" and Animations == false then
839
                angleSpeed = 2
840
                axisSpeed = 2
841
                change = 0.5
842
                RA_Weld.C0                = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
843
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
844
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
845
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(5)), 0.15)
846
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
847
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(9), math.rad(0), math.rad(0)), 0.15)  
848
  
849
850
       elseif isFalling == true and Animations == false then
851
                angleSpeed = 2
852
                axisSpeed = 2
853
                change = 0.5
854
                RA_Weld.C0                = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(50)), 0.15)
855
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.5*Size, 0.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-50)), 0.15)
856
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, -0.5*Size) * c_angles(math.rad(-20), math.rad(0), math.rad(-0)), 0.15)
857
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, -0.5*Size) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
858
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
859
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)    
860
 
861
        elseif currentAnim == "Idling" and Animations == false then
862
                angleSpeed = 1
863
                axisSpeed = 1
864
                change = 0.5
865
866
                        RA_Weld.C0            = clerp(RA_Weld.C0, c_new(1.2*Size, 0.3*Size+-0.02*math.sin(tick()),0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.15)
867
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.2*Size, 0.3*Size+-0.05*math.sin(tick()/1.5),0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.15)
868
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size-0.05*math.asin(math.cos(tick()*1.5)), 0) * c_angles(math.rad(0),math.rad(15),math.rad(-5)), 0.15)
869
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size-0.05*math.asin(math.cos(tick()*1.5)), 0)* c_angles(math.rad(0),math.rad(-15),math.rad(5)), 0.15)
870
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0*Size, -0.9*Size+0.05*math.asin(math.cos(tick()*1.5)), 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
871
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(0), math.rad(-10), math.rad(0)), 0.15)    
872
                
873
874
875
        elseif currentAnim == "Sprinting" and Animations == false then
876
                angleSpeed = 1        
877
                axisSpeed = 1
878
                Humanoid.WalkSpeed = 42*Size
879
                
880
                       RA_Weld.C0            = clerp(RA_Weld.C0, c_new(1.2*Size, 0.35*Size,0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.15)
881
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.2*Size, 0.35*Size,0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.15)
882
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/2)/2)*Size, -0.1*Size+(math.sin(sine/2)*0.8)/2) * c_angles(math.sin(sine/2)*1.6,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
883
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/2)/2)*Size, -0.1*Size+(-math.sin(sine/2)*0.8)/2)* c_angles(-math.sin(sine/2)*1.6,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
884
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/2)/5, 0*Size) * c_angles(math.rad(-25), math.sin(sine/2)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
885
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(17), math.rad(0), math.rad(0)), 0.15)     
886
887
      
888
        elseif currentAnim == "Walking" and Animations == false then
889
                angleSpeed = 1
890
                axisSpeed = 1
891
                change = 0.6
892
                Humanoid.WalkSpeed = 3.5*Size
893
                
894
  RA_Weld.C0            = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size,0) * c_angles(-math.rad(-50), math.rad(0), math.rad(10)), 0.15)
895
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.5*Size,  (0.4+-math.asin(math.cos(sine/8.5))/8.5)*Size, (-0.2+-math.asin(math.cos(sine/8.5))/3.4)*Size) * c_angles(math.asin(math.cos(sine/8.5))*0.4, math.rad(0), math.rad(-5)), 0.15)
896
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/6)/6)*Size, -0.1*Size+(math.sin(sine*5)*0.9)/6) * c_angles(math.sin(sine/6)*0.5,-math.sin(sine/5)/8, -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
897
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/6)/6)*Size, -0.1*Size+(-math.sin(sine*5)*0.9)/6)* c_angles(-math.sin(sine/6)*0.5,-math.sin(sine/5)/8, -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
898
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/4)/6, 0*Size) * c_angles(math.rad(-5), math.rad(0)+math.sin(sine/5)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
899
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(0, math.rad(0), math.rad(0)), 0.15)     
900
901
     elseif Finger == true and walkingMagnitude < 2 then
902
     
903
     
904
     -- First Punch (All C1, Lasts 3 Frames)
905
                       RA_Weld.C0                = clerp(RA_Weld.C0, c_new(1.2*Size, 0.35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.5)
906
                       
907
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.5*Size, .5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
908
                
909
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
910
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.5)
911
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
912
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.35)    
913
914
   elseif Finger2 == true and walkingMagnitude < 2 then
915
   
916
        -- First Punch (All C1, Lasts 3 Frames)
917
                       RA_Weld.C0                = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
918
                       
919
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.2*Size, .35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.5)
920
                
921
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
922
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -1*Size, 0*Size) * c_angles(math.rad(-10), math.rad(0), math.rad(10)), 0.5)
923
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0, -1*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
924
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0*Size) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.35)    
925
  elseif Finger2 == true and walkingMagnitude > 2 then
926
  
927
       
928
        -- First Punch (All C1, Lasts 3 Frames)
929
                       RA_Weld.C0                = clerp(RA_Weld.C0, c_new(1.5*Size, 0.5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
930
                       
931
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.2*Size, .35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(40)), 0.5)
932
                
933
                  LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/3)/4)*Size, -0.2*Size+(math.sin(sine/3)*0.7)/2) * c_angles(math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
934
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/3)/4)*Size, -0.2*Size+(-math.sin(sine/3)*0.7)/2)* c_angles(-math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
935
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/2)/3, 0*Size) * c_angles(math.rad(0), math.rad(0)+math.sin(sine/2)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
936
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
937
938
elseif Finger == true and walkingMagnitude > 2 then
939
940
                       RA_Weld.C0                = clerp(RA_Weld.C0, c_new(1.2*Size, 0.35*Size, 0.2*Size) * c_angles(math.rad(-40), math.rad(0), math.rad(-40)), 0.5)
941
                       
942
                LA_Weld.C0                = clerp(LA_Weld.C0, c_new(-1.5*Size, .5*Size, 0*Size) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.5)
943
                
944
                                
945
                LL_Weld.C0                = clerp(LL_Weld.C0, c_new(-0.5*Size, -0.8*Size+(math.cos(sine/3)/4)*Size, -0.2*Size+(math.sin(sine/3)*0.7)/2) * c_angles(math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
946
                RL_Weld.C0                 = clerp(RL_Weld.C0, c_new(0.5*Size, -0.8*Size+(-math.cos(sine/3)/4)*Size, -0.2*Size+(-math.sin(sine/3)*0.7)/2)* c_angles(-math.sin(sine/3)*0.95,math.rad(0), -math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
947
                Torso_Weld.C0         = clerp(Torso_Weld.C0, c_new(0*Size, -1*Size+math.sin(sine/2)/3, 0*Size) * c_angles(math.rad(0), math.rad(0)+math.sin(sine/2)/8, math.sin(rootPart.RotVelocity.y/20)/3), 0.15)
948
Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5*Size, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)    
949
950
                end
951
end)