Advertisement
StarzoZero

roblox pumpkin boooos

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