Advertisement
DarkScriptZEditors

Pumpkin

Jan 3rd, 2019
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.57 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. --[[GIGA BLOX (boss battle)]]--
  137. --[[
  138. Script made and owned by: WafflesAreVeryGood do not steal my scripts do not take credit for my scripts
  139. Move List
  140. r = Pumpkin throw C
  141. e = Pumpkin roll C
  142. t = lightning strikes C
  143. g = Rage C
  144. z = evil laugh C
  145.  
  146. --]]
  147. local plr = game.Players.LocalPlayer
  148. local char = plr.Character
  149. local mouse = plr:GetMouse()
  150. local torso = char.Torso
  151. local animpose = "Idle"
  152. local attacking = false
  153. local cananim = true
  154. local rage = false
  155. local shield = nil
  156. local sprint = false
  157. local canrage = true
  158. local crits = false
  159. local legs = false
  160. local scale = 2
  161. local powers = false
  162. local bc = char:WaitForChild("Body Colors")
  163. local multiplier = 1
  164. local lac = char["Body Colors"].LeftArmColor
  165. local rac = char["Body Colors"].RightArmColor
  166. local rlc = char["Body Colors"].RightArmColor
  167. local llc = char["Body Colors"].LeftLegColor
  168. local hc = char["Body Colors"].HeadColor
  169. local tc = char["Body Colors"].TorsoColor
  170. local humanoid = char:FindFirstChildOfClass("Humanoid")
  171. humanoid.MaxHealth = 10000
  172. wait()
  173. humanoid.Health = 10000
  174. local huge = Vector3.new(math.huge,math.huge,math.huge)
  175. local mobs = Instance.new("Sound", char.Torso)
  176. mobs.SoundId = "rbxassetid://316661084"
  177. mobs.Looped = true
  178. mobs.Volume = 1
  179. mobs:Play()
  180. wait(0.5)
  181.  
  182. --[[local scale = 2
  183. local joints = {torso["Right Shoulder"], torso["Left Shoulder"], torso["Right Hip"], torso["Left Hip"], torso.Neck, char.HumanoidRootPart.RootJoint}
  184. local j = {}
  185. for i,v in pairs(char:children()) do
  186. if v:IsA("Accoutrement") then
  187. v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * scale
  188. local w = v.AttachmentPoint
  189. if w then
  190. local c0 = {w:components()}
  191. for i = 1, 3 do
  192. c0[i] = c0[i]*scale
  193. end
  194. v.AttachmentPoint = CFrame.new(unpack(c0))
  195. v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (scale - 1)))
  196. end
  197. end
  198. end
  199. for i,v in pairs(joints) do
  200. local insert = {
  201. Name = v.Name;
  202. Part0 = v.Part0;
  203. Part1 = v.Part1;
  204. C0 = v.C0;
  205. C1 = v.C1;
  206. Parent = v.Parent;
  207. }
  208. table.insert(j, insert)
  209. end
  210. local parts = {char["Right Arm"], char["Left Arm"], char["Right Leg"], char["Left Leg"], char.Torso, char.Head, char.HumanoidRootPart}
  211. for i,v in pairs(parts) do
  212. v.Anchored = true
  213. v.FormFactor = "Custom"
  214. v.Size = (v.Size*scale)
  215. v.Anchored = false
  216. end
  217. for i,joint in pairs(joints) do
  218. joint:Destroy()
  219. end
  220. for i,v in pairs(j) do
  221. print(j.Name)
  222. local c0 = {v.C0:components()}
  223. local c1 = {v.C1:components()}
  224. for i = 1, 3 do
  225. c0[i] = c0[i]*scale
  226. c1[i] = c1[i]*scale
  227. end
  228. v.C0 = CFrame.new(unpack(c0))
  229. v.C1 = CFrame.new(unpack(c1))
  230. local m = Instance.new("Motor6D")
  231. for q,e in pairs(v) do
  232. m[q] = e
  233. end
  234. end
  235. for i,v in pairs(char:children()) do
  236. if v:IsA("Accoutrement") then
  237. v.Parent = nil
  238. v.Parent = char
  239. end
  240. end
  241. char.Humanoid.WalkSpeed = 16*scale
  242. char.Humanoid.MaxHealth = 100*scale
  243. char.Humanoid.JumpPower = 50*scale]]
  244.  
  245. RbxUtility = LoadLibrary("RbxUtility")
  246. Create = RbxUtility.Create
  247. local Players = game:GetService('Players')
  248. function SetProperties(Table)
  249. local Object = Table.Object
  250. local Properties = Table.Properties
  251. if not Object or not Properties then
  252. return
  253. end
  254. for i, v in pairs(Properties) do
  255. pcall(function()
  256. Object[i] = v
  257. end)
  258. end
  259. return Object
  260. end
  261. function ScaleCharacter(Character, Scale, Permissions)--i did not make this part
  262. local Permissions = (Permissions or {})
  263. if not Character --[[or not Character.Parent]] then
  264. return
  265. end
  266. local Humanoid = Character:FindFirstChild("Humanoid")
  267. --[[if not Humanoid then
  268. return
  269. end]]
  270. if Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R15 then
  271. Humanoid.HipHeight = Humanoid.HipHeight * Scale
  272. end
  273.  
  274. local Player = Players:GetPlayerFromCharacter(Character)
  275. if not Player and not Permissions.ResizeModels then
  276. return
  277. end
  278.  
  279. local Parts = {}
  280. local Joints = {}
  281. local Meshes = {}
  282.  
  283. local Hats = {}
  284. local Tools = {}
  285.  
  286. local ToolsResized = {}
  287. local HatsResized = {}
  288.  
  289. local Connections = {}
  290.  
  291. local function ScaleObjects(BaseParent, BaseScale)
  292. local Parts = {}
  293. local Joints = {}
  294. local Meshes = {}
  295. local Hats = {}
  296. local Tools = {}
  297.  
  298. local function GetScaleObjects(Parent)
  299. local Objects = Parent:GetChildren()
  300. if Parent == BaseParent then
  301. table.insert(Objects, BaseParent)
  302. end
  303. for i, v in pairs(Objects) do
  304. if v:IsA("JointInstance") then
  305. table.insert(Joints, {
  306. Joint = v:Clone(),
  307. Part0 = v.Part0,
  308. Part1 = v.Part1,
  309. Parent = v.Parent
  310. })
  311. elseif v:IsA("BasePart") then
  312. table.insert(Parts, v)
  313. elseif v:IsA("Accoutrement") then
  314. table.insert(Hats, v)
  315. -- v.Parent = nil
  316. elseif v:IsA("Tool") then
  317. table.insert(Tools, v)
  318. -- v.Parent = nil --Causes execution scripts again, which is bad.
  319. elseif v:IsA("DataModelMesh") then
  320. table.insert(Meshes, v)
  321. end
  322. if v ~= BaseParent then
  323. GetScaleObjects(v)
  324. end
  325. end
  326. end
  327.  
  328. GetScaleObjects(BaseParent)
  329.  
  330. for i, v in pairs(Meshes) do
  331. if v:IsA("FileMesh") then
  332. if v:IsA("SpecialMesh") and v.MeshType == Enum.MeshType.Head then
  333. v.Scale = (Vector3.new(1, 1, 1) * 1.25)
  334. else
  335. v.Scale = (v.Scale * BaseScale)
  336. end
  337. end
  338. end
  339.  
  340. for i, v in pairs(Parts) do
  341. pcall(function()
  342. v.FormFactor = Enum.FormFactor.Custom
  343. end)
  344. v.Size = (v.Size * BaseScale)
  345. end
  346.  
  347. for i, v in pairs(Hats) do
  348. local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.AttachmentPoint:components()
  349. v.AttachmentPoint = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22)
  350. v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (BaseScale - 1)))
  351. --v.Parent = Character
  352. end
  353.  
  354. for i, v in pairs(Tools) do
  355. local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.Grip:components()
  356. v.Grip = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22)
  357. v.Grip = (v.Grip + v.Grip.lookVector * -(BaseScale - 1))
  358. if Humanoid then
  359. --Humanoid:EquipTool(v)
  360. end
  361. end
  362.  
  363. for i, v in pairs(Joints) do
  364. local C0PX, C0PY, C0PZ, C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22 = v.Joint.C0:components()
  365. local C1PX, C1PY, C1PZ, C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22 = v.Joint.C1:components()
  366. local NewJoint = SetProperties({Object = v.Joint:Clone(), Properties = {
  367. Part0 = v.Part0,
  368. Part1 = v.Part1,
  369. C0 = CFrame.new((C0PX * BaseScale), (C0PY * BaseScale), (C0PZ * BaseScale), C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22),
  370. C1 = CFrame.new((C1PX * BaseScale), (C1PY * BaseScale), (C1PZ * BaseScale), C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22),
  371. Parent = v.Parent,
  372. }})
  373. for ii, vv in pairs(v.Parent:GetChildren()) do
  374. if vv:IsA("JointInstance") and vv.Part0 == v.Part0 and vv.Part1 == v.Part1 and vv ~= NewJoint then
  375. vv:Destroy()
  376. end
  377. end
  378. end
  379.  
  380. return {
  381. Tools = Tools,
  382. Hats = Hats
  383. }
  384. end
  385.  
  386. local Objects = ScaleObjects(Character, Scale)
  387.  
  388. for i, v in pairs(Objects.Tools) do
  389. table.insert(ToolsResized, {Object = v, Connections = {}})
  390. end
  391. for i, v in pairs(Objects.Hats) do
  392. table.insert(HatsResized, {Object = v, Connections = {}})
  393. end
  394.  
  395. if Permissions.ScaleTools then
  396. Connections.ToolAdded = Character.ChildAdded:connect(function(Child)
  397. if Child:IsA("Tool") then
  398. local TableInstance = nil
  399. for i, v in pairs(ToolsResized) do
  400. if v and v.Object and v.Object == Child then
  401. TableInstance = v
  402. end
  403. end
  404. if not TableInstance then
  405. table.insert(ToolsResized, {Object = Child, Connections = {}})
  406. ScaleObjects(Child, Scale)
  407. end
  408. end
  409. end)
  410. Connections.ToolRemoved = Character.ChildRemoved:connect(function(Child)
  411. if Child:IsA("Tool") then
  412. local TableInstance = nil
  413. for i, v in pairs(ToolsResized) do
  414. if v and v.Object and v.Object == Child then
  415. TableInstance = v
  416. end
  417. end
  418. if not TableInstance then
  419. return
  420. end
  421. for i, v in pairs(ToolsResized) do
  422. if v.Object == Child then
  423. for ii, vv in pairs(v.Connections) do
  424. if vv then
  425. vv:disconnect()
  426. end
  427. end
  428. table.remove(ToolsResized, i)
  429. end
  430. end
  431. ScaleObjects(Child, (1 / Scale))
  432. end
  433. end)
  434. end
  435.  
  436. if Permissions.ScaleHats then
  437. Connections.HatAdded = Character.ChildAdded:connect(function(Child)
  438. if Child:IsA("Accoutrement") then
  439. local TableInstance = nil
  440. for i, v in pairs(HatsResized) do
  441. if v and v.Object and v.Object == Child then
  442. TableInstance = v
  443. end
  444. end
  445. if not TableInstance then
  446. table.insert(HatsResized, {Object = Child, Connections = {}})
  447. ScaleObjects(Child, Scale)
  448. end
  449. end
  450. end)
  451. Connections.HatRemoved = Character.ChildRemoved:connect(function(Child)
  452. if Child:IsA("Accoutrement") then
  453. local TableInstance = nil
  454. for i, v in pairs(HatsResized) do
  455. if v and v.Object and v.Object == Child then
  456. TableInstance = v
  457. end
  458. end
  459. if not TableInstance then
  460. return
  461. end
  462. for i, v in pairs(HatsResized) do
  463. if v.Object == Child then
  464. for ii, vv in pairs(v.Connections) do
  465. if vv then
  466. vv:disconnect()
  467. end
  468. end
  469. table.remove(HatsResized, i)
  470. end
  471. end
  472. ScaleObjects(Child, (1 / Scale))
  473. end
  474. end)
  475. end
  476.  
  477. local Head = Character:FindFirstChild("Head")
  478. local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso")
  479.  
  480. local StateChanged = Create("BoolValue"){
  481. Value = true,
  482. }
  483. Delay(0.1, function()
  484. StateChanged.Value = false
  485. end)
  486.  
  487. if Head and Torso then
  488. if Humanoid then
  489. Humanoid.WalkSpeed = (16 * Scale)
  490. Humanoid.CameraOffset = Vector3.new(0, (Head.Position.Y - Torso.Position.Y - 0.75), 0)
  491. end
  492. if not Permissions.MaintainCFrame then
  493. Torso.CFrame = Torso.CFrame + Vector3.new(0, Torso.Size.Y, 0)
  494. end
  495. end
  496.  
  497. local ScaleBack = Permissions.ScaleBack
  498. if ScaleBack and type(ScaleBack) == "table" and tonumber(ScaleBack.Delay) then
  499. Delay(ScaleBack.Delay, function()
  500. for i, v in pairs(Connections) do
  501. if v then
  502. v:disconnect()
  503. end
  504. end
  505. for i, v in pairs({ToolsResized, HatsResized}) do
  506. for ii, vv in pairs(v) do
  507. for iii, vvv in pairs(vv.Connections) do
  508. if vvv then
  509. vvv:disconnect()
  510. end
  511. end
  512. end
  513. end
  514. local PresetPermissions = {
  515. ScaleBack = false,
  516. ScaleHats = false,
  517. ScaleTools = false
  518. }
  519. if Character --[[and Character.Parent]] then
  520. for i, v in pairs(PresetPermissions) do
  521. Permissions[i] = v
  522. end
  523. ScaleCharacter(Character, (1 / Scale), Permissions)
  524. end
  525. StateChanged.Value = true
  526. end)
  527. end
  528.  
  529. return {
  530. Connections = Connections,
  531. StateChanged = StateChanged
  532. }
  533.  
  534. end
  535. ScaleCharacter(plr.Character, scale)--the rest is mine VVVV
  536. local rs = torso["Right Shoulder"]
  537. local ls = torso["Left Shoulder"]
  538. local rh = torso["Right Hip"]
  539. local lh = torso["Left Hip"]
  540. local rj = char.HumanoidRootPart.RootJoint
  541. local neck = torso.Neck
  542. char.Humanoid.Health = char.Humanoid.MaxHealth
  543. if char:FindFirstChild("Animate") then char.Animate:Destroy() end
  544. for i,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  545. track:Stop()
  546. end
  547. local shirt = char:FindFirstChildOfClass("Shirt")
  548. if shirt then
  549. shirt.ShirtTemplate = "rbxassetid://102716091"
  550. end
  551. local pants = char:FindFirstChildOfClass("Pants")
  552. if pants then
  553. pants.PantsTemplate = "rbxassetid://102712920"
  554. end
  555. local bpz = {"Right Arm", "Left Arm", "Right Leg", "Left Leg", "Head", "Torso"}
  556. for i,v in pairs(bpz) do
  557. char[v].BrickColor = BrickColor.new("Really black")
  558. end
  559. for i,v in pairs(char:children()) do
  560. if v:IsA("Accessory") then
  561. v:Destroy()
  562. end
  563. end
  564. -- thanks dog
  565.  
  566. --Converted with ttyyuu12345's model to script plugin v4
  567. function sandbox(var,func)
  568. local env = getfenv(func)
  569. local newenv = setmetatable({},{
  570. __index = function(self,k)
  571. if k=="script" then
  572. return var
  573. else
  574. return env[k]
  575. end
  576. end,
  577. })
  578. setfenv(func,newenv)
  579. return func
  580. end
  581. cors = {}
  582. mas = Instance.new("Model",game:GetService("Lighting"))
  583. Model0 = Instance.new("Model")
  584. Part1 = Instance.new("Part")
  585. SpecialMesh2 = Instance.new("SpecialMesh")
  586. ParticleEmitter3 = Instance.new("ParticleEmitter")
  587. Attachment4 = Instance.new("Attachment")
  588. Attachment5 = Instance.new("Attachment")
  589. Part6 = Instance.new("Part")
  590. SpecialMesh7 = Instance.new("SpecialMesh")
  591. Part8 = Instance.new("Part")
  592. SpecialMesh9 = Instance.new("SpecialMesh")
  593. Part10 = Instance.new("Part")
  594. SpecialMesh11 = Instance.new("SpecialMesh")
  595. Part12 = Instance.new("Part")
  596. SpecialMesh13 = Instance.new("SpecialMesh")
  597. Model0.Name = "Pumpkin"
  598. Model0.Parent = mas
  599. Part1.Name = "Handle"
  600. Part1.Parent = Model0
  601. Part1.Anchored = true
  602. Part1.CanCollide = false
  603. Part1.FormFactor = Enum.FormFactor.Symmetric
  604. Part1.Size = Vector3.new(2, 2, 2)
  605. Part1.CFrame = CFrame.new(113.089798, 1.00000405, -4.53332996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  606. Part1.BottomSurface = Enum.SurfaceType.Smooth
  607. Part1.TopSurface = Enum.SurfaceType.Smooth
  608. Part1.Position = Vector3.new(113.089798, 1.00000405, -4.53332996)
  609. SpecialMesh2.Parent = Part1
  610. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=16973748"
  611. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  612. SpecialMesh2.TextureId = "rbxassetid://16973739"
  613. SpecialMesh2.VertexColor = Vector3.new(0.300000012, 0.300000012, 0.300000012)
  614. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  615. SpecialMesh2.Scale = Vector3.new(2, 2, 2)
  616. ParticleEmitter3.Parent = Part1
  617. ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5)
  618. ParticleEmitter3.Rotation = NumberRange.new(0, 360)
  619. ParticleEmitter3.Size = NumberSequence.new(0.43749988079071,0)
  620. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  621. ParticleEmitter3.LightEmission = 0.5
  622. ParticleEmitter3.Texture = "rbxassetid://3319251"
  623. ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
  624. ParticleEmitter3.Rate = 200
  625. ParticleEmitter3.RotSpeed = NumberRange.new(90, 90)
  626. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  627. Attachment4.Name = "AT2"
  628. Attachment4.Parent = Part1
  629. Attachment4.CFrame = CFrame.new(-1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  630. Attachment4.Position = Vector3.new(-1.60000002, 0, 0)
  631. Attachment5.Name = "AT1"
  632. Attachment5.Parent = Part1
  633. Attachment5.CFrame = CFrame.new(1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  634. Attachment5.Position = Vector3.new(1.60000002, 0, 0)
  635. Part6.Parent = Model0
  636. Part6.Material = Enum.Material.Neon
  637. Part6.BrickColor = BrickColor.new("CGA brown")
  638. Part6.Anchored = true
  639. Part6.Size = Vector3.new(2, 1, 1)
  640. Part6.CFrame = CFrame.new(113.089798, 1.50000405, -5.53333187, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  641. Part6.Color = Color3.new(0.666667, 0.333333, 0)
  642. Part6.Position = Vector3.new(113.089798, 1.50000405, -5.53333187)
  643. Part6.Color = Color3.new(0.666667, 0.333333, 0)
  644. SpecialMesh7.Parent = Part6
  645. SpecialMesh7.MeshType = Enum.MeshType.Sphere
  646. Part8.Parent = Model0
  647. Part8.Material = Enum.Material.Neon
  648. Part8.BrickColor = BrickColor.new("CGA brown")
  649. Part8.Anchored = true
  650. Part8.Size = Vector3.new(2, 1.5, 1.10000002)
  651. Part8.CFrame = CFrame.new(113.089798, 0.750004053, -5.58331966, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  652. Part8.Color = Color3.new(0.666667, 0.333333, 0)
  653. Part8.Position = Vector3.new(113.089798, 0.750004053, -5.58331966)
  654. Part8.Color = Color3.new(0.666667, 0.333333, 0)
  655. SpecialMesh9.Parent = Part8
  656. SpecialMesh9.MeshType = Enum.MeshType.Sphere
  657. Part10.Parent = Model0
  658. Part10.Material = Enum.Material.Neon
  659. Part10.BrickColor = BrickColor.new("CGA brown")
  660. Part10.Rotation = Vector3.new(0, -41, 0)
  661. Part10.Anchored = true
  662. Part10.Size = Vector3.new(1.5, 1.5, 1)
  663. Part10.CFrame = CFrame.new(113.811264, 0.750004053, -5.45703793, 0.754709542, 0, -0.656059086, 0, 1, 0, 0.656059086, 0, 0.754709542)
  664. Part10.Color = Color3.new(0.666667, 0.333333, 0)
  665. Part10.Position = Vector3.new(113.811264, 0.750004053, -5.45703793)
  666. Part10.Orientation = Vector3.new(0, -41, 0)
  667. Part10.Color = Color3.new(0.666667, 0.333333, 0)
  668. SpecialMesh11.Parent = Part10
  669. SpecialMesh11.MeshType = Enum.MeshType.Sphere
  670. Part12.Parent = Model0
  671. Part12.Material = Enum.Material.Neon
  672. Part12.BrickColor = BrickColor.new("CGA brown")
  673. Part12.Rotation = Vector3.new(0, 41, 0)
  674. Part12.Anchored = true
  675. Part12.Size = Vector3.new(1.5, 1.5, 1)
  676. Part12.CFrame = CFrame.new(112.411301, 0.750004053, -5.45703793, 0.754709601, 0, 0.656059027, 0, 1, 0, -0.656059027, 0, 0.754709601)
  677. Part12.Color = Color3.new(0.666667, 0.333333, 0)
  678. Part12.Position = Vector3.new(112.411301, 0.750004053, -5.45703793)
  679. Part12.Orientation = Vector3.new(0, 41, 0)
  680. Part12.Color = Color3.new(0.666667, 0.333333, 0)
  681. SpecialMesh13.Parent = Part12
  682. SpecialMesh13.MeshType = Enum.MeshType.Sphere
  683. for i,v in pairs(mas:GetChildren()) do
  684. v.Parent = game:GetService("Players").LocalPlayer.Character
  685. pcall(function() v:MakeJoints() end)
  686. end
  687. mas:Destroy()
  688. for i,v in pairs(cors) do
  689. spawn(function()
  690. pcall(v)
  691. end)
  692. end
  693.  
  694. local pumpkinhead = char.Pumpkin
  695. local handle = pumpkinhead.Handle
  696. local at1 = Instance.new("Attachment")
  697. at1.Position = Vector3.new(1.6,0,0)
  698. at1.Parent = handle
  699. local at2 = Instance.new("Attachment")
  700. at2.Position = Vector3.new(-1.6,0,0)
  701. at2.Parent = handle
  702. local t = Instance.new("Trail")
  703. 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))})
  704. t.FaceCamera = true
  705. t.LightEmission = 0.5
  706. t.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  707. t.Attachment0 = at1
  708. t.Attachment1 = at2
  709. t.Lifetime = 1
  710. t.MinLength = 0.1
  711. t.Parent = handle
  712. local obj = pumpkinhead
  713. local scr = ""
  714. local n = "\n"
  715. local num = 0
  716. local parts = {}
  717. local last
  718. a = function(b)
  719. for i,v in pairs(b:children()) do
  720. if v.Name ~= ("Handle") and v:IsA("BasePart") then
  721. if not last then last = obj.Handle end
  722. local w = Instance.new("Weld")
  723. w.Part0 = v
  724. w.Part1 = last
  725. w.C0 = v.CFrame:inverse()
  726. w.C1 = last.CFrame:inverse()
  727. w.Parent = v
  728. v.Anchored = false
  729. last = v
  730. table.insert(parts, v)
  731. if v.Name ~= "Blade" then
  732. num = num + 1
  733. v.Name = "Part"..num
  734. end
  735. end
  736. a(v)
  737. end
  738. end
  739. a(obj)
  740. handle.Anchored = false
  741. for i,v in pairs(parts) do v.Anchored = false end
  742. local hatw = Instance.new("Weld")
  743. hatw.Part0 = char.Head
  744. hatw.Part1 = handle
  745. hatw.Parent = char.Head
  746. char.Head.Transparency = 1
  747. if char.Head:FindFirstChild("face") then char.Head.face.Transparency = 1 end
  748.  
  749. function legsonly()
  750. spawn(function()
  751. for i = 0, 10 do
  752. wait(0.001)
  753. if attacking then break end
  754. end
  755. if not attacking then
  756. legs = false
  757. end
  758. end)
  759. end
  760. function swait(t)
  761. if t == nil or t == 0 then
  762. game:service('RunService').Stepped:wait(0)
  763. return true
  764. else
  765. for i = 0, t do
  766. game:service('RunService').Stepped:wait(0)
  767. end
  768. return true
  769. end
  770. end
  771. function hurt(hit, dmg)
  772. if hit.Parent then
  773. if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end
  774. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  775. if hum then
  776. if hum.Parent ~= char then
  777. if dmg == "Kill" then
  778. hit.Parent:BreakJoints()
  779. return true
  780. else
  781. if math.random(0, 100) == 50 and crits then
  782. hum.Health = hum.Health - dmg*multiplier*2.5
  783. else
  784. hum.Health = hum.Health -dmg*multiplier
  785. end
  786. return true
  787. end
  788. end
  789. end
  790. end
  791. end
  792. function soundeffect(id, volume, speed, parent, forcewait)
  793. if forcewait then
  794. local s = parent:FindFirstChildOfClass("Sound")
  795. if not s then
  796. s = Instance.new("Sound")
  797. else
  798. if s.SoundId ~= id then
  799. s = Instance.new("Sound")
  800. end
  801. end
  802. s.SoundId = id
  803. s.Volume = volume
  804. s.PlaybackSpeed = speed
  805. s.Parent = parent
  806. s:Play()
  807. repeat wait() until not s.Playing
  808. s:Destroy()
  809. else
  810. spawn(function()
  811. local s = parent:FindFirstChildOfClass("Sound")
  812. if not s then
  813. s = Instance.new("Sound")
  814. else
  815. if s.SoundId ~= id then
  816. s = Instance.new("Sound")
  817. end
  818. end
  819. s.SoundId = id
  820. s.Volume = volume
  821. s.PlaybackSpeed = speed
  822. s.Parent = parent
  823. s:Play()
  824. repeat wait() until not s.Playing
  825. s:Destroy()
  826. end)
  827. end
  828. end
  829. function gethum(obj)
  830. if obj.Parent then
  831. if obj.Parent:FindFirstChild("Humanoid") then
  832. if obj.Parent.Name ~= plr.Name then
  833. return obj.Parent:FindFirstChildOfClass("Humanoid")
  834. end
  835. end
  836. end
  837. end
  838. function pushback(toucher, hit, knockback, stuns)
  839. local bv = Instance.new("BodyVelocity")
  840. bv.MaxForce = huge
  841. bv.Velocity = CFrame.new(toucher.Position, hit.Position).lookVector*knockback
  842. bv.Parent = hit
  843. if gethum(hit) then
  844. gethum(hit).PlatformStand = true
  845. end
  846. game.Debris:AddItem(bv, 0.1)
  847. end
  848. function smooth(obj)
  849. local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
  850. for i,v in pairs(sides) do
  851. obj[v.."Surface"] = "SmoothNoOutlines"
  852. end
  853. end
  854. function fade(obj, dest, grow)
  855. spawn(function()
  856. local oldcf = obj.CFrame
  857. for i = 0, 10 do
  858. if grow then
  859. obj.Size = obj.Size +Vector3.new(1,1,1)
  860. obj.CFrame = oldcf
  861. end
  862. obj.Transparency = obj.Transparency +0.1
  863. swait()
  864. end
  865. if dest then
  866. obj:Destroy()
  867. end
  868. end)
  869. end
  870. function replacejoint(name)
  871. local j = torso:FindFirstChild(name)
  872. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  873. if j then
  874. if true then
  875. local new = Instance.new("Weld")
  876. new.Part0 = j.Part0
  877. j.Part0 = nil
  878. new.Name = j.Name.." Replacement"
  879. new.Parent = j.Parent
  880. new.Part1 = j.Part1
  881. new.C0 = j.C0
  882. new.C1 = j.C1
  883. return new
  884. end
  885. end
  886. end
  887. function lightning(start,finish,segments, color, thickness, sound)
  888. local full = (start.p-finish.p).magnitude
  889. local lastpart
  890. local lastscale
  891. local direction = CFrame.new(finish.p,start.p).lookVector
  892. local model
  893. model = Instance.new("Model")
  894. for i = 1, segments do
  895. local p = Instance.new("Part")
  896. p.CFrame = start
  897. if not lastscale then lastscale = 0.5 end
  898. if not lastpart then lastpart = p end
  899. local startp = lastpart.CFrame*CFrame.new(0,0,-lastscale/2)
  900. local p = Instance.new("Part", model)
  901. p.Name = "segment"..i
  902. p.BrickColor = color
  903. local endpos
  904. if i == segments then
  905. endpos = finish
  906. else
  907. if lastpart == char.Torso then
  908. 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)
  909. else
  910. 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)
  911. end
  912. --[[local p = Instance.new("Part", model)
  913. p.Anchored = true
  914. p.Size = Vector3.new(thickness,thickness,1)
  915. p.CanCollide = false
  916. p.CFrame = endpos]]
  917. end
  918. local mag = (startp.p-endpos.p).magnitude
  919. p.Anchored = true
  920. p.CanCollide = false
  921. local m = Instance.new("SpecialMesh", p)
  922. m.MeshType = "Brick"
  923. for i,v in pairs({"Right", "Left", "Top", "Bottom", "Front", "Back"}) do
  924. p[v.."Surface"] = "SmoothNoOutlines"
  925. end
  926. p.Size = Vector3.new(thickness,thickness,mag)
  927. p.CFrame = CFrame.new(startp.p, endpos.p) *CFrame.new(0,0,-mag/2)
  928. lastscale = mag
  929. lastpart = p
  930. end
  931. model.Parent = char
  932. spawn(function()
  933. local s
  934. if sound then
  935. s = Instance.new("Sound", lastpart)
  936. s.Volume = 5
  937. s.SoundId = "rbxassetid://224339201"
  938. s.PlayOnRemove = true
  939. s:Play()
  940. end
  941. for i = 1, 10*2 do
  942. for i,v in pairs(model:children()) do
  943. v.Transparency = v.Transparency +0.1/2
  944. end
  945. wait()
  946. end
  947. if sound then
  948. s:Destroy()
  949. end
  950. model:Destroy()
  951. end)
  952. return model
  953. end
  954. function removejoint(name)
  955. local j = torso:FindFirstChild(name.." Replacement")
  956. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  957. if j then
  958. local p0 = j.Part0
  959. local c0 = j.C0
  960. local c1 = j.C1
  961. j:Destroy()
  962. local new = p0:FindFirstChild(name)
  963. local ac0 = new.C0
  964. local ac1 = new.C1
  965. new.Part0 = p0
  966. new.C0 = c0
  967. new.C1 = c1
  968. spawn(function()
  969. for i = 0, 1, 0.1 do
  970. new.C0 = new.C0:Lerp(ac0, 0.7)
  971. new.C1 = new.C1:lerp(ac1, 0.7)
  972. wait()
  973. end
  974. end)
  975. end
  976. end
  977. function fixalljoints()
  978. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  979. removejoint(v)
  980. end
  981. end
  982. function getnewjoints()
  983. local rs = replacejoint("Right Shoulder")
  984. local ls = replacejoint("Left Shoulder")
  985. local rh = replacejoint("Right Hip")
  986. local lh = replacejoint("Left Hip")
  987. local neck = replacejoint("Neck")
  988. local rj = replacejoint("RootJoint")
  989. return rs,ls,rh,lh,neck,rj
  990. end
  991. function getreplacec0s()
  992. local rs = torso["Right Shoulder"]
  993. local ls = torso["Left Shoulder"]
  994. local rh = torso["Right Hip"]
  995. local lh = torso["Left Hip"]
  996. local rj = char.HumanoidRootPart.RootJoint
  997. local neck = torso.Neck
  998. return rs.C0,ls.C0,rh.C0,lh.C0,neck.C0,rj.C0
  999. end
  1000. local jumped = false
  1001. local candj = true
  1002. local docon = false
  1003. local freefall = false
  1004. local cone
  1005. humanoid.StateChanged:connect(function(_,new)
  1006. if new == Enum.HumanoidStateType.Freefall then freefall = true else freefall = false end
  1007. end)
  1008. cone = humanoid.Changed:connect(function(prop)
  1009. swait(3)
  1010. if not humanoid.Jump and docon and prop == "Jump" then
  1011. candj = true
  1012. jumped = false
  1013. docon = false
  1014. end
  1015. end)
  1016. mouse.KeyDown:connect(function(key)
  1017. if key == "r" and not attacking then
  1018. local rs,ls,rh,lh,neck,rj = getnewjoints()
  1019. attacking = true
  1020. local p = pumpkinhead:Clone()
  1021. local phand = p.Handle
  1022. phand.AT1.Position = Vector3.new(0.5,0,0)
  1023. phand.AT2.Position = Vector3.new(-0.5,0,0)
  1024. phand.Mesh.Scale = Vector3.new(0,0,0)
  1025. local w = Instance.new("Weld")
  1026. w.Part0 = char["Right Arm"]
  1027. w.Part1 = phand
  1028. w.C1 = CFrame.new(0,1,0)
  1029. w.Parent = char["Right Arm"]
  1030. p.Parent = char
  1031. for i = 0, 2, 0.1 do
  1032. phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2), 0.2)
  1033. 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)
  1034. 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)
  1035. 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)
  1036. 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)
  1037. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1038. 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)
  1039. swait()
  1040. end
  1041. phand.Mesh.Scale = Vector3.new(2,2,2)
  1042. swait(15)
  1043. for i = 0, 2, 0.1 do
  1044. 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)
  1045. 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)
  1046. 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)
  1047. 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)
  1048. neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1049. 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)
  1050. if i == 0.5 then
  1051. phand.Touched:connect(function(hit)
  1052. if hurt(hit, 30) then
  1053. pushback(phand, hit, 50)
  1054. end
  1055. end)
  1056. w:Destroy()
  1057. local bv = Instance.new("BodyVelocity")
  1058. bv.MaxForce = huge
  1059. bv.Velocity = CFrame.new(phand.Position, mouse.Hit.p).lookVector*300
  1060. bv.Parent = phand
  1061. game.Debris:AddItem(bv, 0.1)
  1062. game.Debris:AddItem(p, 7)
  1063. end
  1064. swait()
  1065. end
  1066. attacking = false
  1067. fixalljoints()
  1068. end
  1069. if key == "e" and not attacking then
  1070. attacking = true
  1071. local rs,ls,rh,lh,neck,rj = getnewjoints()
  1072. for i = 0, 1, 0.1 do
  1073. 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)
  1074. swait()
  1075. end
  1076. local p = pumpkinhead:Clone()
  1077. local phand = p.Handle
  1078. if phand:FindFirstChildOfClass("Weld") then phand:FindFirstChildOfClass("Weld"):Destroy() end
  1079. local roll = Instance.new("Part")
  1080. roll.Size = phand.Size*1.1
  1081. roll.Transparency = 1
  1082. local m = Instance.new("SpecialMesh")
  1083. m.MeshType = "Sphere"
  1084. m.Parent = roll
  1085. roll.Parent = phand
  1086. local wr = Instance.new("Weld")
  1087. wr.Part0 = roll
  1088. wr.Part1 = phand
  1089. wr.Parent = roll
  1090. phand.CanCollide = false
  1091. phand.CFrame = char["Right Arm"].CFrame
  1092. phand.AT1.Position = Vector3.new(0.5,0,0)
  1093. phand.AT2.Position = Vector3.new(-0.5,0,0)
  1094. phand.Mesh.Scale = Vector3.new(0,0,0)
  1095. local w = Instance.new("Weld")
  1096. w.Part0 = char["Right Arm"]
  1097. w.Part1 = phand
  1098. w.C1 = CFrame.new(0,-1,0)
  1099. w.Parent = char["Right Arm"]
  1100. p.Parent = char
  1101. local owc0 = w.C0
  1102. local owc1 = w.C1
  1103. for i = 1, 3 do
  1104. w.C0 = owc0:Lerp(CFrame.new(0,0,0),i/3)
  1105. w.C1 = owc1:Lerp(CFrame.new(0,1,0),i/3)
  1106. swait()
  1107. end
  1108. for i = 0, 1.5, 0.1 do
  1109. phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2),0.2)
  1110. 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)
  1111. 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)
  1112. 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)
  1113. 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)
  1114. swait()
  1115. end
  1116. phand.Mesh.Scale = Vector3.new(2,2,2)
  1117. swait(10)
  1118. for i = 0, 1.5, 0.1 do
  1119. 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)
  1120. 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)
  1121. 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)
  1122. 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)
  1123. swait()
  1124. end
  1125. w:Destroy()
  1126. game.Debris:AddItem(p, 5)
  1127. local at = false
  1128. phand.Touched:connect(function(hit)
  1129. if hurt(hit, 10) then
  1130. pushback(phand, hit, 120, true)
  1131. if not at then
  1132. at = true
  1133. for i = 1, 30 do
  1134. local ocf = phand.CFrame
  1135. phand.Size = phand.Size:Lerp(Vector3.new(10,10,10),0.4)
  1136. phand.CFrame = ocf
  1137. phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(10,10,10), 0.2)
  1138. for i,v in pairs(p:children()) do
  1139. if v:IsA("BasePart") then
  1140. v.Transparency = i/30
  1141. end
  1142. end
  1143. swait()
  1144. end
  1145. p:Destroy()
  1146. else
  1147. hurt(hit, 40)
  1148. end
  1149. end
  1150. end)
  1151. local bv = Instance.new("BodyForce")
  1152. local v = Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z)
  1153. bv.Force = CFrame.new(phand.Position, Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z)).lookVector*5000
  1154. bv.Parent = phand
  1155. fixalljoints()
  1156. attacking = false
  1157. end
  1158. if key:byte() == 32 then
  1159. local d = false
  1160. if jumped and candj or candj and freefall then
  1161. docon = true
  1162. jumped = true
  1163. d = true
  1164. candj = false
  1165. torso.Velocity = Vector3.new(torso.Velocity.X,120,torso.Velocity.Z)
  1166. local p = Instance.new("Part")
  1167. p.Anchored = true
  1168. p.CanCollide = false
  1169. p.Size = Vector3.new(1.16,0.1,1.16)
  1170. p.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) *CFrame.Angles(math.rad(90),0,0)
  1171. p.BrickColor = BrickColor.new("Deep orange")
  1172. local m = Instance.new("SpecialMesh")
  1173. m.MeshId = "rbxassetid://3270017"
  1174. m.Scale = Vector3.new(1,1,0.1)
  1175. m.Parent = p
  1176. p.Parent = workspace
  1177. for i = 1, 15 do
  1178. p.Size = Vector3.new(1.16*i,1.16*i,0.1)
  1179. p.Mesh.Scale = Vector3.new(i*1,i*1,0.1)
  1180. p.Transparency = i/15
  1181. swait()
  1182. end
  1183. end
  1184. if not jumped and not d then
  1185. docon = true
  1186. jumped = true
  1187. end
  1188. end
  1189. if key == "t" and not attacking then
  1190. attacking = true
  1191. local hit = mouse.Hit
  1192. local parts = {}
  1193. local done = false
  1194. local stop = false
  1195. for i = 1, 3 do
  1196. local p = Instance.new("Part")
  1197. local d1
  1198. local d2
  1199. table.insert(parts, p)
  1200. spawn(function()
  1201. wait()
  1202. repeat wait()
  1203. if attacking and not done then
  1204. p.CFrame = p.CFrame:Lerp(p.CFrame *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.5)
  1205. end
  1206. if done then
  1207. p.Transparency = p.Transparency + 0.1
  1208. end
  1209. until stop
  1210. p:Destroy()
  1211. end)
  1212. p.Anchored = true
  1213. p.CanCollide = false
  1214. p.Size = Vector3.new(6,0.2,6)
  1215. p.CFrame = CFrame.new(hit.p) *CFrame.new(math.random(-10,10),0,math.random(-10,10)) *CFrame.Angles(math.rad(90),0,0)
  1216. p.Transparency = 0
  1217. local m = Instance.new("SpecialMesh")
  1218. m.MeshId = "http://www.roblox.com/asset/?id=16973748"
  1219. m.TextureId = "rbxassetid://16973739"
  1220. m.Scale = Vector3.new(2,2,0.05)
  1221. m.VertexColor = Vector3.new(0.3,0.3,0.3)
  1222. m.Parent = p
  1223. p.Parent = workspace
  1224. wait(0.1)
  1225. end
  1226. for i,v in pairs(parts) do
  1227. wait(0.05)
  1228. local tbl = {"Deep orange", "CGA brown", "Really black", "Dark stone grey"}
  1229. local l = lightning(v.CFrame *CFrame.new(0,0,-100), v.CFrame, 5, BrickColor.new(tbl[math.random(#tbl)]), 3, true)
  1230. for q,e in pairs(l:children()) do
  1231. e.Touched:connect(function(hit)
  1232. hurt(hit, 50)
  1233. end)
  1234. end
  1235. end
  1236. done = true
  1237. attacking = false
  1238. wait(0.5)
  1239. stop = true
  1240. end
  1241. if key == "g" and not attacking then
  1242. attacking = true
  1243. local rs,ls,rh,lh,neck,rj = getnewjoints()
  1244. local ows = humanoid.WalkSpeed
  1245. humanoid.WalkSpeed = 0
  1246. for i = 0, 2, 0.1 do
  1247. 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)
  1248. 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)
  1249. 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)
  1250. 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)
  1251. 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)
  1252. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1253. swait()
  1254. end
  1255. local p = Instance.new("Part")
  1256. p.Name = "woah!"
  1257. p.BrickColor = BrickColor.new("CGA brown")
  1258. p.CanCollide = false
  1259. p.Size = Vector3.new(20,20,20)
  1260. p.Anchored = true
  1261. p.Material = "Neon"
  1262. local m = Instance.new("SpecialMesh")
  1263. m.MeshType = "Sphere"
  1264. m.Parent = p
  1265. p.CFrame = char.Torso.CFrame
  1266. p.Parent = workspace
  1267. for i = 1, 20 do
  1268. local ocf = p.CFrame
  1269. p.Size = p.Size:Lerp(Vector3.new(0.1,0.1,0.1), 0.2)
  1270. p.Transparency = i/20
  1271. p.CFrame = ocf
  1272. swait()
  1273. end
  1274. spawn(function()
  1275. for i = 0, 1.5, 0.1 do
  1276. 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)
  1277. 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)
  1278. 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)
  1279. 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)
  1280. 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)
  1281. rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.3)
  1282. swait()
  1283. end
  1284. end)
  1285. p:Destroy()
  1286. local p = Instance.new("Part")
  1287. p.Name = "BOOOOOOOOOMMM WOOSH BANG POW OOF"
  1288. p.BrickColor = BrickColor.new("Really black")
  1289. p.Size = Vector3.new(300,0.1,0.1)
  1290. p.Anchored = false
  1291. p.Material = "Neon"
  1292. p.CFrame = char.Torso.CFrame *CFrame.Angles(0,0,math.rad(90))
  1293. p.CanCollide = false
  1294. local m = Instance.new("SpecialMesh")
  1295. m.MeshType = "Cylinder"
  1296. m.Parent = p
  1297. local bp = Instance.new("BodyPosition")
  1298. bp.MaxForce = huge
  1299. bp.Position = p.Position
  1300. bp.Parent = p
  1301. p.Parent = workspace
  1302. p.Touched:connect(function(hit)
  1303. if hurt(hit, 100) then
  1304. pushback(char.Torso, hit, 130)
  1305. end
  1306. end)
  1307. for i = 1, 100 do
  1308. local ocf = p.CFrame
  1309. p.Size = p.Size:Lerp(Vector3.new(300,40,40), 0.1)
  1310. p.CFrame = ocf
  1311. p.Transparency = i/100
  1312. swait()
  1313. end
  1314. p:Destroy()
  1315. humanoid.WalkSpeed = ows
  1316. fixalljoints()
  1317. attacking = false
  1318. end
  1319. if key == "m" and not attacking and animpose ~= "Falling" then
  1320. attacking = true
  1321. local rs,ls,rh,lh,neck,rj = getnewjoints()
  1322. char:FindFirstChildOfClass("Humanoid").JumpPower = 500
  1323. char:FindFirstChildOfClass("Humanoid").Jump = true
  1324. wait()
  1325. char:FindFirstChildOfClass("Humanoid").JumpPower = 50
  1326. repeat wait() until char.HumanoidRootPart.Velocity.Y < 0
  1327. local num = 0.5
  1328. local num2 = 0.5
  1329. repeat wait()
  1330. num = num + 0.5
  1331. if num2 < 10 then
  1332. num2 = num2+0.5
  1333. end
  1334. if num%3 == 0 then soundeffect("rbxassetid://541909814", 2, 1, char.Torso) end
  1335. 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)
  1336. 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)
  1337. 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)
  1338. 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)
  1339. 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)
  1340. rj.C0 = rj.C0 *CFrame.Angles(math.rad((5*num2)),0,0)
  1341. until char.HumanoidRootPart.Velocity.Y > -1
  1342. soundeffect("rbxassetid://165969964", 3, 1, char.Torso)
  1343. for i = 0, 1.3, 0.1 do
  1344. if i == 0.6 then
  1345. local ring = Instance.new("Part")
  1346. ring.Size = Vector3.new(1.16, 1.16, 0.16)
  1347. local bc = BrickColor.Random()
  1348. if rage then
  1349. bc = BrickColor.new("Really black")
  1350. end
  1351. ring.BrickColor = bc
  1352. ring.Anchored = true
  1353. ring.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0)
  1354. ring.CanCollide=false
  1355. ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0)
  1356. local m = Instance.new("SpecialMesh", ring)
  1357. m.MeshId = "rbxassetid://3270017"
  1358. ring.Parent = workspace
  1359. local thing = Instance.new("Part")
  1360. thing.Size = Vector3.new(1.866, 1.421, 2.155)
  1361. thing.BrickColor = bc
  1362. thing.Anchored = true
  1363. thing.CanCollide = false
  1364. thing.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5*2,0)
  1365. local m2 = Instance.new("SpecialMesh", thing)
  1366. m2.MeshId = "rbxassetid://20329976"
  1367. m2.Scale = Vector3.new(1,0.5,1)
  1368. thing.Parent = workspace
  1369. local oldcf2 = thing.CFrame
  1370. local multiplier2 = Vector3.new(1.866, 1.421, 2.155)*3
  1371. local oldcf = ring.CFrame
  1372. local multiplier = Vector3.new(1.16, 1.16, 0.16)*3
  1373. thing.Touched:connect(function(hit)
  1374. if hurt(hit, math.random(30,35)) then
  1375. local bv = Instance.new("BodyVelocity")
  1376. bv.MaxForce = huge
  1377. bv.Velocity = CFrame.new(thing.Position, hit.Position).lookVector*100
  1378. bv.Parent = hit
  1379. game.Debris:AddItem(bv, 0.1)
  1380. end
  1381. end)
  1382. ring.Touched:connect(function(hit)
  1383. if hurt(hit, math.random(10,15)) then
  1384. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  1385. local bv = Instance.new("BodyVelocity")
  1386. bv.MaxForce = huge
  1387. bv.Velocity = CFrame.new(ring.Position, hit.Position).lookVector*100
  1388. bv.Parent = hit
  1389. game.Debris:AddItem(bv, 0.1)
  1390. end
  1391. end)
  1392. spawn(function()
  1393. for i = 0, 20 do
  1394. ring.Size = multiplier*i
  1395. m.Scale = m.Scale +Vector3.new(3,3,3)
  1396. ring.CFrame = oldcf
  1397. ring.Transparency = ring.Transparency +0.05
  1398. thing.Size = multiplier*i
  1399. m2.Scale = m2.Scale +Vector3.new(3,3,3)
  1400. thing.CFrame = oldcf2
  1401. thing.Transparency = thing.Transparency +0.05
  1402. swait()
  1403. end
  1404. thing:Destroy()
  1405. ring:Destroy()
  1406. end)
  1407. end
  1408. 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)
  1409. 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)
  1410. 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)
  1411. 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)
  1412. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7)
  1413. 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)
  1414. wait()
  1415. end
  1416. attacking = false
  1417. fixalljoints()
  1418.  
  1419. end
  1420. if key == "q" and not attacking then
  1421. attacking = true
  1422. local rs = replacejoint("Right Shoulder")
  1423. local ls = replacejoint("Left Shoulder")
  1424. local rj = replacejoint("RootJoint")
  1425. local neck = replacejoint("Neck")
  1426. local arm = Instance.new("Part")
  1427. arm.Name = "cool effects brooo"
  1428. arm.BrickColor = BrickColor.new("Deep orange")
  1429. arm.Material = "Neon"
  1430. arm.Transparency = 1
  1431. smooth(arm)
  1432. arm.Size = char["Right Arm"].Size+Vector3.new(0.05,0.05,0.05)
  1433. arm.CanCollide = false
  1434. arm.Anchored = false
  1435. arm.Parent = char
  1436. local w = Instance.new("Weld")
  1437. w.Name = "weld 4 kool peepz"
  1438. w.Part0 = arm
  1439. w.Part1 = char["Right Arm"]
  1440. w.Parent = arm
  1441. for i = 0, 2, 0.1 do
  1442. if arm.Transparency > 0.5 then
  1443. arm.Transparency = arm.Transparency - 0.1
  1444. end
  1445. 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)
  1446. 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)
  1447. 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)
  1448. 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)
  1449. swait()
  1450. end
  1451. local rjcf = rj.C0
  1452. local lscf = ls.C0
  1453. local neckcf = neck.C0
  1454. local rscf = rs.C0
  1455. swait(25)
  1456. soundeffect("rbxassetid://449025737", 2, 1, char.Torso)
  1457. for i = 0, 1, 0.1 do
  1458. local ring = Instance.new("Part")
  1459. ring.Name = "cool rihg thtat's thadsada"
  1460. ring.BrickColor = BrickColor.new("Deep orange")
  1461. ring.Size = Vector3.new(1,1,1)
  1462. ring.CanCollide = false
  1463. ring.Anchored = true
  1464. ring.CFrame = char["Right Arm"].CFrame *CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1465. local m = Instance.new("SpecialMesh")
  1466. m.MeshId = "rbxassetid://3270017"
  1467. m.Parent = ring
  1468. ring.Parent = workspace
  1469. spawn(function()
  1470. local sz = m.Scale
  1471. for i = 1, 20 do
  1472. ring.Transparency = i/20
  1473. m.Scale = sz:Lerp(Vector3.new(3,3,3), i/20)
  1474. swait()
  1475. end
  1476. ring:Destroy()
  1477. end)
  1478. 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)
  1479. 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)
  1480. 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)
  1481. 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)
  1482. swait()
  1483. end
  1484. local p = Instance.new("Part")
  1485. p.Anchored = true
  1486. p.CanCollide = false
  1487. p.BrickColor = BrickColor.new("Deep orange")
  1488. p.Material = "Neon"
  1489. p.Size = Vector3.new(1,1,1)
  1490. smooth(p)
  1491. p.CFrame = char["Right Arm"].CFrame *CFrame.new(0,-1,0)
  1492. p.Name = "spherical radicul"
  1493. local m = Instance.new("SpecialMesh")
  1494. m.MeshType = "Sphere"
  1495. m.Parent = p
  1496. p.Touched:connect(function(hit)
  1497. if hurt(hit, 50) then
  1498. local dir = CFrame.new(p.CFrame.p,hit.CFrame.p).lookVector
  1499. local bv = Instance.new("BodyVelocity")
  1500. bv.MaxForce = huge
  1501. bv.Velocity = dir*200
  1502. bv.Parent = hit
  1503. game.Debris:AddItem(bv, 0.1)
  1504. end
  1505. end)
  1506. p.Parent = workspace
  1507. local ring = p:Clone()
  1508. ring:ClearAllChildren()
  1509. local m = Instance.new("SpecialMesh")
  1510. m.MeshId = "rbxassetid://3270017"
  1511. m.Scale = Vector3.new(1.2,1.2,1.2)
  1512. m.Parent = ring
  1513. ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0)
  1514. ring.Parent = workspace
  1515. local size = m.Scale
  1516. local size2 = p.Size
  1517. for i = 1, 30 do
  1518. local cf = p.CFrame
  1519. m.Scale = size:Lerp(Vector3.new(30.2,30.2,30.2), i/30)
  1520. p.Size = size2:Lerp(Vector3.new(30,30,30), i/30)
  1521. p.Transparency = i/30
  1522. ring.Transparency = i/30
  1523. p.CFrame = cf
  1524. swait()
  1525. end
  1526. p:Destroy()
  1527. ring:Destroy()
  1528. fixalljoints()
  1529. swait(3)
  1530. attacking = false
  1531. fade(arm, true)
  1532. end
  1533. if key == "z" and attacking == false then
  1534. local og = mobs.Volume
  1535. mobs.Volume = 0.1
  1536. soundeffect("rbxassetid://333446256", 2, 1, char["HumanoidRootPart"], true)
  1537. mobs.Volume = og
  1538. end
  1539. end)
  1540. local lp
  1541. spawn(function()
  1542. local num = 0
  1543. while swait() do
  1544. local v = char.HumanoidRootPart.Velocity
  1545. if v.Y > 15 then
  1546. animpose = "Jump"
  1547. end
  1548. if v.Y < -15 then
  1549. animpose = "Falling"
  1550. end
  1551. if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then
  1552. animpose = "Walking"
  1553. end
  1554. if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then
  1555. animpose = "Idle"
  1556. end
  1557. end
  1558. end)
  1559. local num = 0
  1560. while swait() do
  1561. num = num + 0.1
  1562. local sin = math.sin(num)
  1563. if animpose == "Walking" and cananim then
  1564. for i = 0, 1.5, 0.1 do
  1565. if animpose == "Walking" and cananim then
  1566. 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)
  1567. 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)
  1568. 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)
  1569. 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)
  1570. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1571. 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)
  1572. swait()
  1573. else
  1574. break
  1575. end
  1576. end
  1577. for i = 0, 1.5, 0.1 do
  1578. if animpose == "Walking" and cananim then
  1579. 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)
  1580. 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)
  1581. 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)
  1582. 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)
  1583. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1584. 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)
  1585. swait()
  1586. else
  1587. break
  1588. end
  1589. end
  1590. end
  1591. if animpose == "Idle" and cananim then
  1592. 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)
  1593. 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)
  1594. 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)
  1595. 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)
  1596. 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)
  1597. 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)
  1598. swait()
  1599. end
  1600. if animpose == "Jump" and cananim then
  1601. for i = 0, 0.8, 0.1 do
  1602. if animpose == "Jump" and cananim then
  1603. 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)
  1604. 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)
  1605. 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)
  1606. 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)
  1607. neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1608. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1609. swait()
  1610. else
  1611. break
  1612. end
  1613. end
  1614. end
  1615. if animpose == "Falling" and cananim then
  1616. 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)
  1617. 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)
  1618. 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)
  1619. 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)
  1620. 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)
  1621. rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2)
  1622. end
  1623.  
  1624. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement