Advertisement
Gememed

Another allah akbar script

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