View difference between Paste ID: L8fSPUKm and B2W8vyeN
SHOW: | | - or go back to the newest paste.
1
--just put this on the top of a script and boom 89% works
2
--note this does not work on big scripts
3
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4
local Player,game,owner = owner,game
5
local RealPlayer = Player
6
do
7
	local rp = RealPlayer
8
	script.Parent = rp.Character
9
	
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent then
34
			for _,f in pairs(t.Functions) do
35
				f(...)
36
			end
37
		end
38
	end
39
	m.TrigEvent = te
40
	UIS.TrigEvent = te
41
42
	Event.OnServerEvent:Connect(function(plr,io)
43
	    if plr~=rp then return end
44
		m.Target = io.Target
45
		m.Hit = io.Hit
46
		if not io.isMouse then
47
			local b = io.UserInputState == Enum.UserInputState.Begin
48
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
49
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
50
			end
51
			for _,t in pairs(CAS.Actions) do
52
				for _,k in pairs(t.Keys) do
53
					if k==io.KeyCode then
54
						t.Function(t.Name,io.UserInputState,io)
55
					end
56
				end
57
			end
58
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
59
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
60
	    end
61
	end)
62
	Event.Parent = NLS([==[
63
	local Player = game:GetService("Players").LocalPlayer
64
	local Event = script:WaitForChild("UserInput_Event")
65
66
	local Mouse = Player:GetMouse()
67
	local UIS = game:GetService("UserInputService")
68
	local input = function(io,a)
69
		if a then return end
70
		--Since InputObject is a client-side instance, we create and pass table instead
71
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
72
	end
73
	UIS.InputBegan:Connect(input)
74
	UIS.InputEnded:Connect(input)
75
76
	local h,t
77
	--Give the server mouse data 30 times every second, but only if the values changed
78
	--If player is not moving their mouse, client won't fire events
79
	while wait(1/30) do
80
		if h~=Mouse.Hit or t~=Mouse.Target then
81
			h,t=Mouse.Hit,Mouse.Target
82
			Event:FireServer({isMouse=true,Target=t,Hit=h})
83
		end
84
	end]==],Player.Character)
85
86
	----Sandboxed game object that allows the usage of client-side methods and services
87
	--Real game object
88
	local _rg = game
89
90
	--Metatable for fake service
91
	local fsmt = {
92
		__index = function(self,k)
93
			local s = rawget(self,"_RealService")
94
			if s then return s[k] end
95
		end,
96
		__newindex = function(self,k,v)
97
			local s = rawget(self,"_RealService")
98
			if s then s[k]=v end
99
		end,
100
		__call = function(self,...)
101
			local s = rawget(self,"_RealService")
102
			if s then return s(...) end
103
		end
104
	}
105
	local function FakeService(t,RealService)
106
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
107
		return setmetatable(t,fsmt)
108
	end
109
110
	--Fake game object
111
	local g = {
112
		GetService = function(self,s)
113
			return self[s]
114
		end,
115
		Players = FakeService({
116
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
117
		},"Players"),
118
		UserInputService = FakeService(UIS,"UserInputService"),
119
		ContextActionService = FakeService(CAS,"ContextActionService"),
120
	}
121
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
122
	g.service = g.GetService
123
	
124
	g.RunService = FakeService({
125
		RenderStepped = _rg:GetService("RunService").Heartbeat,
126
		BindToRenderStep = function(self,name,_,fun)
127
			self._btrs[name] = self.Heartbeat:Connect(fun)
128
		end,
129
		UnbindFromRenderStep = function(self,name)
130
			self._btrs[name]:Disconnect()
131
		end,
132
	},"RunService")
133
134
	setmetatable(g,{
135
		__index=function(self,s)
136
			return _rg:GetService(s) or typeof(_rg[s])=="function"
137
			and function(_,...)return _rg[s](_rg,...)end or _rg[s]
138
		end,
139
		__newindex = fsmt.__newindex,
140
		__call = fsmt.__call
141
	})
142
	--Changing owner to fake player object to support owner:GetMouse()
143
	game,owner = g,g.Players.LocalPlayer
144
end
145
---
146
local p = game.Players.LocalPlayer
147
local char = p.Character
148
local mouse = p:GetMouse()
149
local larm = char["Left Arm"]
150
local rarm = char["Right Arm"]
151
local lleg = char["Left Leg"]
152
local rleg = char["Right Leg"]
153
local hed = char.Head
154
local torso = char.Torso
155
local ASD = BrickColor.new("Pastel brown")
156
local hum = char.Humanoid
157
local cam = game.Workspace.CurrentCamera
158
local root = char.HumanoidRootPart
159
local deb = false
160
local shot = 0
161
local l = game:GetService("Lighting")
162
local rs = game:GetService("RunService").RenderStepped
163
local stanceToggle = "Normal"
164
math.randomseed(os.time())
165
hum.WalkSpeed = 7
166
char.Health:Destroy()
167
hum.MaxHealth = 5000000
168
wait(0.1)
169
hum.Health = 5000000
170
z = Instance.new("Sound", char.Torso)
171
z.SoundId = "rbxassetid://719841541"
172
z.Looped = true
173
z.Pitch = 1
174
z.Volume = 1
175
----------------------------------------------------
176
local SM = Instance.new("Smoke",torso)
177-
SM.Size = 15
177+
SM.Size = 50
178
local S = Instance.new("Part",char)
179
S.Size = Vector3.new(1,1,1)
180
S.Material = "Neon"
181-
S.BrickColor = BrickColor.new("Really black")
181+
S.BrickColor = BrickColor.new("Really red")
182
S.Transparency = 0
183
S.Anchored = true
184
S.CFrame = torso.CFrame*CFrame.new(0,0,0)
185
local Ring = Instance.new("Part",S)
186-
Ring.Size = Vector3.new(1,1,1)
186+
Ring.Size = Vector3.new(9,9,9)
187-
Ring.BrickColor = BrickColor.new("Really black")
187+
Ring.BrickColor = BrickColor.new("Really red")
188
Ring.Anchored = true
189
Ring.CanCollide = false
190-
Ring.CFrame = S.CFrame*CFrame.new(0,0,0)*CFrame.Angles(1.55,0,0)
190+
Ring.CFrame = S.CFrame*CFrame.new(9,9,9)*CFrame.Angles(1.55,0,0)
191
local Ring2 = Instance.new("SpecialMesh",Ring)
192
Ring2.MeshId = "rbxassetid://3270017"
193
Ring2.Scale = Vector3.new(0.1,0.1,0.1)
194
local S2 = Instance.new("SpecialMesh",S)
195
S2.MeshType = "Sphere"
196
S2.Scale = Vector3.new(1,1,1)
197
v = Instance.new("Sound")
198
v.SoundId = "rbxassetid://821439273"
199
v.Parent = char.Torso
200
v.Looped = false
201
v.Pitch = 1
202
v.Volume = 1
203
wait(.01)
204
v:Play()
205
local partasdeff = Instance.new("ParticleEmitter",S)
206-
partasdeff.Color = ColorSequence.new(Color3.new(0,0,0), Color3.new(204,130,2))
206+
partasdeff.Color = ColorSequence.new(Color3.new(5,1,9), Color3.new(204,130,2))
207
partasdeff.LightEmission = .1
208
partasdeff.Size = NumberSequence.new(0.2)
209
partasdeff.Texture = "http://www.roblox.com/asset/?ID=300899516"
210
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
211
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
212
partasdeff.Transparency = bbb
213
partasdeff.Size = aaa
214
partasdeff.ZOffset = .9
215
partasdeff.Acceleration = Vector3.new(0, -5, 0)
216
partasdeff.LockedToPart = false
217
partasdeff.EmissionDirection = "Top"
218
partasdeff.Lifetime = NumberRange.new(1, 2)
219
partasdeff.Rate = 1000
220
partasdeff.Rotation = NumberRange.new(-100, 100)
221
partasdeff.RotSpeed = NumberRange.new(-100, 100)
222
partasdeff.Speed = NumberRange.new(10)
223
partasdeff.VelocitySpread = 300
224
partasdeff.Enabled = true
225
for i = 1,100 do
226
	Ring2.Scale = Ring2.Scale + Vector3.new(2,2,2)
227
	Ring.Transparency = Ring.Transparency + 0.01
228
	S2.Scale = S2.Scale + Vector3.new(0.3,0.3,0.3)
229
	S.Transparency = S.Transparency + 0.01
230
	game:GetService("RunService").RenderStepped:wait()
231
end
232
S:remove()
233
wait(1)
234
SM:remove()
235
----------------------------------------------------
236
Debounces = {
237
on = false;
238
ks = false;
239
CanAttack = true;
240
CanJoke = true;
241
NoIdl = false;
242
Slashing = false;
243
Slashed = false;
244
Grabbing = false;
245
Grabbed = false;
246
}
247
local Touche = {char.Name, }
248
----------------------------------------------------
249
function lerp(a, b, t) -- Linear interpolation
250
    return a + (b - a)*t
251
end
252
 
