Dark_EccentricYT

Untitled

Mar 21st, 2017
2,761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.73 KB | None | 0 0
  1.  
  2. wait(1)
  3. Player = game:GetService("Players").LocalPlayer
  4. Character = Player.Character
  5. Mouse = Player:GetMouse()
  6. m = Instance.new("Model", Character)
  7. Character.Humanoid.JumpPower = Character.Humanoid.JumpPower * 2
  8. pcall(function()
  9. Character.RobloxUHood.Handle.Material = "Neon"
  10. Character.RobloxUHood.Handle.Mesh.TextureId = "rbxassetid://426317630"
  11. Character.RobloxUHood.Handle.Mesh.VertexColor = Vector3.new(1, 0, 0)
  12. end)
  13. local weldBetween = function(a, b)
  14. local weldd = Instance.new("ManualWeld")
  15. weldd.Part0 = a
  16. weldd.Part1 = b
  17. weldd.C0 = CFrame.new()
  18. weldd.C1 = b.CFrame:inverse() * a.CFrame
  19. weldd.Parent = a
  20. return weldd
  21. end
  22. it = Instance.new
  23. function nooutline(part)
  24. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  25. end
  26. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  27. local fp = it("Part")
  28. fp.formFactor = formfactor
  29. fp.Parent = parent
  30. fp.Reflectance = reflectance
  31. fp.Transparency = transparency
  32. fp.CanCollide = false
  33. fp.Locked = true
  34. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  35. fp.Name = name
  36. fp.Size = size
  37. fp.Position = Character.Torso.Position
  38. nooutline(fp)
  39. fp.Material = material
  40. fp:BreakJoints()
  41. return fp
  42. end
  43. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  44. local mesh = it(Mesh)
  45. mesh.Parent = part
  46. if Mesh == "SpecialMesh" then
  47. mesh.MeshType = meshtype
  48. mesh.MeshId = meshid
  49. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  50. end
  51. mesh.Offset = offset
  52. mesh.Scale = scale
  53. return mesh
  54. end
  55. function weld(parent, part0, part1, c0, c1)
  56. local weld = it("Weld")
  57. weld.Parent = parent
  58. weld.Part0 = part0
  59. weld.Part1 = part1
  60. weld.C0 = c0
  61. weld.C1 = c1
  62. return weld
  63. end
  64. Character["Right Arm"].Transparency = 1
  65. m.ChildAdded:connect(function(p)
  66. if p:IsA("Part") then
  67. p.Transparency = 1
  68. repeat
  69. game:GetService("RunService").RenderStepped:wait()
  70. p.Transparency = p.Transparency - 0.01
  71. game:GetService("RunService").RenderStepped:wait()
  72. p.Transparency = p.Transparency + 0.005
  73. wait()
  74. until p.Transparency <= 0
  75. end
  76. end)
  77. Handle = part(Enum.FormFactor.Symmetric, m, Enum.Material.Neon, 0, 0, "Medium stone grey", "Handle", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  78. Handleweld = weld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0399861336, -0.0400176048, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1))
  79. Arm = part(Enum.FormFactor.Symmetric, m, Enum.Material.Neon, 0, 0, "Black", "Arm", Vector3.new(1, 2, 1))
  80. Armweld = weld(m, Handle, Arm, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.109999657, -0.0488853455, 4.76837158E-6, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  81. mesh("SpecialMesh", Arm, Enum.MeshType.FileMesh, "rbxassetid://33308774", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  82. wait(0.3)
  83. Claw = part(Enum.FormFactor.Plate, m, Enum.Material.Neon, 0.10000000149012, 0, "Mid gray", "Claw", Vector3.new(1, 1, 2))
  84. Clawweld = weld(m, Handle, Claw, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.142930031, -0.0899963379, -1.43707323, 0.965925932, 0.258819073, 0, 0, 0, 1, 0.258819073, -0.965925932, 0))
  85. mesh("SpecialMesh", Claw, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=10681506", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.899999976))
  86. wait(0.3)
  87. Detail = part(Enum.FormFactor.Plate, m, Enum.Material.Neon, 0, 0, "Black", "Detail", Vector3.new(0.200000003, 0.200000048, 0.399999976))
  88. Detailweld = weld(m, Handle, Detail, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.667227745, 0.135678291, -0.0999965668, 0.866025388, -0.5, 0, 0.5, 0.866025388, 0, 0, 0, 1))
  89. mesh("SpecialMesh", Detail, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1033714", Vector3.new(0, 0, 0), Vector3.new(0.300000012, 1.20000005, 0.300000012))
  90. for i, v in pairs(m:children("")) do
  91. if v:IsA("Part") and v.Name ~= "Handle" then
  92. pe = Instance.new("ParticleEmitter", v)
  93. pe.Color = ColorSequence.new(Color3.new(0.00392156862745098, 0.00392156862745098, 0.00392156862745098), Color3.new(1, 0.00392156862745098, 0.00392156862745098))
  94. pe.Lifetime = NumberRange.new(0.3)
  95. pe.RotSpeed = NumberRange.new(100)
  96. pe.Rotation = NumberRange.new(100)
  97. pe.Rate = 200
  98. pe.LightEmission = 0.1
  99. pe.Size = NumberSequence.new(0.4)
  100. pe.Texture = "http://www.roblox.com/asset/?id=246689799"
  101. pe.Transparency = NumberSequence.new(0.3)
  102. pe.VelocitySpread = 50
  103. pe.Speed = NumberRange.new(1.5)
  104. spawn(function()
  105. while true do
  106. game:GetService("RunService").RenderStepped:wait()
  107. for i = 1, 255 do
  108. v.Mesh.VertexColor = Vector3.new(i / 255 / 2, 0.00392156862745098, 0.00392156862745098)
  109. game:GetService("RunService").RenderStepped:wait()
  110. end
  111. for i = 1, 255 do
  112. v.Mesh.VertexColor = Vector3.new((1.003921568627451 - i / 255) / 2, 0.00392156862745098, 0.00392156862745098)
  113. game:GetService("RunService").RenderStepped:wait()
  114. end
  115. end
  116. end)
  117. end
  118. end
  119. Player = game:GetService("Players").LocalPlayer
  120. Character = Player.Character
  121. Character.Animate:Destroy()
  122. PlayerGui = Player.PlayerGui
  123. Backpack = Player.Backpack
  124. Torso = Character.Torso
  125. Head = Character.Head
  126. Humanoid = Character.Humanoid
  127. LeftArm = Character["Left Arm"]
  128. LeftLeg = Character["Left Leg"]
  129. RightArm = Character["Right Arm"]
  130. RightLeg = Character["Right Leg"]
  131. LS = Torso["Left Shoulder"]
  132. LH = Torso["Left Hip"]
  133. RS = Torso["Right Shoulder"]
  134. RH = Torso["Right Hip"]
  135. Neck = Torso.Neck
  136. it = Instance.new
  137. vt = Vector3.new
  138. cf = CFrame.new
  139. euler = CFrame.fromEulerAnglesXYZ
  140. angles = CFrame.Angles
  141. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  142. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  143. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  144. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  145. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  146. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  147. RootPart = Character.HumanoidRootPart
  148. RootJoint = RootPart.RootJoint
  149. RootCF = euler(-1.57, 0, 3.14)
  150. attack = false
  151. attackdebounce = false
  152. MMouse = nil
  153. combo = 0
  154. local Anim = "Idle"
  155. player = nil
  156. RSH, LSH = nil, nil
  157. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  158. RW.Name = "Right Shoulder"
  159. LW.Name = "Left Shoulder"
  160. LH = Torso["Left Hip"]
  161. RH = Torso["Right Hip"]
  162. function clerp(a, b, t)
  163. local qa = {
  164. QuaternionFromCFrame(a)
  165. }
  166. local qb = {
  167. QuaternionFromCFrame(b)
  168. }
  169. local ax, ay, az = a.x, a.y, a.z
  170. local bx, by, bz = b.x, b.y, b.z
  171. local _t = 1 - t
  172. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  173. end
  174. function QuaternionFromCFrame(cf)
  175. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  176. local trace = m00 + m11 + m22
  177. if trace > 0 then
  178. local s = math.sqrt(1 + trace)
  179. local recip = 0.5 / s
  180. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  181. else
  182. local i = 0
  183. if m00 < m11 then
  184. i = 1
  185. end
  186. if m22 > (i == 0 and m00 or m11) then
  187. i = 2
  188. end
  189. if i == 0 then
  190. local s = math.sqrt(m00 - m11 - m22 + 1)
  191. local recip = 0.5 / s
  192. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  193. elseif i == 1 then
  194. local s = math.sqrt(m11 - m22 - m00 + 1)
  195. local recip = 0.5 / s
  196. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  197. elseif i == 2 then
  198. local s = math.sqrt(m22 - m00 - m11 + 1)
  199. local recip = 0.5 / s
  200. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  201. end
  202. end
  203. end
  204. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  205. local xs, ys, zs = x + x, y + y, z + z
  206. local wx, wy, wz = w * xs, w * ys, w * zs
  207. local xx = x * xs
  208. local xy = x * ys
  209. local xz = x * zs
  210. local yy = y * ys
  211. local yz = y * zs
  212. local zz = z * zs
  213. 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))
  214. end
  215. function QuaternionSlerp(a, b, t)
  216. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  217. local startInterp, finishInterp
  218. if cosTheta >= 1.0E-4 then
  219. if 1 - cosTheta > 1.0E-4 then
  220. local theta = math.acos(cosTheta)
  221. local invSinTheta = 1 / math.sin(theta)
  222. startInterp = math.sin((1 - t) * theta) * invSinTheta
  223. finishInterp = math.sin(t * theta) * invSinTheta
  224. else
  225. startInterp = 1 - t
  226. finishInterp = t
  227. end
  228. elseif 1 + cosTheta > 1.0E-4 then
  229. local theta = math.acos(-cosTheta)
  230. local invSinTheta = 1 / math.sin(theta)
  231. startInterp = math.sin((t - 1) * theta) * invSinTheta
  232. finishInterp = math.sin(t * theta) * invSinTheta
  233. else
  234. startInterp = t - 1
  235. finishInterp = t
  236. end
  237. 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
  238. end
  239. function swait(num)
  240. if num == 0 or num == nil then
  241. game:service("RunService").RenderStepped:wait()
  242. else
  243. for i = 0, num do
  244. game:service("RunService").RenderStepped:wait()
  245. end
  246. end
  247. end
  248. function weld(parent, part0, part1, c0)
  249. local weld = it("Weld")
  250. weld.Parent = parent
  251. weld.Part0 = part0
  252. weld.Part1 = part1
  253. weld.C0 = c0
  254. return weld
  255. end
  256. Plr = game.Players.LocalPlayer
  257. P = Plr.Character
  258. Mouse = Plr:GetMouse()
  259. ch = P
  260. RSH = ch.Torso["Right Shoulder"]
  261. LSH = ch.Torso["Left Shoulder"]
  262. RF, LF = Instance.new("Weld"), Instance.new("Weld")
  263. RSH.Parent = nil
  264. LSH.Parent = nil
  265. RW.Name = "Right Shoulder"
  266. RW.Part0 = ch.Torso
  267. RW.C0 = cf(1.5, 0.5, 0)
  268. RW.C1 = cf(0, 0.5, 0)
  269. RW.Part1 = ch["Right Arm"]
  270. RW.Parent = P.Torso
  271. LW.Name = "Left Shoulder"
  272. LW.Part0 = ch.Torso
  273. LW.C0 = cf(-1.5, 0.5, 0)
  274. LW.C1 = cf(0, 0.5, 0)
  275. LW.Part1 = ch["Left Arm"]
  276. LW.Parent = P.Torso
  277. RF.Name = "Right Hip"
  278. RF.Part0 = ch.Torso
  279. RF.C0 = cf(0.5, -1.5, 0)
  280. RF.C1 = cf(0, 0.5, 0)
  281. RF.Part1 = ch["Right Leg"]
  282. RF.Parent = P.Torso
  283. LF.Name = "Left Hip"
  284. LF.Part0 = ch.Torso
  285. LF.C0 = cf(-0.5, -1.5, 0)
  286. LF.C1 = cf(0, 0.5, 0)
  287. LF.Part1 = ch["Left Leg"]
  288. LF.Parent = P.Torso
  289. RFC0 = RF.C0
  290. LFC0 = LF.C0
  291. local Rads = 14
  292. local sine = 0
  293. local Arms = true
  294. local Legs = true
  295. w = Instance.new("Weld", P)
  296. w.Part1 = nil
  297. w.Part0 = P["Right Arm"]
  298. w.C1 = CFrame.new(0, 1.25, 0)
  299. grabbing = false
  300. function Walk()
  301. P.Humanoid.WalkSpeed = 32
  302. if Arms then
  303. if w.Part1 == nil then
  304. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-math.rad(55) - math.sin(sine / 3) / 5, 0, math.pi / 16), 0.3)
  305. elseif w.Part1 ~= nil or grabbing == true then
  306. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(math.rad(110), -math.sin(sine / 3) / 5, 0, math.pi / 16), 0.3)
  307. end
  308. LW.C0 = clerp(LW.C0, cf(math.sin(sine / 3) / 5 - 1, 0.5, -0.5) * euler(0, math.rad(45) - math.sin(sine / 3) / 5, math.pi / 2), 0.3)
  309. RootJoint.C0 = clerp(RootJoint.C0, RootCF, 0.3)
  310. end
  311. if Legs then
  312. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, math.sin(sine / 3) * 0.4) * euler(-math.sin(sine / 3), 0, 0), 0.5)
  313. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, math.sin(-sine / 3) * 0.4) * euler(-math.sin(-sine / 3), 0, 0), 0.5)
  314. end
  315. sine = sine + math.rad(Rads)
  316. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(math.rad(15), 0, 0), 0.3)
  317. end
  318. function Idle()
  319. if Arms then
  320. if w.Part1 == nil then
  321. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + math.sin(sine / 3) / 10 / 1.6666666666666667, 0) * euler(0, 0, math.pi / 32 + math.sin(tick()) * 0.05 + math.sin(sine / 3) / 10 / 1.6666666666666667), 0.3)
  322. elseif w.Part1 ~= nil or grabbing == true then
  323. RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + math.sin(sine / 3) / 10 / 1.6666666666666667, 0) * euler(math.rad(110), 0, math.pi / 32 + math.sin(tick()) * 0.05 + math.sin(sine / 3) / 10 / 1.6666666666666667), 0.3)
  324. end
  325. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + math.sin(sine / 3) / 10 / 1.6666666666666667, 0) * euler(0, 0, -math.pi / 32 - math.sin(tick()) * 0.05 - math.sin(sine / 3) / 10 / 1.6666666666666667), 0.3)
  326. RootJoint.C0 = clerp(RootJoint.C0, RootCF, 0.3)
  327. end
  328. if Legs then
  329. RF.C0 = clerp(RF.C0, RFC0 * cf(0, 0, 0.2) * euler(-math.rad(15), -math.rad(15), 0), 0.3)
  330. LF.C0 = clerp(LF.C0, LFC0 * cf(0, 0, -0.2) * euler(math.rad(15), math.rad(15), 0), 0.3)
  331. end
  332. sine = sine + math.rad(Rads)
  333. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * CFrame.new(0, -math.sin(sine / 3) / 10 / 1.6666666666666667, -math.sin(sine / 3) / 10 / 1.6666666666666667) * euler(math.sin(sine / 3) / 15 + math.rad(5), 0, 0), 0.3)
  334. end
  335. function Sound(ID, Par, Pitch, Vol)
  336. local Sound = Instance.new("Sound", Par)
  337. Sound.SoundId = "http://www.roblox.com/asset/?id=" .. tostring(ID)
  338. game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id=" .. tostring(ID))
  339. Sound.Pitch = Pitch
  340. Sound.Volume = Vol
  341. game.Debris:AddItem(Sound, Sound.TimeLength)
  342. Sound:Play()
  343. end
  344. local Jumping = false
  345. local Jumpi = 0
  346. game:GetService("RunService").Heartbeat:connect(function()
  347. if Jumping == true then
  348. Jumpi = Jumpi + 1
  349. if Arms then
  350. RW.C0 = clerp(RW.C0, cf(1, 1, 0) * euler(0, 0, math.pi / 2 + math.pi / 4), 0.3)
  351. LW.C0 = clerp(LW.C0, cf(-1, 1, 0) * euler(0, 0, -math.pi / 2 - math.pi / 4), 0.3)
  352. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(math.pi / 16, 0, 0), 0.3)
  353. end
  354. if Legs then
  355. RF.C0 = clerp(RF.C0, RFC0 * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  356. LF.C0 = clerp(LF.C0, LFC0 * cf(0, 0.5, -0.6) * euler(0, 0, 0), 0.3)
  357. end
  358. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.5)
  359. if Jumpi == 10 then
  360. Jumping = false
  361. Jumpi = 0
  362. end
  363. elseif (Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z)).magnitude < 3 then
  364. Idle()
  365. elseif (Vector3.new(P.Torso.Velocity.x, 0, P.Torso.Velocity.z)).magnitude > 3 then
  366. Walk()
  367. end
  368. end)
  369. local AttArm = 0
  370. local AttLeg = 0
  371. local Enabled = true
  372. function hwait()
  373. game:GetService("RunService").Heartbeat:wait()
  374. end
  375. function Damage(Dmg, Part)
  376. local Child = Part
  377. local Par = Part.Parent
  378. if Par == workspace then
  379. else
  380. repeat
  381. Child = Par
  382. Par = Par.Parent
  383. until Par == workspace
  384. end
  385. local Found = false
  386. function Search(c)
  387. coroutine.resume(coroutine.create(function()
  388. for i, v in pairs(c:GetChildren()) do
  389. if v:IsA("Humanoid") then
  390. for i = 1, 10 do
  391. v.Health = v.Health - Dmg / 10
  392. Found = true
  393. end
  394. end
  395. Search(v)
  396. end
  397. end))
  398. end
  399. if Child ~= P then
  400. Search(Child)
  401. end
  402. if Found == false then
  403. return false
  404. else
  405. return true
  406. end
  407. end
  408. P.Humanoid.Jumping:connect(function()
  409. if Arms == false and Legs == false then
  410. else
  411. Jumping = true
  412. end
  413. end)
  414. Mouse.KeyDown:connect(function(key)
  415. if key:lower() == "z" and Enabled == true then
  416. Legs = false
  417. Enabled = false
  418. do
  419. local Hit = false
  420. AttLeg = AttLeg + 1
  421. Sound(175024455, P.Torso, 1, 0.8)
  422. if AttLeg % 2 ~= 0 then
  423. P["Right Leg"].Touched:connect(function(part)
  424. if Hit == false then
  425. local Hitz = Damage(10, part)
  426. if Hitz == true then
  427. local Velo = Instance.new("BodyVelocity", part)
  428. Velo.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  429. Velo.velocity = P.Torso.CFrame.lookVector * 35
  430. game.Debris:AddItem(Velo, 0.1)
  431. Hit = true
  432. end
  433. end
  434. end)
  435. for i = 0, 1, 0.2 do
  436. hwait()
  437. if Jumping == false then
  438. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.5) * euler(0, 0, math.pi / 16), 0.6)
  439. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -math.pi / 16), 0.6)
  440. end
  441. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-math.pi / 8, 0, math.pi / 4), 0.6)
  442. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, -0.5) * euler(math.pi / 2, 0, 0), 0.6)
  443. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, 0) * euler(-math.pi / 8, 0, 0), 0.6)
  444. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(math.pi / 8, 0, 0), 0.6)
  445. end
  446. else
  447. P["Left Leg"].Touched:connect(function(part)
  448. if Hit == false then
  449. local Hitz = Damage(10, part)
  450. if Hitz == true then
  451. local Velo = Instance.new("BodyVelocity", part)
  452. Velo.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  453. Velo.velocity = P.Torso.CFrame.lookVector * 34
  454. game.Debris:AddItem(Velo, 0.1)
  455. Hit = true
  456. end
  457. end
  458. end)
  459. for i = 0, 1, 0.2 do
  460. hwait()
  461. if Jumping == false then
  462. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.5) * euler(0, 0, math.pi / 16), 0.6)
  463. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -math.pi / 16), 0.6)
  464. end
  465. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-math.pi / 8, 0, -math.pi / 4), 0.6)
  466. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, 0) * euler(-math.pi / 8, 0, 0), 0.6)
  467. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, -0.5) * euler(math.pi / 2, 0, 0), 0.6)
  468. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(math.pi / 8, 0, 0), 0.6)
  469. end
  470. end
  471. Legs = true
  472. Hit = true
  473. wait(0.2)
  474. Enabled = true
  475. end
  476. end
  477. end)
  478. cooldown = false
  479. function Spike(pos, times)
  480. if cooldown == false then
  481. spawn(function()
  482. cooldown = true
  483. wait(10)
  484. cooldown = false
  485. end)
  486. do
  487. local p = Instance.new("Part", workspace)
  488. p.Anchored = true
  489. p.BrickColor = BrickColor.new("Really black")
  490. p.Material = "Granite"
  491. p.Size = Vector3.new(3, 8, 3)
  492. p.CFrame = pos * CFrame.new(0, -8, 0)
  493. local m = Instance.new("SpecialMesh", p)
  494. m.MeshType = "FileMesh"
  495. m.Scale = p.Size
  496. m.MeshId = "http://www.roblox.com/asset/?id=1323306"
  497. m.TextureId = "http://www.roblox.com/asset/?id=269748808"
  498. Sound(289842971, p, 1, 0.5)
  499. spawn(function()
  500. while true do
  501. for i = 1, 255 do
  502. m.VertexColor = Vector3.new(i / 255, 0.00392156862745098, 0.00392156862745098)
  503. game:GetService("RunService").RenderStepped:wait()
  504. end
  505. for i = 1, 255 do
  506. m.VertexColor = Vector3.new(1.003921568627451 - i / 255, 0.00392156862745098, 0.00392156862745098)
  507. game:GetService("RunService").RenderStepped:wait()
  508. end
  509. end
  510. end)
  511. p.Touched:connect(function(op)
  512. if op.Parent.Name ~= P.Name and op.Parent:FindFirstChild("Humanoid") then
  513. op.Parent.Humanoid:TakeDamage(10)
  514. end
  515. end)
  516. game.Debris:AddItem(p, times)
  517. local initialpc = p.CFrame
  518. for i = 1, 100 do
  519. wait()
  520. p.CFrame = p.CFrame:lerp(initialpc * CFrame.new(0, 8, 0), i / 100)
  521. end
  522. end
  523. end
  524. end
  525. cooldowntwo = false
  526. function LesserSpike(pos, times)
  527. if cooldowntwo == false then
  528. spawn(function()
  529. cooldowntwo = true
  530. wait(3)
  531. cooldowntwo = false
  532. end)
  533. for i = 1, 5 do
  534. do
  535. local p = Instance.new("Part", workspace)
  536. p.Anchored = true
  537. p.BrickColor = BrickColor.new("Really black")
  538. p.Material = "Granite"
  539. p.Size = Vector3.new(1.5, 4, 1.5)
  540. p.CFrame = pos * CFrame.new(0, -8, 0) * CFrame.new(0, 0, -3.5 * i)
  541. local m = Instance.new("SpecialMesh", p)
  542. m.MeshType = "FileMesh"
  543. m.Scale = p.Size
  544. m.MeshId = "http://www.roblox.com/asset/?id=1323306"
  545. m.TextureId = "http://www.roblox.com/asset/?id=269748808"
  546. Sound(289842971, p, 1, 0.5)
  547. spawn(function()
  548. while true do
  549. for i = 1, 255 do
  550. m.VertexColor = Vector3.new(i / 255, 0.00392156862745098, 0.00392156862745098)
  551. game:GetService("RunService").RenderStepped:wait()
  552. end
  553. for i = 1, 255 do
  554. m.VertexColor = Vector3.new(1.003921568627451 - i / 255, 0.00392156862745098, 0.00392156862745098)
  555. game:GetService("RunService").RenderStepped:wait()
  556. end
  557. end
  558. end)
  559. p.Touched:connect(function(op)
  560. if op.Parent.Name ~= P.Name and op.Parent:FindFirstChild("Humanoid") then
  561. op.Parent.Humanoid:TakeDamage(10)
  562. end
  563. end)
  564. game.Debris:AddItem(p, times)
  565. local initialpc = p.CFrame
  566. spawn(function()
  567. for i = 1, 100 do
  568. wait()
  569. p.CFrame = p.CFrame:lerp(initialpc * CFrame.new(0, 8, 0), i / 100)
  570. end
  571. end)
  572. end
  573. end
  574. end
  575. end
  576. Mouse.KeyDown:connect(function(k)
  577. if k == "v" then
  578. spawn(function()
  579. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(math.pi / 2, 0, 0), 1)
  580. for i = 0, 1, 0.05 do
  581. hwait()
  582. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.5) * euler(-math.pi / 8, 0, 0), 0.3)
  583. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-math.pi / 8, 0, math.pi / 16), 0.3)
  584. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, -1, -1) * euler(math.pi / 8, 0, 0), 0.3)
  585. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, 0) * euler(-math.pi / 8, 0, 0), 0.3)
  586. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, 0) * euler(-math.pi / 8, 0, 0), 0.3)
  587. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(math.pi / 48, 0, 0), 0.3)
  588. end
  589. end)
  590. Spike(P.Torso.CFrame * CFrame.new(0, 0, -15), 5)
  591. elseif k == "x" then
  592. spawn(function()
  593. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(math.pi / 2, 0, 0), 1)
  594. for i = 0, 1, 0.2 do
  595. hwait()
  596. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.5) * euler(math.pi / 2, math.pi / 6, -math.pi / 8), 0.3)
  597. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -math.pi / 16), 0.3)
  598. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(math.pi / 32, 0, math.pi / 8), 0.3)
  599. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  600. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  601. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-math.pi / 48, 0, 0), 0.3)
  602. end
  603. end)
  604. LesserSpike(P.Torso.CFrame * CFrame.new(0, 0, -5), 2)
  605. end
  606. end)
  607. cooldowng = false
  608. Mouse.KeyDown:connect(function(k)
  609. if k == "c" and cooldowng == false then
  610. coroutine.wrap(function()
  611. for i = 0, 1, 0.2 do
  612. hwait()
  613. RW.C0 = clerp(RW.C0, cf(1.5, 0.7, 0) * euler(0, 0, math.rad(55)), 0.3)
  614. LW.C0 = clerp(LW.C0, cf(-1.5, 0.7, 0) * euler(0, 0, -math.rad(55)), 0.3)
  615. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  616. RF.C0 = clerp(RF.C0, cf(0.5, -0.5, -1.5) * euler(0, 0, 0), 0.3)
  617. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  618. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.3)
  619. end
  620. for i = 0, 1, 0.2 do
  621. hwait()
  622. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, math.rad(55)), 0.3)
  623. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -math.rad(55)), 0.3)
  624. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  625. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  626. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  627. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(0, 0, 0), 0.3)
  628. end
  629. end)()
  630. spawn(function()
  631. cooldowng = true
  632. wait(5)
  633. cooldowng = false
  634. end)
  635. do
  636. local p = Instance.new("Part", workspace)
  637. p.Anchored = true
  638. p.CanCollide = false
  639. p.Size = Vector3.new(4, 4, 1)
  640. p.Transparency = 0
  641. local m = Instance.new("SpecialMesh", p)
  642. m.MeshType = "FileMesh"
  643. m.Scale = p.Size
  644. m.MeshId = "http://www.roblox.com/asset/?id=3270017"
  645. local initpcf = P.Torso.CFrame * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(90), 0, 0)
  646. p.Touched:connect(function(op)
  647. if op.Parent.Name ~= P.Name and op.Parent:FindFirstChild("Humanoid") then
  648. op.Parent.Humanoid:TakeDamage(5)
  649. end
  650. end)
  651. spawn(function()
  652. repeat
  653. wait()
  654. p.Size = p.Size + Vector3.new(0.5, 0.5, 0)
  655. p.CFrame = initpcf
  656. p.Transparency = p.Transparency + 0.01
  657. m.Scale = p.Size
  658. until p.Transparency >= 1
  659. p:Remove()
  660. end)
  661. end
  662. end
  663. end)
  664. grabbing = false
  665. Mouse.KeyDown:connect(function(k)
  666. if k == "f" then
  667. local tp = P.Torso.CFrame.p
  668. local rayforward = Ray.new(tp, tp - Vector3.new(0, 0, -1000))
  669. local raybackward = Ray.new(tp, tp - Vector3.new(0, 0, 1000))
  670. local rayleft = Ray.new(tp, tp - Vector3.new(-1000, 0, 0))
  671. local rayright = Ray.new(tp, tp - Vector3.new(1000, 0, 0))
  672. local hit, pos = workspace:FindPartOnRay(rayforward, P)
  673. local hit1, pos1 = workspace:FindPartOnRay(raybackward, P)
  674. local hit2, pos2 = workspace:FindPartOnRay(rayleft, P)
  675. local hit3, pos3 = workspace:FindPartOnRay(rayright, P)
  676. if hit ~= nil and (tp - pos).magnitude <= 2 then
  677. P.Humanoid.Sit = true
  678. wait()
  679. P.Humanoid.Jump = true
  680. end
  681. if hit1 ~= nil and (tp - pos1).magnitude <= 2 then
  682. P.Humanoid.Sit = true
  683. wait()
  684. P.Humanoid.Jump = true
  685. end
  686. if hit2 ~= nil and (tp - pos2).magnitude <= 2 then
  687. P.Humanoid.Sit = true
  688. wait()
  689. P.Humanoid.Jump = true
  690. end
  691. if hit3 ~= nil and (tp - pos3).magnitude <= 2 then
  692. P.Humanoid.Sit = true
  693. wait()
  694. P.Humanoid.Jump = true
  695. end
  696. elseif k == "e" then
  697. if w.Part1 == nil then
  698. spawn(function()
  699. grabbing = true
  700. wait(0.5)
  701. grabbing = false
  702. end)
  703. P["Right Arm"].Touched:connect(function(op)
  704. if grabbing == true and op ~= nil and op.Parent:FindFirstChild("Humanoid") then
  705. w.Part1 = op.Parent.Head
  706. op.Parent.Humanoid.PlatformStand = true
  707. end
  708. end)
  709. elseif w.Part1 ~= nil then
  710. for i, v in pairs(m:children("")) do
  711. if v:IsA("Part") and v.Name ~= "Handle" then
  712. v.ParticleEmitter:Emit(200)
  713. end
  714. end
  715. w.Part1.Parent.Humanoid:TakeDamage(15)
  716. P.Humanoid.Health = P.Humanoid.Health + 15
  717. w.Part1 = nil
  718. end
  719. end
  720. end)
  721. Mouse.Button1Down:connect(function()
  722. if Enabled == true then
  723. Enabled = false
  724. Arms = false
  725. do
  726. local Hit = false
  727. AttArm = AttArm + 1
  728. P.Model.Handle.Touched:connect(function(part)
  729. if Hit == false then
  730. local Hitz = Damage(10, part)
  731. if Hitz == true then
  732. Hit = true
  733. end
  734. end
  735. end)
  736. P["Left Arm"].Touched:connect(function(part)
  737. if Hit == false then
  738. local Hitz = Damage(10, part)
  739. if Hitz == true then
  740. Hit = true
  741. end
  742. end
  743. end)
  744. Sound(220025675, P.Torso, 1, 1)
  745. if AttArm % 2 ~= 0 then
  746. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(math.pi / 2, 0, 0), 1)
  747. for i = 0, 1, 0.05 do
  748. hwait()
  749. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.5) * euler(math.pi / 2, math.pi / 6, -math.pi / 8), 0.3)
  750. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -math.pi / 16), 0.3)
  751. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(math.pi / 32, 0, math.pi / 8), 0.3)
  752. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  753. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  754. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-math.pi / 48, 0, 0), 0.3)
  755. end
  756. else
  757. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(math.pi / 2, 0, 0), 1)
  758. for i = 0, 1, 0.2 do
  759. hwait()
  760. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, math.pi / 16), 0.3)
  761. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, -0.5) * euler(math.pi / 2, -math.pi / 6, math.pi / 8), 0.3)
  762. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(math.pi / 32, 0, -math.pi / 8), 0.3)
  763. RF.C0 = clerp(RF.C0, cf(0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  764. LF.C0 = clerp(LF.C0, cf(-0.5, -1.5, 0) * euler(0, 0, 0), 0.3)
  765. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * euler(-math.pi / 48, 0, 0), 0.3)
  766. end
  767. end
  768. Hit = true
  769. Enabled = true
  770. Arms = true
  771. end
  772. end
  773. end)
Add Comment
Please, Sign In to add comment