Advertisement
Guest User

Untitled

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