SHARE
TWEET

Untitled

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