View difference between Paste ID: bGQccJJn and n2sBs985
SHOW: | | - or go back to the newest paste.
1
--[[
2
==================================]}
3
//{Script: Memuto          
4
//{User: Solavenge               
5
==================================]}
6
//{Controls:              
7
// F - Toggle Memes
8
==================================]}
9
--]]
10
11
local Player = game.Players.localPlayer
12
local Character = Player.Character
13
local red = 255
14
local green = 255
15
local blue = 255
16
local Humanoid = Character.Humanoid
17
local mouse = Player:GetMouse()
18
local m = Instance.new("Model", Character)
19
m.Name = "WeaponModel"
20
local LeftArm = Character["Left Arm"]
21
local RightArm = Character["Right Arm"]
22
local LeftLeg = Character["Left Leg"]
23
local RightLeg = Character["Right Leg"]
24
local Head = Character.Head
25
local Torso = Character.Torso
26
local cam = game.Workspace.CurrentCamera
27
local RootPart = Character.HumanoidRootPart
28
local RootJoint = RootPart.RootJoint
29
local equipped = false
30
local attack = false
31
local Anim = "Idle"
32
local idle = 0
33
local attacktype = 1
34
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
35
local velocity = RootPart.Velocity.y
36
local sine = 0
37
local change = 1
38
local grabbed = false
39
local cn = CFrame.new
40
local mr = math.rad
41
local angles = CFrame.Angles
42
local ud = UDim2.new
43
local c3 = Color3.new
44
local lim = 0
45
local st = 0
46
local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
47
local attacktype = 1
48
local ZTarget, RocketTarget = nil, nil
49
local euler = CFrame.fromEulerAnglesXYZ
50
function clerp(a,b,t) 
51
local qa = {QuaternionFromCFrame(a)}
52
local qb = {QuaternionFromCFrame(b)} 
53
local ax, ay, az = a.x, a.y, a.z 
54
local bx, by, bz = b.x, b.y, b.z
55
local _t = 1-t
56
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
57
end 
58
 
59
function QuaternionFromCFrame(cf) 
60
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
61
local trace = m00 + m11 + m22 
62
if trace > 0 then 
63
local s = math.sqrt(1 + trace) 
64
local recip = 0.5/s 
65
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
66
else 
67
local i = 0 
68
if m11 > m00 then
69
i = 1
70
end
71
if m22 > (i == 0 and m00 or m11) then 
72
i = 2 
73
end 
74
if i == 0 then 
75
local s = math.sqrt(m00-m11-m22+1) 
76
local recip = 0.5/s 
77
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
78
elseif i == 1 then 
79
local s = math.sqrt(m11-m22-m00+1) 
80
local recip = 0.5/s 
81
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
82
elseif i == 2 then 
83
local s = math.sqrt(m22-m00-m11+1) 
84
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
85
end 
86
end 
87
end
88
 
89
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
90
local xs, ys, zs = x + x, y + y, z + z 
91
local wx, wy, wz = w*xs, w*ys, w*zs 
92
local xx = x*xs 
93
local xy = x*ys 
94
local xz = x*zs 
95
local yy = y*ys 
96
local yz = y*zs 
97
local zz = z*zs 
98
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)) 
99
end
100
 
101
function QuaternionSlerp(a, b, t) 
102
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
103
local startInterp, finishInterp; 
104
if cosTheta >= 0.0001 then 
105
if (1 - cosTheta) > 0.0001 then 
106
local theta = math.acos(cosTheta) 
107
local invSinTheta = 1/math.sin(theta) 
108
startInterp = math.sin((1-t)*theta)*invSinTheta 
109
finishInterp = math.sin(t*theta)*invSinTheta  
110
else 
111
startInterp = 1-t 
112
finishInterp = t 
113
end 
114
else 
115
if (1+cosTheta) > 0.0001 then 
116
local theta = math.acos(-cosTheta) 
117
local invSinTheta = 1/math.sin(theta) 
118
startInterp = math.sin((t-1)*theta)*invSinTheta 
119
finishInterp = math.sin(t*theta)*invSinTheta 
120
else 
121
startInterp = t-1 
122
finishInterp = t 
123
end 
124
end 
125
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 
126
end
127
rayCast = function(Position, Direction, Range, Ignore)
128
  return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
129
end
130
local v = game.Players.localPlayer
131
local torso = v.Character.Torso
132
wait(1)
133
local p = Instance.new("Part", v.Character)
134
p.Name = "kit"
135
p.Anchored = true
136
p.Transparency = 0
137
p.Material = "Plastic"
138
p.CanCollide = false
139
p.TopSurface = 0
140
p.BottomSurface = 0
141
p.Size = Vector3.new(0.2, 0.2, 0.2)
142
p.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
143
local msh = Instance.new("SpecialMesh", p)
144
msh.Scale = Vector3.new(-2, 2, 2)
145
msh.MeshId = "http://www.roblox.com/asset/?id=188635159"
146
msh.TextureId = "http://www.roblox.com/asset/?id=188539332"
147
msh.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
148
local pn = Instance.new("Part", v.Character.kit)
149
pn.Name = "tail"
150
pn.Anchored = true
151
pn.Transparency = 0
152
pn.Material = "Plastic"
153
pn.CanCollide = false
154
pn.TopSurface = 0
155
pn.BottomSurface = 0
156
pn.Size = Vector3.new(5, 3, 3)
157
pn.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
158
local mshn = Instance.new("SpecialMesh", pn)
159
mshn.Scale = Vector3.new(2, 2, 2)
160
mshn.MeshId = "http://www.roblox.com/asset/?id=188635159"
161
mshn.TextureId = "http://www.roblox.com/asset/?id=188539332"
162
mshn.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
163
local pn3 = Instance.new("Part", v.Character.kit)
164
pn3.Name = "tail"
165
pn3.Anchored = true
166
pn3.Transparency = 0
167
pn3.Material = "Plastic"
168
pn3.CanCollide = false
169
pn3.TopSurface = 0
170
pn3.BottomSurface = 0
171
pn3.Size = Vector3.new(0.2, 0.2, 0.2)
172
pn3.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
173
local mshn3 = Instance.new("SpecialMesh", pn3)
174
mshn3.Scale = Vector3.new(2, 2, 2)
175
mshn3.MeshId = "http://www.roblox.com/asset/?id=188635159"
176
mshn3.TextureId = "http://www.roblox.com/asset/?id=188539332"
177
mshn3.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
178
local pn4 = Instance.new("Part", v.Character.kit)
179
pn4.Name = "tail"
180
pn4.Anchored = true
181
pn4.Transparency = 0
182
pn4.Material = "Plastic"
183
pn4.CanCollide = false
184
pn4.TopSurface = 0
185
pn4.BottomSurface = 0
186
pn4.Size = Vector3.new(0.2, 0.2, 0.2)
187
pn4.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
188
local mshn4 = Instance.new("SpecialMesh", pn4)
189
mshn4.Scale = Vector3.new(-2, 2, 2)
190
mshn4.MeshId = "http://www.roblox.com/asset/?id=188635159"
191
mshn4.TextureId = "http://www.roblox.com/asset/?id=188539332"
192
mshn4.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
193
local pn5 = Instance.new("Part", v.Character.kit)
194
pn5.Name = "tail"
195
pn5.Anchored = true
196
pn5.Transparency = 0
197
pn5.Material = "Plastic"
198
pn5.CanCollide = false
199
pn5.TopSurface = 0
200
pn5.BottomSurface = 0
201
pn5.Size = Vector3.new(0.2, 0.2, 0.2)
202
pn5.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
203
local mshn5 = Instance.new("SpecialMesh", pn5)
204
mshn5.Scale = Vector3.new(2, 2, 2)
205
mshn5.MeshId = "http://www.roblox.com/asset/?id=188635159"
206
mshn5.TextureId = "http://www.roblox.com/asset/?id=188539332"
207
mshn5.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
208
local pn6 = Instance.new("Part", v.Character.kit)
209
pn6.Name = "tail"
210
pn6.Anchored = true
211
pn6.Transparency = 0
212
pn6.Material = "Plastic"
213
pn6.CanCollide = false
214
pn6.TopSurface = 0
215
pn6.BottomSurface = 0
216
pn6.Size = Vector3.new(0.2, 0.2, 0.2)
217
pn6.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
218
local mshn6 = Instance.new("SpecialMesh", pn6)
219
mshn6.Scale = Vector3.new(2, 2, 2)
220
mshn6.MeshId = "http://www.roblox.com/asset/?id=188635159"
221
mshn6.TextureId = "http://www.roblox.com/asset/?id=188539332"
222
mshn6.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
223
local pn7 = Instance.new("Part", v.Character.kit)
224
pn7.Name = "tail"
225
pn7.Anchored = true
226
pn7.Transparency = 0
227
pn7.Material = "Plastic"
228
pn7.CanCollide = false
229
pn7.TopSurface = 0
230
pn7.BottomSurface = 0
231
pn7.Size = Vector3.new(0.2, 0.2, 0.2)
232
pn7.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
233
local mshn7 = Instance.new("SpecialMesh", pn7)
234
mshn7.Scale = Vector3.new(2, 2, 2)
235
mshn7.MeshId = "http://www.roblox.com/asset/?id=188635159"
236
mshn7.TextureId = "http://www.roblox.com/asset/?id=188539332"
237
mshn7.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
238
local pn8 = Instance.new("Part", v.Character.kit)
239
pn8.Name = "tail"
240
pn8.Anchored = true
241
pn8.Transparency = 0
242
pn8.Material = "Plastic"
243
pn8.CanCollide = false
244
pn8.TopSurface = 0
245
pn8.BottomSurface = 0
246
pn8.Size = Vector3.new(0.2, 0.2, 0.2)
247
pn8.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
248
local mshn8 = Instance.new("SpecialMesh", pn8)
249
mshn8.Scale = Vector3.new(-2, 2, 2)
250
mshn8.MeshId = "http://www.roblox.com/asset/?id=188635159"
251
mshn8.TextureId = "http://www.roblox.com/asset/?id=188539332"
252
mshn8.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
253
local pn9 = Instance.new("Part", v.Character.kit)
254
pn9.Name = "tail"
255
pn9.Anchored = true
256
pn9.Transparency = 0
257
pn9.Material = "Plastic"
258
pn9.CanCollide = false
259
pn9.TopSurface = 0
260
pn9.BottomSurface = 0
261
pn9.Size = Vector3.new(0.2, 0.2, 0.2)
262
pn9.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
263
local mshn9 = Instance.new("SpecialMesh", pn9)
264
mshn9.Scale = Vector3.new(-2, 2, 2)
265
mshn9.MeshId = "http://www.roblox.com/asset/?id=188635159"
266
mshn9.TextureId = "http://www.roblox.com/asset/?id=188539332"
267
mshn9.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
268
local pn0 = Instance.new("Part", v.Character.kit)
269
pn0.Name = "ears"
270
pn0.Anchored = true
271
pn0.Transparency = 0
272
pn0.Material = "Plastic"
273
pn0.CanCollide = false
274
pn0.TopSurface = 0
275
pn0.BottomSurface = 0
276
pn0.Size = Vector3.new(0.2, 0.2, 0.2)
277
pn0.CustomPhysicalProperties = PhysicalProperties.new(0.01, 0, 0, 0, 0)
278
local mshn0 = Instance.new("SpecialMesh", pn0)
279
mshn0.Scale = Vector3.new(0.5, 0.5, 0.5)
280
mshn0.MeshId = "http://www.roblox.com/asset/?id=361948302"
281
mshn0.TextureId = "http://www.roblox.com/asset/?id=50657528"
282
mshn0.VertexColor = Vector3.new(torso.BrickColor.r, torso.BrickColor.g, torso.BrickColor.b)
283
p.Anchored = false
284
local motor1 = Instance.new("Weld", p)
285
motor1.Part0 = p
286
motor1.Part1 = torso
287
motor1.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
288
motor1.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
289
pn.Anchored = false
290
local motor2 = Instance.new("Weld", pn)
291
motor2.Part0 = pn
292
motor2.Part1 = torso
293
motor2.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
294
motor2.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
295
pn3.Anchored = false
296
local motor3 = Instance.new("Weld", pn3)
297
motor3.Part0 = pn3
298
motor3.Part1 = torso
299
motor3.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
300
motor3.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
301
pn4.Anchored = false
302
local motor4 = Instance.new("Weld", pn4)
303
motor4.Part0 = pn4
304
motor4.Part1 = torso
305
motor4.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
306
motor4.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
307
pn5.Anchored = false
308
local motor5 = Instance.new("Weld", pn5)
309
motor5.Part0 = pn5
310
motor5.Part1 = torso
311
motor5.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
312
motor5.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
313
pn6.Anchored = false
314
local motor6 = Instance.new("Weld", pn6)
315
motor6.Part0 = pn6
316
motor6.Part1 = torso
317
motor6.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
318
motor6.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
319
pn7.Anchored = false
320
local motor7 = Instance.new("Weld", pn7)
321
motor7.Part0 = pn7
322
motor7.Part1 = torso
323
motor7.C0 = CFrame.new(-2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
324
motor7.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
325
pn8.Anchored = false
326
local motor8 = Instance.new("Weld", pn8)
327
motor8.Part0 = pn8
328
motor8.Part1 = torso
329
motor8.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
330
motor8.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
331
pn9.Anchored = false
332
local motor9 = Instance.new("Weld", pn9)
333
motor9.Part0 = pn9
334
motor9.Part1 = torso
335
motor9.C0 = CFrame.new(2.36, -1.8, -0.87) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
336
motor9.C1 = CFrame.new(0, -1, 0.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
337
pn0.Anchored = false
338
local motor0 = Instance.new("Weld", pn0)
339
motor0.Part0 = pn0
340
motor0.Part1 = v.Character.Head
341
motor0.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
342
game:GetService("RunService").Stepped:connect(function()
343
  Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
344
  velocity = RootPart.Velocity.y
345
  sine = sine + change
346
  local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
347
  if equipped == true or equipped == false then
348
    if RootPart.Velocity.y > 1 and hit == nil then
349
      Anim = "Jump"
350
      if attack == false then
351
        motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
352
        motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
353
        motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-110 + 0 * math.cos(sine / 25))), 0.1)
354
        motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(110 + 0 * math.cos(sine / 25))), 0.1)
355
        motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
356
        motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
357
        motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(90 + 0 * math.cos(sine / 10)), math.rad(-80 + 0 * math.cos(sine / 25))), 0.1)
358
        motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
359
        motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + 0 * math.cos(sine / 10)), math.rad(-90 + 0 * math.cos(sine / 10)), math.rad(80 + 0 * math.cos(sine / 25))), 0.1)
360
      end
361
    else
362
      if RootPart.Velocity.y < -1 and hit == nil then
363
        Anim = "Fall"
364
        if attack == false then
365
          motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
366
          motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
367
          motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
368
          motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
369
          motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
370
          motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
371
          motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(-70 + 0 * math.cos(sine / 25))), 0.1)
372
          motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
373
          motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-45 + 0 * math.cos(sine / 10)), math.rad(0 + 0 * math.cos(sine / 10)), math.rad(70 + 0 * math.cos(sine / 25))), 0.1)
374
        end
375
      else
376
        if Torsovelocity < 1 and hit ~= nil then
377
          Anim = "Idle"
378
          if attack == false then
379
            change = 1
380
            motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-5 + 5 * math.cos(sine / 50)), math.rad(0 + 5 * math.cos(sine / 80)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
381
            motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 70)), math.rad(0 + -5 * math.cos(sine / 50)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
382
            motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-5 + -5 * math.cos(sine / 80)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(-50 + 0 * math.cos(sine / 25))), 0.1)
383
            motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 40)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(-40 + 0 * math.cos(sine / 25))), 0.1)
384
            motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(0 + 5 * math.cos(sine / 60)), math.rad(0 + 5 * math.cos(sine / 65)), math.rad(40 + 0 * math.cos(sine / 25))), 0.1)
385
            motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 35)), math.rad(0 + 5 * math.cos(sine / 70)), math.rad(0 + 0 * math.cos(sine / 25))), 0.1)
386
            motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 70)), math.rad(0 + 5 * math.cos(sine / 35)), math.rad(-45 + 0 * math.cos(sine / 25))), 0.1)
387
            motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 55)), math.rad(0 + 5 * math.cos(sine / 55)), math.rad(-10 + 0 * math.cos(sine / 25))), 0.1)
388
            motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-50 + 5 * math.cos(sine / 65)), math.rad(0 + 5 * math.cos(sine / 60)), math.rad(35 + 0 * math.cos(sine / 25))), 0.1)
389
          end
390
        else
391
          if Torsovelocity > 2 and hit ~= nil then
392
            Anim = "Walk"
393
            if attack == false then
394
              motor1.C0 = clerp(motor1.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
395
              motor2.C0 = clerp(motor2.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
396
              motor3.C0 = clerp(motor3.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
397
              motor4.C0 = clerp(motor4.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
398
              motor5.C0 = clerp(motor5.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
399
              motor6.C0 = clerp(motor6.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
400
              motor7.C0 = clerp(motor7.C0, CFrame.new(-2.36, -1.8, -0.87) * angles(math.rad(-60 + 10 * math.cos(sine / 10)), math.rad(45 + 10 * math.cos(sine / 10)), math.rad(-45 + 0 * math.cos(sine / 10))), 0.1)
401
              motor8.C0 = clerp(motor8.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
402
              motor9.C0 = clerp(motor9.C0, CFrame.new(2.36, -1.8, -0.87) * angles(math.rad(-60 + -10 * math.cos(sine / 10)), math.rad(-45 + 10 * math.cos(sine / 10)), math.rad(45 + 0 * math.cos(sine / 10))), 0.1)
403
            end
404
          end
405
        end
406
      end
407
    end
408
  end
409
end)
410
	p = game.Players.LocalPlayer
411
	char = p.Character
412
	local txt = Instance.new("BillboardGui", char)
413
	txt.Adornee = char .Head
414
	txt.Name = "_status"
415
	txt.Size = UDim2.new(2, 0, 1.2, 0)
416
	txt.StudsOffset = Vector3.new(-9, 8, 0)
417
	local text = Instance.new("TextLabel", txt)
418
	text.Size = UDim2.new(10, 0, 7, 0)
419
	text.FontSize = "Size24"
420
	text.TextScaled = true
421
	text.TextTransparency = 0
422
	text.BackgroundTransparency = 1 
423
	text.TextTransparency = 0
424
	text.TextStrokeTransparency = 0
425
	text.Font = "Cartoon"
426
	text.TextStrokeColor3 = Color3.new(0,0,.50)
427
428
	v=Instance.new("Part")
429
	v.Name = "ColorBrick"
430
	v.Parent=p.Character
431
	v.FormFactor="Symmetric"
432
	v.Anchored=true
433
	v.CanCollide=false
434
	v.BottomSurface="Smooth"
435
	v.TopSurface="Smooth"
436
	v.Size=Vector3.new(10,5,3)
437
	v.Transparency=1
438
	v.CFrame=char.Torso.CFrame
439
	v.BrickColor=BrickColor.new(CV)
440
	v.Transparency=1
441
	text.TextColor3 = Color3.new(0,0,.50)
442
	v.Shape="Block"
443
	text.Text = "Chilled Fox"
444
	p = game.Players.LocalPlayer
445
	char = p.Character
446
	local txt = Instance.new("BillboardGui", char)
447
	txt.Adornee = char .Head
448
	txt.Name = "_status"
449
	txt.Size = UDim2.new(2, 0, 1.2, 0)
450
	txt.StudsOffset = Vector3.new(-9, 8, 0)
451
	local text = Instance.new("TextLabel", txt)
452
	text.Size = UDim2.new(10, 0, 7, 0)
453
	text.FontSize = "Size24"
454
	text.TextScaled = true
455
	text.TextTransparency = 0
456
	text.BackgroundTransparency = 1 
457
	text.TextTransparency = 0
458
	text.TextStrokeTransparency = 0
459
	text.Font = "Cartoon"
460
	text.TextStrokeColor3 = Color3.new(0,0,.50)
461
462
	v=Instance.new("Part")
463
	v.Name = "ColorBrick"
464
	v.Parent=p.Character
465
	v.FormFactor="Symmetric"
466
	v.Anchored=true
467
	v.CanCollide=false
468
	v.BottomSurface="Smooth"
469
	v.TopSurface="Smooth"
470
	v.Size=Vector3.new(10,5,3)
471
	v.Transparency=1
472
	v.CFrame=char.Torso.CFrame
473
	v.BrickColor=BrickColor.new(CV)
474
	v.Transparency=1
475
	text.TextColor3 = Color3.new(0,0,.50)
476
	v.Shape="Block"
477
	text.Text = "Chilled Fox"
478
Player=game:GetService("Players").LocalPlayer
479
local WEEB = Instance.new("Sound",Torso)
480
WEEB.Volume=0
481
WEEB.Pitch=0
482
WEEB.SoundId="http://www.roblox.com/asset/?id=1009682087"
483
WEEB.Looped=true
484
wait() 
485
WEEB:play()
486
Character=Player.Character 
487
PlayerGui=Player.PlayerGui 
488
Backpack=Player.Backpack 
489
Torso=Character.Torso 
490
Head=Character.Head 
491
Humanoid=Character.Humanoid
492
m=Instance.new('Model',Character)
493
LeftArm=Character["Left Arm"] 
494
LeftLeg=Character["Left Leg"] 
495
RightArm=Character["Right Arm"] 
496
RightLeg=Character["Right Leg"] 
497
LS=Torso["Left Shoulder"] 
498
LH=Torso["Left Hip"] 
499
RS=Torso["Right Shoulder"] 
500
RH=Torso["Right Hip"] 
501
Neck=Torso.Neck
502
it=Instance.new
503
attacktype=1
504
vt=Vector3.new
505
cf=CFrame.new
506
euler=CFrame.fromEulerAnglesXYZ
507
angles=CFrame.Angles
508
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
509
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
510
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
511
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
512
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
513
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
514
RootPart=Character.HumanoidRootPart
515
RootJoint=RootPart.RootJoint
516
RootCF=euler(-1.57,0,3.14)
517
attack = false 
518
attackdebounce = false 
519
deb=false
520
equipped=true
521
hand=false
522
MMouse=nil
523
combo=0
524
mana=0
525
cam=workspace.CurrentCamera
526
RocketTarget=nil
527
Targetting=false
528
trispeed=.2
529
attackmode='none'
530
local idle=0
531
local Anim="Idle"
532
local Effects={}
533
local gun=false
534
local shoot=false
535
local issprinting=false
536
local memeing=false
537
player=nil 
538
mouse=Player:GetMouse()
539
--save shoulders 
540
RSH, LSH=nil, nil 
541
--welds 
542
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
543
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
544
LH=Torso["Left Hip"]
545
RH=Torso["Right Hip"]
546
TorsoColor=Torso.BrickColor
547
function NoOutline(Part)
548
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
549
end
550
player=Player 
551
ch=Character
552
RSH=ch.Torso["Right Shoulder"] 
553
LSH=ch.Torso["Left Shoulder"] 
554
-- 
555
RSH.Parent=nil 
556
LSH.Parent=nil 
557
-- 
558
RW.Name="Right Shoulder"
559
RW.Part0=ch.Torso 
560
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
561
RW.C1=cf(0, 0.5, 0) 
562
RW.Part1=ch["Right Arm"] 
563
RW.Parent=ch.Torso 
564
-- 
565
LW.Name="Left Shoulder"
566
LW.Part0=ch.Torso 
567
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
568
LW.C1=cf(0, 0.5, 0) 
569
LW.Part1=ch["Left Arm"] 
570
LW.Parent=ch.Torso 
571
572
if Humanoid:findFirstChild("Animate") then
573
  Humanoid:findFirstChild("Animate"):Destroy()
574
elseif Character:findFirstChild("Animate") then
575
  Character:findFirstChild("Animate"):Destroy()
576
end
577
578
579
local WEEB = Instance.new("Sound",Torso)
580
WEEB.Volume=0
581
WEEB.Pitch=0
582
WEEB.SoundId="http://www.roblox.com/asset/?id=1120289188"
583
WEEB.Looped=true
584
wait() 
585
WEEB:play() 
586
587
588
local Stats=Instance.new("BoolValue")
589
Stats.Name="Stats"
590
Stats.Parent=Character
591
local Atk=Instance.new("NumberValue")
592
Atk.Name="Damage"
593
Atk.Parent=Stats
594
Atk.Value=1
595
local Def=Instance.new("NumberValue")
596
Def.Name="Defense"
597
Def.Parent=Stats
598
Def.Value=1
599
local Speed=Instance.new("NumberValue")
600
Speed.Name="Speed"
601
Speed.Parent=Stats
602
Speed.Value=1
603
local Mvmt=Instance.new("NumberValue")
604
Mvmt.Name="Movement"
605
Mvmt.Parent=Stats
606
Mvmt.Value=1
607
608
609
local donum=0
610
611
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
612
local fp=it("Part")
613
fp.formFactor=formfactor 
614
fp.Parent=parent
615
fp.Reflectance=reflectance
616
fp.Transparency=transparency
617
fp.CanCollide=false 
618
fp.Locked=true
619
fp.BrickColor=brickcolor
620
fp.Name=name
621
fp.Size=size
622
fp.Position=Torso.Position 
623
NoOutline(fp)
624
fp.Material="SmoothPlastic"
625
fp:BreakJoints()
626
return fp 
627
end 
628
629
function part2(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
630
	local fp = Instance.new("Part")
631
		fp.formFactor = formfactor
632
		fp.Parent = parent
633
		fp.Reflectance = reflectance
634
		fp.Transparency = transparency
635
		fp.CanCollide = false
636
		fp.Locked = true
637
		fp.BrickColor = BrickColor.new(tostring(brickcolor))
638
		fp.Name = name
639
		fp.Size = size
640
		fp.Position = Character.Torso.Position
641
		fp.Material = material
642
	
643
	NoOutline(fp)
644
	return fp
645
end
646
 
647
function mesh(Mesh,part,meshtype,meshid,offset,scale)
648
local mesh=it(Mesh) 
649
mesh.Parent=part
650
if Mesh=="SpecialMesh" then
651
mesh.MeshType=meshtype
652
mesh.MeshId=meshid
653
end
654
mesh.Offset=offset
655
mesh.Scale=scale
656
return mesh
657
end
658
 
659
function weld(parent,part0,part1,c0)
660
local weld=it("Weld") 
661
weld.Parent=parent
662
weld.Part0=part0 
663
weld.Part1=part1 
664
weld.C0=c0
665
return weld
666
end
667
668
function weld2(parent, part0, part1, c0, c1)
669
	local Weld = Instance.new("Weld")
670
		Weld.Parent = parent
671
		Weld.Part0 = part0
672
		Weld.Part1 = part1
673
		Weld.C0 = c0
674
		Weld.C1 = c1
675
	
676
	return Weld
677
end
678
 
679
local Color1=Torso.BrickColor
680
681
local bodvel=Instance.new("BodyVelocity")
682
local bg=Instance.new("BodyGyro")
683
684
ArtificialHB = Instance.new("BindableEvent", script)
685
ArtificialHB.Name = "Heartbeat"
686
687
script:WaitForChild("Heartbeat")
688
689
frame = 1 / 60 
690
tf = 0
691
allowframeloss = true
692
tossremainder = false
693
lastframe = tick()
694
script.Heartbeat:Fire()
695
696
game:GetService("RunService").Heartbeat:connect(function(s, p)
697
    tf = tf + s
698
    if tf >= frame then
699
        if allowframeloss then
700
            script.Heartbeat:Fire()
701
            lastframe = tick()
702
        else
703
            for i = 1, math.floor(tf / frame) do
704
                script.Heartbeat:Fire()
705
            end
706
            lastframe = tick()
707
        end
708
        if tossremainder then
709
            tf = 0
710
        else
711
            tf = tf - frame * math.floor(tf / frame)
712
        end
713
    end
714
end)
715
716
function swait(num)
717
    if num == 0 or num == nil then
718
        ArtificialHB.Event:wait()
719
    else
720
        for i = 0, num do
721
            ArtificialHB.Event:wait()
722
        end
723
    end
724
end
725
 
726
 
727
so = function(id,par,vol,pit) 
728
coroutine.resume(coroutine.create(function()
729
local sou = Instance.new("Sound",par or workspace)
730
sou.Volume=vol
731
sou.Pitch=pit or 1
732
sou.SoundId=id
733
swait() 
734
sou:play() 
735
game:GetService("Debris"):AddItem(sou,6)
736
end))
737
end
738
 
739
function clerp(a,b,t) 
740
local qa = {QuaternionFromCFrame(a)}
741
local qb = {QuaternionFromCFrame(b)} 
742
local ax, ay, az = a.x, a.y, a.z 
743
local bx, by, bz = b.x, b.y, b.z
744
local _t = 1-t
745
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
746
end 
747
 
748
function QuaternionFromCFrame(cf) 
749
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
750
local trace = m00 + m11 + m22 
751
if trace > 0 then 
752
local s = math.sqrt(1 + trace) 
753
local recip = 0.5/s 
754
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
755
else 
756
local i = 0 
757
if m11 > m00 then
758
i = 1
759
end
760
if m22 > (i == 0 and m00 or m11) then 
761
i = 2 
762
end 
763
if i == 0 then 
764
local s = math.sqrt(m00-m11-m22+1) 
765
local recip = 0.5/s 
766
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
767
elseif i == 1 then 
768
local s = math.sqrt(m11-m22-m00+1) 
769
local recip = 0.5/s 
770
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
771
elseif i == 2 then 
772
local s = math.sqrt(m22-m00-m11+1) 
773
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
774
end 
775
end 
776
end
777
 
778
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
779
local xs, ys, zs = x + x, y + y, z + z 
780
local wx, wy, wz = w*xs, w*ys, w*zs 
781
local xx = x*xs 
782
local xy = x*ys 
783
local xz = x*zs 
784
local yy = y*ys 
785
local yz = y*zs 
786
local zz = z*zs 
787
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)) 
788
end
789
 
790
function QuaternionSlerp(a, b, t) 
791
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
792
local startInterp, finishInterp; 
793
if cosTheta >= 0.0001 then 
794
if (1 - cosTheta) > 0.0001 then 
795
local theta = math.acos(cosTheta) 
796
local invSinTheta = 1/math.sin(theta) 
797
startInterp = math.sin((1-t)*theta)*invSinTheta 
798
finishInterp = math.sin(t*theta)*invSinTheta  
799
else 
800
startInterp = 1-t 
801
finishInterp = t 
802
end 
803
else 
804
if (1+cosTheta) > 0.0001 then 
805
local theta = math.acos(-cosTheta) 
806
local invSinTheta = 1/math.sin(theta) 
807
startInterp = math.sin((t-1)*theta)*invSinTheta 
808
finishInterp = math.sin(t*theta)*invSinTheta 
809
else 
810
startInterp = t-1 
811
finishInterp = t 
812
end 
813
end 
814
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 
815
end
816
817
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
818
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
819
end 
820
821
Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) --bm1
822
	if hit.Parent == nil then
823
		return
824
	end
825
	local h = hit.Parent:FindFirstChild("Humanoid")
826
	for _, v in pairs(hit.Parent:children()) do
827
		if v:IsA("Humanoid") then
828
			h = v
829
		end
830
	end
831
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
832
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
833
			if hit.Parent.DebounceHit.Value == true then
834
				return
835
			end
836
		end
837
		if h.MaxHealth >= math.huge then
838
			hit:BreakJoints()
839
		end
840
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
841
                        return
842
                end]]
843
--                        hs(hit,1.2) 
844
		local c = Instance.new("ObjectValue")
845
			c.Name = "creator"
846
			c.Value = game:service("Players").LocalPlayer
847
			c.Parent = h
848
		
849
		game:GetService("Debris"):AddItem(c, .5)
850
		if HitSound ~= nil and HitPitch ~= nil then
851
			so(HitSound, hit, 1, HitPitch) 
852
		end
853
		local Damage = math.random(minim, maxim)
854
--                h:TakeDamage(Damage)
855
		local blocked = false
856
		local block = hit.Parent:findFirstChild("Block")
857
		if block ~= nil then
858
			if block.className == "IntValue" then
859
				if block.Value > 0 then
860
					blocked = true
861
					block.Value = block.Value - 1
862
					print(block.Value)
863
				end
864
			end
865
		end
866
		if blocked == false then
867
--                h:TakeDamage(Damage)
868
			h.Health = h.Health - Damage
869
			if Damage ~= 0 then
870
			ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
871
			end
872
		else
873
			h.Health = h.Health - (Damage / 2)
874
			if Damage ~=0 then
875
			ShowDamage2((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Institutional white").Color)
876
			end
877
		end
878
		if Type == "Knockdown" then
879
			local hum = hit.Parent.Humanoid
880
			hum.PlatformStand = true
881
			coroutine.resume(coroutine.create(function(HHumanoid)
882
				swait(1)
883
				HHumanoid.PlatformStand = false
884
			end), hum)
885
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
886
			local bodvol = Instance.new("BodyVelocity")
887
				bodvol.velocity = angle * knockback
888
				bodvol.P = 5000
889
				bodvol.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
890
				bodvol.Parent = hit
891
			
892
			local rl = Instance.new("BodyAngularVelocity")
893
				rl.P = 3000
894
				rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
895
				rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
896
				rl.Parent = hit
897
			
898
			game:GetService("Debris"):AddItem(bodvol, .5)
899
			game:GetService("Debris"):AddItem(rl, .5)
900
		elseif Type == "Plat" then
901
			local hum = hit.Parent.Humanoid
902
			hum.PlatformStand = true
903
			coroutine.resume(coroutine.create(function(HHumanoid)
904
				swait(2)
905
				HHumanoid.PlatformStand = false
906
			end), hum)
907
908
			local rl = Instance.new("BodyAngularVelocity")
909
				rl.P = 3000
910
				rl.maxTorque = Vector3.new(100, 100, 100) * 500
911
				rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
912
				rl.Parent = hit
913
				
914
			game:GetService("Debris"):AddItem(rl, .5)
915
		elseif Type == "Normal" then
916
			local vp = Instance.new("BodyVelocity")
917
				vp.P = 500
918
				vp.maxForce = Vector3.new(math.huge, 0, math.huge)
919
				vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
920
			
921
			if knockback > 0 then
922
				vp.Parent = hit.Parent.Torso
923
			end
924
			game:GetService("Debris"):AddItem(vp, .5)
925
		elseif Type == "Up" then
926
			local bodyVelocity = Instance.new("BodyVelocity")
927
				bodyVelocity.velocity = vt(0, 20, 0)
928
				bodyVelocity.P = 5000
929
				bodyVelocity.maxForce = Vector3.new(8e+003, 8e+003, 8e+003)
930
				bodyVelocity.Parent = hit
931
			
932
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
933
		elseif Type == "Snare" then
934
			local bp = Instance.new("BodyPosition")
935
				bp.P = 2000
936
				bp.D = 100
937
				bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
938
				bp.position = hit.Parent.Torso.Position
939
				bp.Parent = hit.Parent.Torso
940
			game:GetService("Debris"):AddItem(bp, 1)
941
942
		elseif Type == "Freeze" then
943
			local BodPos = Instance.new("BodyPosition")
944
				BodPos.P = 50000
945
				BodPos.D = 1000
946
				BodPos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
947
				BodPos.position = hit.Parent.Torso.Position
948
				BodPos.Parent = hit.Parent.Torso
949
			
950
			local BodGy = Instance.new("BodyGyro") 
951
				BodGy.maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge 
952
				BodGy.P = 20e+003
953
				BodGy.Parent = hit.Parent.Torso
954
				BodGy.cframe = hit.Parent.Torso.CFrame
955
			
956
			hit.Parent.Torso.Anchored = true
957
			coroutine.resume(coroutine.create(function(Part) 
958
				swait(1.5)
959
				Part.Anchored = false
960
			end), hit.Parent.Torso)
961
			game:GetService("Debris"):AddItem(BodPos, 3)
962
			game:GetService("Debris"):AddItem(BodGy, 3)
963
		
964
		
965
		        elseif Type=="Target" then
966
                if Targetting==false then
967
                ZTarget=hit.Parent.Torso
968
                coroutine.resume(coroutine.create(function(Part) 
969
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)  
970
                swait(5)
971
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
972
                end),ZTarget)
973
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
974
                targetgui=Instance.new("BillboardGui")
975
                targetgui.Parent=ZTarget
976
                targetgui.Size=UDim2.new(10,100,10,100)
977
                targ=Instance.new("ImageLabel")
978
                targ.Parent=targetgui
979
                targ.BackgroundTransparency=1
980
                targ.Image="rbxassetid://4834067"
981
                targ.Size=UDim2.new(1,0,1,0)
982
                cam.CameraType="Scriptable"
983
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
984
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
985
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
986
                Targetting=true
987
                RocketTarget=ZTarget
988
                for i=1,Property do
989
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
990
                swait()
991
                end
992
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
993
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
994
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
995
                end
996
                Targetting=false
997
                RocketTarget=nil
998
                targetgui.Parent=nil
999
                cam.CameraType="Custom"
1000
                end	
1001
		end		
1002
		
1003
		local debounce = Instance.new("BoolValue")
1004
		debounce.Name = "DebounceHit"
1005
		debounce.Parent = hit.Parent
1006
		debounce.Value = true
1007
		game:GetService("Debris"):AddItem(debounce, Delay)
1008
		c = Instance.new("ObjectValue")
1009
		c.Name = "creator"
1010
		c.Value = Player
1011
		c.Parent = h
1012
		game:GetService("Debris"):AddItem(c, .5)
1013
	end
1014
end
1015
1016
function ShowDamage2(Pos, Text, Time, Color)
1017
	local Rate = (1 / 30)
1018
	local Pos = (Pos or Vector3.new(0, 0, 0))
1019
	local Text = (Text or "")
1020
	local Time = (Time or 2)
1021
	local Color = (Color or Color3.new(1, 0, 0))
1022
	local EffectPart = part2("Custom", workspace, "Neon", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
1023
	EffectPart.Anchored = true
1024
	local BillboardGui = Instance.new("BillboardGui")
1025
		BillboardGui.Size = UDim2.new(3, 0, 3, 0)
1026
		BillboardGui.Adornee = EffectPart
1027
		BillboardGui.Parent = EffectPart
1028
	
1029
	local TextLabel = Instance.new("TextLabel")
1030
		TextLabel.BackgroundTransparency = 1
1031
		TextLabel.Size = UDim2.new(1, 0, 1, 0)
1032
		TextLabel.Text = Text
1033
		TextLabel.TextColor3 = Color
1034
		TextLabel.TextScaled = true
1035
		TextLabel.Font = Enum.Font.ArialBold
1036
		TextLabel.Parent = BillboardGui
1037
	
1038
	game.Debris:AddItem(EffectPart, (Time + 0.1))
1039
	EffectPart.Parent = game:GetService("Workspace")
1040
	delay(0, function()
1041
		local Frames = (Time / Rate)
1042
		for Frame = 1, Frames do
1043
			wait(Rate)
1044
			local Percent = (Frame / Frames)
1045
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1046
			TextLabel.TextTransparency = Percent
1047
		end
1048
		if EffectPart and EffectPart.Parent then
1049
			EffectPart:Destroy()
1050
		end
1051
	end)
1052
end
1053
1054
function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
1055
	local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1056
	prt.Anchored = true
1057
	prt.CFrame = cframe
1058
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
1059
	coroutine.resume(coroutine.create(function() 
1060
		for i = 0, 1, 0.05 do
1061
			wait()
1062
			prt.Transparency = i
1063
			msh.Scale = msh.Scale + vt(x2, y2, z2)
1064
		end
1065
		prt.Parent = nil
1066
	end))
1067
end
1068
1069
function weld(parent, part0, part1, c0, c1)
1070
	local Weld = Instance.new("Weld")
1071
		Weld.Parent = parent
1072
		Weld.Part0 = part0
1073
		Weld.Part1 = part1
1074
		Weld.C0 = c0
1075
		Weld.C1 = c1
1076
	
1077
	return Weld
1078
end
1079
1080
function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
1081
	for _, c in pairs(workspace:children()) do
1082
		local hum = c:findFirstChild("Humanoid")
1083
		if hum ~= nil then
1084
			local head = c:findFirstChild("Torso")
1085
			if head ~= nil then
1086
				local targ = head.Position - Part.Position
1087
				local mag = targ.magnitude
1088
				if mag <= magni and c.Name ~= Player.Name then 
1089
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
1090
				end
1091
			end
1092
		end
1093
	end
1094
end
1095
1096
function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1097
	local prt = part2(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1098
	prt.Anchored = true
1099
	prt.CFrame = cframe
1100
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1101
	game:GetService("Debris"):AddItem(prt, 2)
1102
	coroutine.resume(coroutine.create(function(Part, Mesh) 
1103
		for i = 0, 1, delay do
1104
			swait()
1105
			Part.CFrame = Part.CFrame
1106
			Part.Transparency = i
1107
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1108
		end
1109
		Part.Parent = nil
1110
	end), prt, msh)
1111
end
1112
1113
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1114
	local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
1115
	prt.Anchored=true
1116
	prt.CFrame=cframe
1117
	local msh = mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1118
	game:GetService("Debris"):AddItem(prt,2)
1119
	coroutine.resume(coroutine.create(function(Part,Mesh) 
1120
		for i=0,1,delay do
1121
			swait()
1122
			Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1123
			Part.Transparency=i
1124
			Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1125
		end
1126
		Part.Parent=nil
1127
	end),prt,msh)
1128
end 
1129
1130
1131
	user=game:service'Players'.localPlayer
1132
	char=user.Character
1133
	mouse=user:GetMouse()
1134
	
1135
1136
local function weldBetween(a, b, name)
1137
    local weld = Instance.new("ManualWeld")
1138
    weld.Part0 = a
1139
    weld.Part1 = b
1140
    weld.C0 = CFrame.new()
1141
    weld.C1 = b.CFrame:inverse() * a.CFrame
1142
    weld.Parent = a
1143
	weld.Name=name or 'weldb1'
1144
	weld.Parent=m
1145
    return weld;
1146
end
1147
1148
1149
player=game.Players.localPlayer
1150
char=player.Character
1151
Effects={}
1152
vt=Vector3.new
1153
cf=CFrame.new
1154
euler=CFrame.fromEulerAnglesXYZ
1155
m=Instance.new("Model",char)
1156
1157
mouse.Button1Down:connect(function()
1158
print("NEIN")
1159
end)
1160
1161
local mdel = false
1162
1163
mouse.KeyDown:connect(function(k)
1164
	k=k:lower()
1165
	if k=='f' then
1166
		if attack==false then
1167
			ToggleMemes()
1168
		end
1169
	end
1170
end)
1171
1172
function ToggleMemes()
1173
	if memeing == true and mdel == false then
1174
		memeing = false
1175
		issprinting=false
1176
		Humanoid.WalkSpeed = 15
1177
		mdel = true
1178
		for i = 1,0,-0.1 do
1179
			wait(0.05)
1180
			WEEB.Volume = i
1181
		end
1182
		WEEB.Pitch = 0
1183
		mdel = false
1184
	elseif memeing == false and mdel == false then
1185
		memeing = true
1186
		issprinting=true
1187
		Humanoid.WalkSpeed=13
1188
		WEEB.Pitch = 1
1189
		mdel = true
1190
		for i = 0,1,.1 do
1191
			wait(0.05)
1192
			WEEB.Volume = i
1193
		end
1194
		mdel = false
1195
	end
1196
end
1197
1198
local function CFrameFromTopBack(at, top, back)
1199
local right = top:Cross(back)
1200
return CFrame.new(at.x, at.y, at.z,
1201
right.x, top.x, back.x,
1202
right.y, top.y, back.y,
1203
right.z, top.z, back.z)
1204
end
1205
1206
function Triangle(a, b, c)
1207
local edg1 = (c-a):Dot((b-a).unit)
1208
local edg2 = (a-b):Dot((c-b).unit)
1209
local edg3 = (b-c):Dot((a-c).unit)
1210
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1211
a, b, c = a, b, c
1212
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1213
a, b, c = b, c, a
1214
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1215
a, b, c = c, a, b
1216
else
1217
assert(false, "unreachable")
1218
end
1219
 
1220
local len1 = (c-a):Dot((b-a).unit)
1221
local len2 = (b-a).magnitude - len1
1222
local width = (a + (b-a).unit*len1 - c).magnitude
1223
 
1224
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1225
 
1226
local list = {}
1227
 
1228
if len1 > 0.01 then
1229
local w1 = Instance.new('WedgePart', m)
1230
game:GetService("Debris"):AddItem(w1,5)
1231
w1.Material = "SmoothPlastic"
1232
w1.FormFactor = 'Custom'
1233
w1.BrickColor = TorsoColor
1234
w1.Transparency = 0
1235
w1.Reflectance = 0
1236
w1.Material = "SmoothPlastic"
1237
w1.CanCollide = false
1238
NoOutline(w1)
1239
local sz = Vector3.new(0.2, width, len1)
1240
w1.Size = sz
1241
local sp = Instance.new("SpecialMesh",w1)
1242
sp.MeshType = "Wedge"
1243
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1244
w1:BreakJoints()
1245
w1.Anchored = true
1246
w1.Parent = workspace
1247
w1.Transparency = 0.7
1248
table.insert(Effects,{w1,"Disappear",.01})
1249
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1250
table.insert(list,w1)
1251
end
1252
 
1253
if len2 > 0.01 then
1254
local w2 = Instance.new('WedgePart', m)
1255
game:GetService("Debris"):AddItem(w2,5)
1256
w2.Material = "SmoothPlastic"
1257
w2.FormFactor = 'Custom'
1258
w2.BrickColor = TorsoColor
1259
w2.Transparency = 0
1260
w2.Reflectance = 0
1261
w2.Material = "SmoothPlastic"
1262
w2.CanCollide = false
1263
NoOutline(w2)
1264
local sz = Vector3.new(0.2, width, len2)
1265
w2.Size = sz
1266
local sp = Instance.new("SpecialMesh",w2)
1267
sp.MeshType = "Wedge"
1268
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1269
w2:BreakJoints()
1270
w2.Anchored = true
1271
w2.Parent = workspace
1272
w2.Transparency = 0.7
1273
table.insert(Effects,{w2,"Disappear",.01})
1274
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1275
table.insert(list,w2)
1276
end
1277
return unpack(list)
1278
end
1279
1280
function NoOutline(Part)
1281
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1282
end
1283
1284
local sine = 0
1285
local change = 1
1286
local val = 0
1287
1288
if #Effects>0 then
1289
--table.insert(Effects,{prt,"Block1",delay})
1290
for e=1,#Effects do
1291
if Effects[e]~=nil then
1292
--for j=1,#Effects[e] do
1293
local Thing=Effects[e]
1294
if Thing~=nil then
1295
local Part=Thing[1]
1296
local Mode=Thing[2]
1297
local Delay=Thing[3]
1298
local IncX=Thing[4]
1299
local IncY=Thing[5]
1300
local IncZ=Thing[6]
1301
if Thing[1].Transparency<=1 then
1302
if Thing[2]=="Block1" then
1303
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1304
Mesh=Thing[1].Mesh
1305
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1306
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1307
elseif Thing[2]=="Cylinder" then
1308
Mesh=Thing[1].Mesh
1309
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1310
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1311
elseif Thing[2]=="Blood" then
1312
Mesh=Thing[1].Mesh
1313
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
1314
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
1315
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1316
elseif Thing[2]=="Elec" then
1317
Mesh=Thing[1].Mesh
1318
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
1319
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1320
elseif Thing[2]=="Disappear" then
1321
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1322
end
1323
else
1324
Part.Parent=nil
1325
table.remove(Effects,e)
1326
end
1327
end
1328
--end
1329
end
1330
end
1331
end
1332
1333
cn = CFrame.new
1334
local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1335
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
1336
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
1337
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
1338
1339
local mananum=0
1340
while true do
1341
swait()
1342
sine = sine + change
1343
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
1344
local velderp=RootPart.Velocity.y
1345
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1346
if equipped==true or equipped==false then
1347
if attack==false then
1348
idle=idle+1
1349
else
1350
idle=0
1351
end
1352
if idle>=500 then
1353
if attack==false then
1354
--Sheath()
1355
end
1356
end
1357
if RootPart.Velocity.y > 1 and hitfloor==nil then 
1358
Anim="Jump"
1359
if attack==false then
1360
Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
1361
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
1362
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
1363
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
1364
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1365
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
1366
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1367
RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.3)
1368
LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.3)
1369
end
1370
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
1371
Anim="Fall"
1372
if attack==false then
1373
Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
1374
Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
1375
RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
1376
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
1377
RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1378
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
1379
LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
1380
RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.3)
1381
LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.3)
1382
end
1383
elseif torvel<1 and hitfloor~=nil then
1384
Anim="Idle"
1385
if attack==false then
1386
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .3)
1387
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3)
1388
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
1389
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.3)
1390
RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
1391
LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
1392
end
1393
elseif torvel>2 and torvel<22 and hitfloor~=nil then
1394
Anim="Walk"
1395
if attack==false then
1396
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 5)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 10))), .2)
1397
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
1398
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10 * math.cos(sine / 13)), math.rad(0), math.rad(4 * math.cos(sine / 13))), .2)
1399
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 13)), math.rad(0), math.rad(4 * math.cos(sine / 13))), .2)
1400
RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 7))), .3)
1401
LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 7))), .3)
1402
end
1403
elseif torvel>=22 and issprinting==true and hitfloor~=nil then
1404
Anim="Run"
1405
if attack==false then
1406
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0.5, -0.05 + .1 * 2.5 * math.cos(sine / 2)) * angles(math.rad(50), math.rad(2) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 2))), .2)
1407
Torso.Neck.C0 = clerp(Torso.Neck.C0, cn(0, 1.1, -0.2, -1, -0, -0, 0, 0, 1, 0, 1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
1408
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.4) * angles(math.rad(75 * math.cos(6 / 2)), math.rad(-5), math.rad(25 * math.cos(sine / 3))), .2)
1409
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.4) * angles(math.rad(75 * math.cos(6 / 2)), math.rad(5), math.rad(25 * math.cos(sine / 3))), .2)
1410
RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
1411
LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
1412
end
1413
end
1414
end
1415
end