View difference between Paste ID: uyxae9GW and BE5ZcWY9
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Your fucking script is assholic use h/ dumbass") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("Execute the c00l Kidd stuff - datlol 2016")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
7
8
Player=game:GetService("Players").LocalPlayer
9
Character=Player.Character 
10
PlayerGui=Player.PlayerGui
11
Backpack=Player.Backpack 
12
Torso=Character.Torso 
13
Head=Character.Head 
14
Humanoid=Character.Humanoid
15
m=Instance.new('Model',Character)
16
LeftArm=Character["Left Arm"] 
17
LeftLeg=Character["Left Leg"] 
18
RightArm=Character["Right Arm"] 
19
RightLeg=Character["Right Leg"] 
20
LS=Torso["Left Shoulder"] 
21
LH=Torso["Left Hip"] 
22
RS=Torso["Right Shoulder"] 
23
RH=Torso["Right Hip"] 
24
Face = Head.face
25
Neck=Torso.Neck
26
it=Instance.new
27
attacktype=1
28
vt=Vector3.new
29
cf=CFrame.new
30
euler=CFrame.fromEulerAnglesXYZ
31
angles=CFrame.Angles
32
cloaked=false
33
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
34
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
35
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
36
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
37
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
38
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
39
RootPart=Character.HumanoidRootPart
40
RootJoint=RootPart.RootJoint
41
RootCF=euler(-1.57,0,3.14)
42
attack = false 
43
attackdebounce = false 
44
deb=false
45
equipped=true
46
hand=false
47
MMouse=nil
48
combo=0
49
mana=0
50
trispeed=.2
51
attackmode='none'
52
local idle=0
53
local Anim="Idle"
54
local Effects={}
55
local gun=false
56
local shoot=false
57
player=nil 
58
mana=0
59
60
mouse=Player:GetMouse()
61
--save shoulders 
62
RSH, LSH=nil, nil 
63
--welds 
64
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
65
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
66
LH=Torso["Left Hip"]
67
RH=Torso["Right Hip"]
68
TorsoColor=Torso.BrickColor
69
function NoOutline(Part)
70
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
71
end
72
player=Player 
73
ch=Character
74
RSH=ch.Torso["Right Shoulder"] 
75
LSH=ch.Torso["Left Shoulder"] 
76
-- 
77
RSH.Parent=nil 
78
LSH.Parent=nil 
79
-- 
80
RW.Name="Right Shoulder"
81
RW.Part0=ch.Torso 
82
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
83
RW.C1=cf(0, 0.5, 0) 
84
RW.Part1=ch["Right Arm"] 
85
RW.Parent=ch.Torso 
86
-- 
87
LW.Name="Left Shoulder"
88
LW.Part0=ch.Torso 
89
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
90
LW.C1=cf(0, 0.5, 0) 
91
LW.Part1=ch["Left Arm"] 
92
LW.Parent=ch.Torso 
93
94
        Player=game:GetService('Players').LocalPlayer
95
        Character=Player.Character
96
        Mouse=Player:GetMouse()
97
        m=Instance.new('Model',Character)
98
99
100
        local function weldBetween(a, b)
101
            local weldd = Instance.new("ManualWeld")
102
            weldd.Part0 = a
103
            weldd.Part1 = b
104
            weldd.C0 = CFrame.new()
105
            weldd.C1 = b.CFrame:inverse() * a.CFrame
106
            weldd.Parent = a
107
            return weldd
108
        end
109
        
110
        function swait(num)
111
    if num==0 or num==nil then
112
    game:service'RunService'.Stepped:wait(0)
113
    else
114
    for i=0,num do
115
    game:service'RunService'.Stepped:wait(0)
116
    end
117
    end
118
            end
119
        
120
        function nooutline(part)
121
                part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
122
        end
123
        
124
        function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
125
                local fp=it("Part")
126
                fp.formFactor=formfactor
127
                fp.Parent=parent
128
                fp.Reflectance=reflectance
129
                fp.Transparency=transparency
130
                fp.CanCollide=false
