View difference between Paste ID: 9mTD7Sy3 and 33GuWunC
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
87
	local h,t
88
	--Give the server mouse data every second frame, but only if the values changed
89
	--If player is not moving their mouse, client won't fire events
90
	local HB = game:GetService("RunService").Heartbeat
91
	while true do
92
		if h~=Mouse.Hit or t~=Mouse.Target then
93
			h,t=Mouse.Hit,Mouse.Target
94
			Event:FireServer({isMouse=true,Target=t,Hit=h})
95
		end
96
		--Wait 2 frames
97
		for i=1,2 do
98
			HB:Wait()
99
		end
100
	end]==],script)
101
102
	----Sandboxed game object that allows the usage of client-side methods and services
103
	--Real game object
104
	local RealGame = game
105
106
	--Metatable for fake service
107
	local FakeService_Metatable = {
108
		__index = function(self,k)
109
			local s = rawget(self,"_RealService")
110
			if s then
111
				return typeof(s[k])=="function"
112
				and function(_,...)return s[k](s,...)end or s[k]
113
			end
114
		end,
115
		__newindex = function(self,k,v)
116
			local s = rawget(self,"_RealService")
117
			if s then s[k]=v end
118
		end
119
	}
120
	local function FakeService(t,RealService)
121
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
122
		return setmetatable(t,FakeService_Metatable)
123
	end
124
125
	--Fake game object
126
	local FakeGame = {
127
		GetService = function(self,s)
128
			return rawget(self,s) or RealGame:GetService(s)
129
		end,
130
		Players = FakeService({
131
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
132
		},"Players"),
133
		UserInputService = FakeService(UIS,"UserInputService"),
134
		ContextActionService = FakeService(CAS,"ContextActionService"),
135
		RunService = FakeService({
136
			_btrs = {},
137
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
138
			BindToRenderStep = function(self,name,_,fun)
139
				self._btrs[name] = self.Heartbeat:Connect(fun)
140
			end,
141
			UnbindFromRenderStep = function(self,name)
142
				self._btrs[name]:Disconnect()
143
			end,
144
		},"RunService")
145
	}
146
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
147
	FakeGame.service = FakeGame.GetService
148
	FakeService(FakeGame,game)
149
	--Changing owner to fake player object to support owner:GetMouse()
150
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
151
end
152
--The Script is Created by Cohenfan31
153
154
Player=game:GetService("Players").LocalPlayer
155
Character=Player.Character 
156
PlayerGui=Player.PlayerGui
157
Backpack=Player.Backpack 
158
Torso=Character.Torso 
159
Head=Character.Head 
160
Humanoid=Character.Humanoid
161
m=Instance.new('Model',Character)
162
LeftArm=Character["Left Arm"] 
163
LeftLeg=Character["Left Leg"] 
164
RightArm=Character["Right Arm"] 
165
RightLeg=Character["Right Leg"] 
166
LS=Torso["Left Shoulder"] 
167
LH=Torso["Left Hip"] 
168
RS=Torso["Right Shoulder"] 
169
RH=Torso["Right Hip"] 
170
Face = Head.face
171
Neck=Torso.Neck
172
it=Instance.new
173
attacktype=1
174
vt=Vector3.new
175
cf=CFrame.new
176
euler=CFrame.fromEulerAnglesXYZ
177
angles=CFrame.Angles
178
cloaked=false
179
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
180
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
181
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
182
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
183
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
184
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
185
RootPart=Character.HumanoidRootPart
186
RootJoint=RootPart.RootJoint
187
RootCF=euler(-1.57,0,3.14)
188
attack = false 
189
attackdebounce = false 
190
deb=false
191
equipped=true
192
hand=false
193
MMouse=nil
194
combo=0
195
mana=0
196
trispeed=.2
197
attackmode='none'
198
local idle=0
199
local Anim="Idle"
200
local Effects={}
201
local gun=false
202
local shoot=false
203
player=nil 
204
mana=0
205
206
mouse=Player:GetMouse()
207
--save shoulders 
208
RSH, LSH=nil, nil 
209
--welds 
210
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
211
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
212
LH=Torso["Left Hip"]
213
RH=Torso["Right Hip"]
214
TorsoColor=Torso.BrickColor
215
function NoOutline(Part)
216
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
217
end
218
player=Player 
219
ch=Character
220
RSH=ch.Torso["Right Shoulder"] 
221
LSH=ch.Torso["Left Shoulder"] 
222
-- 
223
RSH.Parent=nil 
224
LSH.Parent=nil 
225
-- 
226
RW.Name="Right Shoulder"
227
RW.Part0=ch.Torso 
228
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
229
RW.C1=cf(0, 0.5, 0) 
230
RW.Part1=ch["Right Arm"] 
231
RW.Parent=ch.Torso 
232
-- 
233
LW.Name="Left Shoulder"
234
LW.Part0=ch.Torso 
235
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
236
LW.C1=cf(0, 0.5, 0) 
237
LW.Part1=ch["Left Arm"] 
238
LW.Parent=ch.Torso 
239
240
        Player=game:GetService('Players').LocalPlayer
241
        Character=Player.Character
242
        Mouse=Player:GetMouse()
243
        m=Instance.new('Model',Character)
244
245
246
        local function weldBetween(a, b)
247
            local weldd = Instance.new("ManualWeld")
248
            weldd.Part0 = a
249
            weldd.Part1 = b
250
            weldd.C0 = CFrame.new()
251
            weldd.C1 = b.CFrame:inverse() * a.CFrame
252
            weldd.Parent = a
253
            return weldd
254
        end
255
        
256
        function swait(num)
257
    if num==0 or num==nil then
258
    game:service'RunService'.Stepped:wait(0)
259
    else
260
    for i=0,num do
261
    game:service'RunService'.Stepped:wait(0)
262
    end
263
    end
264
            end
265
        
266
        function nooutline(part)
267
                part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
268
        end
269
        
270
        function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
271
                local fp=it("Part")
272
                fp.formFactor=formfactor
273
                fp.Parent=parent
274
                fp.Reflectance=reflectance
275
                fp.Transparency=transparency
276
                fp.CanCollide=false
277
                fp.Locked=true
278
                fp.BrickColor=BrickColor.new(tostring(brickcolor))
279
                fp.Name=name
280
                fp.Size=size
281
                fp.Position=Character.Torso.Position
282
                nooutline(fp)
283
                fp.Material=material
284
                fp:BreakJoints()
285
                return fp
286
        end
287
        
288
        function mesh(Mesh,part,meshtype,meshid,offset,scale)
289
                local mesh=it(Mesh)
290
                mesh.Parent=part
291
                if Mesh=="SpecialMesh" then
292
                        mesh.MeshType=meshtype
293
                        mesh.MeshId=meshid
294
                end
295
                mesh.Offset=offset
296
                mesh.Scale=scale
297
                return mesh
298
        end
299
        
300
        function weld(parent,part0,part1,c0,c1)
301
                local weld=it("Weld")
302
                weld.Parent=parent
303
                weld.Part0=part0
304
                weld.Part1=part1
305
                weld.C0=c0
306
                weld.C1=c1
307
                return weld
308
        end
309
        
310
        
311
local function CFrameFromTopBack(at, top, back)
312
local right = top:Cross(back)
313
return CFrame.new(at.x, at.y, at.z,
314
right.x, top.x, back.x,
315
right.y, top.y, back.y,
316
right.z, top.z, back.z)
317
end
318
319
function Triangle(a, b, c)
320
local edg1 = (c-a):Dot((b-a).unit)
321
local edg2 = (a-b):Dot((c-b).unit)
322
local edg3 = (b-c):Dot((a-c).unit)
323
if edg1 <= (b-a).magnitude and edg1 >= 0 then
324
a, b, c = a, b, c
325
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
326
a, b, c = b, c, a
327
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
328
a, b, c = c, a, b
329
else
330
assert(false, "unreachable")
331
end
332
 
333
local len1 = (c-a):Dot((b-a).unit)
334
local len2 = (b-a).magnitude - len1
335
local width = (a + (b-a).unit*len1 - c).magnitude
336
 
337
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
338
 
339
local list = {}
340
341
local TrailColor = ("Dark grey")
342
 
