Hugo1234cool

Untitled

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