131
                fp.Locked=true
132
                fp.BrickColor=BrickColor.new(tostring(brickcolor))
133
                fp.Name=name
134
                fp.Size=size
135
                fp.Position=Character.Torso.Position
136
                nooutline(fp)
137
                fp.Material=material
138
                fp:BreakJoints()
139
                return fp
140
        end
141
        
142
        function mesh(Mesh,part,meshtype,meshid,offset,scale)
143
                local mesh=it(Mesh)
144
                mesh.Parent=part
145
                if Mesh=="SpecialMesh" then
146
                        mesh.MeshType=meshtype
147
                        mesh.MeshId=meshid
148
                end
149
                mesh.Offset=offset
150
                mesh.Scale=scale
151
                return mesh
152
        end
153
        
154
        function weld(parent,part0,part1,c0,c1)
155
                local weld=it("Weld")
156
                weld.Parent=parent
157
                weld.Part0=part0
158
                weld.Part1=part1
159
                weld.C0=c0
160
                weld.C1=c1
161
                return weld
162
        end
163
        
164
        
165
local function CFrameFromTopBack(at, top, back)
166
local right = top:Cross(back)
167
return CFrame.new(at.x, at.y, at.z,
168
right.x, top.x, back.x,
169
right.y, top.y, back.y,
170
right.z, top.z, back.z)
171
end
172
173
function Triangle(a, b, c)
174
local edg1 = (c-a):Dot((b-a).unit)
175
local edg2 = (a-b):Dot((c-b).unit)
176
local edg3 = (b-c):Dot((a-c).unit)
177
if edg1 <= (b-a).magnitude and edg1 >= 0 then
178
a, b, c = a, b, c
179
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
180
a, b, c = b, c, a
181
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
182
a, b, c = c, a, b
183
else
184
assert(false, "unreachable")
185
end
186
 
187
local len1 = (c-a):Dot((b-a).unit)
188
local len2 = (b-a).magnitude - len1
189
local width = (a + (b-a).unit*len1 - c).magnitude
190
 
191
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
192
 
193
local list = {}
194
195
local TrailColor = ("Dark grey")
196
 
197
if len1 > 0.01 then
198
local w1 = Instance.new('WedgePart', m)
199
game:GetService("Debris"):AddItem(w1,5)
200
w1.Material = "SmoothPlastic"
201
w1.FormFactor = 'Custom'
202
w1.BrickColor = BrickColor.new(TrailColor)
203
w1.Transparency = 0
204
w1.Reflectance = 0
205
w1.Material = "SmoothPlastic"
206
w1.CanCollide = false
207
NoOutline(w1)
208
local sz = Vector3.new(0.2, width, len1)
209
w1.Size = sz
210
local sp = Instance.new("SpecialMesh",w1)
211
sp.MeshType = "Wedge"
212
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
213
w1:BreakJoints()
214
w1.Anchored = true
215
w1.Parent = workspace
216
w1.Transparency = 0.7
217
table.insert(Effects,{w1,"Disappear",.01})
218
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
219
table.insert(list,w1)
220
end
221
 
222
if len2 > 0.01 then
223
local w2 = Instance.new('WedgePart', m)
224
game:GetService("Debris"):AddItem(w2,5)
225
w2.Material = "SmoothPlastic"
226
w2.FormFactor = 'Custom'
227
w2.BrickColor = BrickColor.new(TrailColor)
228
w2.Transparency = 0
229
w2.Reflectance = 0
230
w2.Material = "SmoothPlastic"
231
w2.CanCollide = false
232
NoOutline(w2)
233
local sz = Vector3.new(0.2, width, len2)
234
w2.Size = sz
235
local sp = Instance.new("SpecialMesh",w2)
236
sp.MeshType = "Wedge"
237
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
238
w2:BreakJoints()
239
w2.Anchored = true
240
w2.Parent = workspace
241
w2.Transparency = 0.7
242
table.insert(Effects,{w2,"Disappear",.01})
243
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
244
table.insert(list,w2)
245
end
246
return unpack(list)
247
end
248
        
