Advertisement
ItzInfern

pumpkin script

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