Advertisement
gecksad

Untitled

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