Advertisement
Nico1702

Scp 096 Script

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