Hugo1234cool

Untitled

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