253
function slerp(a, b, t) --Spherical interpolation
254
    dot = a:Dot(b)
255
    if dot > 0.99999 or dot < -0.99999 then
256
        return t <= 0.5 and a or b
257
    else
258
        r = math.acos(dot)
259
        return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
260
    end
261
end
262
 
263
function matrixInterpolate(a, b, t)
264
    local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
265
    local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
266
    local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
267
    local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
268
    local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
269
    local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
270
    local t = v1:Dot(v2)
271
    if not (t < 0 or t == 0 or t > 0) then     -- Failsafe
272
        return CFrame.new()
273
    end
274
    return CFrame.new(
275
    v0.x, v0.y, v0.z,
276
    v1.x, v1.y, v1.z,
277
    v2.x, v2.y, v2.z,
278
    v3.x, v3.y, v3.z)
279
end
280
----------------------------------------------------
281
function genWeld(a,b)
282
    local w = Instance.new("Weld",a)
283
    w.Part0 = a
284
    w.Part1 = b
285
    return w
286
end
287
function weld(a, b)
288
    local weld = Instance.new("Weld")
289
    weld.Name = "W"
290
    weld.Part0 = a
291
    weld.Part1 = b
292
    weld.C0 = a.CFrame:inverse() * b.CFrame
293
    weld.Parent = a
294
    return weld;
295
end
296
----------------------------------------------------
297
function Lerp(c1,c2,al)
298
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
299
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
300
for i,v in pairs(com1) do 
301
com1[i] = v+(com2[i]-v)*al
302
end
303
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
304
end
305
----------------------------------------------------
306
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
307
local wld = Instance.new("Weld", wp1)
308
wld.Part0 = wp0
309
wld.Part1 = wp1
310
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
311
end
312
----------------------------------------------------
313
for i,v in pairs(char:children()) do
314
    if v:IsA("Hat") then
315
        v:Destroy()
316
    end
317
end
318
for i,v in pairs(hed:children()) do
319
    if v:IsA("Sound") then
320
        v:Destroy()
321
    end
322
end
323
----------------------------------------------------
324
function HasntTouched(plrname)
325
local ret = true
326
for _, v in pairs(Touche) do
327
if v == plrname then
328
ret = false
329
end
330
end
331
return ret
332
end
333
----------------------------------------------------
334-
larm.Size = larm.Size * 5
334+
larm.Size = larm.Size * 9
335-
rarm.Size = rarm.Size * 5
335+
rarm.Size = rarm.Size * 9
336-
lleg.Size = lleg.Size * 5
336+
lleg.Size = lleg.Size * 9
337-
rleg.Size = rleg.Size * 5
337+
rleg.Size = rleg.Size * 9
338-
torso.Size = torso.Size * 5
338+
torso.Size = torso.Size * 9
339-
hed.Size = hed.Size * 5
339+
hed.Size = hed.Size * 9
340-
root.Size = root.Size * 5
340+
root.Size = root.Size * 9
341
----------------------------------------------------
342
newWeld(torso, larm, -1.5, 0.5, 0)
343
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
344
newWeld(torso, rarm, 1.5, 0.5, 0)
345
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
346
newWeld(torso, hed, 0, 1.5, 0)
347
newWeld(torso, lleg, -0.5, -1, 0)
348
lleg.Weld.C1 = CFrame.new(0, 1, 0)
349
newWeld(torso, rleg, 0.5, -1, 0)
350
rleg.Weld.C1 = CFrame.new(0, 1, 0)
351
newWeld(root, torso, 0, -1, 0)
352
torso.Weld.C1 = CFrame.new(0, -1, 0)
353
----------------------------------------------------Light stone grey ---- 8560915  ---shirt 46810244 -- 55631376
354
355
--------------------------------
356
k = Instance.new("Sound",Character)
357
k.Volume = 0.6
358
k.PlaybackSpeed = 1
359
k.Pitch = 1
360
k.SoundId = "rbxassetid://381671754"
361
k:Play()
362
k.Name = "TalkSound"
363
k.Playing = false
364
365
function chatfunc(text)
366
local chat = coroutine.wrap(function()
367
if Character:FindFirstChild("TalkingBillBoard")~= nil then
368
Character:FindFirstChild("TalkingBillBoard"):destroy()
369
end
370
local naeeym2 = Instance.new("BillboardGui",Character)
371
naeeym2.Size = UDim2.new(0,100,0,40)
372
naeeym2.StudsOffset = Vector3.new(0,8,0)
373
naeeym2.Adornee = Character.Head
374
naeeym2.Name = "TalkingBillBoard"
375
naeeym2.AlwaysOnTop = true
376
local tecks2 = Instance.new("TextLabel",naeeym2)
377
tecks2.BackgroundTransparency = 1
378
tecks2.BorderSizePixel = 0
379
tecks2.Text = ""
380
tecks2.Font = "Fantasy"
381-
tecks2.TextSize = 30
381+
tecks2.TextSize = 400
382
tecks2.TextStrokeTransparency = 0
383-
tecks2.TextColor3 = Color3.new(0,0,0)
383+
tecks2.TextColor3 = Color3.new(9,6,1)
384-
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
384+
tecks2.TextStrokeColor3 = Color3.new(1,1,5)
385-
tecks2.Size = UDim2.new(1,0,0.5,0)
385+
tecks2.Size = UDim2.new(9,0,0.5,0)
386
local tecks3 = Instance.new("TextLabel",naeeym2)
387
tecks3.BackgroundTransparency = 1
388
tecks3.BorderSizePixel = 0
389
tecks3.Text = ""
390
tecks3.Font = "Fantasy"
391-
tecks3.TextSize = 30
391+
tecks3.TextSize = 400
392
tecks3.TextStrokeTransparency = 0
393-
tecks3.TextColor3 = Color3.new(0,0,0)
393+
tecks3.TextColor3 = Color3.new(9,4,0)
394-
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
394+
tecks3.TextStrokeColor3 = Color3.new(2,1,4)
395
tecks3.Size = UDim2.new(1,0,0.5,0)
396
for i = 1,string.len(text),1 do
397
k:Play()
398
tecks2.Text = string.sub(text,1,i)
399
tecks3.Text = string.sub(text,1,i)
400
wait(0.01)
401
end
402
wait(2)
403
for i = 1, 50 do
404
wait()
405
tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
406
tecks2.Rotation = tecks2.Rotation - .8
407
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
408
tecks2.TextTransparency = tecks2.TextTransparency + .04
409
tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
410
tecks3.Rotation = tecks2.Rotation + .8
411
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
412
tecks3.TextTransparency = tecks2.TextTransparency + .04
413
end
414
naeeym2:Destroy()
415
end)
416
chat()
417
end
418
function onChatted(msg)
419
chatfunc(msg)
420
end
421
Player.Chatted:connect(onChatted)
422
---------------------------------------------------------------------------
423
local plr = game:service'Players'.LocalPlayer
424
local char = plr.Character
425
local hum = char.Humanoid
426
local hed = char.Head
427
Character = char
428
Torso = Character["Torso"]
429
Head = Character["Head"]
430
RightArm = Character["Right Arm"]
431
LeftArm = Character["Left Arm"]
432
RightLeg = Character["Right Leg"]
433
LeftLeg = Character["Left Leg"]
434
local BC = Character["Body Colors"]
435-
BC.HeadColor = BrickColor.new("-Light stone grey")
435+
BC.HeadColor = BrickColor.new("-Light red")
436-
BC.LeftArmColor = BrickColor.new("-Light stone grey")
436+
BC.LeftArmColor = BrickColor.new("-Light red")
437-
BC.LeftLegColor = BrickColor.new("-Light stone grey")
437+
BC.LeftLegColor = BrickColor.new("-Really black")
438-
BC.RightArmColor = BrickColor.new("-Light stone grey")
438+
BC.RightArmColor = BrickColor.new("-Really red")
439-
BC.RightLegColor = BrickColor.new("-Light stone grey")
439+
BC.RightLegColor = BrickColor.new("-Dark red")
440-
BC.TorsoColor = BrickColor.new("-Light stone grey")
440+
BC.TorsoColor = BrickColor.new("-Really black")
441
442
for i,v in pairs(Character:children()) do
443
    if v:IsA("Shirt") then
444
        v:Destroy()
445
    end
446
end
447
for i,v in pairs(Character:children()) do
448
    if v:IsA("Pants") then
449
        v:Destroy()
450
    end
451
end
452
for i,v in pairs(Character:children()) do
453
    if v:IsA("Accessory") then
454
        v:Destroy()
455
    end
456
end
457
 shirt = Instance.new("Shirt", Character)--Cloths--
458
        shirt.Name = "Shirt"
459
        pants = Instance.new("Pants", Character)
460
        pants.Name = "Pants"
461
        Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=46810244"
462
        Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=55631376"
463
        
464
        hed.face.Texture = "http://www.roblox.com/asset/?id=8560915 "
465
466
----------------------------------------------------
467
function weld5(part0, part1, c0, c1)
468
    weeld=Instance.new("Weld", part0)
