Advertisement
YXWGH0ST

Untitled

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