Advertisement
VoidScriptPlayer

Untitled

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