249
        
250
so = function(id,par,vol,pit) 
251
coroutine.resume(coroutine.create(function()
252
local sou = Instance.new("Sound",par or workspace)
253
sou.Volume=vol
254
sou.Pitch=pit or 1
255
sou.SoundId=id
256
swait() 
257
sou:play() 
258
game:GetService("Debris"):AddItem(sou,6)
259
end))
260
end
261
 
262
function clerp(a,b,t) 
263
local qa = {QuaternionFromCFrame(a)}
264
local qb = {QuaternionFromCFrame(b)} 
265
local ax, ay, az = a.x, a.y, a.z 
266
local bx, by, bz = b.x, b.y, b.z
267
local _t = 1-t
268
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
269
end 
270
 
271
function QuaternionFromCFrame(cf) 
272
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
273
local trace = m00 + m11 + m22 
274
if trace > 0 then 
275
local s = math.sqrt(1 + trace) 
276
local recip = 0.5/s 
277
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
278
else 
279
local i = 0 
280
if m11 > m00 then
281
i = 1
282
end
283
if m22 > (i == 0 and m00 or m11) then 
284
i = 2 
285
end 
286
if i == 0 then 
287
local s = math.sqrt(m00-m11-m22+1) 
288
local recip = 0.5/s 
289
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
290
elseif i == 1 then 
291
local s = math.sqrt(m11-m22-m00+1) 
292
local recip = 0.5/s 
293
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
294
elseif i == 2 then 
295
local s = math.sqrt(m22-m00-m11+1) 
296
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
297
end 
298
end 
299
end
300
 
301
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
302
local xs, ys, zs = x + x, y + y, z + z 
303
local wx, wy, wz = w*xs, w*ys, w*zs 
304
local xx = x*xs 
305
local xy = x*ys 
306
local xz = x*zs 
307
local yy = y*ys 
308
local yz = y*zs 
309
local zz = z*zs 
310
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)) 
311
end
312
 
313
function QuaternionSlerp(a, b, t) 
314
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
315
local startInterp, finishInterp; 
316
if cosTheta >= 0.0001 then 
317
if (1 - cosTheta) > 0.0001 then 
318
local theta = math.acos(cosTheta) 
319
local invSinTheta = 1/math.sin(theta) 
320
startInterp = math.sin((1-t)*theta)*invSinTheta 
321
finishInterp = math.sin(t*theta)*invSinTheta  
322
else 
323
startInterp = 1-t 
324
finishInterp = t 
325
end 
326
else 
327
if (1+cosTheta) > 0.0001 then 
328
local theta = math.acos(-cosTheta) 
329
local invSinTheta = 1/math.sin(theta) 
330
startInterp = math.sin((t-1)*theta)*invSinTheta 
331
finishInterp = math.sin(t*theta)*invSinTheta 
332
else 
333
startInterp = t-1 
334
finishInterp = t 
335
end 
336
end 
337
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 
338
end
339
340
--Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
341
342
343
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
344
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
345
end 
346
347
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
348
        if hit.Parent==nil then
349
                return
350
        end
351
        h=hit.Parent:FindFirstChild("Humanoid")
352
        for _,v in pairs(hit.Parent:children()) do
353
        if v:IsA("Humanoid") then
354
        h=v
355
        end
356
        end
357
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
358
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
359
        end
360
        if hit.Parent.className=="Hat" then
361
        hit=hit.Parent.Parent:findFirstChild("Head")
362
        end
363
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
364
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
365
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
366
                        return
367
                end]]
368
--                        hs(hit,1.2) 
369
                        c=Instance.new("ObjectValue")
370
                        c.Name="creator"
371
                        c.Value=game:service("Players").LocalPlayer
372
                        c.Parent=h
373
                        game:GetService("Debris"):AddItem(c,.5)
374
                Damage=math.random(minim,maxim)
375
--                h:TakeDamage(Damage)
376
                blocked=false
377
                block=hit.Parent:findFirstChild("Block")
378
                if block~=nil then
379
                print(block.className)
380
                if block.className=="NumberValue" then
381
                if block.Value>0 then
382
                blocked=true
383
                if decreaseblock==nil then
384
                block.Value=block.Value-1
385
                end
386
                end
387
                end
388
                if block.className=="IntValue" then
389
                if block.Value>0 then
390
                blocked=true
391
                if decreaseblock~=nil then
392
                block.Value=block.Value-1
393
                end
394
                end
395
                end
396
                end
397
                if blocked==false then
398
--                h:TakeDamage(Damage)
399
                h.Health=h.Health-Damage
400
                showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
401
                else
402
                h.Health=h.Health-(Damage/2)
403
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
404
                end
405
                if Type=="Knockdown" then
406
                hum=hit.Parent.Humanoid
407
hum.PlatformStand=true
408
coroutine.resume(coroutine.create(function(HHumanoid)
409
swait(1)
410
HHumanoid.PlatformStand=false
411
end),hum)
412
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
413
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
414
local bodvol=Instance.new("BodyVelocity")
415
bodvol.velocity=angle*knockback
416
bodvol.P=5000
417
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
418
bodvol.Parent=hit
419
rl=Instance.new("BodyAngularVelocity")
420
rl.P=3000
421
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
422
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
423
rl.Parent=hit
424
game:GetService("Debris"):AddItem(bodvol,.5)
425
game:GetService("Debris"):AddItem(rl,.5)
426
                elseif Type=="Normal" then
427
                vp=Instance.new("BodyVelocity")
428
                vp.P=500
429
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
430
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
431
                if KnockbackType==1 then
432
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
433
                elseif KnockbackType==2 then
434
                vp.velocity=Property.CFrame.lookVector*knockback
435
                end
436
                if knockback>0 then
437
                        vp.Parent=hit.Parent.Torso
438
                end
439
                game:GetService("Debris"):AddItem(vp,.5)
440
                elseif Type=="Up" then
441
                local bodyVelocity=Instance.new("BodyVelocity")
442
                bodyVelocity.velocity=vt(0,60,0)
443
                bodyVelocity.P=5000
444
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
445
                bodyVelocity.Parent=hit
446
                game:GetService("Debris"):AddItem(bodyVelocity,1)
447
                rl=Instance.new("BodyAngularVelocity")
448
                rl.P=3000
449
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
450
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
451
                rl.Parent=hit
452
                game:GetService("Debris"):AddItem(rl,.5)
453
                elseif Type=="Snare" then
454
                bp=Instance.new("BodyPosition")
455
                bp.P=2000
456
                bp.D=100
457
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
458
                bp.position=hit.Parent.Torso.Position
459
                bp.Parent=hit.Parent.Torso
460
                game:GetService("Debris"):AddItem(bp,1)
461
                elseif Type=="Target" then
462
                if Targetting==false then
463
                ZTarget=hit.Parent.Torso
464
                coroutine.resume(coroutine.create(function(Part) 
465
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
466
                swait(5)
467
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
468
                end),ZTarget)
469
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
470
                targetgui=Instance.new("BillboardGui")
471
                targetgui.Parent=ZTarget
472
                targetgui.Size=UDim2.new(10,100,10,100)
473
                targ=Instance.new("ImageLabel")
474
                targ.Parent=targetgui
475
                targ.BackgroundTransparency=1
476
                targ.Image="rbxassetid://4834067"
477
                targ.Size=UDim2.new(1,0,1,0)
478
                cam.CameraType="Scriptable"
479
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
480
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
481
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
482
                Targetting=true
483
                RocketTarget=ZTarget
484
                for i=1,Property do
485
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
486
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
487
                swait()
488
                end
489
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
490
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
491
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
492
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
493
                end
494
                Targetting=false
495
                RocketTarget=nil
496
                targetgui.Parent=nil
497
                cam.CameraType="Custom"
498
                end
499
                end
500
                        debounce=Instance.new("BoolValue")
501
                        debounce.Name="DebounceHit"
502
                        debounce.Parent=hit.Parent
503
                        debounce.Value=true
