Advertisement
XxTheReaper

Untitled

Apr 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.98 KB | None | 0 0
  1. --[[GIGA BLOX (boss battle)]]--
  2. --[[
  3. Script made and owned by: WafflesAreVeryGood do not steal my scripts do not take credit for my scripts
  4. Move List
  5. r = Pumpkin throw C
  6. e = Pumpkin roll C
  7. t = lightning strikes C
  8. g = Rage C
  9. z = evil laugh C
  10.  
  11. --]]
  12. local plr = game.Players.LocalPlayer
  13. local char = plr.Character
  14. local mouse = plr:GetMouse()
  15. local torso = char.Torso
  16. local animpose = "Idle"
  17. local attacking = false
  18. local cananim = true
  19. local rage = false
  20. local shield = nil
  21. local sprint = false
  22. local canrage = true
  23. local crits = false
  24. local legs = false
  25. local scale = 2
  26. local powers = false
  27. local bc = char:WaitForChild("Body Colors")
  28. local multiplier = 1
  29. local lac = char["Body Colors"].LeftArmColor
  30. local rac = char["Body Colors"].RightArmColor
  31. local rlc = char["Body Colors"].RightArmColor
  32. local llc = char["Body Colors"].LeftLegColor
  33. local hc = char["Body Colors"].HeadColor
  34. local tc = char["Body Colors"].TorsoColor
  35. local humanoid = char:FindFirstChildOfClass("Humanoid")
  36. humanoid.MaxHealth = 100+1000
  37. wait()
  38. humanoid.Health = 100+1000
  39. local huge = Vector3.new(math.huge,math.huge,math.huge)
  40. local mobs = Instance.new("Sound", char.Torso)
  41. mobs.SoundId = "rbxassetid://316661084"
  42. mobs.Looped = true
  43. mobs.Text = "Pumpkin Overlord"
  44. mobs.Volume = 1
  45. mobs:Play()
  46. wait(0.5)
  47.  
  48. --[[local scale = 2
  49. local joints = {torso["Right Shoulder"], torso["Left Shoulder"], torso["Right Hip"], torso["Left Hip"], torso.Neck, char.HumanoidRootPart.RootJoint}
  50. local j = {}
  51. for i,v in pairs(char:children()) do
  52. if v:IsA("Accoutrement") then
  53. v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * scale
  54. local w = v.AttachmentPoint
  55. if w then
  56. local c0 = {w:components()}
  57. for i = 1, 3 do
  58. c0[i] = c0[i]*scale
  59. end
  60. v.AttachmentPoint = CFrame.new(unpack(c0))
  61. v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (scale - 1)))
  62. end
  63. end
  64. end
  65. for i,v in pairs(joints) do
  66. local insert = {
  67. Name = v.Name;
  68. Part0 = v.Part0;
  69. Part1 = v.Part1;
  70. C0 = v.C0;
  71. C1 = v.C1;
  72. Parent = v.Parent;
  73. }
  74. table.insert(j, insert)
  75. end
  76. local parts = {char["Right Arm"], char["Left Arm"], char["Right Leg"], char["Left Leg"], char.Torso, char.Head, char.HumanoidRootPart}
  77. for i,v in pairs(parts) do
  78. v.Anchored = true
  79. v.FormFactor = "Custom"
  80. v.Size = (v.Size*scale)
  81. v.Anchored = false
  82. end
  83. for i,joint in pairs(joints) do
  84. joint:Destroy()
  85. end
  86. for i,v in pairs(j) do
  87. print(j.Name)
  88. local c0 = {v.C0:components()}
  89. local c1 = {v.C1:components()}
  90. for i = 1, 3 do
  91. c0[i] = c0[i]*scale
  92. c1[i] = c1[i]*scale
  93. end
  94. v.C0 = CFrame.new(unpack(c0))
  95. v.C1 = CFrame.new(unpack(c1))
  96. local m = Instance.new("Motor6D")
  97. for q,e in pairs(v) do
  98. m[q] = e
  99. end
  100. end
  101. for i,v in pairs(char:children()) do
  102. if v:IsA("Accoutrement") then
  103. v.Parent = nil
  104. v.Parent = char
  105. end
  106. end
  107. char.Humanoid.WalkSpeed = 16*scale
  108. char.Humanoid.MaxHealth = 100*scale
  109. char.Humanoid.JumpPower = 50*scale]]
  110.  
  111. RbxUtility = LoadLibrary("RbxUtility")
  112. Create = RbxUtility.Create
  113. local Players = game:GetService('Players')
  114. function SetProperties(Table)
  115. local Object = Table.Object
  116. local Properties = Table.Properties
  117. if not Object or not Properties then
  118. return
  119. end
  120. for i, v in pairs(Properties) do
  121. pcall(function()
  122. Object[i] = v
  123. end)
  124. end
  125. return Object
  126. end
  127. function ScaleCharacter(Character, Scale, Permissions)--i did not make this part
  128. local Permissions = (Permissions or {})
  129. if not Character --[[or not Character.Parent]] then
  130. return
  131. end
  132. local Humanoid = Character:FindFirstChild("Humanoid")
  133. --[[if not Humanoid then
  134. return
  135. end]]
  136. if Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R15 then
  137. Humanoid.HipHeight = Humanoid.HipHeight * Scale
  138. end
  139.  
  140. local Player = Players:GetPlayerFromCharacter(Character)
  141. if not Player and not Permissions.ResizeModels then
  142. return
  143. end
  144.  
  145. local Parts = {}
  146. local Joints = {}
  147. local Meshes = {}
  148.  
  149. local Hats = {}
  150. local Tools = {}
  151.  
  152. local ToolsResized = {}
  153. local HatsResized = {}
  154.  
  155. local Connections = {}
  156.  
  157. local function ScaleObjects(BaseParent, BaseScale)
  158. local Parts = {}
  159. local Joints = {}
  160. local Meshes = {}
  161. local Hats = {}
  162. local Tools = {}
  163.  
  164. local function GetScaleObjects(Parent)
  165. local Objects = Parent:GetChildren()
  166. if Parent == BaseParent then
  167. table.insert(Objects, BaseParent)
  168. end
  169. for i, v in pairs(Objects) do
  170. if v:IsA("JointInstance") then
  171. table.insert(Joints, {
  172. Joint = v:Clone(),
  173. Part0 = v.Part0,
  174. Part1 = v.Part1,
  175. Parent = v.Parent
  176. })
  177. elseif v:IsA("BasePart") then
  178. table.insert(Parts, v)
  179. elseif v:IsA("Accoutrement") then
  180. table.insert(Hats, v)
  181. -- v.Parent = nil
  182. elseif v:IsA("Tool") then
  183. table.insert(Tools, v)
  184. -- v.Parent = nil --Causes execution scripts again, which is bad.
  185. elseif v:IsA("DataModelMesh") then
  186. table.insert(Meshes, v)
  187. end
  188. if v ~= BaseParent then
  189. GetScaleObjects(v)
  190. end
  191. end
  192. end
  193.  
  194. GetScaleObjects(BaseParent)
  195.  
  196. for i, v in pairs(Meshes) do
  197. if v:IsA("FileMesh") then
  198. if v:IsA("SpecialMesh") and v.MeshType == Enum.MeshType.Head then
  199. v.Scale = (Vector3.new(1, 1, 1) * 1.25)
  200. else
  201. v.Scale = (v.Scale * BaseScale)
  202. end
  203. end
  204. end
  205.  
  206. for i, v in pairs(Parts) do
  207. pcall(function()
  208. v.FormFactor = Enum.FormFactor.Custom
  209. end)
  210. v.Size = (v.Size * BaseScale)
  211. end
  212.  
  213. for i, v in pairs(Hats) do
  214. local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.AttachmentPoint:components()
  215. v.AttachmentPoint = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22)
  216. v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (BaseScale - 1)))
  217. --v.Parent = Character
  218. end
  219.  
  220. for i, v in pairs(Tools) do
  221. local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.Grip:components()
  222. v.Grip = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22)
  223. v.Grip = (v.Grip + v.Grip.lookVector * -(BaseScale - 1))
  224. if Humanoid then
  225. --Humanoid:EquipTool(v)
  226. end
  227. end
  228.  
  229. for i, v in pairs(Joints) do
  230. local C0PX, C0PY, C0PZ, C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22 = v.Joint.C0:components()
  231. local C1PX, C1PY, C1PZ, C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22 = v.Joint.C1:components()
  232. local NewJoint = SetProperties({Object = v.Joint:Clone(), Properties = {
  233. Part0 = v.Part0,
  234. Part1 = v.Part1,
  235. C0 = CFrame.new((C0PX * BaseScale), (C0PY * BaseScale), (C0PZ * BaseScale), C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22),
  236. C1 = CFrame.new((C1PX * BaseScale), (C1PY * BaseScale), (C1PZ * BaseScale), C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22),
  237. Parent = v.Parent,
  238. }})
  239. for ii, vv in pairs(v.Parent:GetChildren()) do
  240. if vv:IsA("JointInstance") and vv.Part0 == v.Part0 and vv.Part1 == v.Part1 and vv ~= NewJoint then
  241. vv:Destroy()
  242. end
  243. end
  244. end
  245.  
  246. return {
  247. Tools = Tools,
  248. Hats = Hats
  249. }
  250. end
  251.  
  252. local Objects = ScaleObjects(Character, Scale)
  253.  
  254. for i, v in pairs(Objects.Tools) do
  255. table.insert(ToolsResized, {Object = v, Connections = {}})
  256. end
  257. for i, v in pairs(Objects.Hats) do
  258. table.insert(HatsResized, {Object = v, Connections = {}})
  259. end
  260.  
  261. if Permissions.ScaleTools then
  262. Connections.ToolAdded = Character.ChildAdded:connect(function(Child)
  263. if Child:IsA("Tool") then
  264. local TableInstance = nil
  265. for i, v in pairs(ToolsResized) do
  266. if v and v.Object and v.Object == Child then
  267. TableInstance = v
  268. end
  269. end
  270. if not TableInstance then
  271. table.insert(ToolsResized, {Object = Child, Connections = {}})
  272. ScaleObjects(Child, Scale)
  273. end
  274. end
  275. end)
  276. Connections.ToolRemoved = Character.ChildRemoved:connect(function(Child)
  277. if Child:IsA("Tool") then
  278. local TableInstance = nil
  279. for i, v in pairs(ToolsResized) do
  280. if v and v.Object and v.Object == Child then
  281. TableInstance = v
  282. end
  283. end
  284. if not TableInstance then
  285. return
  286. end
  287. for i, v in pairs(ToolsResized) do
  288. if v.Object == Child then
  289. for ii, vv in pairs(v.Connections) do
  290. if vv then
  291. vv:disconnect()
  292. end
  293. end
  294. table.remove(ToolsResized, i)
  295. end
  296. end
  297. ScaleObjects(Child, (1 / Scale))
  298. end
  299. end)
  300. end
  301.  
  302. if Permissions.ScaleHats then
  303. Connections.HatAdded = Character.ChildAdded:connect(function(Child)
  304. if Child:IsA("Accoutrement") then
  305. local TableInstance = nil
  306. for i, v in pairs(HatsResized) do
  307. if v and v.Object and v.Object == Child then
  308. TableInstance = v
  309. end
  310. end
  311. if not TableInstance then
  312. table.insert(HatsResized, {Object = Child, Connections = {}})
  313. ScaleObjects(Child, Scale)
  314. end
  315. end
  316. end)
  317. Connections.HatRemoved = Character.ChildRemoved:connect(function(Child)
  318. if Child:IsA("Accoutrement") then
  319. local TableInstance = nil
  320. for i, v in pairs(HatsResized) do
  321. if v and v.Object and v.Object == Child then
  322. TableInstance = v
  323. end
  324. end
  325. if not TableInstance then
  326. return
  327. end
  328. for i, v in pairs(HatsResized) do
  329. if v.Object == Child then
  330. for ii, vv in pairs(v.Connections) do
  331. if vv then
  332. vv:disconnect()
  333. end
  334. end
  335. table.remove(HatsResized, i)
  336. end
  337. end
  338. ScaleObjects(Child, (1 / Scale))
  339. end
  340. end)
  341. end
  342.  
  343. local Head = Character:FindFirstChild("Head")
  344. local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
  345.  
  346. local StateChanged = Create("BoolValue"){
  347. Value = true,
  348. }
  349. Delay(0.1, function()
  350. StateChanged.Value = false
  351. end)
  352.  
  353. if Head and Torso then
  354. if Humanoid then
  355. Humanoid.WalkSpeed = (16 * Scale)
  356. Humanoid.CameraOffset = Vector3.new(0, (Head.Position.Y - Torso.Position.Y - 0.75), 0)
  357. end
  358. if not Permissions.MaintainCFrame then
  359. Torso.CFrame = Torso.CFrame + Vector3.new(0, Torso.Size.Y, 0)
  360. end
  361. end
  362.  
  363. local ScaleBack = Permissions.ScaleBack
  364. if ScaleBack and type(ScaleBack) == "table" and tonumber(ScaleBack.Delay) then
  365. Delay(ScaleBack.Delay, function()
  366. for i, v in pairs(Connections) do
  367. if v then
  368. v:disconnect()
  369. end
  370. end
  371. for i, v in pairs({ToolsResized, HatsResized}) do
  372. for ii, vv in pairs(v) do
  373. for iii, vvv in pairs(vv.Connections) do
  374. if vvv then
  375. vvv:disconnect()
  376. end
  377. end
  378. end
  379. end
  380. local PresetPermissions = {
  381. ScaleBack = false,
  382. ScaleHats = false,
  383. ScaleTools = false
  384. }
  385. if Character --[[and Character.Parent]] then
  386. for i, v in pairs(PresetPermissions) do
  387. Permissions[i] = v
  388. end
  389. ScaleCharacter(Character, (1 / Scale), Permissions)
  390. end
  391. StateChanged.Value = true
  392. end)
  393. end
  394.  
  395. return {
  396. Connections = Connections,
  397. StateChanged = StateChanged
  398. }
  399.  
  400. end
  401. ScaleCharacter(plr.Character, scale)--the rest is mine VVVV
  402. local rs = torso["Right Shoulder"]
  403. local ls = torso["Left Shoulder"]
  404. local rh = torso["Right Hip"]
  405. local lh = torso["Left Hip"]
  406. local rj = char.HumanoidRootPart.RootJoint
  407. local neck = torso.Neck
  408. char.Humanoid.Health = char.Humanoid.MaxHealth
  409. if char:FindFirstChild("Animate") then char.Animate:Destroy() end
  410. for i,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  411. track:Stop()
  412. end
  413. local shirt = char:FindFirstChildOfClass("Shirt")
  414. if shirt then
  415. shirt.ShirtTemplate = "rbxassetid://102716091"
  416. end
  417. local pants = char:FindFirstChildOfClass("Pants")
  418. if pants then
  419. pants.PantsTemplate = "rbxassetid://102712920"
  420. end
  421. local bpz = {"Right Arm", "Left Arm", "Right Leg", "Left Leg", "Head", "Torso"}
  422. for i,v in pairs(bpz) do
  423. char[v].BrickColor = BrickColor.new("Really black")
  424. end
  425. for i,v in pairs(char:children()) do
  426. if v:IsA("Accessory") then
  427. v:Destroy()
  428. end
  429. end
  430. -- thanks dog
  431.  
  432. --Converted with ttyyuu12345's model to script plugin v4
  433. function sandbox(var,func)
  434. local env = getfenv(func)
  435. local newenv = setmetatable({},{
  436. __index = function(self,k)
  437. if k=="script" then
  438. return var
  439. else
  440. return env[k]
  441. end
  442. end,
  443. })
  444. setfenv(func,newenv)
  445. return func
  446. end
  447. cors = {}
  448. mas = Instance.new("Model",game:GetService("Lighting"))
  449. Model0 = Instance.new("Model")
  450. Part1 = Instance.new("Part")
  451. SpecialMesh2 = Instance.new("SpecialMesh")
  452. ParticleEmitter3 = Instance.new("ParticleEmitter")
  453. Attachment4 = Instance.new("Attachment")
  454. Attachment5 = Instance.new("Attachment")
  455. Part6 = Instance.new("Part")
  456. SpecialMesh7 = Instance.new("SpecialMesh")
  457. Part8 = Instance.new("Part")
  458. SpecialMesh9 = Instance.new("SpecialMesh")
  459. Part10 = Instance.new("Part")
  460. SpecialMesh11 = Instance.new("SpecialMesh")
  461. Part12 = Instance.new("Part")
  462. SpecialMesh13 = Instance.new("SpecialMesh")
  463. Model0.Name = "Pumpkin"
  464. Model0.Parent = mas
  465. Part1.Name = "Handle"
  466. Part1.Parent = Model0
  467. Part1.Anchored = true
  468. Part1.CanCollide = false
  469. Part1.FormFactor = Enum.FormFactor.Symmetric
  470. Part1.Size = Vector3.new(2, 2, 2)
  471. Part1.CFrame = CFrame.new(113.089798, 1.00000405, -4.53332996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  472. Part1.BottomSurface = Enum.SurfaceType.Smooth
  473. Part1.TopSurface = Enum.SurfaceType.Smooth
  474. Part1.Position = Vector3.new(113.089798, 1.00000405, -4.53332996)
  475. SpecialMesh2.Parent = Part1
  476. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=16973748"
  477. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  478. SpecialMesh2.TextureId = "rbxassetid://16973739"
  479. SpecialMesh2.VertexColor = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  480. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  481. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  482. ParticleEmitter3.Parent = Part1
  483. ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5)
  484. ParticleEmitter3.Rotation = NumberRange.new(0, 360)
  485. ParticleEmitter3.Size = NumberSequence.new(0.43749988079071,0)
  486. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  487. ParticleEmitter3.LightEmission = 0.5
  488. ParticleEmitter3.Texture = "rbxassetid://3319251"
  489. ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
  490. ParticleEmitter3.Rate = 200
  491. ParticleEmitter3.RotSpeed = NumberRange.new(90, 90)
  492. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  493. Attachment4.Name = "AT2"
  494. Attachment4.Parent = Part1
  495. Attachment4.CFrame = CFrame.new(-1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  496. Attachment4.Position = Vector3.new(-1.60000002, 0, 0)
  497. Attachment5.Name = "AT1"
  498. Attachment5.Parent = Part1
  499. Attachment5.CFrame = CFrame.new(1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  500. Attachment5.Position = Vector3.new(1.60000002, 0, 0)
  501. Part6.Parent = Model0
  502. Part6.Material = Enum.Material.Neon
  503. Part6.BrickColor = BrickColor.new("CGA brown")
  504. Part6.Anchored = true
  505. Part6.Size = Vector3.new(2, 1, 1)
  506. Part6.CFrame = CFrame.new(113.089798, 1.50000405, -5.53333187, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  507. Part6.Color = Color3.new(0.666667, 0.333333, 0)
  508. Part6.Position = Vector3.new(113.089798, 1.50000405, -5.53333187)
  509. Part6.Color = Color3.new(0.666667, 0.333333, 0)
  510. SpecialMesh7.Parent = Part6
  511. SpecialMesh7.MeshType = Enum.MeshType.Sphere
  512. Part8.Parent = Model0
  513. Part8.Material = Enum.Material.Neon
  514. Part8.BrickColor = BrickColor.new("CGA brown")
  515. Part8.Anchored = true
  516. Part8.Size = Vector3.new(2, 1.5, 1.10000002)
  517. Part8.CFrame = CFrame.new(113.089798, 0.750004053, -5.58331966, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  518. Part8.Color = Color3.new(0.666667, 0.333333, 0)
  519. Part8.Position = Vector3.new(113.089798, 0.750004053, -5.58331966)
  520. Part8.Color = Color3.new(0.666667, 0.333333, 0)
  521. SpecialMesh9.Parent = Part8
  522. SpecialMesh9.MeshType = Enum.MeshType.Sphere
  523. Part10.Parent = Model0
  524. Part10.Material = Enum.Material.Neon
  525. Part10.BrickColor = BrickColor.new("CGA brown")
  526. Part10.Rotation = Vector3.new(0, -41, 0)
  527. Part10.Anchored = true
  528. Part10.Size = Vector3.new(1.5, 1.5, 1)
  529. Part10.CFrame = CFrame.new(113.811264, 0.750004053, -5.45703793, 0.754709542, 0, -0.656059086, 0, 1, 0, 0.656059086, 0, 0.754709542)
  530. Part10.Color = Color3.new(0.666667, 0.333333, 0)
  531. Part10.Position = Vector3.new(113.811264, 0.750004053, -5.45703793)
  532. Part10.Orientation = Vector3.new(0, -41, 0)
  533. Part10.Color = Color3.new(0.666667, 0.333333, 0)
  534. SpecialMesh11.Parent = Part10
  535. SpecialMesh11.MeshType = Enum.MeshType.Sphere
  536. Part12.Parent = Model0
  537. Part12.Material = Enum.Material.Neon
  538. Part12.BrickColor = BrickColor.new("CGA brown")
  539. Part12.Rotation = Vector3.new(0, 41, 0)
  540. Part12.Anchored = true
  541. Part12.Size = Vector3.new(1.5, 1.5, 1)
  542. Part12.CFrame = CFrame.new(112.411301, 0.750004053, -5.45703793, 0.754709601, 0, 0.656059027, 0, 1, 0, -0.656059027, 0, 0.754709601)
  543. Part12.Color = Color3.new(0.666667, 0.333333, 0)
  544. Part12.Position = Vector3.new(112.411301, 0.750004053, -5.45703793)
  545. Part12.Orientation = Vector3.new(0, 41, 0)
  546. Part12.Color = Color3.new(0.666667, 0.333333, 0)
  547. SpecialMesh13.Parent = Part12
  548. SpecialMesh13.MeshType = Enum.MeshType.Sphere
  549. for i,v in pairs(mas:GetChildren()) do
  550. v.Parent = game:GetService("Players").LocalPlayer.Character
  551. pcall(function() v:MakeJoints() end)
  552. end
  553. mas:Destroy()
  554. for i,v in pairs(cors) do
  555. spawn(function()
  556. pcall(v)
  557. end)
  558. end
  559.  
  560. local pumpkinhead = char.Pumpkin
  561. local handle = pumpkinhead.Handle
  562. local at1 = Instance.new("Attachment")
  563. at1.Position = Vector3.new(1.6,0,0)
  564. at1.Parent = handle
  565. local at2 = Instance.new("Attachment")
  566. at2.Position = Vector3.new(-1.6,0,0)
  567. at2.Parent = handle
  568. local t = Instance.new("Trail")
  569. t.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(255/255,170/255,0)),ColorSequenceKeypoint.new(0.78,Color3.new(255/255,170/255,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))})
  570. t.FaceCamera = true
  571. t.LightEmission = 0.5
  572. t.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  573. t.Attachment0 = at1
  574. t.Attachment1 = at2
  575. t.Lifetime = 1
  576. t.MinLength = 0.1
  577. t.Parent = handle
  578. local obj = pumpkinhead
  579. local scr = ""
  580. local n = "\n"
  581. local num = 0
  582. local parts = {}
  583. local last
  584. a = function(b)
  585. for i,v in pairs(b:children()) do
  586. if v.Name ~= ("Handle") and v:IsA("BasePart") then
  587. if not last then last = obj.Handle end
  588. local w = Instance.new("Weld")
  589. w.Part0 = v
  590. w.Part1 = last
  591. w.C0 = v.CFrame:inverse()
  592. w.C1 = last.CFrame:inverse()
  593. w.Parent = v
  594. v.Anchored = false
  595. last = v
  596. table.insert(parts, v)
  597. if v.Name ~= "Blade" then
  598. num = num + 1
  599. v.Name = "Part"..num
  600. end
  601. end
  602. a(v)
  603. end
  604. end
  605. a(obj)
  606. handle.Anchored = false
  607. for i,v in pairs(parts) do v.Anchored = false end
  608. local hatw = Instance.new("Weld")
  609. hatw.Part0 = char.Head
  610. hatw.Part1 = handle
  611. hatw.Parent = char.Head
  612. char.Head.Transparency = 1
  613. if char.Head:FindFirstChild("face") then char.Head.face.Transparency = 1 end
  614.  
  615. function legsonly()
  616. spawn(function()
  617. for i = 0, 10 do
  618. wait(0.001)
  619. if attacking then break end
  620. end
  621. if not attacking then
  622. legs = false
  623. end
  624. end)
  625. end
  626. function swait(t)
  627. if t == nil or t == 0 then
  628. game:service('RunService').Stepped:wait(0)
  629. return true
  630. else
  631. for i = 0, t do
  632. game:service('RunService').Stepped:wait(0)
  633. end
  634. return true
  635. end
  636. end
  637. function hurt(hit, dmg)
  638. if hit.Parent then
  639. if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end
  640. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  641. if hum then
  642. if hum.Parent ~= char then
  643. if dmg == "Kill" then
  644. hit.Parent:BreakJoints()
  645. return true
  646. else
  647. if math.random(0, 100) == 50 and crits then
  648. hum.Health = hum.Health - dmg*multiplier*2.5
  649. else
  650. hum.Health = hum.Health -dmg*multiplier
  651. end
  652. return true
  653. end
  654. end
  655. end
  656. end
  657. end
  658. function soundeffect(id, volume, speed, parent, forcewait)
  659. if forcewait then
  660. local s = parent:FindFirstChildOfClass("Sound")
  661. if not s then
  662. s = Instance.new("Sound")
  663. else
  664. if s.SoundId ~= id then
  665. s = Instance.new("Sound")
  666. end
  667. end
  668. s.SoundId = id
  669. s.Volume = volume
  670. s.PlaybackSpeed = speed
  671. s.Parent = parent
  672. s:Play()
  673. repeat wait() until not s.Playing
  674. s:Destroy()
  675. else
  676. spawn(function()
  677. local s = parent:FindFirstChildOfClass("Sound")
  678. if not s then
  679. s = Instance.new("Sound")
  680. else
  681. if s.SoundId ~= id then
  682. s = Instance.new("Sound")
  683. end
  684. end
  685. s.SoundId = id
  686. s.Volume = volume
  687. s.PlaybackSpeed = speed
  688. s.Parent = parent
  689. s:Play()
  690. repeat wait() until not s.Playing
  691. s:Destroy()
  692. end)
  693. end
  694. end
  695. function gethum(obj)
  696. if obj.Parent then
  697. if obj.Parent:FindFirstChild("Humanoid") then
  698. if obj.Parent.Name ~= plr.Name then
  699. return obj.Parent:FindFirstChildOfClass("Humanoid")
  700. end
  701. end
  702. end
  703. end
  704. function pushback(toucher, hit, knockback, stuns)
  705. local bv = Instance.new("BodyVelocity")
  706. bv.MaxForce = huge
  707. bv.Velocity = CFrame.new(toucher.Position, hit.Position).lookVector*knockback
  708. bv.Parent = hit
  709. if gethum(hit) then
  710. gethum(hit).PlatformStand = true
  711. end
  712. game.Debris:AddItem(bv, 0.1)
  713. end
  714. function smooth(obj)
  715. local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
  716. for i,v in pairs(sides) do
  717. obj[v.."Surface"] = "SmoothNoOutlines"
  718. end
  719. end
  720. function fade(obj, dest, grow)
  721. spawn(function()
  722. local oldcf = obj.CFrame
  723. for i = 0, 10 do
  724. if grow then
  725. obj.Size = obj.Size +Vector3.new(1,1,1)
  726. obj.CFrame = oldcf
  727. end
  728. obj.Transparency = obj.Transparency +0.1
  729. swait()
  730. end
  731. if dest then
  732. obj:Destroy()
  733. end
  734. end)
  735. end
  736. function replacejoint(name)
  737. local j = torso:FindFirstChild(name)
  738. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  739. if j then
  740. if true then
  741. local new = Instance.new("Weld")
  742. new.Part0 = j.Part0
  743. j.Part0 = nil
  744. new.Name = j.Name.." Replacement"
  745. new.Parent = j.Parent
  746. new.Part1 = j.Part1
  747. new.C0 = j.C0
  748. new.C1 = j.C1
  749. return new
  750. end
  751. end
  752. end
  753. function lightning(start,finish,segments, color, thickness, sound)
  754. local full = (start.p-finish.p).magnitude
  755. local lastpart
  756. local lastscale
  757. local direction = CFrame.new(finish.p,start.p).lookVector
  758. local model
  759. model = Instance.new("Model")
  760. for i = 1, segments do
  761. local p = Instance.new("Part")
  762. p.CFrame = start
  763. if not lastscale then lastscale = 0.5 end
  764. if not lastpart then lastpart = p end
  765. local startp = lastpart.CFrame*CFrame.new(0,0,-lastscale/2)
  766. local p = Instance.new("Part", model)
  767. p.Name = "segment"..i
  768. p.BrickColor = color
  769. local endpos
  770. if i == segments then
  771. endpos = finish
  772. else
  773. if lastpart == char.Torso then
  774. endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*2,thickness*2),math.random(-thickness*2,thickness*2),full/segments)
  775. else
  776. endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*2,thickness*2),math.random(-thickness*2,thickness*2),full/segments)
  777. end
  778. --[[local p = Instance.new("Part", model)
  779. p.Anchored = true
  780. p.Size = Vector3.new(thickness,thickness,1)
  781. p.CanCollide = false
  782. p.CFrame = endpos]]
  783. end
  784. local mag = (startp.p-endpos.p).magnitude
  785. p.Anchored = true
  786. p.CanCollide = false
  787. local m = Instance.new("SpecialMesh", p)
  788. m.MeshType = "Brick"
  789. for i,v in pairs({"Right", "Left", "Top", "Bottom", "Front", "Back"}) do
  790. p[v.."Surface"] = "SmoothNoOutlines"
  791. end
  792. p.Size = Vector3.new(thickness,thickness,mag)
  793. p.CFrame = CFrame.new(startp.p, endpos.p) *CFrame.new(0,0,-mag/2)
  794. lastscale = mag
  795. lastpart = p
  796. end
  797. model.Parent = char
  798. spawn(function()
  799. local s
  800. if sound then
  801. s = Instance.new("Sound", lastpart)
  802. s.Volume = 5
  803. s.SoundId = "rbxassetid://224339201"
  804. s.PlayOnRemove = true
  805. s:Play()
  806. end
  807. for i = 1, 10*2 do
  808. for i,v in pairs(model:children()) do
  809. v.Transparency = v.Transparency +0.1/2
  810. end
  811. wait()
  812. end
  813. if sound then
  814. s:Destroy()
  815. end
  816. model:Destroy()
  817. end)
  818. return model
  819. end
  820. function removejoint(name)
  821. local j = torso:FindFirstChild(name.." Replacement")
  822. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  823. if j then
  824. local p0 = j.Part0
  825. local c0 = j.C0
  826. local c1 = j.C1
  827. j:Destroy()
  828. local new = p0:FindFirstChild(name)
  829. local ac0 = new.C0
  830. local ac1 = new.C1
  831. new.Part0 = p0
  832. new.C0 = c0
  833. new.C1 = c1
  834. spawn(function()
  835. for i = 0, 1, 0.1 do
  836. new.C0 = new.C0:Lerp(ac0, 0.7)
  837. new.C1 = new.C1:lerp(ac1, 0.7)
  838. wait()
  839. end
  840. end)
  841. end
  842. end
  843. function fixalljoints()
  844. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  845. removejoint(v)
  846. end
  847. end
  848. function getnewjoints()
  849. local rs = replacejoint("Right Shoulder")
  850. local ls = replacejoint("Left Shoulder")
  851. local rh = replacejoint("Right Hip")
  852. local lh = replacejoint("Left Hip")
  853. local neck = replacejoint("Neck")
  854. local rj = replacejoint("RootJoint")
  855. return rs,ls,rh,lh,neck,rj
  856. end
  857. function getreplacec0s()
  858. local rs = torso["Right Shoulder"]
  859. local ls = torso["Left Shoulder"]
  860. local rh = torso["Right Hip"]
  861. local lh = torso["Left Hip"]
  862. local rj = char.HumanoidRootPart.RootJoint
  863. local neck = torso.Neck
  864. return rs.C0,ls.C0,rh.C0,lh.C0,neck.C0,rj.C0
  865. end
  866. local jumped = false
  867. local candj = true
  868. local docon = false
  869. local freefall = false
  870. local cone
  871. humanoid.StateChanged:connect(function(_,new)
  872. if new == Enum.HumanoidStateType.Freefall then freefall = true else freefall = false end
  873. end)
  874. cone = humanoid.Changed:connect(function(prop)
  875. swait(3)
  876. if not humanoid.Jump and docon and prop == "Jump" then
  877. candj = true
  878. jumped = false
  879. docon = false
  880. end
  881. end)
  882. mouse.KeyDown:connect(function(key)
  883. if key == "r" and not attacking then
  884. local rs,ls,rh,lh,neck,rj = getnewjoints()
  885. attacking = true
  886. local p = pumpkinhead:Clone()
  887. local phand = p.Handle
  888. phand.AT1.Position = Vector3.new(0.5,0,0)
  889. phand.AT2.Position = Vector3.new(-0.5,0,0)
  890. phand.Mesh.Scale = Vector3.new(0,0,0)
  891. local w = Instance.new("Weld")
  892. w.Part0 = char["Right Arm"]
  893. w.Part1 = phand
  894. w.C1 = CFrame.new(0,1,0)
  895. w.Parent = char["Right Arm"]
  896. p.Parent = char
  897. for i = 0, 2, 0.1 do
  898. phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2), 0.2)
  899. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0.305212736, 0.156434491, -0.9393484, -0.048340939, 0.987688541, 0.148778111, 0.951057434, 0, 0.309017241), 0.2)
  900. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.00729153398, -0.104904592, 0.994455755, -0.104274213, -0.989144921, -0.103580341, 0.994524956, -0.102940485, -0.0181511845), 0.2)
  901. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0, -0.0270539615, 0.100966766, -0.994522035, -0.257401317, 0.960634768, 0.104528472, 0.96592617, 0.258819103, 0), 0.2)
  902. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0, 0.00911026634, -0.0866784006, 0.996195018, -0.10413079, 0.990738153, 0.0871557668, -0.994522691, -0.104528546, 0), 0.2)
  903. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  904. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.970296144, -0.241921961, 0, 0, 0, 1, -0.241921961, 0.970296144, 0), 0.2)
  905. swait()
  906. end
  907. phand.Mesh.Scale = Vector3.new(2,2,2)
  908. swait(15)
  909. for i = 0, 2, 0.1 do
  910. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0, -0.0172375813, 0.156434491, -0.987539232, 0.0027301528, 0.987688541, 0.156410769, 0.999848783, 0, -0.0174524169), 0.2)
  911. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0, 0.0183038525, 0.103552699, 0.994455755, 0.340473503, 0.934539497, -0.103580341, -0.940082133, 0.340481132, -0.0181511845), 0.2)
  912. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0, 0.0357508697, 0.0982247144, -0.994522035, 0.34014678, 0.934545875, 0.104528472, 0.93969363, -0.342020512, 0), 0.2)
  913. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0, -0.0298090633, -0.0818997845, 0.996195018, 0.340719104, 0.936117887, 0.0871557668, -0.939694166, 0.342020661, 0), 0.2)
  914. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  915. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.992546976, 0.12186949, 0, 0, 0, 1, 0.12186949, 0.992546976, 0), 0.2)
  916. if i == 0.5 then
  917. phand.Touched:connect(function(hit)
  918. if hurt(hit, 30) then
  919. pushback(phand, hit, 50)
  920. end
  921. end)
  922. w:Destroy()
  923. local bv = Instance.new("BodyVelocity")
  924. bv.MaxForce = huge
  925. bv.Velocity = CFrame.new(phand.Position, mouse.Hit.p).lookVector*300
  926. bv.Parent = phand
  927. game.Debris:AddItem(bv, 0.1)
  928. game.Debris:AddItem(p, 7)
  929. end
  930. swait()
  931. end
  932. attacking = false
  933. fixalljoints()
  934. end
  935. if key == "e" and not attacking then
  936. attacking = true
  937. local rs,ls,rh,lh,neck,rj = getnewjoints()
  938. for i = 0, 1, 0.1 do
  939. rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0, 0.809017539, 0.58778578, 0.777147532, -0.369906187, 0.509132028, 0.629321337, 0.456796199, -0.628725946), 0.2)
  940. swait()
  941. end
  942. local p = pumpkinhead:Clone()
  943. local phand = p.Handle
  944. if phand:FindFirstChildOfClass("Weld") then phand:FindFirstChildOfClass("Weld"):Destroy() end
  945. local roll = Instance.new("Part")
  946. roll.Size = phand.Size*1.1
  947. roll.Transparency = 1
  948. local m = Instance.new("SpecialMesh")
  949. m.MeshType = "Sphere"
  950. m.Parent = roll
  951. roll.Parent = phand
  952. local wr = Instance.new("Weld")
  953. wr.Part0 = roll
  954. wr.Part1 = phand
  955. wr.Parent = roll
  956. phand.CanCollide = false
  957. phand.CFrame = char["Right Arm"].CFrame
  958. phand.AT1.Position = Vector3.new(0.5,0,0)
  959. phand.AT2.Position = Vector3.new(-0.5,0,0)
  960. phand.Mesh.Scale = Vector3.new(0,0,0)
  961. local w = Instance.new("Weld")
  962. w.Part0 = char["Right Arm"]
  963. w.Part1 = phand
  964. w.C1 = CFrame.new(0,-1,0)
  965. w.Parent = char["Right Arm"]
  966. p.Parent = char
  967. local owc0 = w.C0
  968. local owc1 = w.C1
  969. for i = 1, 3 do
  970. w.C0 = owc0:Lerp(CFrame.new(0,0,0),i/3)
  971. w.C1 = owc1:Lerp(CFrame.new(0,1,0),i/3)
  972. swait()
  973. end
  974. for i = 0, 1.5, 0.1 do
  975. phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2),0.2)
  976. ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.0871557444, -0.99619478, 0, 0.99619478, 0.0871557444, 1, 0, 0), 0.2)
  977. rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, -0.234881252, -0.345627934, 0.908500791, -0.649224281, 0.751387894, 0.118007705, -0.723423064, -0.562102258, -0.40087676), 0.2)
  978. neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -0.956305385, 0.292371839, 0, 0, 0, 1, 0.292371839, 0.956305385, 0), 0.2)
  979. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.933580935, -0.358368039, 0, 0, 0, 1, -0.358368039, 0.933580935, 0), 0.2)
  980. swait()
  981. end
  982. phand.Mesh.Scale = Vector3.new(2,2,2)
  983. swait(10)
  984. for i = 0, 1.5, 0.1 do
  985. ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.0871557444, -0.99619478, 0, 0.99619478, 0.0871557444, 1, 0, 0), 0.2)
  986. rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, -0.345579475, -0.00998185948, 0.938337684, 0.718884468, 0.639891982, 0.271563947, -0.603144944, 0.76840359, -0.213957176), 0.2)
  987. neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -0.996195555, 0.0871557295, 0, 0, 0, 1, 0.0871557295, 0.996195555, 0), 0.2)
  988. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999391556, 0.0348995775, 0, 0, 0, 1, 0.0348995775, 0.999391556, 0), 0.2)
  989. swait()
  990. end
  991. w:Destroy()
  992. game.Debris:AddItem(p, 5)
  993. local at = false
  994. phand.Touched:connect(function(hit)
  995. if hurt(hit, 10) then
  996. pushback(phand, hit, 120, true)
  997. if not at then
  998. at = true
  999. for i = 1, 30 do
  1000. local ocf = phand.CFrame
  1001. phand.Size = phand.Size:Lerp(Vector3.new(10,10,10),0.4)
  1002. phand.CFrame = ocf
  1003. phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(10,10,10), 0.2)
  1004. for i,v in pairs(p:children()) do
  1005. if v:IsA("BasePart") then
  1006. v.Transparency = i/30
  1007. end
  1008. end
  1009. swait()
  1010. end
  1011. p:Destroy()
  1012. else
  1013. hurt(hit, 40)
  1014. end
  1015. end
  1016. end)
  1017. local bv = Instance.new("BodyForce")
  1018. local v = Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z)
  1019. bv.Force = CFrame.new(phand.Position, Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z)).lookVector*5000
  1020. bv.Parent = phand
  1021. fixalljoints()
  1022. attacking = false
  1023. end
  1024. if key:byte() == 32 then
  1025. local d = false
  1026. if jumped and candj or candj and freefall then
  1027. docon = true
  1028. jumped = true
  1029. d = true
  1030. candj = false
  1031. torso.Velocity = Vector3.new(torso.Velocity.X,120,torso.Velocity.Z)
  1032. local p = Instance.new("Part")
  1033. p.Anchored = true
  1034. p.CanCollide = false
  1035. p.Size = Vector3.new(1.16,0.1,1.16)
  1036. p.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) *CFrame.Angles(math.rad(90),0,0)
  1037. p.BrickColor = BrickColor.new("Deep orange")
  1038. local m = Instance.new("SpecialMesh")
  1039. m.MeshId = "rbxassetid://3270017"
  1040. m.Scale = Vector3.new(1,1,0.1)
  1041. m.Parent = p
  1042. p.Parent = workspace
  1043. for i = 1, 15 do
  1044. p.Size = Vector3.new(1.16*i,1.16*i,0.1)
  1045. p.Mesh.Scale = Vector3.new(i*1,i*1,0.1)
  1046. p.Transparency = i/15
  1047. swait()
  1048. end
  1049. end
  1050. if not jumped and not d then
  1051. docon = true
  1052. jumped = true
  1053. end
  1054. end
  1055. if key == "t" and not attacking then
  1056. attacking = true
  1057. local hit = mouse.Hit
  1058. local parts = {}
  1059. local done = false
  1060. local stop = false
  1061. for i = 1, 3 do
  1062. local p = Instance.new("Part")
  1063. local d1
  1064. local d2
  1065. table.insert(parts, p)
  1066. spawn(function()
  1067. wait()
  1068. repeat wait()
  1069. if attacking and not done then
  1070. p.CFrame = p.CFrame:Lerp(p.CFrame *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.5)
  1071. end
  1072. if done then
  1073. p.Transparency = p.Transparency + 0.1
  1074. end
  1075. until stop
  1076. p:Destroy()
  1077. end)
  1078. p.Anchored = true
  1079. p.CanCollide = false
  1080. p.Size = Vector3.new(6,0.2,6)
  1081. p.CFrame = CFrame.new(hit.p) *CFrame.new(math.random(-10,10),0,math.random(-10,10)) *CFrame.Angles(math.rad(90),0,0)
  1082. p.Transparency = 0
  1083. local m = Instance.new("SpecialMesh")
  1084. m.MeshId = "http://www.roblox.com/asset/?id=16973748"
  1085. m.TextureId = "rbxassetid://16973739"
  1086. m.Scale = Vector3.new(2,2,0.05)
  1087. m.VertexColor = Vector3.new(0.3,0.3,0.3)
  1088. m.Parent = p
  1089. p.Parent = workspace
  1090. wait(0.1)
  1091. end
  1092. for i,v in pairs(parts) do
  1093. wait(0.05)
  1094. local tbl = {"Deep orange", "CGA brown", "Really black", "Dark stone grey"}
  1095. local l = lightning(v.CFrame *CFrame.new(0,0,-100), v.CFrame, 5, BrickColor.new(tbl[math.random(#tbl)]), 3, true)
  1096. for q,e in pairs(l:children()) do
  1097. e.Touched:connect(function(hit)
  1098. hurt(hit, 50)
  1099. end)
  1100. end
  1101. end
  1102. done = true
  1103. attacking = false
  1104. wait(0.5)
  1105. stop = true
  1106. end
  1107. if key == "g" and not attacking then
  1108. attacking = true
  1109. local rs,ls,rh,lh,neck,rj = getnewjoints()
  1110. local ows = humanoid.WalkSpeed
  1111. humanoid.WalkSpeed = 0
  1112. for i = 0, 2, 0.1 do
  1113. ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0.2199976, -0.868436694, -0.444322497, -0.687909424, 0.184835598, -0.70186913, 0.691653669, 0.460062593, -0.556741416), 0.2)
  1114. rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0.177245006, 0.792773426, 0.583178401, 0.763805687, 0.262872756, -0.589492202, -0.620634317, 0.549919426, -0.55893147), 0.2)
  1115. lh.C0 = lh.C0:Lerp(CFrame.new(-2, -0.117741741, -1.03300738, 0, 0, -1, 0.13917312, 0.99026835, 0, 0.99026835, -0.13917312, 0), 0.2)
  1116. rh.C0 = rh.C0:Lerp(CFrame.new(2, -0.0999996886, -1.10000014, 0, 0, 1, -0.173648223, 0.984808087, 0, -0.984808087, -0.173648223, 0), 0.2)
  1117. neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -1, 0, 0, 0, 0.224951103, 0.97437036, 0, 0.97437036, -0.224951103), 0.2)
  1118. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1119. swait()
  1120. end
  1121. local p = Instance.new("Part")
  1122. p.Name = "woah!"
  1123. p.BrickColor = BrickColor.new("CGA brown")
  1124. p.CanCollide = false
  1125. p.Size = Vector3.new(20,20,20)
  1126. p.Anchored = true
  1127. p.Material = "Neon"
  1128. local m = Instance.new("SpecialMesh")
  1129. m.MeshType = "Sphere"
  1130. m.Parent = p
  1131. p.CFrame = char.Torso.CFrame
  1132. p.Parent = workspace
  1133. for i = 1, 20 do
  1134. local ocf = p.CFrame
  1135. p.Size = p.Size:Lerp(Vector3.new(0.1,0.1,0.1), 0.2)
  1136. p.Transparency = i/20
  1137. p.CFrame = ocf
  1138. swait()
  1139. end
  1140. spawn(function()
  1141. for i = 0, 1.5, 0.1 do
  1142. ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.258819133, -0.96592629, 0.104528472, 0.960634828, 0.257401317, 0.994522035, -0.100966774, -0.0270539615), 0.3)
  1143. rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0, -0.325568229, 0.94551903, -0.0697564781, 0.943215668, 0.324775219, -0.997564137, -0.0659560561, -0.0227104928), 0.3)
  1144. lh.C0 = lh.C0:Lerp(CFrame.new(-2, -2, 0, 0.0151344407, 0.172987476, -0.984807968, 0.0858316794, 0.981060624, 0.173648208, 0.996195018, -0.0871557668, 0), 0.3)
  1145. rh.C0 = rh.C0:Lerp(CFrame.new(2, -2, 0, 0.0151344426, -0.172987491, 0.984808207, -0.0858317018, 0.981060803, 0.173648253, -0.99619478, -0.0871557444, 0), 0.3)
  1146. neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -1, 0, 0, 0, -0.13917312, 0.99026823, 0, 0.99026823, 0.13917312), 0.3)
  1147. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.3)
  1148. swait()
  1149. end
  1150. end)
  1151. p:Destroy()
  1152. local p = Instance.new("Part")
  1153. p.Name = "BOOOOOOOOOMMM WOOSH BANG POW OOF"
  1154. p.BrickColor = BrickColor.new("Really black")
  1155. p.Size = Vector3.new(300,0.1,0.1)
  1156. p.Anchored = false
  1157. p.Material = "Neon"
  1158. p.CFrame = char.Torso.CFrame *CFrame.Angles(0,0,math.rad(90))
  1159. p.CanCollide = false
  1160. local m = Instance.new("SpecialMesh")
  1161. m.MeshType = "Cylinder"
  1162. m.Parent = p
  1163. local bp = Instance.new("BodyPosition")
  1164. bp.MaxForce = huge
  1165. bp.Position = p.Position
  1166. bp.Parent = p
  1167. p.Parent = workspace
  1168. p.Touched:connect(function(hit)
  1169. if hurt(hit, 100) then
  1170. pushback(char.Torso, hit, 130)
  1171. end
  1172. end)
  1173. for i = 1, 100 do
  1174. local ocf = p.CFrame
  1175. p.Size = p.Size:Lerp(Vector3.new(300,40,40), 0.1)
  1176. p.CFrame = ocf
  1177. p.Transparency = i/100
  1178. swait()
  1179. end
  1180. p:Destroy()
  1181. humanoid.WalkSpeed = ows
  1182. fixalljoints()
  1183. attacking = false
  1184. end
  1185. if key == "m" and not attacking and animpose ~= "Falling" then
  1186. attacking = true
  1187. local rs,ls,rh,lh,neck,rj = getnewjoints()
  1188. char:FindFirstChildOfClass("Humanoid").JumpPower = 500
  1189. char:FindFirstChildOfClass("Humanoid").Jump = true
  1190. wait()
  1191. char:FindFirstChildOfClass("Humanoid").JumpPower = 50
  1192. repeat wait() until char.HumanoidRootPart.Velocity.Y < 0
  1193. local num = 0.5
  1194. local num2 = 0.5
  1195. repeat wait()
  1196. num = num + 0.5
  1197. if num2 < 10 then
  1198. num2 = num2+0.5
  1199. end
  1200. if num%3 == 0 then soundeffect("rbxassetid://541909814", 2, 1, char.Torso) end
  1201. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, -0.0321390443, -0.899457872, -0.435827494, -0.903263509, 0.212814748, -0.37259686, 0.427884579, 0.381691694, -0.819286048), 0.2)
  1202. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.166612521, 0.861375272, 0.47987023, 0.814885736, 0.153724328, -0.558868229, -0.555161953, 0.484153807, -0.67630893), 0.2)
  1203. lh.C0 = lh.C0:Lerp(CFrame.new(-0.988398254*scale, -0.309396505*scale, -0.610682189*scale, 0.00854844693, 0.0146014411, -0.999856889, 0.498114854, 0.866946518, 0.0169191808, 0.867069304, -0.498188108, 0.00013788142), 0.2)
  1204. rh.C0 = rh.C0:Lerp(CFrame.new(0.988217235*scale, -0.304208815*scale, -0.86811024*scale, 0.00891196821, -0.0143678738, 0.999857128, -0.528013527, 0.849068403, 0.0169073474, -0.849189758, -0.528088629, -1.95365774e-005), 0.2)
  1205. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, 0, 0, 0, 0.788011312, 0.615662038, 0, 0.61566186, -0.788011372), 0.2)
  1206. rj.C0 = rj.C0 *CFrame.Angles(math.rad((5*num2)),0,0)
  1207. until char.HumanoidRootPart.Velocity.Y > -1
  1208. soundeffect("rbxassetid://165969964", 3, 1, char.Torso)
  1209. for i = 0, 1.3, 0.1 do
  1210. if i == 0.6 then
  1211. local ring = Instance.new("Part")
  1212. ring.Size = Vector3.new(1.16, 1.16, 0.16)
  1213. local bc = BrickColor.Random()
  1214. if rage then
  1215. bc = BrickColor.new("Really black")
  1216. end
  1217. ring.BrickColor = bc
  1218. ring.Anchored = true
  1219. ring.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0)
  1220. ring.CanCollide=false
  1221. ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0)
  1222. local m = Instance.new("SpecialMesh", ring)
  1223. m.MeshId = "rbxassetid://3270017"
  1224. ring.Parent = workspace
  1225. local thing = Instance.new("Part")
  1226. thing.Size = Vector3.new(1.866, 1.421, 2.155)
  1227. thing.BrickColor = bc
  1228. thing.Anchored = true
  1229. thing.CanCollide = false
  1230. thing.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5*2,0)
  1231. local m2 = Instance.new("SpecialMesh", thing)
  1232. m2.MeshId = "rbxassetid://20329976"
  1233. m2.Scale = Vector3.new(1,0.5,1)
  1234. thing.Parent = workspace
  1235. local oldcf2 = thing.CFrame
  1236. local multiplier2 = Vector3.new(1.866, 1.421, 2.155)*3
  1237. local oldcf = ring.CFrame
  1238. local multiplier = Vector3.new(1.16, 1.16, 0.16)*3
  1239. thing.Touched:connect(function(hit)
  1240. if hurt(hit, math.random(30,35)) then
  1241. local bv = Instance.new("BodyVelocity")
  1242. bv.MaxForce = huge
  1243. bv.Velocity = CFrame.new(thing.Position, hit.Position).lookVector*100
  1244. bv.Parent = hit
  1245. game.Debris:AddItem(bv, 0.1)
  1246. end
  1247. end)
  1248. ring.Touched:connect(function(hit)
  1249. if hurt(hit, math.random(10,15)) then
  1250. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1251. local bv = Instance.new("BodyVelocity")
  1252. bv.MaxForce = huge
  1253. bv.Velocity = CFrame.new(ring.Position, hit.Position).lookVector*100
  1254. bv.Parent = hit
  1255. game.Debris:AddItem(bv, 0.1)
  1256. end
  1257. end)
  1258. spawn(function()
  1259. for i = 0, 20 do
  1260. ring.Size = multiplier*i
  1261. m.Scale = m.Scale +Vector3.new(3,3,3)
  1262. ring.CFrame = oldcf
  1263. ring.Transparency = ring.Transparency +0.05
  1264. thing.Size = multiplier*i
  1265. m2.Scale = m2.Scale +Vector3.new(3,3,3)
  1266. thing.CFrame = oldcf2
  1267. thing.Transparency = thing.Transparency +0.05
  1268. swait()
  1269. end
  1270. thing:Destroy()
  1271. ring:Destroy()
  1272. end)
  1273. end
  1274. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.13917312, -0.99026823, 0, 0.99026823, 0.13917312, 1, 0, 0), 0.7)
  1275. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.190809026, 0.981627405, 0, 0.981627405, 0.190809026, -1, 0, 0), 0.7)
  1276. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.297612011*scale, -0.327801049*scale, 0, 0, -1, 0.374606699, 0.927184403, 0, 0.927184403, -0.374606699, 0), 0.7)
  1277. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -0.399999917*scale, -0.5*scale, 0, 0, 1, 0.121869355, 0.99254632, 0, -0.99254632, 0.121869355, 0), 0.7)
  1278. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7)
  1279. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, -0.800000072*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7)
  1280. wait()
  1281. end
  1282. attacking = false
  1283. fixalljoints()
  1284.  
  1285. end
  1286. if key == "q" and not attacking then
  1287. attacking = true
  1288. local rs = replacejoint("Right Shoulder")
  1289. local ls = replacejoint("Left Shoulder")
  1290. local rj = replacejoint("RootJoint")
  1291. local neck = replacejoint("Neck")
  1292. local arm = Instance.new("Part")
  1293. arm.Name = "cool effects brooo"
  1294. arm.BrickColor = BrickColor.new("Deep orange")
  1295. arm.Material = "Neon"
  1296. arm.Transparency = 1
  1297. smooth(arm)
  1298. arm.Size = char["Right Arm"].Size+Vector3.new(0.05,0.05,0.05)
  1299. arm.CanCollide = false
  1300. arm.Anchored = false
  1301. arm.Parent = char
  1302. local w = Instance.new("Weld")
  1303. w.Name = "weld 4 kool peepz"
  1304. w.Part0 = arm
  1305. w.Part1 = char["Right Arm"]
  1306. w.Parent = arm
  1307. for i = 0, 2, 0.1 do
  1308. if arm.Transparency > 0.5 then
  1309. arm.Transparency = arm.Transparency - 0.1
  1310. end
  1311. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.258819103, -0.96592617, 0, 0.96592617, 0.258819103, 1, 0, 0), 0.2)
  1312. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.325568289, 0.945519149, 0.974371135, 0.212695867, 0.0732370615, -0.224951506, 0.921286225, 0.317224324), 0.2)
  1313. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.913546145, 0.406736821, 0, 0, 0, 1, 0.406736821, 0.913546145, 0), 0.2)
  1314. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.920505762, -0.390731364, 0, 0, 0, 1, -0.390731364, 0.920505762, 0), 0.2)
  1315. swait()
  1316. end
  1317. local rjcf = rj.C0
  1318. local lscf = ls.C0
  1319. local neckcf = neck.C0
  1320. local rscf = rs.C0
  1321. swait(25)
  1322. soundeffect("rbxassetid://449025737", 2, 1, char.Torso)
  1323. for i = 0, 1, 0.1 do
  1324. local ring = Instance.new("Part")
  1325. ring.Name = "cool rihg thtat's thadsada"
  1326. ring.BrickColor = BrickColor.new("Deep orange")
  1327. ring.Size = Vector3.new(1,1,1)
  1328. ring.CanCollide = false
  1329. ring.Anchored = true
  1330. ring.CFrame = char["Right Arm"].CFrame *CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1331. local m = Instance.new("SpecialMesh")
  1332. m.MeshId = "rbxassetid://3270017"
  1333. m.Parent = ring
  1334. ring.Parent = workspace
  1335. spawn(function()
  1336. local sz = m.Scale
  1337. for i = 1, 20 do
  1338. ring.Transparency = i/20
  1339. m.Scale = sz:Lerp(Vector3.new(3,3,3), i/20)
  1340. swait()
  1341. end
  1342. ring:Destroy()
  1343. end)
  1344. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.0871557519, -0.996195078, 0, 0.996195078, 0.0871557519, 1, 0, 0), i/1)
  1345. rs.C0 = rs.C0:Lerp(CFrame.new(0.993019104*scale, 0.410033107*scale, -0.389689326*scale, 0.00568197947, 0.016501667, 0.999848545, 0.99451226, -0.104560688, -0.00392594887, 0.104480237, 0.994383693, -0.0170050543), i/1)
  1346. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.984808803, -0.173648447, 0, 0, 0, 1, -0.173648447, 0.984808803, 0), i/1)
  1347. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.981628299, 0.190809309, 0, 0, 0, 1, 0.190809309, 0.981628299, 0), i/1)
  1348. swait()
  1349. end
  1350. local p = Instance.new("Part")
  1351. p.Anchored = true
  1352. p.CanCollide = false
  1353. p.BrickColor = BrickColor.new("Deep orange")
  1354. p.Material = "Neon"
  1355. p.Size = Vector3.new(1,1,1)
  1356. smooth(p)
  1357. p.CFrame = char["Right Arm"].CFrame *CFrame.new(0,-1,0)
  1358. p.Name = "spherical radicul"
  1359. local m = Instance.new("SpecialMesh")
  1360. m.MeshType = "Sphere"
  1361. m.Parent = p
  1362. p.Touched:connect(function(hit)
  1363. if hurt(hit, 50) then
  1364. local dir = CFrame.new(p.CFrame.p,hit.CFrame.p).lookVector
  1365. local bv = Instance.new("BodyVelocity")
  1366. bv.MaxForce = huge
  1367. bv.Velocity = dir*200
  1368. bv.Parent = hit
  1369. game.Debris:AddItem(bv, 0.1)
  1370. end
  1371. end)
  1372. p.Parent = workspace
  1373. local ring = p:Clone()
  1374. ring:ClearAllChildren()
  1375. local m = Instance.new("SpecialMesh")
  1376. m.MeshId = "rbxassetid://3270017"
  1377. m.Scale = Vector3.new(1.2,1.2,1.2)
  1378. m.Parent = ring
  1379. ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0)
  1380. ring.Parent = workspace
  1381. local size = m.Scale
  1382. local size2 = p.Size
  1383. for i = 1, 30 do
  1384. local cf = p.CFrame
  1385. m.Scale = size:Lerp(Vector3.new(30.2,30.2,30.2), i/30)
  1386. p.Size = size2:Lerp(Vector3.new(30,30,30), i/30)
  1387. p.Transparency = i/30
  1388. ring.Transparency = i/30
  1389. p.CFrame = cf
  1390. swait()
  1391. end
  1392. p:Destroy()
  1393. ring:Destroy()
  1394. fixalljoints()
  1395. swait(3)
  1396. attacking = false
  1397. fade(arm, true)
  1398. end
  1399. if key == "z" and attacking == false then
  1400. local og = mobs.Volume
  1401. mobs.Volume = 0.1
  1402. soundeffect("rbxassetid://333446256", 2, 1, char["HumanoidRootPart"], true)
  1403. mobs.Volume = og
  1404. end
  1405. end)
  1406. local lp
  1407. spawn(function()
  1408. local num = 0
  1409. while swait() do
  1410. local v = char.HumanoidRootPart.Velocity
  1411. if v.Y > 15 then
  1412. animpose = "Jump"
  1413. end
  1414. if v.Y < -15 then
  1415. animpose = "Falling"
  1416. end
  1417. if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then
  1418. animpose = "Walking"
  1419. end
  1420. if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then
  1421. animpose = "Idle"
  1422. end
  1423. end
  1424. end)
  1425. local num = 0
  1426. while swait() do
  1427. num = num + 0.1
  1428. local sin = math.sin(num)
  1429. if animpose == "Walking" and cananim then
  1430. for i = 0, 1.5, 0.1 do
  1431. if animpose == "Walking" and cananim then
  1432. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0.0406726934, 0.0329360999, -0.99862957, 0.776081443, 0.62845856, 0.0523359552, 0.629320979, -0.777146459, 0), 0.2)
  1433. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, -0.0388932228, -0.0350196026, 0.998629689, 0.742127001, 0.668214321, 0.0523359627, -0.66913116, 0.743145287, 0), 0.2)
  1434. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, 0.024677692, 0.0246776957, -0.999390841, 0.706676483, 0.706676781, 0.0348994955, 0.707107425, -0.707107246, 0), 0.2)
  1435. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, -0.0136363264, -0.032125175, 0.999390841, 0.390493214, 0.919944584, 0.0348994955, -0.920505524, 0.390731305, 0), 0.2)
  1436. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1437. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.99969542, -0.0174524058, 0.0174497478, 0.0174524058, 0, 0.99984771, -0.0174497478, 0.99984771, 0.000304586458), 0.2)
  1438. swait()
  1439. else
  1440. break
  1441. end
  1442. end
  1443. for i = 0, 1.5, 0.1 do
  1444. if animpose == "Walking" and cananim then
  1445. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, -0.0433885492, 0.0292659476, -0.99862957, -0.827903032, 0.558427453, 0.0523359552, 0.559194028, 0.829038858, 0), 0.2)
  1446. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.0400917344, -0.0336409658, 0.998629689, -0.764996171, 0.641907811, 0.0523359627, -0.642788768, -0.76604563, 0), 0.2)
  1447. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, -0.0163843632, 0.0308145005, -0.999390841, -0.469186544, 0.882411182, 0.0348994955, 0.882949054, 0.469472289, 0), 0.2)
  1448. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0.0246777162, -0.0246777181, 0.999390841, -0.70667702, 0.70667696, 0.0348994955, -0.707107902, -0.707107782, 0), 0.2)
  1449. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1450. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.999695539, 0.0174497515, -0.0174524095, -0.0174497515, 0.000304586574, 0.999847829, 0.0174524058, 0.99984771, -2.90993982e-11), 0.2)
  1451. swait()
  1452. else
  1453. break
  1454. end
  1455. end
  1456. end
  1457. if animpose == "Idle" and cananim then
  1458. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
  1459. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, -0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2)
  1460. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.2)
  1461. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.2)
  1462. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.994522035, -0.104528472, 0, 0, 0, 1, -0.104528472, 0.994522035, 0), 0.2)
  1463. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.997564137, 0.0697564781, 0, 0, 0, 1, 0.0697564781, 0.997564137, 0), 0.2)
  1464. swait()
  1465. end
  1466. if animpose == "Jump" and cananim then
  1467. for i = 0, 0.8, 0.1 do
  1468. if animpose == "Jump" and cananim then
  1469. ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
  1470. rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.104528472, 0.994522035, 0, 0.994522035, 0.104528472, -1, -0, 0), 0.2)
  1471. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.499999911*scale, -0.5*scale, 0, 0, -1, 0.309017062, 0.951056957, 0, 0.951056957, -0.309017062, 0), 0.2)
  1472. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, 0, 1, -0.121869355, 0.99254632, 0, -0.99254632, -0.121869355, 0), 0.2)
  1473. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1474. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1475. swait()
  1476. else
  1477. break
  1478. end
  1479. end
  1480. end
  1481. if animpose == "Falling" and cananim then
  1482. ls.C0 = ls.C0:Lerp(CFrame.new(-0.987813056*scale, 0.599254608*scale, 0*scale, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2)
  1483. rs.C0 = rs.C0:Lerp(CFrame.new(0.986082673*scale, 0.599026859*scale, 0*scale, 0, -0.139173135, 0.990268409, 0, 0.990268409, 0.139173135, -1, 0, 0), 0.2)
  1484. lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.963904023*scale, 0.0336604826*scale, 0, 0.104528472, -0.994522035, 0.0697564557, 0.992099881, 0.1042739, 0.997564554, -0.0693743229, -0.00729153492), 0.2)
  1485. rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, -0.0697564781, 0.997564137, -0.121869355, 0.990128577, 0.0692365244, -0.99254632, -0.121572495, -0.00850117672), 0.2)
  1486. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, 0, 0, 0, 0.13917312, 0.99026823, 0, 0.99026823, -0.13917312), 0.2)
  1487. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1488. end
  1489.  
  1490. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement