Advertisement
Rocco_T_

Untitled

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