343
if len1 > 0.01 then
344
local w1 = Instance.new('WedgePart', m)
345
game:GetService("Debris"):AddItem(w1,5)
346
w1.Material = "SmoothPlastic"
347
w1.FormFactor = 'Custom'
348
w1.BrickColor = BrickColor.new(TrailColor)
349
w1.Transparency = 0
350
w1.Reflectance = 0
351
w1.Material = "SmoothPlastic"
352
w1.CanCollide = false
353
NoOutline(w1)
354
local sz = Vector3.new(0.2, width, len1)
355
w1.Size = sz
356
local sp = Instance.new("SpecialMesh",w1)
357
sp.MeshType = "Wedge"
358
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
359
w1:BreakJoints()
360
w1.Anchored = true
361
w1.Parent = workspace
362
w1.Transparency = 0.7
363
table.insert(Effects,{w1,"Disappear",.01})
364
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
365
table.insert(list,w1)
366
end
367
 
368
if len2 > 0.01 then
369
local w2 = Instance.new('WedgePart', m)
370
game:GetService("Debris"):AddItem(w2,5)
371
w2.Material = "SmoothPlastic"
372
w2.FormFactor = 'Custom'
373
w2.BrickColor = BrickColor.new(TrailColor)
374
w2.Transparency = 0
375
w2.Reflectance = 0
376
w2.Material = "SmoothPlastic"
377
w2.CanCollide = false
378
NoOutline(w2)
379
local sz = Vector3.new(0.2, width, len2)
380
w2.Size = sz
381
local sp = Instance.new("SpecialMesh",w2)
382
sp.MeshType = "Wedge"
383
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
384
w2:BreakJoints()
385
w2.Anchored = true
386
w2.Parent = workspace
387
w2.Transparency = 0.7
388
table.insert(Effects,{w2,"Disappear",.01})
389
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
390
table.insert(list,w2)
391
end
392
return unpack(list)
393
end
394
        
395
        
396
so = function(id,par,vol,pit) 
397
coroutine.resume(coroutine.create(function()
398
local sou = Instance.new("Sound",par or workspace)
399
sou.Volume=vol
400
sou.Pitch=pit or 1
401
sou.SoundId=id
402
swait() 
403
sou:play() 
404
game:GetService("Debris"):AddItem(sou,6)
405
end))
406
end
407
 
408
function clerp(a,b,t) 
409
local qa = {QuaternionFromCFrame(a)}
410
local qb = {QuaternionFromCFrame(b)} 
411
local ax, ay, az = a.x, a.y, a.z 
412
local bx, by, bz = b.x, b.y, b.z
413
local _t = 1-t
414
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
415
end 
416
 
417
function QuaternionFromCFrame(cf) 
418
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
419
local trace = m00 + m11 + m22 
420
if trace > 0 then 
421
local s = math.sqrt(1 + trace) 
422
local recip = 0.5/s 
423
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
424
else 
425
local i = 0 
426
if m11 > m00 then
427
i = 1
428
end
429
if m22 > (i == 0 and m00 or m11) then 
430
i = 2 
431
end 
432
if i == 0 then 
433
local s = math.sqrt(m00-m11-m22+1) 
434
local recip = 0.5/s 
435
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
436
elseif i == 1 then 
437
local s = math.sqrt(m11-m22-m00+1) 
438
local recip = 0.5/s 
439
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
440
elseif i == 2 then 
441
local s = math.sqrt(m22-m00-m11+1) 
442
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
443
end 
444
end 
445
end
446
 
447
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
448
local xs, ys, zs = x + x, y + y, z + z 
449
local wx, wy, wz = w*xs, w*ys, w*zs 
450
local xx = x*xs 
451
local xy = x*ys 
452
local xz = x*zs 
453
local yy = y*ys 
454
local yz = y*zs 
455
local zz = z*zs 
456
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)) 
457
end
458
 