469
    weeld.Part0=part0
470
    weeld.Part1=part1
471
    weeld.C0=c0
472
    weeld.C1=c1
473
    return weeld
474
end
475
----------------------------------------------------
476
function newRay(start,face,range,wat)
477
	local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
478
	hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
479
	return rey,hit,pos
480
end
481
----------------------------------------------------
482
mod5 = Instance.new("Model",char)
483
484
function FindNearestTorso(Position,Distance,SinglePlayer)
485
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
486
        local List = {}
487
        for i,v in pairs(workspace:GetChildren())do
488
            if v:IsA("Model")then
489
                if v:findFirstChild("Torso")then
490
                    if v ~= char then
491
                        if(v.Torso.Position -Position).magnitude <= Distance then
492
                            table.insert(List,v)
493
                        end 
494
                    end 
495
                end 
496
            end 
497
        end
498
    return List
499
end
500
501
function Landing()
502
    part=Instance.new('Part',mod5)
503
    part.Anchored=true
504
    part.CanCollide=false
505
    part.FormFactor='Custom'
506-
    part.Size=Vector3.new(.2,.2,.2)
506+
    part.Size=Vector3.new(.9,.9,.9)
507
    part.CFrame=root.CFrame*CFrame.new(0,-2,0)
508
    part.Transparency=.7
509
    part.BrickColor=BrickColor.new('Really black')
510
    mesh=Instance.new('SpecialMesh',part)
511
    mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
512
    mesh.Scale=Vector3.new(10,5,10)
513
514
    for i,v in pairs(FindNearestTorso(torso.CFrame.p,40))do
515
        if v:FindFirstChild('Humanoid') then
516
            v.Humanoid:TakeDamage(math.random(20,30))
517
            v.Humanoid.PlatformStand = true
518
            v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
519
        end
520
    end
521
522
    coroutine.resume(coroutine.create(function() 
523
        for i=0,3.8,0.05 do
524
            wait()
525
            part.CFrame=part.CFrame
526
            part.Transparency=i
527
            mesh.Scale=mesh.Scale+Vector3.new(1,0.2,1)
528
            end
529
        part.Parent = nil
530
    end))
531
end
532
----------------------------------------------------
533
mod4 = Instance.new("Model",char)
534
535
ptez = {0.7, 0.8, 0.9, 1}
536
537
function FindNearestTorso(Position,Distance,SinglePlayer)
538
    if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
539
        local List = {}
540
        for i,v in pairs(workspace:GetChildren())do
541
            if v:IsA("Model")then
542
                if v:findFirstChild("Torso")then
543
                    if v ~= char then
544
                        if(v.Torso.Position -Position).magnitude <= Distance then
545
                            table.insert(List,v)
546
                        end 
547
                    end 
548
                end 
549
            end 
550
        end
551
    return List
552
end
553
554
----------------------------------------------------
555
556
local acos = math.acos
557
local sqrt = math.sqrt
558
local Vec3 = Vector3.new
559
local fromAxisAngle = CFrame.fromAxisAngle
560
561
local function toAxisAngle(CFr)
562
        local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
563
        local Angle = math.acos((R00+R11+R22-1)/2)
564
        local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
565
        A = A == 0 and 0.00001 or A
566
        local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
567
        B = B == 0 and 0.00001 or B
568
        local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
569
        C = C == 0 and 0.00001 or C
570
        local x = (R21-R12)/sqrt(A)
571
        local y = (R02-R20)/sqrt(B)
572
        local z = (R10-R01)/sqrt(C)
573
        return Vec3(x,y,z),Angle
574
end
575
576
function ApplyTrig(Num,Func)
577
        local Min,Max = Func(0),Func(1)
578
        local i = Func(Num)
579
        return (i-Min)/(Max-Min)
580
        --[[if Func == "sin" then
581
                return (math.sin((1-Num)*math.pi)+1)/2
582
        elseif Func == "cos" then
583
                return (math.cos((1-Num)*math.pi)+1)/2
584
        end]]
585
end
586
587
function LerpCFrame(CFrame1,CFrame2,Num)
588
        local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
589
        return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
590
end
591
mouse.KeyDown:connect(function(key)
592
	if key == "e" then
593
		if Debounces.CanAttack == true then
594
        Debounces.CanAttack = false
595
        Debounces.on = true
596
        Debounces.NoIdl = true
597
		for i = 1,20 do
598
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,-3) * CFrame.Angles(1.3,0,0),.3)
599
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
600
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
601
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
602
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
603
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
604
        if Debounces.on == false then break end
605
    wait()
606
		end
607
		local HitBox = Instance.new("Part",char)
608-
HitBox.Size = Vector3.new(5,5,5)
608+
HitBox.Size = Vector3.new(9,9,9)
609
HitBox.CanCollide = false
610
HitBox.Transparency = math.huge
611
local HitBox2 = Instance.new("Weld",HitBox)
612
HitBox2.Part0 = rarm
613
HitBox2.Part1 = HitBox
614
HitBox2.C0 = CFrame.new(0,-4.5,0)
615
HitBox.Touched:connect(function(hit)
616
	if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
617
		if not DD then DD = true
618
		hit.Parent.Humanoid.PlatformStand = true
619
		local We = Instance.new("Weld",hit.Parent.Torso)
620
		We.Part0 = rarm
621
		We.Part1 = hit.Parent.Torso
622
		We.C0 = CFrame.new(0,-5,0)*CFrame.Angles(-1.55,0,0)
623
		wait(1)
624
		for i = 1,20 do
625
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,4,0) * CFrame.Angles(3.1,0,1),.3)
626
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,4,0) * CFrame.Angles(-3.1,0,-1),.3)
627
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(1,0,0),.3)
628
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
629
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
630
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
631
        if Debounces.on == false then break end
632
    	wait()
633
		end
634
		hit.Parent.Humanoid:TakeDamage(20)
635
		for i = 1,20 do
636
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(6,4,-1) * CFrame.Angles(1.55,0,-1),.3)
637
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-6,4,-1) * CFrame.Angles(1.55,0,1),.3)
638
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
639
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
640
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
641
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
642
        if Debounces.on == false then break end
643
    	wait()
644
		end
645
		for i = 1,20 do
646
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,4,-1) * CFrame.Angles(1.55,0,-1.3),.3)
647
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-5,4,-1) * CFrame.Angles(1.55,0,1.3),.3)
648
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(-0.4,0,0),.3)
649
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -8, 0) * CFrame.Angles(-0.5,0,0),.3)
650
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -3.3,-3.5) *CFrame.Angles(0.5,0,0),.3)
651
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6,0.5) * CFrame.Angles(-1.1,0,0),.3)
652
        if Debounces.on == false then break end
653
    	wait()
654
		end
655
		local partasdeff = Instance.new("ParticleEmitter",hit.Parent.Torso)
656-
			partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
656+
			partasdeff.Color = ColorSequence.new(Color3.new(1, 6, 0), Color3.new(1, 3, 5))
657
			partasdeff.LightEmission = .1
658-
			partasdeff.Size = NumberSequence.new(0.2)
658+
			partasdeff.Size = NumberSequence.new(0.8)
659
			partasdeff.Texture = "http://www.roblox.com/asset/?ID=380529823"
660
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
661
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
662
			partasdeff.Transparency = bbb
663
			partasdeff.Size = aaa
664
			partasdeff.ZOffset = .9
665
			partasdeff.Acceleration = Vector3.new(0, -5, 0)
666
			partasdeff.LockedToPart = false
667
			partasdeff.EmissionDirection = "Top"
668
			partasdeff.Lifetime = NumberRange.new(1, 2)
669
			partasdeff.Rate = 1000
670
			partasdeff.Rotation = NumberRange.new(-100, 100)
671
			partasdeff.RotSpeed = NumberRange.new(-100, 100)
672
			partasdeff.Speed = NumberRange.new(10)
673
			partasdeff.VelocitySpread = 300
674
			partasdeff.Enabled = true
675
			wait(1.5)
676
		hit.Parent:BreakJoints()
677
		We:remove()
678
		partasdeff.Enabled = false
679
		if Debounces.CanAttack == false then
680
        Debounces.CanAttack = true
681
        Debounces.on = false
682
        Debounces.NoIdl = false
683
		end
684
		wait(1313)
685
		DD = false
686
		end
687
	end
688
end)
689
---ANIMATION REPLAY
690
	end
691
	end
692
end)
693
mouse.KeyDown:connect(function(key)
694
    if key == "r" then
695
        if Debounces.CanAttack == true then
696
        Debounces.CanAttack = false
697
        Debounces.on = true
698
        Debounces.NoIdl = true
699
for i = 1,20 do
700
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
701
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
702
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
703
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(-0.5,0,0),.3)
704
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -2) *CFrame.Angles(0.5,0,0),.3)
705
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, 1.2) * CFrame.Angles(-1.5,0,0),.3)
706
        if Debounces.on == false then break end
707
    wait()
708
end
709
local HitBox = Instance.new("Part",char)
710-
HitBox.Size = Vector3.new(5,5,5)
710+
HitBox.Size = Vector3.new(9,9,9)
711
HitBox.CanCollide = false
712
HitBox.Transparency = math.huge
713
local HitBox2 = Instance.new("Weld",HitBox)
714
HitBox2.Part0 = rleg
715
HitBox2.Part1 = HitBox
716
HitBox2.C0 = CFrame.new(0,-1.1,0)
717
local SFXZ = Instance.new("Sound",torso)
718
		SFXZ.SoundId = "rbxassetid://169259383"
719
		SFXZ.Volume = math.huge
720
		SFXZ.Pitch = 0.5
721
		SFXZ.Looped = false
722
		wait(0.01)
723
		SFXZ:Play()
724
HitBox.Touched:connect(function(hit)
725
	if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= nil then
726
		local SFXZ = Instance.new("Sound",torso)
727
			SFXZ.SoundId = "rbxassetid://743886825"
728
			SFXZ.Volume = 1
729
			SFXZ.Pitch = 0.5
730
			SFXZ.Looped = false
731
			SFXZ:Play()
732
		HitBox:remove()
733
		hit.Parent.Humanoid:TakeDamage(44)
734
		hit.Parent.Humanoid.PlatformStand = true
735
		local Fl = Instance.new("BodyVelocity",hit.Parent.Torso)
736
			Fl.maxForce = Vector3.new(math.huge,math.huge,math.huge)
737
			Fl.velocity = rleg.CFrame.lookVector*350
738
			wait(0.1)
739
			Fl:remove()
740
	end
741
end)
742
for i = 1,20 do
743
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.6,1,0) * CFrame.Angles(-0.5,0,0),.3)
744
        larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.6,1,0) * CFrame.Angles(0.5,0,0),.3)
745
        hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0) * CFrame.Angles(0,0,0),.3)
746
        torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0.5,0,0),.3)
747
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, 2) *CFrame.Angles(-0.5,0,0),.3)
748
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -7.6, -1.2) * CFrame.Angles(1.5,0,0),.3)
749
        if Debounces.on == false then break end
750
    wait()
751
end
752
if Debounces.CanAttack == false then
753
        Debounces.CanAttack = true
754
        Debounces.on = false
755
        Debounces.NoIdl = false
756
HitBox:remove()
757
            end
