Advertisement
Orangeplayer1431

enjoy the script just press left click 3 times for 3 attacks

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