Advertisement
LuizJacu

vatadas

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