459
function QuaternionSlerp(a, b, t) 
460
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
461
local startInterp, finishInterp; 
462
if cosTheta >= 0.0001 then 
463
if (1 - cosTheta) > 0.0001 then 
464
local theta = math.acos(cosTheta) 
465
local invSinTheta = 1/math.sin(theta) 
466
startInterp = math.sin((1-t)*theta)*invSinTheta 
467
finishInterp = math.sin(t*theta)*invSinTheta  
468
else 
469
startInterp = 1-t 
470
finishInterp = t 
471
end 
472
else 
473
if (1+cosTheta) > 0.0001 then 
474
local theta = math.acos(-cosTheta) 
475
local invSinTheta = 1/math.sin(theta) 
476
startInterp = math.sin((t-1)*theta)*invSinTheta 
477
finishInterp = math.sin(t*theta)*invSinTheta 
478
else 
479
startInterp = t-1 
480
finishInterp = t 
481
end 
482
end 
483
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 
484
end
485
486
--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)
487
488
489
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
490
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
491
end 
492
493
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
494
        if hit.Parent==nil then
495
                return
496
        end
497
        h=hit.Parent:FindFirstChild("Humanoid")
498
        for _,v in pairs(hit.Parent:children()) do
499
        if v:IsA("Humanoid") then
500
        h=v
501
        end
502
        end
503
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
504
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
505
        end
506
        if hit.Parent.className=="Hat" then
507
        hit=hit.Parent.Parent:findFirstChild("Head")
508
        end
509
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
510
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
511
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
512
                        return
513
                end]]
514
--                        hs(hit,1.2) 
515
                        c=Instance.new("ObjectValue")
516
                        c.Name="creator"
517
                        c.Value=game:service("Players").LocalPlayer
518
                        c.Parent=h
519
                        game:GetService("Debris"):AddItem(c,.5)
520
                Damage=math.random(minim,maxim)
521
--                h:TakeDamage(Damage)
522
                blocked=false
523
                block=hit.Parent:findFirstChild("Block")
524
                if block~=nil then
525
                print(block.className)
526
                if block.className=="NumberValue" then
527
                if block.Value>0 then
528
                blocked=true
529
                if decreaseblock==nil then
530
                block.Value=block.Value-1
531
                end
532
                end
533
                end
534
                if block.className=="IntValue" then
535
                if block.Value>0 then
536
                blocked=true
537
                if decreaseblock~=nil then
538
                block.Value=block.Value-1
539
                end
540
                end
541
                end
542
                end
543
                if blocked==false then
544
--                h:TakeDamage(Damage)
545
                h.Health=h.Health-Damage
546
                showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
547
                else
548
                h.Health=h.Health-(Damage/2)
549
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
550
                end
551
                if Type=="Knockdown" then
552
                hum=hit.Parent.Humanoid
553
hum.PlatformStand=true
554
coroutine.resume(coroutine.create(function(HHumanoid)
555
swait(1)
556
HHumanoid.PlatformStand=false
557
end),hum)
558
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
559
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
560
local bodvol=Instance.new("BodyVelocity")
561
bodvol.velocity=angle*knockback
562
bodvol.P=5000
563
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
564
bodvol.Parent=hit
565
rl=Instance.new("BodyAngularVelocity")
566
rl.P=3000
567
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
568
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
569
rl.Parent=hit
570
game:GetService("Debris"):AddItem(bodvol,.5)
571
game:GetService("Debris"):AddItem(rl,.5)
572
                elseif Type=="Normal" then
573
                vp=Instance.new("BodyVelocity")
574
                vp.P=500
575
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
576
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
577
                if KnockbackType==1 then
578
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
579
                elseif KnockbackType==2 then
580
                vp.velocity=Property.CFrame.lookVector*knockback
581
                end
582
                if knockback>0 then
583
                        vp.Parent=hit.Parent.Torso
584
                end
585
                game:GetService("Debris"):AddItem(vp,.5)
586
                elseif Type=="Up" then
587
                local bodyVelocity=Instance.new("BodyVelocity")
588
                bodyVelocity.velocity=vt(0,60,0)
589
                bodyVelocity.P=5000
590
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
591
                bodyVelocity.Parent=hit
592
                game:GetService("Debris"):AddItem(bodyVelocity,1)
593
                rl=Instance.new("BodyAngularVelocity")
594
                rl.P=3000
595
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
596
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
597
                rl.Parent=hit
598
                game:GetService("Debris"):AddItem(rl,.5)
599
                elseif Type=="Snare" then
600
                bp=Instance.new("BodyPosition")
601
                bp.P=2000
602
                bp.D=100
603
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
604
                bp.position=hit.Parent.Torso.Position
605
                bp.Parent=hit.Parent.Torso
606
                game:GetService("Debris"):AddItem(bp,1)
