Advertisement
Hermaxs

Untitled

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