View difference between Paste ID: Q1haFGUK and 8459aavJ
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 print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
6
7
local p = game.Players.LocalPlayer
8
local char = p.Character
9
local mouse = p:GetMouse()
10
local larm = char["Left Arm"]
11
local rarm = char["Right Arm"]
12
local lleg = char["Left Leg"]
13
local rleg = char["Right Leg"]
14
local hed = char.Head
15
local torso = char.Torso
16
local hum = char.Humanoid
17
local cam = game.Workspace.CurrentCamera
18
local root = char.HumanoidRootPart
19
local deb = false
20
local shot = 0
21
NoAnims = false
22
local debris=game:service"Debris"
23
local l = game:GetService("Lighting")
24
local rs = game:GetService("RunService").RenderStepped
25
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
26
math.randomseed(os.time())
27
for i,v in pairs (hed:GetChildren()) do
28
        if v:IsA("Sound") then
29
                v:Destroy()
30
        end
31
end
32
----------------------------------------------------
33
local Touche = {char.Name, }
34
----------------------------------------------------
35
36
hum.MaxHealth = 150
37
38
----------------------------------------------------
39
function lerp(a, b, t) -- Linear interpolation
40
        return a + (b - a)*t
41
end
42
 
43
function slerp(a, b, t) --Spherical interpolation
44
        dot = a:Dot(b)
45
        if dot > 0.99999 or dot < -0.99999 then
46
                return t <= 0.5 and a or b
47
        else
48
                r = math.acos(dot)
49
                return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
50
        end
51
end
52
 
53
function matrixInterpolate(a, b, t)
54
        local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
55
        local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
56
        local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
57
        local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector  right
58
        local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector  up
59
        local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector  back
60
        local t = v1:Dot(v2)
61
        if not (t < 0 or t == 0 or t > 0) then         -- Failsafe
62
                return CFrame.new()
63
        end
64
        return CFrame.new(
65
        v0.x, v0.y, v0.z,
66
        v1.x, v1.y, v1.z,
67
        v2.x, v2.y, v2.z,
68
        v3.x, v3.y, v3.z)
69
end
70
----------------------------------------------------
71
function genWeld(a,b)
72
    local w = Instance.new("Weld",a)
73
    w.Part0 = a
74
    w.Part1 = b
75
    return w
76
end
77
function weld(a, b)
78
    local weld = Instance.new("Weld")
79
    weld.Name = "W"
80
    weld.Part0 = a
81
    weld.Part1 = b
82
    weld.C0 = a.CFrame:inverse() * b.CFrame
83
    weld.Parent = a
84
    return weld;
85
end
86
----------------------------------------------------
87
function Lerp(c1,c2,al)
88
local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
89
local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
90
for i,v in pairs(com1) do
91
com1[i] = v+(com2[i]-v)*al
92
end
93
return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
94
end
95
----------------------------------------------------
96
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
97
local wld = Instance.new("Weld", wp1)
98
wld.Part0 = wp0
99
wld.Part1 = wp1
100
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
101
end
102
----------------------------------------------------
103
function weld5(part0, part1, c0, c1)
104
    weeld=Instance.new("Weld", part0)
105
    weeld.Part0=part0
106
    weeld.Part1=part1
107
    weeld.C0=c0
108
    weeld.C1=c1
109
    return weeld
110
end
111
----------------------------------------------------
112
function HasntTouched(plrname)
113
local ret = true
114
for _, v in pairs(Touche) do
115
if v == plrname then
116
ret = false
117
end
118
end
119
return ret
120
end
121
----------------------------------------------------
122
gavehp = false
123
124
local ends = {"alive","rip"}
125
result = ""
126
127
local g = Instance.new("Part",larm)
128
g.Material = "Neon"
129
g.CanCollide = false
130
g.Size = Vector3.new(1,1,1)
131
local gm = Instance.new("SpecialMesh",g)
132
gm.MeshId = "rbxassetid://483388971"
133
gm.TextureId = "rbxassetid://520016684"
134
gm.Scale = Vector3.new(0.005,0.005,0.005)
135
136
local cor = Instance.new("Weld")
137
cor.Part1 = g
138
cor.Part0 = larm
139
cor.Parent = char
140
cor.C1 = CFrame.new(0.2,1.8,0)
141
142
----------------------------------------------------
143
newWeld(torso, larm, -1.5, 0.5, 0)
144
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
145
newWeld(torso, rarm, 1.5, 0.5, 0)
146
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
147
newWeld(torso, hed, 0, 1.5, 0)
148
newWeld(torso, lleg, -0.5, -1, 0)
149
lleg.Weld.C1 = CFrame.new(0, 1, 0)
150
newWeld(torso, rleg, 0.5, -1, 0)
151
rleg.Weld.C1 = CFrame.new(0, 1, 0)
152
newWeld(root, torso, 0, -1, 0)
153
torso.Weld.C1 = CFrame.new(0, -1, 0)
154
----------------------------------------------------
155
attack = false
156
local m = 0
157
----------------------------------------------------
158
char.Health:Destroy()
159
mouse.KeyDown:connect(function(key)
160
if key == "e" then
161
if attack == false then
162
attack = true
163
NoAnims = true
164
hum.Health = 150
165
166
result = ends[math.random(1,#ends)]
167
168
local s = Instance.new("Sound",torso)
169
s.SoundId = "rbxassetid://140923474"
170
s.Volume = 1
171
s.Pitch = 1
172
s.Looped = true
173
s:Play()
174
175
coroutine.wrap(function()
176
s:Remove()
177
end)()
178
local s = Instance.new("Sound",torso)
179
s.SoundId = "rbxassetid://212887982"
180
s.Volume = 1
181
s.Pitch = 1
182
s:Play()
183
184
cor.Part0 = hed
185
pcall(function()
186
for i = 1, 20 do
187
188
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
189
190
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(30)), 0.2)
191
192
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
193
194
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
195
196
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
197
198
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
199
200
cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0,0)*CFrame.Angles(math.rad(50),0,0),0.2)
201
rs:wait()
202
203
end
204
end)
205
206
local pgui = p.PlayerGui
207
208
local sc = Instance.new("ScreenGui",pgui)
209
local w1 = Instance.new("TextLabel",sc)
210
w1.Size = UDim2.new(1,0,1,0)
211
w1.Text = "wo kalm dwn m8 u r gon gt rkt"
212
w1.TextScaled = true
213
w1.BackgroundColor3 = Color3.new(1,1,1)
214
w1.BorderSizePixel = 0
215
216
coroutine.wrap(function()
217
for i = 1, 20 do
218
w1.BackgroundTransparency = i/10
219
w1.TextTransparency = i/10
220
end
221
end)()
222
223
pcall(function()
224
for i = 1, 100 do
225
rs:wait()
226
m = m + 0.004
227
hum.Health = hum.Health-1
228
cor.C0 = Lerp(cor.C0, CFrame.new(0.6,0+m/2,0-m/2)*CFrame.Angles(math.rad(50) + m,0,0),0.2)
229
230
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5+m,0-m/3.5)*CFrame.Angles(math.rad(120) + m,math.rad(0),math.rad(30)), 0.2)
231
232
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+m,0+m/3.5)*CFrame.Angles(math.rad(0) - m,math.rad(0),math.rad(0) + m), 0.2)
233
234
end
235
end)
236
237
if result == "rip" then
238
239
coroutine.wrap(function()
240
wait(0.15)
241
for i = 1, 60 do
242
cor.Part0 = torso
243
cor.C0 = Lerp(cor.C0,CFrame.new(9,-0.15,0)*CFrame.Angles(0,0,200),0.1)
244
rs:wait()
245
end
246
end)()
247
248
s:Remove()
249
hum.WalkSpeed = 0
250
pcall(function()
251
hum.JumpPower = 0
252
end)
253
254
pcall(function()
255
for i = 1, 20 do
256
257
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(30),math.rad(30)), 0.2)
258
259
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-10)), 0.2)
260
261
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)), 0.2)
262
263
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2.5, 0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)), 0.2)
264
265
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(-10),math.rad(-5)), 0.4)
266
267
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(20)), 0.4)
268
269
rs:wait()
270
end
271
end)
272
273
wait(3)
274
275
coroutine.wrap(function()
276
while true do
277
wait(0.07)
278
pcall(function()
279
280
rarm.Weld.C0 = CFrame.new(1.5,0.5,0)*CFrame.Angles(math.random(0,3),math.random(0,7),math.random(30,45))
281
282
larm.Weld.C0 = CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.random(0,5),math.random(10,20),math.random(10,20))
283
284
hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.random(20,30),math.random(0,4),math.random(0,3))
285
286
lleg.Weld.C0 = CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.random(0,5),math.random(10,15),math.random(5,10))
287
288
rleg.Weld.C0 = CFrame.new(0.5, -1, 0)*CFrame.Angles(math.random(0,4),math.random(20,30),math.random(20,30))
289
290
end)
291
end
292
end)()
293
294
295
cor:Destroy()
296
297
g.Anchored = true
298
299
for i,v in pairs(char:GetChildren()) do
300
if v:IsA("Part") then
301
v.Anchored = true
302
elseif v:IsA("Accoutrement") then
303
v.Handle.Anchored = true
304
end
305
end
306
307
cor.Part0 = larm
308
m = 0
309
hum.MaxHealth = 0
310
311
local k = Instance.new("Sound",torso)
312
k.SoundId = "rbxassetid://154872806"
313
k.Volume = 10
314
k.Pitch = 1
315
k:Play()
316
317
local cf = torso.CFrame -Vector3.new(0,0.55,0)
318
cf = cf*CFrame.Angles(math.rad(88.5),0,0)
319
320
local b = Instance.new("Part",torso)
321
b.BrickColor = BrickColor.new("Really red")
322
b.Material = "Neon"
323
b.Anchored = true
324
b.CanCollide = false
325
b.Size = Vector3.new(2,0.01,2)
326
b.CFrame = cf
327
328
local bm = Instance.new("CylinderMesh",b)
329
330
local cf2 = b.CFrame -Vector3.new(3,0,0)
331
332
local b2 = Instance.new("Part",torso)
333
b2.BrickColor = BrickColor.new("Really red")
334
b2.Material = "Neon"
335
b2.Anchored = true
336
b2.CanCollide = false
337
b2.Size = Vector3.new(2,0.01,2)
338
b2.CFrame = cf2
339
340
local bm2 = Instance.new("CylinderMesh",b2)
341
342
343
for i = 1, 40 do
344
wait()
345
b.Size = Vector3.new(i/5,0,i/5)
346
b.CFrame = cf
347
348
b2.Size = Vector3.new(i/10,0,i/10)
349
b2.CFrame = cf2
350
end
351
352
local bg = Instance.new("BillboardGui", torso)
353
bg.Name = "rip"
354
bg.Adornee = torso
355
bg.Size = UDim2.new(1, 0, 1, 0)
356
bg.StudsOffset = Vector3.new(0, 2, 0)
357
358
local fr1 = Instance.new("TextLabel", bg)
359
fr1.Size = UDim2.new(1, 0, 1, 0)
360
fr1.BorderSizePixel = 0
361
fr1.TextTransparency = 1
362
fr1.BackgroundTransparency = 1
363
fr1.Text = "RIP MY NIGGA"
364
fr1.TextScaled = true
365
366
coroutine.wrap(function()
367
for i = 1, 20 do
368
rs:wait()
369
fr1.TextTransparency = fr1.TextTransparency - 1/20
370
fr1.BackgroundTransparency = fr1.BackgroundTransparency - 1/20
371
end
372
end)()
373
374
coroutine.wrap(function()
375
while true do
376
377
for i = 0.01, 0.2 do
378
fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(255,0,0),i)
379
rs:wait()
380
end
381
382
for i = 0.01, 0.2 do
383
fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,255,0),i)
384
rs:wait()
385
end
386
387
for i = 0.01, 0.2 do
388
fr1.BackgroundColor3 = fr1.BackgroundColor3:lerp(Color3.new(0,0,255),i)
389
rs:wait()
390
end
391
392
wait()
393
end
394
end)()
395
396
local x = Instance.new("Sound",torso)
397
x.SoundId = "rbxassetid://397069204"
398
x.Looped = true
399
x:Play()
400
wait(9)
401
402
local txts = {"R.I.P "..p.Name.." RIP Toilet Paper","RIP Toilet Paper "..p.Name.." RIP Toilet Paper","RIP Toilet Paper "..p.Name.." RIP TOILET PAPER","RIP TOILET PAPER"}
403
404
local t1 = Instance.new("Part",workspace.Base)
405
t1.Name = "tombstone_dirt"
406
t1.BrickColor = BrickColor.new("Reddish brown")
407
t1.CanCollide = false
408
t1.CFrame = root.CFrame - Vector3.new(0,3.25,0)
409
t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
410
t1.Material = "Grass"
411
t1.Size = Vector3.new(4,1,8)
412
413
local tw = Instance.new("Weld")
414
415
local t2 = Instance.new("Part",t1)
416
t2.Name = "tombstone_stone"
417
t2.CanCollide = false
418
t2.BrickColor = BrickColor.new("")
419
t2.Anchored = false
420
t2.CFrame = t1.CFrame + Vector3.new(0,0,-4)
421
t2.Size = Vector3.new(4.2,5,1.2)
422
423
local sg = Instance.new("SurfaceGui",t2)
424
sg.Enabled = true
425
sg.Face = "Back"
426
sg.Adornee = t2
427
local txts = txts[math.random(1,#txts)]
428
429
local txt = Instance.new("TextLabel",sg)
430
txt.TextScaled = true
431
txt.Text = txts
432
txt.BackgroundTransparency = 1
433
txt.BorderSizePixel = 0
434
txt.Size = UDim2.new(1,0,1,0)
435
436
txt.TextColor3 = Color3.new(1,1,1)
437
if txts == "666" then
438
txt.TextColor3 = Color3.new(1,0,0)
439
end
440
441
442
tw.Part1 = t2
443
tw.Part0 = t1
444
tw.Parent = char
445
tw.C0 = CFrame.new(0,2.5,-4)
446
447
coroutine.wrap(function()
448
t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
449
t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
450
wait(0.1)
451
t1.CFrame = root.CFrame - Vector3.new(0,3.2,0)
452
t1.CFrame = t1.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
453
t1.Anchored = true
454
t2.Anchored = true
455
t1.CanCollide = true
456
t2.CanCollide = true
457
end)()
458
459
char:BreakJoints()
460
461
elseif result == "alive" then
462
attack = false
463
NoAnims = false
464
cor.Part0 = larm
465
m = 0
466
end
467
end
468
end
469
end)
470
471
pcall(function()
472
----------------------------------------------------
473
mouse.KeyDown:connect(function(key)
474
    if string.byte(key) == 50 then
475
        char.Humanoid.WalkSpeed = 60
476
    end
477
end)
478
mouse.KeyUp:connect(function(key)
479
    if string.byte(key) == 50 then
480
        char.Humanoid.WalkSpeed = 16
481
    end
482
end)
483
-------------------------------
484
local animpose = "Idle"
485
local lastanimpose = "Idle"
486
local sine = 0
487
local change = 1
488
local val = 0
489
local ffing = false
490
-------------------------------
491
game:GetService("RunService").RenderStepped:connect(function()
492
--[[if char.Humanoid.Jump == true then
493
jump = true
494
else
495
jump = false
496
end]]
497
char.Humanoid.FreeFalling:connect(function(f)
498
if f then
499
ffing = true
500
else
501
ffing = false
502
end
503
end)
504
sine = sine + change
505
if jumpn == true then
506
animpose = "Jumping"
507
elseif ffing == true then
508
animpose = "Freefalling"
509
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
510
animpose = "Idle"
511
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
512
animpose = "Walking"
513
elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
514
animpose = "Running"
515
end
516
if animpose ~= lastanimpose then
517
sine = 0
518
if animpose == "Idle" then
519
for i = 1, 2 do
520
if NoAnims == false then
521
522
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5+math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2)
523
524
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5 + math.sin(sine/14)/9,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(30)), 0.2)
525
526
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
527
528
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
529
530
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
531
532
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
533
534
end
535
end
536
537
elseif animpose == "Walking" then
538
for i = 1, 2 do
539
if NoAnims == false then
540
541
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7,0.5,-0.35)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-90)), 0.1)
542
543
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.35)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(80)), 0.1)
544
545
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
546
547
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
548
549
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
550
551
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
552
553
end
554
end
555
elseif animpose == "Running" then
556
for i = 1, 2 do
557
if NoAnims == false then
558
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
559
560
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
561
562
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
563
564
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.05)
565
566
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
567
568
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
569
570
wait()
571
end
572
end
573
else
574
end
575
end
576
lastanimpose = animpose
577
if animpose == "Idle" then
578
if NoAnims == false then
579
change = 0.5
580
581
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.4+math.sin(sine/14)/9,0.2)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-30)), 0.2)
582
583
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.4 + math.sin(sine/14)/9,-0.2)*CFrame.Angles(math.rad(20),math.rad(0),math.rad(30)), 0.2)
584
585
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
586
587
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
588
589
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
590
591
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
592
593
cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),math.pi,0),0.2)
594
595
end
596
597
elseif animpose == "Walking" then
598
if NoAnims == false then
599
change = 1
600
cor.C0 = Lerp(cor.C0, CFrame.new(0,0.1,0.2)*CFrame.Angles(math.rad(10),-math.pi/2,0),0.2)
601
602
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
603
604
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
605
606
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.07)*CFrame.Angles(math.rad(-5),math.rad(0),math.rad(0)), 0.2)
607
608
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.1)
609
610
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0)*CFrame.Angles(math.rad(0) + math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
611
612
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0)*CFrame.Angles(math.rad(0) +- math.sin(sine/5)/1.2,math.rad(0),math.rad(0)), 0.1)
613
614
end
615
616
elseif animpose == "Running" then
617
if NoAnims == false then
618
change = 0.5
619
620
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.7 ,0.5,-0.5)*CFrame.Angles(math.rad(90)+ math.sin(sine/2.5)/2,0,.05), 0.2)
621
622
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.7,0.5,-0.5)*CFrame.Angles(math.rad(90)+ -math.sin(sine/2.5)/2,0,-.05), 0.2)
623
624
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0.5)*CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)),0.2)
625
626
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 , 0) * CFrame.Angles(math.rad(-90), 0, math.rad(0)), 0.2)
627
628
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + math.sin(sine/2.5)/2, 0, 0.05), .4)
629
630
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 - 0.3*math.cos(sine/7)/6, 0) * CFrame.Angles(math.rad(85) + -math.sin(sine/2.5)/2, 0.05, 0), .4)
631
632
end
633
end
634
end)
635
end)