Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.93 KB | None | 0 0
  1. local Player = owner
  2. local Character = Player.Character
  3. local PlayerGui = Player.PlayerGui
  4. local Backpack = Player.Backpack
  5. local Torso = Character.HumanoidRootPart
  6. local Humanoid = Character.Humanoid
  7. local hum = Character.Humanoid
  8. local LeftArm = Character["Left Arm"]
  9. local LeftLeg = Character["Left Leg"]
  10. local RightArm = Character["Right Arm"]
  11. local RightLeg = Character["Right Leg"]
  12. local Backpack = Player.Backpack
  13. local TorsA = Character.Torso
  14. local Head = Character.Head
  15. local LS = TorsA["Left Shoulder"]
  16. local LH = TorsA["Left Hip"]
  17. local RS = TorsA["Right Shoulder"]
  18. local RH = TorsA["Right Hip"]
  19. local Neck = TorsA.Neck
  20. local rs = game:GetService("RunService").RenderStepped
  21. local Mouse = Player:GetMouse()
  22. attacktype = 1
  23. vt = Vector3.new
  24. ColorDebounce = false
  25. cf = CFrame.new
  26. euler = CFrame.fromEulerAnglesXYZ
  27. angles = CFrame.Angles
  28. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  31. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  32. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  33. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  34. RootPart = Character.HumanoidRootPart
  35. RootJoint = RootPart.RootJoint
  36. RootCF = euler(-1.57, 0, 3.14)
  37. attack = false
  38. equipped = true
  39. local RbxUtility = LoadLibrary("RbxUtility")
  40. local Create = RbxUtility.Create
  41. local Root = Character.HumanoidRootPart
  42. math.randomseed(os.time())
  43.  
  44. fat = Instance.new("BindableEvent",script)
  45. fat.Name = "Heartbeat"
  46.  
  47. script:WaitForChild("Heartbeat")
  48.  
  49. frame = 1/30
  50. tf = 0
  51. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  52. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  53. lastframe = tick()
  54. script.Heartbeat:Fire() --ayy lmao
  55.  
  56. game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
  57. tf = tf + s
  58. if tf >= frame then
  59. if allowframeloss then
  60. script.Heartbeat:Fire()
  61. lastframe=tick()
  62. else
  63. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  64. for i=1, math.floor(tf/frame) do
  65. script.Heartbeat:Fire()
  66. end
  67. lastframe=tick()
  68. end
  69. if tossremainder then
  70. tf = 0
  71. else
  72. tf = tf - frame * math.floor(tf/frame)
  73. end
  74. end
  75. end)
  76.  
  77. Debounces = {
  78. CanAttack = true;
  79. NoIdl = false;
  80. Slashing = false;
  81. Slashed = false;
  82. RPunch = false;
  83. RPunched = false;
  84. LPunch = false;
  85. LPunched = false;
  86. }
  87. local Touche = {Character.Name, }
  88.  
  89. local acos = math.acos
  90. local sqrt = math.sqrt
  91. local Vec3 = Vector3.new
  92. local fromAxisAngle = CFrame.fromAxisAngle
  93.  
  94. local function toAxisAngle(CFr)
  95. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  96. local Angle = math.acos((R00+R11+R22-1)/2)
  97. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  98. A = A == 0 and 0.00001 or A
  99. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  100. B = B == 0 and 0.00001 or B
  101. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  102. C = C == 0 and 0.00001 or C
  103. local x = (R21-R12)/sqrt(A)
  104. local y = (R02-R20)/sqrt(B)
  105. local z = (R10-R01)/sqrt(C)
  106. return Vec3(x,y,z),Angle
  107. end
  108.  
  109. local acos = math.acos
  110. local sqrt = math.sqrt
  111. local Vec3 = Vector3.new
  112. local fromAxisAngle = CFrame.fromAxisAngle
  113.  
  114. local function toAxisAngle(CFr)
  115. local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
  116. local Angle = math.acos((R00+R11+R22-1)/2)
  117. local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  118. A = A == 0 and 0.00001 or A
  119. local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  120. B = B == 0 and 0.00001 or B
  121. local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
  122. C = C == 0 and 0.00001 or C
  123. local x = (R21-R12)/sqrt(A)
  124. local y = (R02-R20)/sqrt(B)
  125. local z = (R10-R01)/sqrt(C)
  126. return Vec3(x,y,z),Angle
  127. end
  128.  
  129. function ApplyTrig(Num,Func)
  130. local Min,Max = Func(0),Func(1)
  131. local i = Func(Num)
  132. return (i-Min)/(Max-Min)
  133. --[[if Func == "sin" then
  134. return (math.sin((1-Num)*math.pi)+1)/2
  135. elseif Func == "cos" then
  136. return (math.cos((1-Num)*math.pi)+1)/2
  137. end]]
  138. end
  139.  
  140. function LerpCFrame(CFrame1,CFrame2,Num)
  141. local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
  142. return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
  143. end
  144.  
  145. function Crater(Torso,Radius)
  146. Spawn(function()
  147. local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
  148. local Ignore = {}
  149. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  150. if v.Character ~= nil then
  151. Ignore[#Ignore+1] = v.Character
  152. end
  153. end
  154. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
  155. if Hit == nil then return end
  156. local Parts = {}
  157. for i = 1,360,10 do
  158. local P = Instance.new("Part",Torso.Parent)
  159. P.Anchored = true
  160. P.FormFactor = "Custom"
  161. P.BrickColor = BrickColor.new("Really red")
  162. P.Material = "Granite"
  163. P.TopSurface = "Smooth"
  164. P.BottomSurface = "Smooth"
  165. P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
  166. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  167. Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
  168. if math.random(0,5) == 0 then -- rubble
  169. local P = Instance.new("Part",Torso.Parent)
  170. P.Anchored = true
  171. P.FormFactor = "Custom"
  172. P.BrickColor = BrickColor.new("Royal purple")
  173. P.Material = Hit.Material
  174. P.TopSurface = "Smooth"
  175. P.BottomSurface = "Smooth"
  176. P.Size = Vector3.new(5,5,5)*(math.random(80,100)/100)
  177. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
  178. Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
  179. end
  180. end
  181. for i = 0,1,0.05 do
  182. for i2,v in pairs(Parts) do
  183. v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
  184. end
  185. wait(0.02)
  186. end
  187. for i,v in pairs(Parts) do
  188. if v[1].Size.X > 2.1 then
  189. v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
  190. end
  191. v[1].Anchored = false
  192. end
  193. for i = 0,1,0.05 do
  194. for i2,v in pairs(Parts) do
  195. v[1].Transparency = i
  196. if i == 1 then
  197. v[1]:Destroy()
  198. elseif i >= 0.25 then
  199. v[1].CanCollide = false
  200. end
  201. end
  202. wait(0.02)
  203. end
  204. Parts = nil
  205. end)
  206. end
  207.  
  208. local sound = Instance.new("Sound")
  209. sound.SoundId = "http://www.roblox.com/asset/?id=134147361"
  210. sound.Parent = Character
  211. sound.Volume = 3
  212. sound.Pitch = 0.7
  213. sound:Play()
  214. sound.Looped=true
  215. wait(0.1)
  216.  
  217. local sound = Instance.new("Sound")
  218. sound.SoundId = "http://www.roblox.com/asset/?id=345477939"
  219. sound.Parent = Character
  220. sound.Volume = 10000
  221. sound.Pitch = 1.5
  222. sound:Play()
  223. sound.Looped=true
  224. local runServ = game:GetService("RunService").RenderStepped
  225.  
  226.  
  227. local TBlast, TBMesh = Instance.new("Part"), Instance.new("SpecialMesh")
  228. TBlast.BrickColor = BrickColor.new("Really Black")
  229. TBlast.Transparency = 1
  230. TBlast.Anchored = true
  231. TBlast.CanCollide = false
  232. TBlast.CFrame = Root.CFrame
  233. TBlast.Size = Vector3.new(2,2,2)
  234. TBMesh.Parent = TBlast
  235. TBMesh.MeshType = "Sphere"
  236.  
  237. local TB, TM = Instance.new("Part"), Instance.new("SpecialMesh")
  238. TB.BrickColor = BrickColor.new("Pearl")
  239. TB.Transparency = 1
  240. TB.Anchored = true
  241. TB.CanCollide = false
  242. TB.CFrame = Root.CFrame
  243. TB.Size = Vector3.new(2,2,2)
  244. TB.Parent = TBlast
  245. TM.MeshType = "Sphere"
  246.  
  247. game.Lighting.Brightness = 0
  248. game.Lighting.OutdoorAmbient = TBlast.BrickColor.Color
  249. game.Lighting.TimeOfDay = 0.1
  250. game.Lighting.FogEnd = 1000
  251. game.Lighting.FogColor = TBlast.BrickColor.Color
  252. game.Lighting.TimeOfDay = "00:00:00"
  253. game.Lighting.Ambient = Color3.new(0,0,0)
  254. game.Lighting.FogColor = Color3.new(0,0,0)
  255. game.Lighting.FogEnd = 500
  256. game.Lighting.FogStart = 0
  257. game.Lighting.GlobalShadows = true
  258.  
  259. wait(16)
  260.  
  261.  
  262.  
  263. local p = game.Players.localPlayer
  264. local char = p.Character
  265. local mouse=p:GetMouse()
  266. local larm = char["Left Arm"]
  267. local rarm = char["Right Arm"]
  268. local lleg = char["Left Leg"]
  269. local rleg = char["Right Leg"]
  270. local torso = char.Torso
  271. local root = char.HumanoidRootPart
  272. local hed = char.Head
  273.  
  274. ----------------------------------------------------
  275. local PE1 = Instance.new("ParticleEmitter",rarm)
  276. PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0))
  277. PE1.LightEmission = NumberSequence.new(0.2)
  278. PE1.Size = NumberSequence.new(1.2)
  279. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  280. PE1.Lifetime = NumberRange.new(.5)
  281. PE1.Rate = 10
  282. PE1.Transparency = NumberSequence.new(0.2)
  283. PE1.LightEmission = NumberSequence.new(0.2)
  284. PE1.Rotation = NumberRange.new(260)
  285. PE1.Speed = NumberRange.new(0)
  286. PE1.RotSpeed = NumberRange.new(100)
  287. bc=char['Body Colors']
  288. coloras=BrickColor.new('Really black')
  289. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  290. -----------------------------------------------------------------------------
  291. local PE1 = Instance.new("ParticleEmitter",larm)
  292. PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0))
  293. PE1.LightEmission = NumberSequence.new(0.2)
  294. PE1.Size = NumberSequence.new(1.2)
  295. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  296. PE1.Lifetime = NumberRange.new(.5)
  297. PE1.Rate = 10
  298. PE1.Transparency = NumberSequence.new(0.2)
  299. PE1.LightEmission = NumberSequence.new(0.2)
  300. PE1.Rotation = NumberRange.new(360)
  301. PE1.Speed = NumberRange.new(0)
  302. PE1.RotSpeed = NumberRange.new(100)
  303. bc=char['Body Colors']
  304. coloras=BrickColor.new('Really black')
  305. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  306. ----------------------------------------------------------
  307. local PE1 = Instance.new("ParticleEmitter",rleg)
  308. PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0))
  309. PE1.LightEmission = NumberSequence.new(0.2)
  310. PE1.Size = NumberSequence.new(1.2)
  311. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  312. PE1.Lifetime = NumberRange.new(.5)
  313. PE1.Rate = 10
  314. PE1.Transparency = NumberSequence.new(0.2)
  315. PE1.LightEmission = NumberSequence.new(0.2)
  316. PE1.Rotation = NumberRange.new(260)
  317. PE1.Speed = NumberRange.new(0)
  318. PE1.RotSpeed = NumberRange.new(100)
  319. bc=char['Body Colors']
  320. coloras=BrickColor.new('Really black')
  321. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  322. ----------------------------------------------------
  323. local PE1 = Instance.new("ParticleEmitter",larm)
  324. PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0))
  325. PE1.LightEmission = NumberSequence.new(0.2)
  326. PE1.Size = NumberSequence.new(1.2)
  327. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  328. PE1.Lifetime = NumberRange.new(.5)
  329. PE1.Rate = 10
  330. PE1.Transparency = NumberSequence.new(0.2)
  331. PE1.LightEmission = NumberSequence.new(0.2)
  332. PE1.Rotation = NumberRange.new(260)
  333. PE1.Speed = NumberRange.new(0)
  334. PE1.RotSpeed = NumberRange.new(100)
  335. bc=char['Body Colors']
  336. coloras=BrickColor.new('Really black')
  337. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  338. ----------------------------------------------------------
  339. local fart = Instance.new("Animation", char)
  340. fart.AnimationId = "rbxassetid://456316205"
  341. fart.Name = "fart"
  342. ----------------------------------------------------
  343. local PE1 = Instance.new("ParticleEmitter",lleg)
  344. PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0))
  345. PE1.LightEmission = NumberSequence.new(0.2)
  346. PE1.Size = NumberSequence.new(1.2)
  347. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  348. PE1.Lifetime = NumberRange.new(.5)
  349. PE1.Rate = 10
  350. PE1.Transparency = NumberSequence.new(0.2)
  351. PE1.LightEmission = NumberSequence.new(0.2)
  352. PE1.Rotation = NumberRange.new(260)
  353. PE1.Speed = NumberRange.new(0)
  354. PE1.RotSpeed = NumberRange.new(100)
  355. bc=char['Body Colors']
  356. coloras=BrickColor.new('Really black')
  357. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  358. ----------------------------------------------------------
  359. local PE1 = Instance.new("ParticleEmitter",hed)
  360. PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0))
  361. PE1.LightEmission = NumberSequence.new(0.2)
  362. PE1.Size = NumberSequence.new(1.2)
  363. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  364. PE1.Lifetime = NumberRange.new(.5)
  365. PE1.Rate = 10
  366. PE1.Transparency = NumberSequence.new(0.2)
  367. PE1.LightEmission = NumberSequence.new(0.2)
  368. PE1.Rotation = NumberRange.new(260)
  369. PE1.Speed = NumberRange.new(0)
  370. PE1.RotSpeed = NumberRange.new(100)
  371. bc=char['Body Colors']
  372. coloras=BrickColor.new('Really black')
  373. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  374. ----------------------------------------------------
  375. local PE1 = Instance.new("ParticleEmitter",torso)
  376. PE1.Color = ColorSequence.new(Color3.new (255, 0, 0), Color3.new (255, 0, 0))
  377. PE1.LightEmission = NumberSequence.new(0.2)
  378. PE1.Size = NumberSequence.new(1.2)
  379. PE1.Texture = "http://www.roblox.com/asset/?id=284607870"
  380. PE1.Lifetime = NumberRange.new(.5)
  381. PE1.Rate = 10
  382. PE1.Transparency = NumberSequence.new(0.2)
  383. PE1.LightEmission = NumberSequence.new(0.2)
  384. PE1.Rotation = NumberRange.new(260)
  385. PE1.Speed = NumberRange.new(0)
  386. PE1.RotSpeed = NumberRange.new(100)
  387. bc=char['Body Colors']
  388. coloras=BrickColor.new('Really black')
  389. bc.LeftLegColor,bc.LeftArmColor,bc.TorsoColor,bc.HeadColor,bc.RightArmColor,bc.RightLegColor=coloras,coloras,coloras,coloras,coloras,coloras
  390. ----------------------------------------------------------
  391. SIDZ = {"231917744", "231917742"}
  392. PTZ = {0.7, 0.8, 0.9, 1}
  393.  
  394. x = Instance.new("Sound",char)
  395. x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)]
  396. x.Pitch = PTZ[math.random(1,#PTZ)]
  397. x.Volume = 10
  398. wait(0.1)
  399. x:Play()
  400. Crater(Torso,95)
  401. Crater(Torso,20)
  402.  
  403.  
  404. x = Instance.new("Sound",char)
  405. x.SoundId = "rbxassetid://"..SIDZ[math.random(1,#SIDZ)]
  406. x.Pitch = PTZ[math.random(1,#PTZ)]
  407. x.Volume = 10
  408. wait(0.1)
  409. x:Play()
  410. Crater(Torso,95)
  411. Crater(Torso,20)
  412.  
  413. game.Lighting.Brightness = 0
  414. game.Lighting.OutdoorAmbient = TB.BrickColor.Color
  415. game.Lighting.TimeOfDay = 0.1
  416. game.Lighting.FogEnd = 1000
  417. game.Lighting.FogColor = TB.BrickColor.Color
  418. game.Lighting.TimeOfDay = "00:00:00"
  419. game.Lighting.Ambient = Color3.new(0,0,0)
  420. game.Lighting.FogColor = Color3.new(0,0,0)
  421. game.Lighting.FogEnd = 500
  422. game.Lighting.FogStart = 0
  423. game.Lighting.GlobalShadows = true
  424. local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
  425. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  426. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  427. HBill.Size = UDim2.new(15,0,2.2,0)
  428. HBill.Name = "Health Display"
  429. HBill.StudsOffset = Vector3.new(0,4,0)
  430. HBill.AlwaysOnTop = true
  431. HBill.Enabled = true
  432. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  433. HMain.BackgroundTransparency = 1
  434. HMain.Size = UDim2.new(1,0,1,0)
  435. HBarBack.Parent = HMain
  436. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  437. HBarBack.BorderColor3 = Color3.new(0,0,0)
  438. HBarBack.BorderSizePixel = 2
  439. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  440. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  441. HBar.Parent = HBarBack
  442. HBar.BackgroundColor3 = Color3.new(225, 0, 0)
  443. HBar.BorderColor3 = Color3.new(0,0,0)
  444. HBar.Size = UDim2.new(.5,0,1,0)
  445. HHealth.BackgroundTransparency = 1
  446. HHealth.Size = UDim2.new(1,1,1,1)
  447. HHealth.Font = "SourceSans"
  448. HHealth.Text = " "
  449. HHealth.TextScaled = true
  450. HHealth.TextColor3 = Color3.new(255,0,0)
  451. HHealth.TextStrokeColor3 = BrickColor.new("Pearl").Color
  452. HHealth.TextStrokeTransparency = 1
  453. HName.Parent = HMain
  454. HName.BackgroundTransparency = 1
  455. HName.Size = UDim2.new(1,0,.5,0)
  456. HName.Font = "Antique"
  457. HName.Text = "Scp-096"
  458. HName.TextScaled = true
  459. HName.TextColor3 = BrickColor.new("Pearl").Color
  460. HName.TextStrokeColor3 = Color3.new(0,0,0)
  461. HName.FontSize = "Size48"
  462. HName.TextStrokeTransparency = 0
  463. HName.TextYAlignment = "Top"
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470. Player:ClearCharacterAppearance()
  471. wait(0.1)
  472. Player.Character.Head.BrickColor = BrickColor.new("Pearl")
  473. Player.Character.Torso.BrickColor = BrickColor.new("Pearl")
  474. Player.Character["Right Arm"].BrickColor = BrickColor.new("Pearl")
  475. Player.Character["Right Leg"].BrickColor = BrickColor.new("Pearl")
  476. Player.Character["Left Leg"].BrickColor = BrickColor.new("Pearl")
  477. Player.Character["Left Arm"].BrickColor = BrickColor.new("Pearl")
  478. Player.Character.Head.face:Destroy()
  479.  
  480.  
  481.  
  482. local selectionBoxOfTorso = Instance.new("SelectionBox",TorsA)
  483. selectionBoxOfTorso.Adornee = TorsA
  484. selectionBoxOfTorso.Color = BrickColor.new("Pearl")
  485. selectionBoxOfTorso.LineThickness = 0.01
  486. selectionBoxOfTorso.Transparency = 0
  487.  
  488. local selectionBoxOfRightArm = Instance.new("SelectionBox",Character["Right Arm"])
  489. selectionBoxOfRightArm.Adornee = Character["Right Arm"]
  490. selectionBoxOfRightArm.Color = BrickColor.new("Pearl")
  491. selectionBoxOfRightArm.LineThickness = 0.01
  492. selectionBoxOfRightArm.Transparency = 0
  493.  
  494. local selectionBoxOfRightLeg = Instance.new("SelectionBox",Character["Right Leg"])
  495. selectionBoxOfRightLeg.Adornee = Character["Right Leg"]
  496. selectionBoxOfRightLeg.Color = BrickColor.new("Pearl")
  497. selectionBoxOfRightLeg.LineThickness = 0.01
  498. selectionBoxOfRightLeg.Transparency = 0
  499.  
  500. local selectionBoxOfLeftArm = Instance.new("SelectionBox",Character["Left Arm"])
  501. selectionBoxOfLeftArm.Adornee = Character["Left Arm"]
  502. selectionBoxOfLeftArm.Color = BrickColor.new("Pearl")
  503. selectionBoxOfLeftArm.LineThickness = 0.01
  504. selectionBoxOfLeftArm.Transparency = 0
  505.  
  506. local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Character["Left Leg"])
  507. selectionBoxOfLeftLeg.Adornee = Character["Left Leg"]
  508. selectionBoxOfLeftLeg.Color = BrickColor.new("Pearl")
  509. selectionBoxOfLeftLeg.LineThickness = 0.01
  510. selectionBoxOfLeftLeg.Transparency = 0
  511.  
  512.  
  513. LightOnBody = Instance.new("PointLight", Head)
  514. LightOnBody.Brightness = 3000
  515. LightOnBody.Range = 20
  516. LightOnBody.Color = Color3.new(1, 0, 0)
  517.  
  518. NsKeypoint = function(a, b, c)
  519.  
  520. return NumberSequenceKeypoint.new(a, b, c)
  521. end
  522.  
  523. ColorsNew = function(a, b, c)
  524.  
  525. return Color3.new(a / 255, b / 255, c / 255)
  526. end
  527.  
  528. local Plasma = Instance.new("ParticleEmitter", torso)
  529. Plasma.Enabled = true
  530. local color1 = ColorsNew(0, 0, 0)
  531. local color2 = ColorsNew(0, 0, 0)
  532. local COLOR = ColorSequence.new(color1, color2)
  533. Plasma.Size = NumberSequence.new({NsKeypoint(0, 2, 0), NsKeypoint(0.23067332804203, 6.875, 0), NsKeypoint(0.29800498485565, 0.9375, 0), NsKeypoint(0.58478802442551, 6.9375, 0), NsKeypoint(1, 2, 0)})
  534. Plasma.Transparency = NumberSequence.new({NsKeypoint(0, 0, 0), NsKeypoint(0.70947635173798, 0, 0), NsKeypoint(0.74438905715942, 0.51249998807907, 0), NsKeypoint(0.78179556131363, 0, 0), NsKeypoint(0.82169580459595, 0.018750011920929, 0), NsKeypoint(1, 0.48750001192093, 0)})
  535. Plasma.Lifetime = NumberRange.new(0.1, 1)
  536. Plasma.RotSpeed = NumberRange.new(1000)
  537. Plasma.Color = COLOR
  538. Plasma.LightEmission = 1000
  539. Plasma.Texture = "rbxassetid://335222248"
  540. Plasma.Name = "Plasma"
  541. Plasma.Speed = NumberRange.new(20)
  542. Plasma.Rate = 1000
  543. Plasma.VelocitySpread = 360
  544. Plasma.Acceleration = Vector3.new(0, 0, 0)
  545.  
  546.  
  547.  
  548. Charging = true
  549. custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
  550. function FDebris()
  551. repeat
  552. local p = Instance.new('Part',Torso)
  553. p.formFactor = 'Custom'
  554. p.Size = Vector3.new(1,1,1)
  555. p.BrickColor = workspace.Base.BrickColor
  556. p.CanCollide = false
  557. p.Transparency = 0
  558. p.Anchored = true
  559. p.Locked=true
  560. p.Material = workspace.Base.Material
  561. s = math.random(1,40)/10
  562. local m = Instance.new("BlockMesh",p)
  563. m.Scale = Vector3.new(s,s,s)
  564. p.CFrame = Torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random())
  565. --[[coroutine.wrap(function()
  566. wait(2)
  567. while Charging == true do
  568. wait(2)
  569. GroundWave1()
  570. wait(2)
  571. end
  572. end)()]]--
  573.  
  574. spawn(function()
  575. while rs:wait() do
  576. if p.Transparency >= 1 then p:Destroy() break end
  577. p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0)
  578. p.Transparency = p.Transparency+0.01
  579. end
  580. end)
  581. wait(.3)
  582. until Charging == false
  583. end
  584.  
  585.  
  586. spawn(function()
  587. while wait(.01)
  588. do
  589. FDebris()
  590. end
  591. end)
  592.  
  593.  
  594.  
  595. FloatPart = function()
  596. local Part = Instance.new('Part',Torso)
  597. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  598. Part.Anchored = true
  599. Part.Material = 'Neon'
  600. Part.CanCollide = false
  601. Part.BrickColor = BrickColor.new(PrimaryColor)
  602. local Mesh = Instance.new('SpecialMesh',Part)
  603. Mesh.Scale = Vector3.new(4,4,.2)
  604. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  605. Mesh.VertexColor = Vector3.new(0,170,255)
  606. spawn(function()
  607. for i = 1,30 do
  608. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  609. Part.Transparency = Part.Transparency + .035
  610. game["Run Service"].RenderStepped:wait()
  611. end
  612. Part:Destroy()
  613. end)
  614. end;
  615.  
  616. DubPart = function()
  617. local Part = Instance.new('Part',Torso)
  618. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  619. Part.Anchored = true
  620. Part.CanCollide = false
  621. Part.Material = 'Neon'
  622. Part.BrickColor = BrickColor.new(SecondaryColor)
  623. local Mesh = Instance.new('SpecialMesh',Part)
  624. Mesh.Scale = Vector3.new(7,7,.2)
  625. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  626. Mesh.VertexColor = Vector3.new(0,170,255)
  627. spawn(function()
  628. for i = 1,30 do
  629. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  630. Part.Transparency = Part.Transparency + .035
  631. game["Run Service"].RenderStepped:wait()
  632. end
  633. Part:Destroy()
  634. end)
  635. end;
  636.  
  637. Fade = function(Item,t)
  638. spawn(function()
  639. for i = 1,20 do
  640. Item.Transparency = Item.Transparency + .05
  641. if t then
  642. wait(t)
  643. else
  644. wait()
  645. end
  646. end
  647. Item:Destroy()
  648. end)
  649. end
  650.  
  651. Particle = function(PrimaryColor)
  652. local Part = Instance.new('Part',Torso)
  653. Part.BrickColor = BrickColor.new(PrimaryColor)
  654. Part.Anchored = true
  655. Part.Transparency = .3
  656. Part.CanCollide = false
  657. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
  658. local Mesh = Instance.new('BlockMesh',Part)
  659. Mesh.Scale = Vector3.new(.05,.1,.1)
  660. spawn(function()
  661. for i = 1,40 do
  662. Part.Transparency = Part.Transparency + .0125
  663. Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0)
  664. game["Run Service"].RenderStepped:wait()
  665. end
  666. Part:Destroy()
  667. end)
  668. end;
  669.  
  670. --[[spawn(function()
  671. while wait() do
  672. wait(.05)
  673. FloatPart()
  674. wait(.08)
  675. FloatPart()
  676. wait(.05)
  677. DubPart()
  678. wait(.08)
  679. end
  680. end)]]
  681.  
  682. game["Run Service"].RenderStepped:connect(function(_)
  683. Particle("Royale purple")
  684. Particle("Really black")
  685. Particle("Really red")
  686. --Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0)
  687. end)
  688.  
  689.  
  690.  
  691. function createblack(part)
  692. local pt1 = NumberSequenceKeypoint.new(0,1,0)
  693. local pt2 = NumberSequenceKeypoint.new(1,0,0)
  694. local effecto = Instance.new("ParticleEmitter",part)
  695. effecto.Texture = "rbxasset://textures/particles/smoke_main.dds"
  696. effecto.Color = ColorSequence.new(Color3.new(0,0,0))
  697. effecto.Rate = 10000
  698. effecto.Lifetime = NumberRange.new(1,1)
  699. effecto.Size = NumberSequence.new({pt1,pt2})
  700. effecto.Speed = NumberRange.new(0,0)
  701. effecto.RotSpeed = NumberRange.new(100,100)
  702. end
  703.  
  704. local orbuu = Instance.new("Part", chara)
  705. orbuu.Size = Vector3.new(1,1,1)
  706. orbuu.Name = "Diamond"
  707. orbuu.Anchored = true
  708. orbuu.CanCollide = false
  709. orbuu.BrickColor = BrickColor.new("Really black")
  710. local meshooo = Instance.new("SpecialMesh", orbuu)
  711. meshooo.MeshType = "FileMesh"
  712. meshooo.MeshId = "http://www.roblox.com/asset/?id=9756362"
  713. local RotationSpeed = 6
  714. local BobSpeed = 1
  715. local RotationDist = Vector3.new(5, 0, 0)
  716. local dt = 0
  717. local currentTime = 0
  718.  
  719. chara = Player.Character
  720. hitdude = nil
  721. debby = game:GetService("Debris")
  722. chara.Humanoid.MaxHealth = math.huge
  723. chara.Humanoid.Health = math.huge
  724. chara.Humanoid.JumpPower = 100
  725. local moosek = 0
  726. local prevthing = 0
  727. local timeofday = "Day"
  728. taip = 1
  729. createblack(orbuu)
  730. orbuu.ParticleEmitter.Color = ColorSequence.new(Color3.new(1,0,1))
  731. orbuu.ParticleEmitter.LightEmission = 1
  732. --Spell Circle--
  733.  
  734. Void = nil
  735. VoidParts = {}
  736. Equipped = false
  737.  
  738. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  739. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  740. end
  741.  
  742. Player = Player
  743. Character = chara
  744.  
  745. Humanoid = Character:FindFirstChild("Humanoid")
  746. Torso = Character:FindFirstChild("Torso")
  747. if not Player or not Humanoid or Humanoid.Health == 0 or not Torso then
  748. return
  749. end
  750. Spawn(function()
  751. while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do
  752. if Angle == 360 then
  753. Angle = 0
  754. end
  755. Angle = Angle + 0.05
  756. chara.Humanoid.MaxHealth = math.huge
  757. chara.Humanoid.Health = math.huge
  758. local parentPos = chara.Torso.CFrame
  759. --Rotate Fluffy around the player's head
  760. local rotation = CFrame.Angles(0 , RotationSpeed * currentTime, 0)
  761. local bob = Vector3.new(0, BobSpeed * math.sin(currentTime), 0)
  762. orbuu.CFrame = ((parentPos + bob) + (rotation * RotationDist))
  763. --Wait some time so we aren't going plaid
  764. dt, currentTime = wait(1/40)
  765. local cheeed = chara:GetChildren()
  766. for i = 1, #cheeed do
  767. if cheeed[i].ClassName == "Part" then
  768. if cheeed[i].Name ~= "Right Arm" and cheeed[i].Name ~= "Left Arm" and cheeed[i].Name ~= "Right Leg" and cheeed[i].Name ~= "Left Leg" and cheeed[i].Name ~= "Torso" and cheeed[i].Name ~= "HumanoidRootPart" and cheeed[i].Name ~= "Head" and cheeed[i].Name ~= "FakeHandle" and cheeed[i].Name ~= "FakeHandle2" and cheeed[i].Name ~= "FakeHandle3" and cheeed[i].Name ~= "Diamond" then
  769. cheeed[i]:Destroy()
  770. else end
  771. end
  772. end
  773. local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character})
  774. if Hit then
  775. if not Void.Parent then
  776. Void.Parent = Character
  777. end
  778. for i, v in pairs(VoidParts) do
  779. v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
  780. end
  781. else
  782. Void.Parent = nil
  783. end
  784. wait()
  785. end
  786. end)
  787.  
  788.  
  789.  
  790.  
  791. ----------------------------------------------------
  792. function genWeld(a,b)
  793. local w = Instance.new("Weld",a)
  794. w.Part0 = a
  795. w.Part1 = b
  796. return w
  797. end
  798. function weld(a, b)
  799. local weld = Instance.new("Weld")
  800. weld.Name = "W"
  801. weld.Part0 = a
  802. weld.Part1 = b
  803. weld.C0 = a.CFrame:inverse() * b.CFrame
  804. weld.Parent = a
  805. return weld;
  806. end
  807. ----------------------------------------------------
  808. function Lerp(c1,c2,al)
  809. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  810. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  811. for i,v in pairs(com1) do
  812. com1[i] = v+(com2[i]-v)*al
  813. end
  814. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  815. end
  816. ----------------------------------------------------
  817. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  818. local wld = Instance.new("Weld", wp1)
  819. wld.Part0 = wp0
  820. wld.Part1 = wp1
  821. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  822. end
  823. ----------------------------------------------------
  824. newWeld(torso, larm, -1.5, 0.5, 0)
  825. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  826. newWeld(torso, rarm, 1.5, 0.5, 0)
  827. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  828. newWeld(torso, hed, 0, 1.5, 0)
  829. newWeld(torso, lleg, -0.5, -1, 0)
  830. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  831. newWeld(torso, rleg, 0.5, -1, 0)
  832. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  833. newWeld(root, torso, 0, -1, 0)
  834. torso.Weld.C1 = CFrame.new(0, -1, 0)
  835. ----------------------------------------------------
  836.  
  837.  
  838. m8 = Instance.new("Model")
  839. m8.Name = "Zyrodoxa"
  840.  
  841.  
  842. p16 = Instance.new("Part", m8)
  843. p16.BrickColor = BrickColor.new("Instutional white")
  844. p16.Material = Enum.Material.Metal
  845. p16.Name = "Handle"
  846. p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
  847. p16.CanCollide = false
  848. p16.Locked = true
  849. p16.FormFactor = Enum.FormFactor.Custom
  850. p16.Size = Vector3.new(0, 0, 0)
  851. p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  852. p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  853. p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  854. p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  855. p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  856. p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  857. b16 = Instance.new("BlockMesh", p16)
  858. b16.Name = "Mesh"
  859. b16.Scale = Vector3.new(0, 0, 0)
  860.  
  861. w16 = Instance.new("Weld", p16)
  862. w16.Name = "Block_Weld"
  863. w16.Part0 = p16
  864. w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
  865. w16.Part1 = p17
  866. w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
  867.  
  868.  
  869.  
  870. m8.Parent = rarm
  871. m8:MakeJoints()
  872.  
  873. local cor8 = Instance.new("Part", rarm.Zyrodoxa)
  874. cor8.Name = "Thingy"
  875. cor8.Locked = true
  876. cor8.BottomSurface = 0
  877. cor8.CanCollide = false
  878. cor8.Size = Vector3.new(1, 1, 1)
  879. cor8.Transparency = 1
  880. cor8.TopSurface = 0
  881. corw8 = Instance.new("Weld", cor8)
  882. corw8.Part0 = rarm
  883. corw8.Part1 = cor8
  884. corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
  885. corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  886. weld8 = Instance.new("Weld", rarm.Zyrodoxa)
  887. weld8.Part0 = cor8
  888. weld8.Part1 = rarm.Zyrodoxa.Handle
  889. weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  890.  
  891.  
  892.  
  893.  
  894.  
  895. Debounces = {CanAttack = true, NoIdl = false, Slashing = false, Slashed = false, RPunch = false, RPunched = false, LPunch = false, LPunched = false, Reaping = false, Reaped = false}
  896. local Touche = {Character.Name}
  897.  
  898.  
  899.  
  900.  
  901. Reap = function()
  902.  
  903. rarm.Touched:connect(function(ht1)
  904.  
  905. hit1 = ht1.Parent
  906. if ht1 and hit1:IsA("Model") and hit1:FindFirstChild("Humanoid") and hit1.Name ~= p.Name and Debounces.Reaping == true and Debounces.Reaped == false then
  907. Debounces.Reaped = true
  908. h = hit1:FindFirstChild("Humanoid")
  909. if h ~= nil then
  910. hum.MaxHealth = hum.MaxHealth + h.MaxHealth
  911. hum.Health = hum.MaxHealth
  912. e = Instance.new("Part")
  913. e.TopSurface = 0
  914. e.BottomSurface = 0
  915. e.Reflectance = 0.05
  916. e.formFactor = "Symmetric"
  917. e.Size = Vector3.new(1, 1, 1)
  918. e.Anchored = true
  919. e.CanCollide = false
  920. e.BrickColor = BrickColor.new("Really blue")
  921. e.CFrame = CFrame.new(ht1.Position)
  922. e.Parent = hit1
  923. Instance.new("BlockMesh", e)
  924. coroutine.resume(coroutine.create(function(par)
  925.  
  926. for i = 1, 13 do
  927. par.CFrame = par.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-20, 20) / 50, math.random(-20, 20) / 50, math.random(-20, 20) / 50)
  928. par.Transparency = i / 13
  929. par.Mesh.Scale = par.Mesh.Scale + Vector3.new(0.4, 0.4, 0.4)
  930. wait()
  931. end
  932. par.Parent = nil
  933. end
  934. ), e)
  935. for _,v in pairs(hit1:children()) do
  936. if v.className == "Part" then
  937. v.BrickColor = BrickColor.new("Really black")
  938. v.RotVelocity = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)) * 3
  939. v:BreakJoints()
  940. f = Instance.new("BodyVelocity")
  941. f.P = 3000
  942. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  943. f.velocity = Vector3.new(math.random(-30, 30) / 10, math.random(-30, 30) / 10, math.random(-30, 30) / 10)
  944. f.Parent = v
  945. v.CanCollide = false
  946. coroutine.resume(coroutine.create(function(par)
  947.  
  948. for i = 1, 30 do
  949. par.Transparency = i / 30
  950. wait()
  951. end
  952. par.Parent = nil
  953. end
  954. ), v)
  955. else
  956. if v.className == "Hat" then
  957. v.Handle.BrickColor = BrickColor.new("Really black")
  958. v.Handle.RotVelocity = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2)) * 3
  959. v.Handle:BreakJoints()
  960. f = Instance.new("BodyVelocity")
  961. f.P = 3000
  962. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  963. f.velocity = Vector3.new(math.random(-30, 30) / 10, math.random(-30, 30) / 10, math.random(-30, 30) / 10)
  964. f.Parent = v.Handle
  965. v.Handle.CanCollide = false
  966. coroutine.resume(coroutine.create(function(par)
  967.  
  968. for i = 1, 30 do
  969. par.Transparency = i / 30
  970. wait()
  971. end
  972. par.Parent = nil
  973. end
  974. ), v.Handle)
  975. if h == nil then
  976. wait()
  977. end
  978. end
  979. end
  980. end
  981. end
  982. end
  983. end
  984. )
  985. Debounces.Reaped = false
  986. end
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994. mouse.KeyDown:connect(function(key)------------------------------------------------------------------------Darkness Punch
  995.  
  996. if key == "q" and Debounces.CanAttack == true then
  997. Debounces.CanAttack = false
  998. Debounces.NoIdl = true
  999. Debounces.on = true
  1000. Debounces.Reaping = true
  1001. for i = 1, 10 do
  1002. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.4) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  1003. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-30)), 0.4)
  1004. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(70), 0), 0.4)
  1005. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.4)
  1006. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-10)), 0.4)
  1007. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(7), math.rad(-20), math.rad(10)), 0.4)
  1008. if Debounces.on == false then
  1009. break
  1010. end
  1011. fat.Event:wait()
  1012. end
  1013. do
  1014. wait(1)
  1015. Reap()
  1016. for i = 1, 10 do
  1017. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, -0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(70)), 0.7)
  1018. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0.2) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), 0.7)
  1019. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.2) * CFrame.Angles(math.rad(0), math.rad(-70), 0), 0.7)
  1020. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.7)
  1021. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-20), math.rad(-10)), 0.7)
  1022. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(10)), 0.7)
  1023. if Debounces.on == false then
  1024. break
  1025. end
  1026. fat.Event:wait()
  1027. end
  1028. do
  1029. if Debounces.CanAttack == false then
  1030. Debounces.CanAttack = true
  1031. Debounces.NoIdl = false
  1032. Debounces.on = false
  1033. Debounces.Reaping = false
  1034. end
  1035. end
  1036. end
  1037. end
  1038. end
  1039. )
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051. local Player = game:GetService("Players").LocalPlayer
  1052. local Character = Player.Character
  1053. local Head = Character.Head
  1054. local Torso = Character.Torso
  1055. local Right_Arm = Character["Right Arm"]
  1056. local Right_Leg = Character["Right Leg"]
  1057. local Left_Arm = Character["Left Arm"]
  1058. local Left_Leg = Character["Left Leg"]
  1059. local Humanoid = Character.Humanoid
  1060. local Animation = "Idle"
  1061. local Mouse = Player:GetMouse()
  1062. local LeftShoulder = Torso["Left Shoulder"]
  1063. local Left_Hip = Torso["Left Hip"]
  1064. local RightShoulder = Torso["Right Shoulder"]
  1065. local Right_Hip = Torso["Right Hip"]
  1066. local Root = Character.HumanoidRootPart
  1067. local RootJoint = Root.RootJoint
  1068. local Attacking = false
  1069. local CanAttack = true
  1070. local Anim = "Idle"
  1071. local Combo = 1
  1072. local Blocking = false
  1073. local MaxDestruction = 1000
  1074. local Destruction = 0
  1075. local MaxBlock = 100
  1076. local Effects = {}
  1077. local Color = "Bright yellow"
  1078. local Invert = false
  1079. local Idle = 0
  1080. local Equipped = false
  1081. local Running = false
  1082. local Unseathed = false
  1083. local Shard = "None"
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090. function clerp(a,b,t)
  1091. local qa = {QuaternionFromCFrame(a)}
  1092. local qb = {QuaternionFromCFrame(b)}
  1093. local ax, ay, az = a.x, a.y, a.z
  1094. local bx, by, bz = b.x, b.y, b.z
  1095. local _t = 1-t
  1096. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1097. end
  1098.  
  1099. function QuaternionFromCFrame(cf) -- dis one
  1100. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1101. local trace = m00 + m11 + m22
  1102. if trace > 0 then
  1103. local s = math.sqrt(1 + trace)
  1104. local recip = 0.5/s
  1105. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1106. else
  1107. local i = 0
  1108. if m11 > m00 then
  1109. i = 1
  1110. end
  1111. if m22 > (i == 0 and m00 or m11) then
  1112. i = 2
  1113. end
  1114. if i == 0 then
  1115. local s = math.sqrt(m00-m11-m22+1)
  1116. local recip = 0.5/s
  1117. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1118. elseif i == 1 then
  1119. local s = math.sqrt(m11-m22-m00+1)
  1120. local recip = 0.5/s
  1121. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1122. elseif i == 2 then
  1123. local s = math.sqrt(m22-m00-m11+1)
  1124. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1125. end
  1126. end
  1127. end
  1128.  
  1129. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1130. local xs, ys, zs = x + x, y + y, z + z
  1131. local wx, wy, wz = w*xs, w*ys, w*zs
  1132. local xx = x*xs
  1133. local xy = x*ys
  1134. local xz = x*zs
  1135. local yy = y*ys
  1136. local yz = y*zs
  1137. local zz = z*zs
  1138. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1139. end
  1140.  
  1141. function QuaternionSlerp(a, b, t)
  1142. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1143. local startInterp, finishInterp;
  1144. if cosTheta >= 0.0001 then
  1145. if (1 - cosTheta) > 0.0001 then
  1146. local theta = math.acos(cosTheta)
  1147. local invSinTheta = 1/math.sin(theta)
  1148. startInterp = math.sin((1-t)*theta)*invSinTheta
  1149. finishInterp = math.sin(t*theta)*invSinTheta
  1150. else
  1151. startInterp = 1-t
  1152. finishInterp = t
  1153. end
  1154. else
  1155. if (1+cosTheta) > 0.0001 then
  1156. local theta = math.acos(-cosTheta)
  1157. local invSinTheta = 1/math.sin(theta)
  1158. startInterp = math.sin((t-1)*theta)*invSinTheta
  1159. finishInterp = math.sin(t*theta)*invSinTheta
  1160. else
  1161. startInterp = t-1
  1162. finishInterp = t
  1163. end
  1164. end
  1165. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1166. end
  1167.  
  1168. Movemment = 1
  1169. Walk = 0
  1170.  
  1171. Animator = Humanoid.Animator
  1172. --Animate = Character.Animate
  1173.  
  1174. Animator.Parent = nil
  1175. --Animate.Parent = nil
  1176.  
  1177. local Services = {
  1178.  
  1179. SoundService = game:GetService("SoundService");
  1180. Players = game:GetService("Players");
  1181. Debris = game:GetService("Debris");
  1182. Workspace = game:GetService("Workspace");
  1183. Lighting = game:GetService("Lighting");
  1184. HttpService = game:GetService("HttpService");
  1185. InsertService = game:GetService("InsertService");
  1186.  
  1187. }
  1188.  
  1189. SpikeMeshId = 1033714
  1190. SpikeBallId = 9982590
  1191. StarMeshId = 45428961
  1192. CrystalMeshId = 9756362
  1193.  
  1194. --[[ Essential Functions ]]--
  1195. function NoOutlines(Part)
  1196. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1197. end
  1198.  
  1199.  
  1200. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  1201.  
  1202. local Part = Instance.new("Part", Parent)
  1203. Part.Name = Name
  1204. Part.BrickColor = BrickColor.new(Color)
  1205. Part.Size = Size
  1206. Part.Material = Material
  1207. Part.Transparency = Transparency
  1208. Part.Shape = Shape
  1209. Part.CanCollide = false
  1210. NoOutlines(Part)
  1211.  
  1212. return Part
  1213.  
  1214. end
  1215.  
  1216. local CreateMesh = function(Parent, Scale, Shape)
  1217.  
  1218.  
  1219. local Mesh = Instance.new("BlockMesh", Parent)
  1220. Mesh.Scale = Scale
  1221.  
  1222. return Mesh
  1223.  
  1224. end
  1225.  
  1226. local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
  1227.  
  1228. local WedgePart = Instance.new("WedgePart", Parent)
  1229. WedgePart.Name = Name
  1230. WedgePart.BrickColor = BrickColor.new(Color)
  1231. WedgePart.Size = Size
  1232. WedgePart.Material = Material
  1233. WedgePart.Transparency = Transparency
  1234. WedgePart.CanCollide = false
  1235. NoOutlines(WedgePart)
  1236.  
  1237. return WedgePart
  1238.  
  1239. end
  1240.  
  1241. local CreateWeld = function(Parent, Cframe, P1 , P0)
  1242.  
  1243. local Weld = Instance.new("Weld", Parent)
  1244. Weld.Part0 = P0
  1245. Weld.Part1 = P1
  1246. Weld.Name = P0.Name .. "To" .. P1.Name
  1247. Weld.C0 = Cframe
  1248.  
  1249. return Weld
  1250.  
  1251. end
  1252.  
  1253. local CreateVelocity = function(Parent,Velocity,Force)
  1254.  
  1255. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  1256. BodyVelocity.Velocity = Velocity
  1257. BodyVelocity.MaxForce = Force
  1258.  
  1259.  
  1260.  
  1261. return BodyVelocity
  1262.  
  1263. end
  1264.  
  1265.  
  1266. local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1267.  
  1268.  
  1269. local Part = Instance.new("Part", Parent)
  1270. Part.Name = Name
  1271. Part.BrickColor = BrickColor.new(Color)
  1272. Part.Size = Size
  1273. Part.Material = Material
  1274. Part.Transparency = Transparency
  1275. Part.CanCollide = false
  1276. NoOutlines(Part)
  1277.  
  1278. local Mesh = Instance.new("SpecialMesh", Part)
  1279. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
  1280. Mesh.Scale = Scale
  1281.  
  1282. return Mesh and Part
  1283.  
  1284. end
  1285.  
  1286. local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
  1287.  
  1288. local SFX = Instance.new("Sound", Parent)
  1289. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  1290. SFX.Name = "SFX"
  1291. SFX:Play()
  1292. SFX.Volume = Volume
  1293. SFX.Pitch = Pitch
  1294. SFX.PlayOnRemove = true
  1295. SFX:Remove()
  1296.  
  1297. if Type == "Echo" then
  1298.  
  1299. Instance.new("EchoSoundEffect", SFX)
  1300.  
  1301. end
  1302.  
  1303. end
  1304.  
  1305. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1306.  
  1307.  
  1308. local Part = Instance.new("Part", Parent)
  1309. Part.Name = Name
  1310. Part.BrickColor = BrickColor.new(Color)
  1311. Part.Size = Size
  1312. Part.Material = Material
  1313. Part.Transparency = Transparency
  1314. Part.CanCollide = false
  1315. NoOutlines(Part)
  1316.  
  1317. local Mesh = Instance.new("SpecialMesh", Part)
  1318. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
  1319. Mesh.Scale = Scale
  1320.  
  1321. return Mesh and Part
  1322.  
  1323. end
  1324.  
  1325. CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  1326.  
  1327. local Part = Instance.new("Part", Parent)
  1328. Part.Transparency = Transparency
  1329. Part.Name = "CircleEffect"
  1330. Part.Size = Vector3.new()
  1331. Part.Anchored = true
  1332. Part.CanCollide = false
  1333. Part.Position = Position
  1334. Part.BrickColor = BrickColor.new(Brickcolor)
  1335. Part.Material = Material
  1336. NoOutlines(Part)
  1337.  
  1338. local Mesh = Instance.new("SpecialMesh", Part)
  1339. Mesh.MeshType = "Sphere"
  1340. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  1341.  
  1342. Services.Debris:AddItem(Part, Time)
  1343.  
  1344.  
  1345. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  1346.  
  1347.  
  1348. end
  1349.  
  1350. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  1351.  
  1352. local Part = Instance.new("Part", Parent)
  1353. Part.Transparency = Transparency
  1354. Part.Name = "BlockEffect"
  1355. Part.Size = Vector3.new()
  1356. Part.Anchored = true
  1357. Part.Position = Position
  1358. Part.CanCollide = false
  1359. Part.BrickColor = BrickColor.new(Brickcolor)
  1360. Part.Material = Material
  1361. NoOutlines(Part)
  1362.  
  1363. local Mesh = Instance.new("BlockMesh", Part)
  1364. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  1365.  
  1366. Services.Debris:AddItem(Part, Time)
  1367.  
  1368. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  1369.  
  1370.  
  1371. end
  1372.  
  1373.  
  1374.  
  1375.  
  1376. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  1377.  
  1378. local HitHumanoid = Hit.Parent.Humanoid
  1379.  
  1380.  
  1381. local Damage = math.random(Min, Max)
  1382.  
  1383.  
  1384. coroutine.resume(coroutine.create(function()
  1385. HitHumanoid:TakeDamage(Damage)
  1386. end))
  1387.  
  1388. if Type == "Shrink" then
  1389. MakeSFX(Hit.Parent.Torso, 209527235, 1, 1)
  1390. for i,v in pairs(Hit.Parent:children()) do
  1391. if v:IsA("Part") then
  1392. coroutine.resume(coroutine.create(function()
  1393. for i = 1,100 do
  1394. wait()
  1395. v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
  1396. v.Transparency = v.Transparency + 0.05
  1397.  
  1398. end
  1399. end))
  1400. end
  1401. end
  1402.  
  1403. end
  1404.  
  1405.  
  1406.  
  1407. if Type == "Normal" then
  1408.  
  1409. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  1410. Services.Debris:AddItem(Push, 0)
  1411. DamageLabel(Hit.Parent, Damage, Hit)
  1412.  
  1413. elseif Type == "Ranged" then
  1414. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  1415. Services.Debris:AddItem(Push, 0)
  1416. DamageLabel(Hit.Parent, Damage, Hit)
  1417.  
  1418. elseif Type == "Impale" then
  1419.  
  1420. local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))
  1421. Spike.Anchored = true
  1422. Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
  1423. Spike.Position = Hit.Parent.Torso.Position
  1424.  
  1425.  
  1426. Services.Debris:AddItem(Spike, 30)
  1427.  
  1428. Hit.Parent:BreakJoints()
  1429. Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
  1430. Hit.Parent.Torso.Anchored = true
  1431.  
  1432. MakeSFX(Spike, 306247724, 1,1)
  1433. MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
  1434. elseif Type == "Knockdown" then
  1435.  
  1436.  
  1437. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  1438. DamageLabel(Hit.Parent, Damage, Hit)
  1439. Services.Debris:AddItem(Push, 0.3)
  1440.  
  1441. coroutine.resume(coroutine.create(function()
  1442.  
  1443. HitHumanoid.PlatformStand = true
  1444. wait(1)
  1445. HitHumanoid.PlatformStand = false
  1446.  
  1447.  
  1448. end))
  1449. end
  1450.  
  1451. if HitSFX == "Penetration" then
  1452.  
  1453. MakeSFX(Hit, 199149269, 1 , 1)
  1454.  
  1455. elseif HitSFX == "Punch" then
  1456.  
  1457. MakeSFX(Hit, 278062209, 1 , 1)
  1458.  
  1459.  
  1460.  
  1461.  
  1462. end
  1463. end
  1464.  
  1465.  
  1466.  
  1467. function DamageLabel(HitCharacter, DamageDealt, Hit)
  1468.  
  1469. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  1470. DamageShowingPart.Position = HitCharacter.Head.Position
  1471.  
  1472. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  1473. DamageGui.Name = "Damage"
  1474. DamageGui.AlwaysOnTop = true
  1475. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  1476.  
  1477. local DamageNumber = Instance.new("TextLabel", DamageGui)
  1478. DamageNumber.Size = UDim2.new(1,0,1,0)
  1479. if Hit.Parent:FindFirstChild("Head") then
  1480. DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
  1481. DamageNumber.TextColor3 = Hit.BrickColor.Color
  1482. end
  1483. DamageNumber.TextStrokeTransparency = 0
  1484. DamageNumber.BackgroundTransparency = 1
  1485. DamageNumber.Font = "SourceSansBold"
  1486. DamageNumber.TextScaled = true
  1487. DamageNumber.Text = DamageDealt
  1488.  
  1489. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  1490. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1491. BodyVelocity.Velocity = Vector3.new(0,2,0)
  1492.  
  1493. Services.Debris:AddItem(DamageShowingPart, 3)
  1494.  
  1495.  
  1496. end
  1497.  
  1498.  
  1499.  
  1500.  
  1501. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  1502. for _,WorkspaceChildren in pairs(workspace:children()) do
  1503.  
  1504. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  1505.  
  1506. if HitHumanoid ~= nil then
  1507. local Hit = WorkspaceChildren:findFirstChild("Torso")
  1508.  
  1509. if Hit ~= nil then
  1510.  
  1511. local Target = Hit.Position - Part.Position
  1512.  
  1513. local Magnitude = Target.magnitude
  1514.  
  1515. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  1516.  
  1517. local HitBlock = Hit.Parent:FindFirstChild("Block")
  1518.  
  1519. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  1520.  
  1521. local HitBlock2 = Hit.Parent.Block.BlockDurability
  1522.  
  1523. if HitBlock2.Value > 15 then
  1524.  
  1525. local HitN = math.random(1,5)
  1526.  
  1527. HitBlock2.Value = HitBlock2.Value - 15
  1528.  
  1529.  
  1530. if HitN == 1 then
  1531. MakeSFX(Hit ,199148971, 0.5, 1)
  1532. end
  1533.  
  1534. if HitN == 2 then
  1535. MakeSFX(Hit ,199149025, 0.5, 1)
  1536. end
  1537.  
  1538. if HitN == 3 then
  1539. MakeSFX(Hit ,199149072, 0.5, 1)
  1540. end
  1541.  
  1542. if HitN == 4 then
  1543. MakeSFX(Hit ,199149109, 0.5, 1)
  1544. end
  1545.  
  1546. if HitN == 5 then
  1547. MakeSFX(Hit ,199149119, 0.5, 1)
  1548. end
  1549. return
  1550. end
  1551. end
  1552.  
  1553. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  1554.  
  1555.  
  1556.  
  1557. end
  1558. end
  1559. end
  1560. end
  1561. end
  1562.  
  1563.  
  1564.  
  1565. function Attack1()
  1566. Attacking = true
  1567. MakeSFX(EyeReference, 341336274, 1,1)
  1568. wait(0.3)
  1569. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  1570. local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root)
  1571.  
  1572. local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  1573. local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root)
  1574.  
  1575.  
  1576. for i = 1,10 do
  1577.  
  1578. wait()
  1579.  
  1580. end
  1581.  
  1582. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1583. wait(0.5)
  1584. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1585. wait(0.5)
  1586. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1587. wait(0.5)
  1588. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  1589. wait(0.5)
  1590. MakeSFX(Reference, 306247724, 1,1)
  1591. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  1592. ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
  1593. Attacking = false
  1594. end
  1595.  
  1596.  
  1597.  
  1598. function Attack3()
  1599. Humanoid.WalkSpeed = 0
  1600. Humanoid.JumpPower = 0
  1601. Attacking = true
  1602. wait(1)
  1603. MakeSFX(Torso, 341336274, 1, 1.2)
  1604. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  1605. wait(1)
  1606. MakeSFX(Torso, 341336274, 1, 1.2)
  1607. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  1608. wait(1)
  1609. MakeSFX(Torso, 341336274, 1, 1.2)
  1610. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  1611. ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
  1612. Humanoid.WalkSpeed = 16
  1613. Humanoid.JumpPower = 50
  1614. Attacking = false
  1615. end
  1616.  
  1617.  
  1618.  
  1619. mouse.KeyDown:connect(function(key)---------------------------------------------------------------------------------------------------Erasing Hand
  1620.  
  1621. if key == "e" and Debounces.CanAttack == true then
  1622.  
  1623. Attack1()
  1624.  
  1625. end
  1626. end)
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634. mouse.KeyDown:connect(function(key)-----------------------------------------------------------------------------------------------Underworld Spikes
  1635.  
  1636. if key == "r" and Debounces.CanAttack == true then
  1637.  
  1638. Attack3()
  1639.  
  1640. end
  1641. end)
  1642.  
  1643.  
  1644.  
  1645.  
  1646. x = Instance.new("Sound", char)
  1647. x.SoundId = "http://www.roblox.com/asset/?id=198360408"
  1648. x.Looped = true
  1649. x.Volume = 9
  1650. local footsteps = false
  1651.  
  1652. local animpose = "Idle1"
  1653. local lastanimpose = "Idle1"
  1654. local grab = false
  1655. local Smooth = 1
  1656. local sine = 0
  1657. local change = 1
  1658. local val = 0
  1659. local ffing = false
  1660.  
  1661. jump = false
  1662. rs:connect(function()
  1663. if char.Humanoid.Jump == true then
  1664. jump = true
  1665. else
  1666. jump = false
  1667. end
  1668. char.Humanoid.FreeFalling:connect(function(f)
  1669. if f then
  1670. ffing = true
  1671. else
  1672. ffing = false
  1673. end
  1674. end)
  1675. sine = sine + change
  1676. if jump == true then
  1677. animpose = "Jumping"
  1678. elseif ffing == true then
  1679. animpose = "Freefalling"
  1680. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1681. animpose = "Idle"
  1682. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1683. animpose = "Walking"
  1684. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1685. animpose = "Running"
  1686. end
  1687. RightLeg = CFrame.new(0.5,-1,0)
  1688. LeftLeg = CFrame.new(-0.5,-1,0)
  1689.  
  1690. lefth = (torso.CFrame*LeftLeg)
  1691. righth = (torso.CFrame*RightLeg)
  1692.  
  1693. speed = Vector3.new(torso.Velocity.X,50,torso.Velocity.Z)
  1694.  
  1695. TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
  1696.  
  1697. local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
  1698. local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
  1699. if animpose ~= lastanimpose then
  1700. sine = 0
  1701. if Debounces.NoIdl == false then
  1702. if stanceToggle == "Idle1" then
  1703. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
  1704. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
  1705. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
  1706. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
  1707. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
  1708. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
  1709. elseif stanceToggle == "Idle2" then
  1710. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
  1711. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
  1712. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
  1713. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
  1714. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
  1715. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
  1716. end
  1717. fat.Event:wait()
  1718. end
  1719. else
  1720. end
  1721. lastanimpose = animpose
  1722. if Debounces.NoIdl == false then
  1723. if animpose == "Idle" then
  1724. change = 0.5
  1725. if stanceToggle == "Idle1" then
  1726. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1727. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
  1728.  
  1729. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
  1730. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1731. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
  1732. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1733. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
  1734. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
  1735. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
  1736. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
  1737. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  1738. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
  1739. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
  1740. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
  1741. elseif stanceToggle == "Idle2" then
  1742.  
  1743. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1744. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
  1745. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  1746. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
  1747. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
  1748. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
  1749. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1750. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1751. --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
  1752. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1753. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
  1754. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
  1755. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
  1756. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
  1757. elseif stanceToggle == "Grabbed" then
  1758. grab = true
  1759. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1760. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1761. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
  1762. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  1763. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
  1764. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  1765. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
  1766. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1767. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1768. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
  1769. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
  1770. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1771. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
  1772. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1773. end
  1774. elseif animpose == "Walking" then
  1775. if stanceToggle == "Grabbed" then
  1776. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1777. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1778. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  1779. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1780. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
  1781. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
  1782. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  1783. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  1784. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  1785. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1786. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1787. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  1788. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1789. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  1790. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1791. elseif stanceToggle ~= "Grabbed" then
  1792. change = 0.4
  1793. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1794. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1795.  
  1796. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  1797. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1798. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
  1799. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
  1800. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
  1801. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
  1802. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
  1803. --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
  1804. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
  1805. --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  1806. lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
  1807. lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1808. --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
  1809. rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
  1810. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
  1811. end
  1812. elseif animpose == "Running" then
  1813. change = 0.4
  1814. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1815. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1816.  
  1817. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
  1818. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  1819. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
  1820. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1821. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
  1822. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
  1823. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
  1824. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1825. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  1826. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1827. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
  1828. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1829. elseif animpose == "Jumping" then
  1830.  
  1831. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1832. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1833. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
  1834. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  1835. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
  1836. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1837. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
  1838. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
  1839. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1840. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1841. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1842. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1843. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1844. elseif animpose == "Freefalling" then
  1845.  
  1846. corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
  1847. corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1848. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
  1849. rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
  1850. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
  1851. larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
  1852. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
  1853. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
  1854. torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
  1855. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
  1856. lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1857. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
  1858. rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1859. end
  1860. end
  1861. if animpose == "Walking" then
  1862. if footsteps == false then
  1863. x:Play()
  1864. footsteps = true
  1865. end
  1866. x.Pitch = 1.1
  1867. elseif animpose == "Idle" then
  1868. x:Stop()
  1869. footsteps = false
  1870. elseif animpose == "Running" then
  1871. x.Pitch = 1.2
  1872. if footsteps == false then
  1873. x:Play()
  1874. footsteps = true
  1875. end
  1876. end
  1877. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement