Advertisement
jhonny44

squid BOMB [ROBLOX]

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