Advertisement
shgsiughiiruhdu12354

Pumpkin boss

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