Hugo1234cool

Untitled

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