Advertisement
lafur

Untitled

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