607
                elseif Type=="Target" then
608
                if Targetting==false then
609
                ZTarget=hit.Parent.Torso
610
                coroutine.resume(coroutine.create(function(Part) 
611
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
612
                swait(5)
613
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
614
                end),ZTarget)
615
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
616
                targetgui=Instance.new("BillboardGui")
617
                targetgui.Parent=ZTarget
618
                targetgui.Size=UDim2.new(10,100,10,100)
619
                targ=Instance.new("ImageLabel")
620
                targ.Parent=targetgui
621
                targ.BackgroundTransparency=1
622
                targ.Image="rbxassetid://360881766"
623
                targ.Size=UDim2.new(1,0,1,0)
624
                cam.CameraType="Scriptable"
625
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
626
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
627
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
628
                Targetting=true
629
                RocketTarget=ZTarget
630
                for i=1,Property do
631
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
632
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
633
                swait()
634
                end
635
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
636
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
637
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
638
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
639
                end
640
                Targetting=false
641
                RocketTarget=nil
642
                targetgui.Parent=nil
643
                cam.CameraType="Custom"
644
                end
645
                end
646
                        debounce=Instance.new("BoolValue")
647
                        debounce.Name="DebounceHit"
648
                        debounce.Parent=hit.Parent
649
                        debounce.Value=true
650
                        game:GetService("Debris"):AddItem(debounce,Delay)
651
                        c=Instance.new("ObjectValue")
652
                        c.Name="creator"
653
                        c.Value=Player
654
                        c.Parent=h
655
                        game:GetService("Debris"):AddItem(c,.5)
656
                CRIT=false
657
                hitDeb=true
658
                AttackPos=6
659
        end
660
end
661
 
662
showDamage=function(Char,Dealt,du,Color)
663
        m=Instance.new("Model")
664
        m.Name=tostring(Dealt)
665
        h=Instance.new("Humanoid")
666
        h.Health=0
667
        h.MaxHealth=0
668
        h.Parent=m
669
        c=Instance.new("Part")
670
        c.Transparency=0
671
        c.BrickColor=Color
672
        c.Name="Head"
673
        c.TopSurface=0
674
        c.BottomSurface=0
675
        c.formFactor="Plate"
676
        c.Size=Vector3.new(1,.4,1)
677
        ms=Instance.new("CylinderMesh")
678
        ms.Scale=Vector3.new(.8,.8,.8)
679
        if CRIT==true then
680
                ms.Scale=Vector3.new(1,1.25,1)
681
        end
682
        ms.Parent=c
683
        c.Reflectance=0
684
        Instance.new("BodyGyro").Parent=c
685
        c.Parent=m
686
        if Char:findFirstChild("Head")~=nil then
687
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
688
        elseif Char.Parent:findFirstChild("Head")~=nil then
689
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
690
        end
691
        f=Instance.new("BodyPosition")
692
        f.P=2000
693
        f.D=100
694
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
695
        f.position=c.Position+Vector3.new(0,3,0)
696
        f.Parent=c
697
        game:GetService("Debris"):AddItem(m,.5+du)
698
        c.CanCollide=false
699
        m.Parent=workspace
700
        c.CanCollide=false
701
end
702
703
VestHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.01999998, 1.39999998, 1.01999998))
704
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))
705
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
706
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))
707
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
708
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
709
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))
710
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
711
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
712
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))
713
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
714
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))
715
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
716
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))
717
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))
718
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
719
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))
720
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))
721
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
722
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))
723
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))
724
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
725
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))
726
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))
727
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
728
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))
729
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))
730
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
731
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))
732
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
733
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
734
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))
735
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
736
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 3.79999971, 0.200000003))
737
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))
738
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
739
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
740
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))
741
mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
742
FlagLogo=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FlagLogo",Vector3.new(3, 1.99999988, 0.200000003))
743
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))
744
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
745
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))
746
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
747
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000036, 0.200000003, 0.400000036))
748
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))
749
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
750
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 1.99999964, 0.200000003))
751
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))
752
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
753
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
754
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))
755
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
756
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
757
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))
758
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))
759
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
760
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))
761
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
762
handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 1.4000001))
763
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))
764
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))
765
local Decal1 = Instance.new("Decal",FlagLogo)
766
Decal1.Texture = "http://www.roblox.com/asset/?id=201788175"
767
Decal1.Face = "Front"
768
local Decal2 = Instance.new("Decal",FlagLogo)
769
Decal2.Texture = "http://www.roblox.com/asset/?id=201788175"
770
Decal2.Face = "Back"
771
Humanoid.WalkSpeed = 50
772
773
function ALLAHUAKBAR()
774
attack = true
775
local speak = {"ILLUMINATI CONFIRMED"}
776
local colors = {"Red","Red","Red"} -- The only 3 colors, adding more will error.
777
local chat = game:GetService("Chat")
778
chat:Chat(Head,speak[math.random(1,#speak)], colors[math.random(1,3)] )
779
for i = 0,1,0.05 do
780
swait()
781
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
782
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
783
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
784
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
785
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)
786
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)
787
end
788
for i = 0,1,0.05 do
789
swait()
790
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
791
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
792
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(50)), 0.3)
793
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
794
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)
795
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)
796
end
797
for i = 1,20 do
798
--so("http://roblox.com/asset/?id=197815953",workspace,1,1) 
799
so("rbxassetid://134854740",Torso,1,1.3) 
800
so("rbxassetid://324445205",workspace,1,1)
801
so("rbxassetid://137994058",Torso,1,1) 
802
so("rbxassetid://165969964",Torso,1,1) 
803
local S = Instance.new("Explosion",workspace)
804
S.Position = Torso.Position
805
S.BlastPressure = 5
806
S.BlastRadius = 50
807
S.ExplosionType = 2
808
end
809
attack = false
810
end
811
812
mouse.Button1Down:connect(function()
813
ALLAHUAKBAR()
814
end)
815
816
mouse.KeyDown:connect(function(k)
817
        k=k:lower()
818
        
819
end)
820
821
822
local sine = 0
823
local change = 1
824
local val = 0
825
826
while true do
827
swait()
828
sine = sine + change
829
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
830
local velderp=RootPart.Velocity.y
831
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
832
if equipped==true or equipped==false then
833
if attack==false then
834
idle=idle+1
835
else
836
idle=0
837
end
838
if idle>=500 then
839
if attack==false then
840
--Sheath()
841
end
842
end
843
if RootPart.Velocity.y > 1 and hitfloor==nil then 
844
Anim="Jump"
845
if attack==false then
846
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
847
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
848
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
849
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
850
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)
851
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)
852
end
853
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
854
Anim="Fall"
855
if attack==false then
856
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
857
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
858
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
859
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
860
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)
861
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)
862
end
863
elseif torvel<1 and hitfloor~=nil then
864
Anim="Idle"
865
if attack==false then
866
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(10)),.3)
867
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
868
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.3)
869
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
870
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)
871
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)
872
end
873
elseif torvel>2 and hitfloor~=nil then
874
Anim="Walk"
875
if attack==false then
876
change=3
877
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
878
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
879
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)
880
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)
881
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)
882
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)
883
end
884
end
885
end
886
if #Effects>0 then
887
--table.insert(Effects,{prt,"Block1",delay})
888
for e=1,#Effects do
889
if Effects[e]~=nil then
890
--for j=1,#Effects[e] do
891
local Thing=Effects[e]
892
if Thing~=nil then
893
local Part=Thing[1]
894
local Mode=Thing[2]
895
local Delay=Thing[3]
896
local IncX=Thing[4]
897
local IncY=Thing[5]
898
local IncZ=Thing[6]
899
if Thing[1].Transparency<=1 then
900
if Thing[2]=="Block1" then
901
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
902
Mesh=Thing[1].Mesh
903
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
904
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
905
elseif Thing[2]=="Cylinder" then
906
Mesh=Thing[1].Mesh
907
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
908
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
909
elseif Thing[2]=="Blood" then
910
Mesh=Thing[7]
911
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
912
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
913
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
914
elseif Thing[2]=="Elec" then
915
Mesh=Thing[1].Mesh
916
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
917
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
918
elseif Thing[2]=="Disappear" then
919
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
920
end
921
else
922
Part.Parent=nil
923
table.remove(Effects,e)
924
end
925
end
926
--end
927
end
928
end
929
end
930
end