Advertisement
PasterXIV

Untitled

Sep 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.62 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --[[ World eater Script ]]--
  8. --[[ Declarations ]]--
  9. wait(.0000000000000000000001)
  10. local Player = game:GetService("Players").LocalPlayer
  11. local Character = Player.Character
  12. local Head = Character.Head
  13. local Torso = Character.Torso
  14. local Right_Arm = Character["Right Arm"]
  15. local Right_Leg = Character["Right Leg"]
  16. local Left_Arm = Character["Left Arm"]
  17. local Left_Leg = Character["Left Leg"]
  18. local Humanoid = Character.Humanoid
  19. local Animation = "Idle"
  20. local Mouse = Player:GetMouse()
  21. local LeftShoulder = Torso["Left Shoulder"]
  22. local Left_Hip = Torso["Left Hip"]
  23. local RightShoulder = Torso["Right Shoulder"]
  24. local Right_Hip = Torso["Right Hip"]
  25. local Root = Character.HumanoidRootPart
  26. local RootJoint = Root.RootJoint
  27. local Attacking = false
  28. local CanAttack = true
  29. local Anim = "Idle"
  30. local Combo = 1
  31. local Blocking = false
  32. local MaxDestruction = 1000
  33. local Destruction = 0
  34. local MaxBlock = 100
  35. local Effects = {}
  36. local Color = "Bright yellow"
  37. local Invert = false
  38. local Idle = 0
  39. local Equipped = false
  40. local Running = false
  41. local Unseathed = false
  42. local Shard = "None"
  43.  
  44. Humanoid.MaxHealth = 3000
  45. Humanoid.Health = 3000
  46.  
  47. local WorldEaterTheme = Instance.new("Sound",Character)
  48. WorldEaterTheme.Name = "WorldEaterTheme"
  49. WorldEaterTheme.Looped = true
  50. WorldEaterTheme.SoundId = "http://www.roblox.com/asset?id=149981769"
  51. WorldEaterTheme:Play()
  52.  
  53. Left_Shoulder = Instance.new("Weld", Torso)
  54. Left_Shoulder.Part0 = Torso
  55. Left_Shoulder.Part1 = Left_Arm
  56. Left_Shoulder.Name = "Left Shoulder"
  57. Left_Shoulder.C0 = CFrame.new(-1.5,0,0)
  58.  
  59. Right_Shoulder = Instance.new("Weld", Torso)
  60. Right_Shoulder.Part0 = Torso
  61. Right_Shoulder.Part1 = Right_Arm
  62. Right_Shoulder.Name = "Right Shoulder"
  63. Right_Shoulder.C0 = CFrame.new(1.5,0,0)
  64.  
  65. LeftShoulder.Parent = nil
  66. RightShoulder.Parent = nil
  67. Humanoid.WalkSpeed = 10
  68.  
  69. local RootCFrame = CFrame.fromEulerAnglesXYZ(-1.57,0,3.14)
  70. Necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  71. Necko2 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  72. Right_Hip_C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  73. Left_Hip_C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  74.  
  75.  
  76. Movemment = 1
  77. Walk = 0
  78.  
  79. Animator = Humanoid.Animator
  80. --Animate = Character.Animate
  81.  
  82. Animator.Parent = nil
  83. --Animate.Parent = nil
  84.  
  85. local Services = {
  86.  
  87. SoundService = game:GetService("SoundService");
  88. Players = game:GetService("Players");
  89. Debris = game:GetService("Debris");
  90. Workspace = game:GetService("Workspace");
  91. Lighting = game:GetService("Lighting");
  92. HttpService = game:GetService("HttpService");
  93. InsertService = game:GetService("InsertService");
  94.  
  95. }
  96.  
  97. local ManaBarGUI = Instance.new("ScreenGui", Player.PlayerGui)
  98. ManaBarGUI.Name = "ManaBarGUI"
  99.  
  100. local ManaBarP1 = Instance.new("Frame", ManaBarGUI)
  101. ManaBarP1.Name = "ManaBarPart1"
  102. ManaBarP1.Size = UDim2.new(0,300,0,20)
  103. ManaBarP1.Position = UDim2.new(0,350,0.1,0)
  104. ManaBarP1.BackgroundColor3 = BrickColor.Black().Color
  105.  
  106. local ManaBarP2 = Instance.new("Frame", ManaBarP1)
  107. ManaBarP2.Name = "ManaBarPart2"
  108. ManaBarP2.Size = UDim2.new(0,300,0,20)
  109. ManaBarP2.Position = UDim2.new(0,0,0,0)
  110. ManaBarP2.BackgroundColor3 = BrickColor.new("Black").Color
  111.  
  112. local ManaBarText = Instance.new("TextLabel", ManaBarP1)
  113. ManaBarText.Name = "ManaBarText"
  114. ManaBarText.Size = UDim2.new(0,300,0,20)
  115. ManaBarText.Position = UDim2.new(0,0,-1.5,0)
  116. ManaBarText.TextScaled = true
  117. ManaBarText.Text = "<{[ Destruction ]}> 0 <{[ Destruction ]}>"
  118. ManaBarText.BackgroundTransparency = 1
  119. ManaBarText.TextStrokeTransparency = 0
  120. ManaBarText.TextStrokeColor3 = Color3.new(1,1,1)
  121. ManaBarText.TextColor3 = Color3.new(0,0,0)
  122. ManaBarText.Font = "Garamond"
  123.  
  124. local WorldEaterGui = Instance.new("BillboardGui", Head)
  125. WorldEaterGui.ExtentsOffset = Vector3.new(0,5,0)
  126. WorldEaterGui.Adornee = Head
  127. WorldEaterGui.AlwaysOnTop = true
  128. WorldEaterGui.Enabled = true
  129. WorldEaterGui.Size = UDim2.new(0, 200,0, 50)
  130.  
  131. local WorldEaterText = Instance.new("TextLabel", WorldEaterGui)
  132. WorldEaterText.BackgroundTransparency = 1
  133. WorldEaterText.Font = "Garamond"
  134. WorldEaterText.Size = UDim2.new(0, 200,0, 50)
  135. WorldEaterText.TextStrokeColor3 = BrickColor.Red().Color
  136. WorldEaterText.TextStrokeTransparency = 0
  137. WorldEaterText.TextColor3 = BrickColor.Black().Color
  138. WorldEaterText.TextScaled = true
  139. WorldEaterText.Text = "World Eater"
  140.  
  141. --------[[ Mesh Ids ]]--------
  142.  
  143. SpikeMeshId = 1033714
  144. SpikeBallId = 9982590
  145. StarMeshId = 45428961
  146. CrystalMeshId = 9756362
  147.  
  148. --[[ Essential Functions ]]--
  149. function NoOutlines(Part)
  150. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  151. end
  152.  
  153.  
  154. local CreatePart = function(Parent, Name, Color, Size, Material, Transparency, Shape)
  155.  
  156. local Part = Instance.new("Part", Parent)
  157. Part.Name = Name
  158. Part.BrickColor = BrickColor.new(Color)
  159. Part.Size = Size
  160. Part.Material = Material
  161. Part.Transparency = Transparency
  162. Part.Shape = Shape
  163. Part.CanCollide = false
  164. NoOutlines(Part)
  165.  
  166. return Part
  167.  
  168. end
  169.  
  170. local CreateMesh = function(Parent, Scale, Shape)
  171.  
  172.  
  173. local Mesh = Instance.new("BlockMesh", Parent)
  174. Mesh.Scale = Scale
  175.  
  176. return Mesh
  177.  
  178. end
  179.  
  180. local CreateWedge = function(Parent, Name, Color, Size, Material, Transparency)
  181.  
  182. local WedgePart = Instance.new("WedgePart", Parent)
  183. WedgePart.Name = Name
  184. WedgePart.BrickColor = BrickColor.new(Color)
  185. WedgePart.Size = Size
  186. WedgePart.Material = Material
  187. WedgePart.Transparency = Transparency
  188. WedgePart.CanCollide = false
  189. NoOutlines(WedgePart)
  190.  
  191. return WedgePart
  192.  
  193. end
  194.  
  195. local CreateWeld = function(Parent, Cframe, P1 , P0)
  196.  
  197. local Weld = Instance.new("Weld", Parent)
  198. Weld.Part0 = P0
  199. Weld.Part1 = P1
  200. Weld.Name = P0.Name .. "To" .. P1.Name
  201. Weld.C0 = Cframe
  202.  
  203. return Weld
  204.  
  205. end
  206.  
  207. local CreateVelocity = function(Parent,Velocity,Force)
  208.  
  209. local BodyVelocity = Instance.new("BodyVelocity", Parent)
  210. BodyVelocity.Velocity = Velocity
  211. BodyVelocity.MaxForce = Force
  212.  
  213.  
  214.  
  215. return BodyVelocity
  216.  
  217. end
  218.  
  219.  
  220. local CreateCrystal = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  221.  
  222.  
  223. local Part = Instance.new("Part", Parent)
  224. Part.Name = Name
  225. Part.BrickColor = BrickColor.new(Color)
  226. Part.Size = Size
  227. Part.Material = Material
  228. Part.Transparency = Transparency
  229. Part.CanCollide = false
  230. NoOutlines(Part)
  231.  
  232. local Mesh = Instance.new("SpecialMesh", Part)
  233. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. CrystalMeshId
  234. Mesh.Scale = Scale
  235.  
  236. return Mesh and Part
  237.  
  238. end
  239.  
  240. local MakeSFX = function(Parent, Id, Volume, Pitch, Type)
  241.  
  242. local SFX = Instance.new("Sound", Parent)
  243. SFX.SoundId = "http://www.roblox.com/asset?id=" .. Id
  244. SFX.Name = "SFX"
  245. SFX:Play()
  246. SFX.Volume = Volume
  247. SFX.Pitch = Pitch
  248. SFX.PlayOnRemove = true
  249. SFX:Remove()
  250.  
  251. if Type == "Echo" then
  252.  
  253. Instance.new("EchoSoundEffect", SFX)
  254.  
  255. end
  256.  
  257. end
  258.  
  259. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  260.  
  261.  
  262. local Part = Instance.new("Part", Parent)
  263. Part.Name = Name
  264. Part.BrickColor = BrickColor.new(Color)
  265. Part.Size = Size
  266. Part.Material = Material
  267. Part.Transparency = Transparency
  268. Part.CanCollide = false
  269. NoOutlines(Part)
  270.  
  271. local Mesh = Instance.new("SpecialMesh", Part)
  272. Mesh.MeshId = "http://www.roblox.com/asset?id=" .. SpikeMeshId
  273. Mesh.Scale = Scale
  274.  
  275. return Mesh and Part
  276.  
  277. end
  278.  
  279. CircleEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  280.  
  281. local Part = Instance.new("Part", Parent)
  282. Part.Transparency = Transparency
  283. Part.Name = "CircleEffect"
  284. Part.Size = Vector3.new()
  285. Part.Anchored = true
  286. Part.CanCollide = false
  287. Part.Position = Position
  288. Part.BrickColor = BrickColor.new(Brickcolor)
  289. Part.Material = Material
  290. NoOutlines(Part)
  291.  
  292. local Mesh = Instance.new("SpecialMesh", Part)
  293. Mesh.MeshType = "Sphere"
  294. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  295.  
  296. Services.Debris:AddItem(Part, Time)
  297.  
  298.  
  299. table.insert(Effects, {Part, "Circle", Time, SX, SY, SZ})
  300.  
  301.  
  302. end
  303.  
  304. BlockEffect = function(Position, Parent, DSX, DSY, DSZ, SX, SY, SZ, Time, Brickcolor, Material, Transparency)
  305.  
  306. local Part = Instance.new("Part", Parent)
  307. Part.Transparency = Transparency
  308. Part.Name = "BlockEffect"
  309. Part.Size = Vector3.new()
  310. Part.Anchored = true
  311. Part.Position = Position
  312. Part.CanCollide = false
  313. Part.BrickColor = BrickColor.new(Brickcolor)
  314. Part.Material = Material
  315. NoOutlines(Part)
  316.  
  317. local Mesh = Instance.new("BlockMesh", Part)
  318. Mesh.Scale = Vector3.new(DSX, DSY, DSZ)
  319.  
  320. Services.Debris:AddItem(Part, Time)
  321.  
  322. table.insert(Effects, {Part, "Block", Time, SX, SY, SZ})
  323.  
  324.  
  325. end
  326.  
  327. --[[ Damage function ]]--
  328.  
  329.  
  330. function DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  331.  
  332. local HitHumanoid = Hit.Parent.Humanoid
  333.  
  334.  
  335. local Damage = math.random(Min, Max)
  336.  
  337.  
  338. coroutine.resume(coroutine.create(function()
  339. HitHumanoid:TakeDamage(Damage)
  340. end))
  341.  
  342. if Type == "Shrink" then
  343. MakeSFX(Hit.Parent.Torso, 209527235, 1, 1)
  344. for i,v in pairs(Hit.Parent:children()) do
  345. if v:IsA("Part") then
  346. coroutine.resume(coroutine.create(function()
  347. for i = 1,100 do
  348. wait()
  349. v.Size = v.Size - Vector3.new(0.05,0.05,0.05)
  350. v.Transparency = v.Transparency + 0.05
  351.  
  352. end
  353. end))
  354. end
  355. end
  356.  
  357. end
  358.  
  359.  
  360.  
  361. if Type == "Normal" then
  362.  
  363. local Push = CreateVelocity(Hit.Parent.Torso, Torso.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  364. Services.Debris:AddItem(Push, 0)
  365. DamageLabel(Hit.Parent, Damage, Hit)
  366.  
  367. elseif Type == "Ranged" then
  368. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  369. Services.Debris:AddItem(Push, 0)
  370. DamageLabel(Hit.Parent, Damage, Hit)
  371.  
  372. elseif Type == "Impale" then
  373.  
  374. local Spike = CreateSpike(Services.Workspace, "D e a t h", "Black", Vector3.new(), "SmoothPlastic", 0, Vector3.new(1,20,1))
  375. Spike.Anchored = true
  376. Spike.Rotation = Vector3.new(math.random(-50,50), 0 , math.random(-50,50))
  377. Spike.Position = Hit.Parent.Torso.Position
  378.  
  379.  
  380. Services.Debris:AddItem(Spike, 30)
  381.  
  382. Hit.Parent:BreakJoints()
  383. Hit.Parent.Torso.Position = Spike.Position + Vector3.new(0,5,0)
  384. Hit.Parent.Torso.Anchored = true
  385.  
  386. MakeSFX(Spike, 306247724, 1,1)
  387. MakeSFX(Hit.Parent.Torso, 209527175, 10,1)
  388. elseif Type == "Knockdown" then
  389.  
  390.  
  391. local Push = CreateVelocity(Hit.Parent.Torso, Part.CFrame.lookVector * Knockback, Vector3.new(math.huge,math.huge,math.huge))
  392. DamageLabel(Hit.Parent, Damage, Hit)
  393. Services.Debris:AddItem(Push, 0.3)
  394.  
  395. coroutine.resume(coroutine.create(function()
  396.  
  397. HitHumanoid.PlatformStand = true
  398. wait(1)
  399. HitHumanoid.PlatformStand = false
  400.  
  401.  
  402. end))
  403. end
  404.  
  405. if HitSFX == "Penetration" then
  406.  
  407. MakeSFX(Hit, 199149269, 1 , 1)
  408.  
  409. elseif HitSFX == "Punch" then
  410.  
  411. MakeSFX(Hit, 278062209, 1 , 1)
  412.  
  413.  
  414.  
  415.  
  416. end
  417. end
  418.  
  419. function DamageLabel(HitCharacter, DamageDealt, Hit)
  420.  
  421. local DamageShowingPart = CreatePart(Services.Workspace, "ShowDamage", "Bright yellow", Vector3.new(0.8,0.8,0.8), "Neon", 1, "Block")
  422. DamageShowingPart.Position = HitCharacter.Head.Position
  423.  
  424. local DamageGui = Instance.new("BillboardGui", DamageShowingPart)
  425. DamageGui.Name = "Damage"
  426. DamageGui.AlwaysOnTop = true
  427. DamageGui.Size = UDim2.new(5, 0, 5, 0)
  428.  
  429. local DamageNumber = Instance.new("TextLabel", DamageGui)
  430. DamageNumber.Size = UDim2.new(1,0,1,0)
  431. if Hit.Parent:FindFirstChild("Head") then
  432. DamageNumber.TextStrokeColor3 = Hit.Parent.Head.BrickColor.Color
  433. DamageNumber.TextColor3 = Hit.BrickColor.Color
  434. end
  435. DamageNumber.TextStrokeTransparency = 0
  436. DamageNumber.BackgroundTransparency = 1
  437. DamageNumber.Font = "SourceSansBold"
  438. DamageNumber.TextScaled = true
  439. DamageNumber.Text = DamageDealt
  440.  
  441. local BodyVelocity = Instance.new("BodyVelocity", DamageShowingPart)
  442. BodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  443. BodyVelocity.Velocity = Vector3.new(0,2,0)
  444.  
  445. Services.Debris:AddItem(DamageShowingPart, 3)
  446.  
  447.  
  448. end
  449.  
  450. function ValidateDamage(Part, Distance ,Min , Max, Type, HitSFX, Knockback)
  451. for _,WorkspaceChildren in pairs(workspace:children()) do
  452.  
  453. local HitHumanoid = WorkspaceChildren:findFirstChild("Humanoid")
  454.  
  455. if HitHumanoid ~= nil then
  456. local Hit = WorkspaceChildren:findFirstChild("Torso")
  457.  
  458. if Hit ~= nil then
  459.  
  460. local Target = Hit.Position - Part.Position
  461.  
  462. local Magnitude = Target.magnitude
  463.  
  464. if Magnitude <= Distance and WorkspaceChildren.Name ~= Player.Name then
  465.  
  466. local HitBlock = Hit.Parent:FindFirstChild("Block")
  467.  
  468. if HitBlock ~= nil and HitBlock:FindFirstChild("BlockDurability") and HitBlock.Value == true then
  469.  
  470. local HitBlock2 = Hit.Parent.Block.BlockDurability
  471.  
  472. if HitBlock2.Value > 15 then
  473.  
  474. local HitN = math.random(1,5)
  475.  
  476. HitBlock2.Value = HitBlock2.Value - 15
  477.  
  478.  
  479. if HitN == 1 then
  480. MakeSFX(Hit ,199148971, 0.5, 1)
  481. end
  482.  
  483. if HitN == 2 then
  484. MakeSFX(Hit ,199149025, 0.5, 1)
  485. end
  486.  
  487. if HitN == 3 then
  488. MakeSFX(Hit ,199149072, 0.5, 1)
  489. end
  490.  
  491. if HitN == 4 then
  492. MakeSFX(Hit ,199149109, 0.5, 1)
  493. end
  494.  
  495. if HitN == 5 then
  496. MakeSFX(Hit ,199149119, 0.5, 1)
  497. end
  498. return
  499. end
  500. end
  501.  
  502. DamageFunction(Hit, Part, Type, HitSFX, Knockback, Min, Max)
  503.  
  504.  
  505.  
  506. end
  507. end
  508. end
  509. end
  510. end
  511.  
  512.  
  513.  
  514. local Cloak = Instance.new("Part", Character)
  515. Cloak.Name = "Cloak"
  516. Cloak.CanCollide = false
  517. Cloak.BrickColor = BrickColor.new("Institutional white")
  518.  
  519. local CloakMesh = Instance.new("SpecialMesh", Cloak)
  520. CloakMesh.MeshId = "http://www.roblox.com/asset?id=16150814"
  521. CloakMesh.TextureId = "http://www.roblox.com/asset?id=16150799"
  522.  
  523. local CloakWeld = CreateWeld(Cloak, CFrame.new(0,0,0) * CFrame.Angles(0,0,0), Head , Cloak, "ArkusToCharacter")
  524.  
  525. for i,v in pairs(Character:children()) do
  526. if v:IsA("Accessory") then
  527. v:Remove()
  528. elseif v:IsA("Shirt") then
  529. v:Remove()
  530. elseif v:IsA("Pants") then
  531. v:Remove()
  532. elseif v:IsA("BodyColors") then
  533.  
  534. Head.BrickColor =BrickColor.new("Really black")
  535. Torso.BrickColor = BrickColor.new("Really black")
  536. Right_Arm.BrickColor = BrickColor.new("Really black")
  537. Right_Leg.BrickColor = BrickColor.new("Really black")
  538. Left_Arm.BrickColor = BrickColor.new("Really black")
  539. Left_Leg.BrickColor = BrickColor.new("Really black")
  540.  
  541. v.HeadColor = BrickColor.new("Really black")
  542. v.TorsoColor = BrickColor.new("Really black")
  543. v.RightArmColor = BrickColor.new("Really black")
  544. v.LeftArmColor = BrickColor.new("Really black")
  545. v.RightLegColor = BrickColor.new("Really black")
  546. v.LeftLegColor = BrickColor.new("Really black")
  547.  
  548. end
  549. end
  550.  
  551.  
  552.  
  553. --[[ CLerp Declarations ]]--
  554.  
  555. function clerp(a,b,t)
  556. local qa = {QuaternionFromCFrame(a)}
  557. local qb = {QuaternionFromCFrame(b)}
  558. local ax, ay, az = a.x, a.y, a.z
  559. local bx, by, bz = b.x, b.y, b.z
  560. local _t = 1-t
  561. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  562. end
  563.  
  564. function QuaternionFromCFrame(cf) -- dis one
  565. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  566. local trace = m00 + m11 + m22
  567. if trace > 0 then
  568. local s = math.sqrt(1 + trace)
  569. local recip = 0.5/s
  570. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  571. else
  572. local i = 0
  573. if m11 > m00 then
  574. i = 1
  575. end
  576. if m22 > (i == 0 and m00 or m11) then
  577. i = 2
  578. end
  579. if i == 0 then
  580. local s = math.sqrt(m00-m11-m22+1)
  581. local recip = 0.5/s
  582. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  583. elseif i == 1 then
  584. local s = math.sqrt(m11-m22-m00+1)
  585. local recip = 0.5/s
  586. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  587. elseif i == 2 then
  588. local s = math.sqrt(m22-m00-m11+1)
  589. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  590. end
  591. end
  592. end
  593.  
  594. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  595. local xs, ys, zs = x + x, y + y, z + z
  596. local wx, wy, wz = w*xs, w*ys, w*zs
  597. local xx = x*xs
  598. local xy = x*ys
  599. local xz = x*zs
  600. local yy = y*ys
  601. local yz = y*zs
  602. local zz = z*zs
  603. 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))
  604. end
  605.  
  606. function QuaternionSlerp(a, b, t)
  607. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  608. local startInterp, finishInterp;
  609. if cosTheta >= 0.0001 then
  610. if (1 - cosTheta) > 0.0001 then
  611. local theta = math.acos(cosTheta)
  612. local invSinTheta = 1/math.sin(theta)
  613. startInterp = math.sin((1-t)*theta)*invSinTheta
  614. finishInterp = math.sin(t*theta)*invSinTheta
  615. else
  616. startInterp = 1-t
  617. finishInterp = t
  618. end
  619. else
  620. if (1+cosTheta) > 0.0001 then
  621. local theta = math.acos(-cosTheta)
  622. local invSinTheta = 1/math.sin(theta)
  623. startInterp = math.sin((t-1)*theta)*invSinTheta
  624. finishInterp = math.sin(t*theta)*invSinTheta
  625. else
  626. startInterp = t-1
  627. finishInterp = t
  628. end
  629. end
  630. 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
  631. end
  632.  
  633. function RayCast(Pos, Dir, Max, Ignore)
  634. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  635. end
  636.  
  637.  
  638. function Bars()
  639.  
  640. --[[ Mana Bar ]]--
  641. if Destruction ~= MaxDestruction then
  642.  
  643. Destruction = Destruction + 1
  644.  
  645. end
  646.  
  647. if Destruction >= MaxDestruction then
  648.  
  649. Destruction = Destruction
  650.  
  651. end
  652.  
  653.  
  654. ManaBarText.Text = "<{[ Destruction ]}> <|"..Destruction.."|> <{[ Destruction ]}>"
  655.  
  656. ManaBarP2.Size = UDim2.new(Destruction / Destruction,0,0,20)
  657.  
  658. end
  659. local EyeReference = CreatePart(Character, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  660. local EyeReferenceWeld = CreateWeld(EyeReference, CFrame.new(0.15,-0.1,-0.7), EyeReference, Head)
  661.  
  662. coroutine.resume(coroutine.create(function()
  663.  
  664. while wait(3) do
  665.  
  666.  
  667. CircleEffect(EyeReference.Position, Services.Workspace, 1, 1, 1, 1, 1, 1, 0.5, "Bright red", "Neon", 0.5)
  668.  
  669.  
  670. end
  671.  
  672. end))
  673. --[[ Attacks ]]--
  674.  
  675. function Attack1()
  676. Attacking = true
  677. MakeSFX(EyeReference, 341336274, 1,1)
  678. wait(0.3)
  679. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  680. local ReferenceWeld = CreateWeld(Reference, CFrame.new(0,0.5,-5), Reference, Root)
  681.  
  682. local Reference2 = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  683. local Reference2Weld = CreateWeld(Reference2, CFrame.new(0,0.5,-2), Reference2, Root)
  684.  
  685.  
  686. for i = 1,10 do
  687.  
  688. wait()
  689. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,-1.6),0.5)
  690. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,0,1.3),0.2)
  691. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  692. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(0,0,-1.6), 0.4)
  693. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0) * CFrame.Angles(0,1.6,0),0.3)
  694. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(0,-1.6,0),0.3)
  695.  
  696. end
  697.  
  698. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  699. wait(0.5)
  700. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  701. wait(0.5)
  702. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  703. wait(0.5)
  704. CircleEffect(Reference2.Position, Services.Workspace, 50, 50, 50, -5, -5, -5, 5, "Bright red", "Neon", 0.5)
  705. wait(0.5)
  706. MakeSFX(Reference, 306247724, 1,1)
  707. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  708. ValidateDamage(Reference, 10 ,10 , 14, "Shrink", "Penetration", 5)
  709. Attacking = false
  710. end
  711.  
  712. function Attack2()
  713.  
  714. Attacking = true
  715. Humanoid.WalkSpeed = 0
  716. Humanoid.JumpPower = 0
  717.  
  718.  
  719. for i = 1,25 do
  720. wait()
  721.  
  722. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(-0.5,0,0),0.2)
  723. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  724. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1, 1, 0) * CFrame.Angles(3.2,0,-0.6), 0.3)
  725. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1, 1, 0) * CFrame.Angles(3.2,0,0.6), 0.3)
  726. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  727. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  728.  
  729. end
  730.  
  731. MakeSFX(Torso, 142070127, 1, 1)
  732. ValidateDamage(Torso, 60 ,23, 26, "Knockdown", "Penetration", 15)
  733. local Hit, Position = RayCast(Torso.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  734. if Hit ~= nil then
  735. local Reference = CreatePart(Services.Workspace, "Reference", "Dark stone grey", Vector3.new(), "SmoothPlastic", 1, "Block")
  736. Reference.Anchored = true
  737. Reference.CFrame = CFrame.new(Position)
  738.  
  739. CircleEffect(Reference.Position, Services.Workspace, 1, 1, 1, 5, 5, 5, 5, "Bright red", "Neon", 0.5)
  740.  
  741. game:GetService("Debris"):AddItem(Reference,0.1)
  742. for i=1,50 do
  743.  
  744. local Ground = CreatePart(Services.Workspace, "Ground", Hit.BrickColor.Color, Vector3.new(math.random(1,3), math.random(1,3), math.random(1,3)), Hit.Material, 0, "Block")
  745. Ground.Anchored = true
  746. Ground.CanCollide = true
  747. Ground.CFrame = CFrame.new(Position) * CFrame.new(math.random(-30,30), 0, math.random(-30,30)) * CFrame.Angles(math.random(-50,50),math.random(-50,50), math.random(-50,50))
  748.  
  749. game:GetService("Debris"):AddItem(Ground,10)
  750.  
  751. end
  752. end
  753.  
  754. for i = 1,25 do
  755. wait()
  756.  
  757. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.5)
  758. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  759. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  760. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.1) * CFrame.Angles(-0.2,0,0), 0.3)
  761. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,-0.3),0.2)
  762. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,-0.5)*CFrame.Angles(0,-1.6,0),0.2)
  763.  
  764. end
  765.  
  766. Attacking = false
  767. Humanoid.WalkSpeed = 16
  768. Humanoid.JumpPower = 50
  769.  
  770.  
  771.  
  772. end
  773.  
  774.  
  775. function Attack3()
  776. Humanoid.WalkSpeed = 0
  777. Humanoid.JumpPower = 0
  778. Attacking = true
  779. wait(1)
  780. MakeSFX(Torso, 341336274, 1, 1.2)
  781. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  782. wait(1)
  783. MakeSFX(Torso, 341336274, 1, 1.2)
  784. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  785. wait(1)
  786. MakeSFX(Torso, 341336274, 1, 1.2)
  787. CircleEffect(Torso.Position, Services.Workspace, 1, 1, 1, 20, 20, 20, 5, "Black", "Neon", 0.5)
  788. ValidateDamage(Torso, 60 ,0, 0, "Impale", "Penetration", 15)
  789. Humanoid.WalkSpeed = 16
  790. Humanoid.JumpPower = 50
  791. Attacking = false
  792. end
  793.  
  794. Mouse.Button1Down:connect(function()
  795. if not Attacking then
  796. if Combo == 1 then
  797.  
  798. Combo = 2
  799. Attack1()
  800.  
  801.  
  802. elseif Combo == 2 then
  803.  
  804. Attack2()
  805. Combo = 3
  806.  
  807. elseif Combo == 3 then
  808.  
  809. Attack3()
  810. Combo = 1
  811.  
  812. end
  813. end
  814. end)
  815.  
  816. --[[ CLerp Animations ]]--
  817. Change1 = 0
  818. Change2 = 0
  819. Change3 = 0
  820. Change4 = 0
  821.  
  822. while true do
  823. wait()
  824.  
  825. local Torvel = (Root.Velocity*Vector3.new(1,0,1)).magnitude
  826. local Velderp = Root.Velocity.y
  827. HitFloor,PosFloor = RayCast(Root.Position,(CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  828.  
  829. Bars()
  830.  
  831.  
  832. if Torvel < 1 and HitFloor ~= nil and Attacking == false then
  833. Anim = "Idle"
  834.  
  835. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  836. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  837. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0.1, 0) * CFrame.Angles(0,0,0.2), 0.3)
  838. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0.1, 0) * CFrame.Angles(0,0,-0.2), 0.3)
  839. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,0)*CFrame.Angles(0,1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
  840. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0) * CFrame.Angles(-0.1,0,0),0.2)
  841.  
  842. end
  843.  
  844.  
  845. if 2 < Torvel and Torvel < 22 and HitFloor ~= nil and Attacking == false then
  846. Anim = "Walking"
  847.  
  848. if Invert == false then
  849. Change1 = Change1 + 0.1
  850.  
  851. elseif Invert == true then
  852.  
  853. Change1 = Change1 - 0.1
  854.  
  855. end
  856.  
  857. if Change1 > 0.5 then
  858.  
  859. Invert = true
  860.  
  861. elseif Change1 < -0.5 then
  862.  
  863. Invert = false
  864.  
  865. end
  866.  
  867. if Attacking == false then
  868.  
  869. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  870. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0,-0.3,0),0.3)
  871. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -Change1) * CFrame.Angles(Change1,0,0), 0.3)
  872. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, Change1) * CFrame.Angles(-Change1,0,0), 0.3)
  873. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-Change1 / 4)*CFrame.Angles(Change1,1.6,0),0.2)
  874. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,Change1 / 4)*CFrame.Angles(-Change1,-1.6,0),0.2)
  875.  
  876. end
  877. end
  878.  
  879. if Root.Velocity.y > 1 and HitFloor == nil and Attacking == false then
  880. Anim = "Jump"
  881.  
  882. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  883. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(-0.5,0,0),0.3)
  884. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, 0.2) * CFrame.Angles(-0.4,0,0.2), 0.3)
  885. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, 0.2) * CFrame.Angles(-0.4,0,-0.2), 0.3)
  886. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  887. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  888.  
  889. end
  890.  
  891. if Root.Velocity.y < -1 and HitFloor == nil and Attacking == false then
  892. Anim = "Fall"
  893.  
  894. RootJoint.C0 = clerp(RootJoint.C0,RootCFrame*CFrame.new(0,0,0)* CFrame.Angles(0,0,0),0.2)
  895. Torso.Neck.C0 = clerp(Torso.Neck.C0,Necko * CFrame.Angles(0.5,0,0),0.3)
  896. Right_Shoulder.C0 = clerp(Right_Shoulder.C0, CFrame.new(1.5, 0, -0.2) * CFrame.Angles(0.4,0,0.2), 0.3)
  897. Left_Shoulder.C0 = clerp(Left_Shoulder.C0, CFrame.new(-1.5, 0, -0.2) * CFrame.Angles(0.4,0,-0.2), 0.3)
  898. Right_Hip.C0=clerp(Right_Hip.C0,CFrame.new(1,-1,-0.2)*CFrame.Angles(-0.2,1.6,0),0.2)
  899. Left_Hip.C0=clerp(Left_Hip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(0,-1.6,0),0.2)
  900.  
  901. end
  902.  
  903.  
  904. if #Effects > 0 then
  905. for E = 1, #Effects do
  906. if Effects[E]~=nil then
  907. local Effect = Effects[E]
  908.  
  909. if Effect ~= nil then
  910.  
  911. local Part = Effect[1]
  912. local Mode = Effect[2]
  913. local Time = Effect[3]
  914. local SizeX = Effect[4]
  915. local SizeY = Effect[5]
  916. local SizeZ = Effect[6]
  917.  
  918. if Effect[1].Transparency <= 1 then
  919. if Effect[2] == "Block" then
  920. Effect[1].CFrame = Effect[1].CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  921.  
  922. Mesh = Effect[1]:FindFirstChild("Mesh")
  923. if Mesh ~= nil then
  924. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  925. end
  926.  
  927. elseif Effect[2] == "Circle" then
  928.  
  929. if Effect[1]:FindFirstChild("Mesh") ~= nil then
  930. Mesh=Effect[1].Mesh
  931. Mesh.Scale = Mesh.Scale + Vector3.new(Effect[4],Effect[5],Effect[6])
  932. end
  933.  
  934. Effect[1].Transparency = Effect[1].Transparency + 0.05
  935.  
  936. else
  937.  
  938. Part.Parent=nil
  939.  
  940. table.remove(Effects, E)
  941.  
  942. end
  943. end
  944. end
  945. end
  946. end
  947. end
  948. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement