Advertisement
Guest User

World Eater Fe Script

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