504
                        game:GetService("Debris"):AddItem(debounce,Delay)
505
                        c=Instance.new("ObjectValue")
506
                        c.Name="creator"
507
                        c.Value=Player
508
                        c.Parent=h
509
                        game:GetService("Debris"):AddItem(c,.5)
510
                CRIT=false
511
                hitDeb=true
512
                AttackPos=6
513
        end
514
end
515
 
516
showDamage=function(Char,Dealt,du,Color)
517
        m=Instance.new("Model")
518
        m.Name=tostring(Dealt)
519
        h=Instance.new("Humanoid")
520
        h.Health=0
521
        h.MaxHealth=0
522
        h.Parent=m
523
        c=Instance.new("Part")
524
        c.Transparency=0
525
        c.BrickColor=Color
526
        c.Name="Head"
527
        c.TopSurface=0
528
        c.BottomSurface=0
529
        c.formFactor="Plate"
530
        c.Size=Vector3.new(1,.4,1)
531
        ms=Instance.new("CylinderMesh")
532
        ms.Scale=Vector3.new(.8,.8,.8)
533
        if CRIT==true then
534
                ms.Scale=Vector3.new(1,1.25,1)
535
        end
536
        ms.Parent=c
537
        c.Reflectance=0
538
        Instance.new("BodyGyro").Parent=c
539
        c.Parent=m
540
        if Char:findFirstChild("Head")~=nil then
541
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
542
        elseif Char.Parent:findFirstChild("Head")~=nil then
543
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
544
        end
545
        f=Instance.new("BodyPosition")
546
        f.P=2000
547
        f.D=100
548
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
549
        f.position=c.Position+Vector3.new(0,3,0)
550
        f.Parent=c
551
        game:GetService("Debris"):AddItem(m,.5+du)
552
        c.CanCollide=false
553
        m.Parent=workspace
554
        c.CanCollide=false
555
end
556
557-
VestHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.01999998, 1.39999998, 1.01999998))
557+
VestHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,".","Handle",Vector3.new(2.01999998, 1.39999998, 1.01999998))
558
handleweld=weld(m,Character["Torso"],VestHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, 0.300115585, 3.05175781e-005, 0.999999642, 0, 0, 0, 1, 0, 0, 0, 0.999999642))
559
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
560
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, 0.200000286, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
561
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
562
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
563
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000152587891, -0.999994516, -0.200134277, -4.47035475e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, -4.4703544e-008))
564
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
565
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
566
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700012207, -1.00999117, 1.52587891e-005, 0.999999046, 0, 0, 0, 1, 0, 0, 0, 0.999999046))
567
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
568
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699127197, -1.00999379, 0.000549316406, 0.999997914, 6.38506317e-005, -2.78951497e-015, -6.38804122e-005, 1.00000012, 2.10474918e-015, 2.78942159e-015, 1.39239913e-015, 0.999997854))
569
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
570
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609390259, 0.811340332, -0.0999908447, 3.08029073e-018, -2.69585922e-014, -0.999999642, -0.999999642, -6.39334685e-005, -1.35697087e-018, -6.39334467e-005, 1, -2.6958582e-014))
571
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
572
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
573
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609359741, -0.788131714, -0.0999910831, 3.06354694e-018, -2.34616979e-014, -0.999999642, -0.999999642, -6.39629943e-005, -1.56279636e-018, -6.39629725e-005, 1, -2.34616895e-014))
574
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
575
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
576
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609375, 0.0116882324, -0.0999908447, 3.06355067e-018, -2.34617301e-014, -0.999999642, -0.999999642, -6.39631544e-005, -1.56279822e-018, -6.39631326e-005, 1, -2.34617217e-014))
577
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
578
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
579
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609313965, -0.388046265, -0.0999908447, 3.0635486e-018, -2.34617301e-014, -0.999998927, -0.999998927, -6.39631544e-005, -1.56279719e-018, -6.39630889e-005, 1, -2.34617047e-014))
580
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
581
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
582
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609329224, 0.411483765, -0.0999908447, 3.08028867e-018, -2.69585922e-014, -0.999998927, -0.999998927, -6.39334685e-005, -1.35696984e-018, -6.3933403e-005, 1, -2.69585617e-014))
583
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
584
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
585
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000305175781, -0.800010204, 0.89906311, -4.47035724e-008, 6.26018334e-015, 0.999997854, -8.34552054e-008, 1.00000012, -5.15634779e-015, -0.999997914, -5.35364961e-008, -4.47035653e-008))
586
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
587
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
588
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000228881836, -0.99998498, -0.199783325, -4.47038211e-008, -2.85946115e-012, -0.999997854, -6.3955762e-005, 1.00000012, 1.77753083e-015, 0.999997914, 6.39259815e-005, -4.47038175e-008))
589
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
590
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 3.79999971, 0.200000003))
591
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356018066, -0.311279297, -0.609542847, 0.865768671, 0.500441432, 0, -0.5004403, 0.865770638, 3.55271241e-015, 3.55271241e-015, 3.02253882e-015, 0.999997854))
592
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
593
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
594
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000122070313, -0.799995899, 0.900177002, 1.49011559e-008, 0, -0.999995232, 0, 1, 0, 0.999995232, 0, 1.49011559e-008))
595
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
596
FlagLogo=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FlagLogo",Vector3.new(3, 1.99999988, 0.200000003))
597
FlagLogoweld=weld(m,VestHandle,FlagLogo,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14234924, -3.41108704, -0.610244751, 0.865850091, 0.500302911, -3.55240239e-015, -0.500302792, 0.865850449, 9.79956736e-019, 3.07633938e-015, 1.77642947e-015, 0.999999642))
598
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
599
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356628418, -2.31108093, -0.620269775, 0.865850091, 0.500302911, 7.10581953e-015, -0.500302792, 0.865850449, 9.79956736e-019, 6.15238443e-015, 3.55382075e-015, 0.999999642))
600
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
601
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.400000036, 0.200000003, 0.400000036))
602
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.354736328, -4.51108551, -0.620117188, 0.865849495, 0.500302911, 1.77640292e-014, -0.500302434, 0.865850449, 9.79956115e-019, 9.22842142e-015, 5.33121097e-015, 0.999998927))
603
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
604
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.400000006, 1.99999964, 0.200000003))
605
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356216431, -3.41107178, -0.610137939, 0.865848899, 0.500302911, 1.77639292e-014, -0.500302076, 0.865850449, 9.79955495e-019, 1.53807173e-014, 8.88612016e-015, 0.999998212))
606
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
607
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
608
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356292725, 1.6887207, -0.619628906, 0.865768075, 0.500441432, 0, -0.500439942, 0.865770638, 3.55270987e-015, 3.55270987e-015, 3.02253882e-015, 0.999997139))
609
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
610
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
611
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.589828491, 0.808547974, -0.0999956131, -3.90798369e-014, 8.06646416e-017, -0.999997854, -0.999997914, -6.36497934e-005, 3.90798369e-014, -6.36795739e-005, 1.00000012, 3.58011901e-015))
612
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
613
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Green","Part",Vector3.new(1, 0.76000005, 0.600000024))
614
Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, -0.399998188, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
615
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
616
handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 1.4000001))
617
handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10011411, -1.52587891e-005, 0.999999404, -4.47034765e-008, 0, -4.47034836e-008, -0.999999285, 0, 0, 0, -1))
618
mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=74322546",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.5, 1.5))
619
local Decal1 = Instance.new("Decal",FlagLogo)
620
Decal1.Texture = "http://www.roblox.com/asset/?id=536171037"
621
Decal1.Face = "Front"
622
local Decal2 = Instance.new("Decal",FlagLogo)
623
Decal2.Texture = "http://www.roblox.com/asset/?id=536171037"
624
Decal2.Face = "Back"
625
Humanoid.WalkSpeed = 55
626
627
function ALLAHUAKBAR()
628
attack = true
629
local speak = {"PRAISE ALLAH 38294847948238424892428498342429482482984 TIMES A DAY ALLAHUAKBAR"}
630
local colors = {"Green","Green","Green"} -- The only 3 colors, adding more will error.
631
local chat = game:GetService("Chat")
632
chat:Chat(Head,speak[math.random(1,#speak)], colors[math.random(1,3)] )
633
for i = 0,1,0.05 do
634
swait()
635
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
636
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
637
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
638
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
639
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
640
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
641
end
642
for i = 0,1,0.05 do
643
swait()
644
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
645
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
646
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(50)), 0.3)
647
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
648
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
649
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
650
end
651
for i = 1,20 do
652
--so("http://roblox.com/asset/?id=197815953",workspace,1,1) 
653
so("rbxassetid://134854740",Torso,1,1.3) 
654
so("rbxassetid://247893371",workspace,1,1)
655
so("rbxassetid://137994058",Torso,1,1) 
656
so("rbxassetid://165969964",Torso,1,1) 
657
local S = Instance.new("Explosion",workspace)
658
S.Position = Torso.Position
659-
S.BlastPressure = 5
659+
S.BlastPressure = 90
660-
S.BlastRadius = 50
660+
S.BlastRadius = 95
661-
S.ExplosionType = 2
661+
S.ExplosionType = 3
662
end
663
attack = false
664
end
665
666
mouse.Button1Down:connect(function()
667
ALLAHUAKBAR()
668
end)
669
670
mouse.KeyDown:connect(function(k)
671
        k=k:lower()
672
        
673
end)
674
675
676
local sine = 0
677
local change = 1
678
local val = 0
679
680
while true do
681
swait()
682
sine = sine + change
683
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
684
local velderp=RootPart.Velocity.y
685
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
686
if equipped==true or equipped==false then
687
if attack==false then
688
idle=idle+1
689
else
690
idle=0
691
end
692
if idle>=500 then
693
if attack==false then
694
--Sheath()
695
end
696
end
697
if RootPart.Velocity.y > 1 and hitfloor==nil then 
698
Anim="Jump"
699
if attack==false then
700
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
701
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
702
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
703
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
704
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
705
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
706
end
707
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
708
Anim="Fall"
709
if attack==false then
710
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
711
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
712
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
713
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
714
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
715
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
716
end
717
elseif torvel<1 and hitfloor~=nil then
718
Anim="Idle"
719
if attack==false then
720
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(10)),.3)
721
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
722
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.3)
723
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
724
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
725
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
726
end
727
elseif torvel>2 and hitfloor~=nil then
728
Anim="Walk"
729
if attack==false then
730
change=3
731
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
732
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
733
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50*math.cos(sine/20)), math.rad(0), math.rad(10)), 0.3)
734
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50*math.cos(sine/20)), math.rad(0), math.rad(-10)), 0.3)
735
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
736
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
737
end
738
end
739
end
740
if #Effects>0 then
741
--table.insert(Effects,{prt,"Block1",delay})
742
for e=1,#Effects do
743
if Effects[e]~=nil then
744
--for j=1,#Effects[e] do
745
local Thing=Effects[e]
746
if Thing~=nil then
747
local Part=Thing[1]
748
local Mode=Thing[2]
749
local Delay=Thing[3]
750
local IncX=Thing[4]
751
local IncY=Thing[5]
752
local IncZ=Thing[6]
753
if Thing[1].Transparency<=1 then
754
if Thing[2]=="Block1" then
755
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
756
Mesh=Thing[1].Mesh
757
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
758
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
759
elseif Thing[2]=="Cylinder" then
760
Mesh=Thing[1].Mesh
761
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
762
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
763
elseif Thing[2]=="Blood" then
764
Mesh=Thing[7]
765
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
766
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
767
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
768
elseif Thing[2]=="Elec" then
769
Mesh=Thing[1].Mesh
770
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
771
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
772
elseif Thing[2]=="Disappear" then
773
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
774
end
775
else
776
Part.Parent=nil
777
table.remove(Effects,e)
778
end
779
end
780
--end
781
end
782
end
783
end
784
end