758
end
759
end
760
end)
761
----------------------------------------------------
762
mouse.KeyDown:connect(function(key)
763
    if string.byte(key) == 48 then
764
        char.Humanoid.WalkSpeed = 34
765
    end
766
end)
767
mouse.KeyUp:connect(function(key)
768
    if string.byte(key) == 48 then
769
        char.Humanoid.WalkSpeed = 5
770
    end
771
end)
772
----------------------------------------------------
773
local animpose = "Idle"
774
local lastanimpose = "Idle"
775
local sine = 0
776
local change = 1
777
local val = 0
778
local ffing = false
779
----------------------------------------------------
780
local x = Instance.new("Sound", char.Torso)
781
x.SoundId = "http://www.roblox.com/asset/?id=273962540"
782
x.Looped = true
783
x.Volume = 1
784
x.Pitch = 1
785
local footsteps = false
786
-------------------------------
787
game:GetService("RunService").RenderStepped:connect(function()
788
rarm.BrickColor = ASD
789
larm.BrickColor = ASD
790
rleg.BrickColor = ASD
791
lleg.BrickColor = ASD
792
hed.BrickColor = ASD
793
torso.BrickColor = ASD
794
--[[if char.Humanoid.Jump == true then
795
jump = true
796
else
797
jump = false
798
end]]
799
char.Humanoid.FreeFalling:connect(function(f)
800
if f then
801
ffing = true
802
else
803
ffing = false
804
end
805
end)
806
sine = sine + change
807
if jumpn == true then
808
animpose = "Jumping"
809
elseif ffing == true then
810
animpose = "Freefalling"
811
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
812
animpose = "Idle"
813
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
814
animpose = "Walking"
815
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
816
animpose = "Running"
817
end
818
if animpose ~= lastanimpose then
819
sine = 0
820
if Debounces.NoIdl == false then
821
if animpose == "Idle" then
822
for i = 1, 2 do
823
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,.9,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)), 0.2)
824
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,.9,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.2)
825
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.2)
826
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
827
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.2)
828
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.2)
829
end
830
elseif animpose == "Walking" then
831
for i = 1, 2 do
832
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3, .9, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(20)), 0.2)
833
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3, .9, 0)*CFrame.Angles(0, math.rad(1), math.rad(-10)), 0.2)
834
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(-8), math.rad(0), math.rad(0)),0.2)
835
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(math.rad(-4), 0, math.rad(0)), 0.2)
836
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
837
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8, -.05) * CFrame.Angles(math.rad(-18), 0, 0), .4)
838
end
839
elseif animpose == "Running" then
840
for i = 1, 2 do
841
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8, 0.9, .5) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(50)), 0.2)
842
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8, 1.2, 0-1*math.cos(sine/4)/2)*CFrame.Angles(math.rad(50-80*math.cos(sine/8)/2), math.rad(0), math.rad(0-70*math.cos(sine/8)/2)), 0.2)
843
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+8*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
844
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+4*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
845
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
846
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8)/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
847
end
848
wait()
849
end
850
else
851
end
852
end
853
lastanimpose = animpose
854
if Debounces.NoIdl == false then
855
if animpose == "Idle" then
856
if stanceToggle == "Normal" then
857
change = 0.5
858
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8,1,0)*CFrame.Angles(0,0,0-.1*math.sin(tick()*1))*CFrame.Angles(0,0,0.3),.2)
859
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8,1,0)*CFrame.Angles(0,0,0+.1*math.sin(tick()*1))*CFrame.Angles(0,0,-0.3),.2)
860
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(40),0), 0.2)
861
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2, 0) * CFrame.Angles(0, math.rad(-40), 0), 0.2)
862
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
863
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(3, -8.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
864
elseif stanceToggle == "Sitting" then
865
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3, .9, 0) * CFrame.Angles(math.rad(100-1*math.cos(sine/14)), math.rad(0), math.rad(20)), 0.2)
866
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-2, .9, -1)*CFrame.Angles(math.rad(78+1*math.cos(sine/14)), math.rad(0), math.rad(50)), 0.2)
867
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 3, -.3) * CFrame.Angles(math.rad(-14+1*math.cos(sine/14)), math.rad(0), math.rad(0)),0.2)
868
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(-10+1*math.cos(sine/14)), 0, math.rad(0)), 0.2)
869
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, -2) * CFrame.Angles(math.rad(-10-1*math.cos(sine/14)), 0, 0), 0.2)
870
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -3, .6) * CFrame.Angles(math.rad(-50-1*math.cos(sine/14)), 0, 0), 0.2)
871
end
872
elseif animpose == "Walking" then
873
if stanceToggle == "Normal" then
874
change = 1
875
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.3,0.8,0)*CFrame.Angles(0-.5*math.sin(tick()*2/0.7),0,0),.3)
876
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.3,0.8,0)*CFrame.Angles(0+.5*math.sin(tick()*2/0.7),0,0),.3)
877
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(-0.2,0,0),.3)
878
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0,-2.2,0)*CFrame.new(0,0-.1*math.sin(tick()*2),0)*CFrame.Angles(0,0,0),.3)
879
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.3*math.cos(sine/16)/4, -.05 + math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/16)/2.3, 0, 0), .4)
880
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.3*math.cos(sine/16)/4, -.05 + -math.sin(sine/16)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/16)/2.3, 0, 0), .4)
881
end
882
elseif animpose == "Running" then
883
change = 1
884
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(7.8,0.5,0)*CFrame.Angles(0-.5*math.sin(tick()*7),0,0),.3)
885
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-7.8,0.5,0)*CFrame.Angles(0+.5*math.sin(tick()*7),0,0),.3)
886
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,7.5,0)*CFrame.Angles(math.rad(6+6*math.cos(sine/4)/1.8), math.rad(0), math.rad(0)),0.2)
887
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.2+0.2*math.cos(sine/4)/2, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/4)/2), 0, math.rad(0)), 0.2)
888
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-2.5, -8.8-0.44*math.cos(sine/8)/2.4, -.15 + math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + -math.sin(sine/8)/1.7, 0, 0), .4)
889
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(2.5, -8.8+0.44*math.cos(sine/8 )/2.4, -.15 + -math.sin(sine/8)/1.5) * CFrame.Angles(math.rad(-20) + math.sin(sine/8)/1.7, 0, 0), .4)
890
end
891
end
892
if animpose == "Walking" then
893
    if footsteps == false then
894
        x:Play()
895
        footsteps = true
896
    end
897
    x.Pitch = 1.1
898
elseif animpose == "Idle" then
899
    x:Stop()
900
    footsteps = false
901
elseif animpose == "Running" then
902
    x.Pitch = 1.2
903
    if footsteps == false then
904
        x:Play()
905
        footsteps = true
906
    end
907
end
908
end)