sawgamer1

Untitled

Apr 6th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 154.24 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  6.  
  7. --Converted with ttyyuu12345's model to script plugin v4
  8. function sandbox(var,func)
  9. local env = getfenv(func)
  10. local newenv = setmetatable({},{
  11. __index = function(self,k)
  12. if k=="script" then
  13. return var
  14. else
  15. return env[k]
  16. end
  17. end,
  18. })
  19. setfenv(func,newenv)
  20. return func
  21. end
  22. cors = {}
  23. mas = Instance.new("Model",game:GetService("Lighting"))
  24. Model0 = Instance.new("Model")
  25. Part1 = Instance.new("Part")
  26. SpecialMesh2 = Instance.new("SpecialMesh")
  27. Decal3 = Instance.new("Decal")
  28. Weld8 = Instance.new("Weld")
  29. Part9 = Instance.new("Part")
  30. Motor6D10 = Instance.new("Motor6D")
  31. Motor6D11 = Instance.new("Motor6D")
  32. Motor6D12 = Instance.new("Motor6D")
  33. Motor6D13 = Instance.new("Motor6D")
  34. Motor6D14 = Instance.new("Motor6D")
  35. BillboardGui15 = Instance.new("BillboardGui")
  36. Frame16 = Instance.new("Frame")
  37. Frame17 = Instance.new("Frame")
  38. Frame18 = Instance.new("Frame")
  39. Part23 = Instance.new("Part")
  40. Part28 = Instance.new("Part")
  41. Part33 = Instance.new("Part")
  42. Part38 = Instance.new("Part")
  43. Humanoid43 = Instance.new("Humanoid")
  44. Part44 = Instance.new("Part")
  45. Motor6D45 = Instance.new("Motor6D")
  46. BoolValue46 = Instance.new("BoolValue")
  47. Configuration47 = Instance.new("Configuration")
  48. Script48 = Instance.new("Script")
  49. Script49 = Instance.new("Script")
  50. Script50 = Instance.new("Script")
  51. SpecialMesh51 = Instance.new("SpecialMesh")
  52. Script52 = Instance.new("Script")
  53. ObjectValue53 = Instance.new("ObjectValue")
  54. LocalScript54 = Instance.new("LocalScript")
  55. LocalScript55 = Instance.new("LocalScript")
  56. LocalScript56 = Instance.new("LocalScript")
  57. LocalScript57 = Instance.new("LocalScript")
  58. Sound58 = Instance.new("Sound")
  59. Sound59 = Instance.new("Sound")
  60. Sound60 = Instance.new("Sound")
  61. Animation61 = Instance.new("Animation")
  62. Sound62 = Instance.new("Sound")
  63. Sound63 = Instance.new("Sound")
  64. Sound64 = Instance.new("Sound")
  65. Sound65 = Instance.new("Sound")
  66. Sound66 = Instance.new("Sound")
  67. Sound67 = Instance.new("Sound")
  68. Sound68 = Instance.new("Sound")
  69. Sound69 = Instance.new("Sound")
  70. Sound70 = Instance.new("Sound")
  71. Sound71 = Instance.new("Sound")
  72. Sound72 = Instance.new("Sound")
  73. Sound73 = Instance.new("Sound")
  74. SpecialMesh74 = Instance.new("SpecialMesh")
  75. SpecialMesh75 = Instance.new("SpecialMesh")
  76. SpecialMesh76 = Instance.new("SpecialMesh")
  77. Animation77 = Instance.new("Animation")
  78. Animation78 = Instance.new("Animation")
  79. Animation79 = Instance.new("Animation")
  80. Sound80 = Instance.new("Sound")
  81. Script81 = Instance.new("Script")
  82. StringValue82 = Instance.new("StringValue")
  83. Animation83 = Instance.new("Animation")
  84. StringValue84 = Instance.new("StringValue")
  85. Animation85 = Instance.new("Animation")
  86. StringValue86 = Instance.new("StringValue")
  87. Animation87 = Instance.new("Animation")
  88. NumberValue88 = Instance.new("NumberValue")
  89. Animation89 = Instance.new("Animation")
  90. NumberValue90 = Instance.new("NumberValue")
  91. StringValue91 = Instance.new("StringValue")
  92. Animation92 = Instance.new("Animation")
  93. StringValue93 = Instance.new("StringValue")
  94. Animation94 = Instance.new("Animation")
  95. StringValue95 = Instance.new("StringValue")
  96. Animation96 = Instance.new("Animation")
  97. StringValue97 = Instance.new("StringValue")
  98. Animation98 = Instance.new("Animation")
  99. StringValue99 = Instance.new("StringValue")
  100. Animation100 = Instance.new("Animation")
  101. Sound101 = Instance.new("Sound")
  102. Script102 = Instance.new("Script")
  103. Hat103 = Instance.new("Hat")
  104. Part104 = Instance.new("Part")
  105. SpecialMesh105 = Instance.new("SpecialMesh")
  106. Pants106 = Instance.new("Pants")
  107. Shirt107 = Instance.new("Shirt")
  108. Script108 = Instance.new("Script")
  109. Model0.Name = "Shaggy"
  110. Model0.Parent = mas
  111. Model0.PrimaryPart = Part1
  112. Part1.Name = "Head"
  113. Part1.Parent = Model0
  114. Part1.CFrame = CFrame.new(-59.6656265, 4.50001097, 6.45593214, 0, 0, -1, 1.61394169e-35, 1, 0, 1, 1.61394169e-35, 0)
  115. Part1.Orientation = Vector3.new(0, -90, 0)
  116. Part1.Position = Vector3.new(-59.6656265, 4.50001097, 6.45593214)
  117. Part1.Rotation = Vector3.new(0, -90, 0)
  118. Part1.Color = Color3.new(1, 0.8, 0.6)
  119. Part1.Size = Vector3.new(2, 1, 1)
  120. Part1.BrickColor = BrickColor.new("Pastel brown")
  121. Part1.TopSurface = Enum.SurfaceType.Smooth
  122. Part1.brickColor = BrickColor.new("Pastel brown")
  123. Part1.FormFactor = Enum.FormFactor.Symmetric
  124. Part1.formFactor = Enum.FormFactor.Symmetric
  125. SpecialMesh2.Parent = Part1
  126. SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
  127. Decal3.Name = "face"
  128. Decal3.Parent = Part1
  129. Decal3.Texture = "rbxassetid://1096273237"
  130. Weld8.Name = "HeadWeld"
  131. Weld8.Parent = Part1
  132. Weld8.C0 = CFrame.new(0, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  133. Weld8.C1 = CFrame.new(0.119999997, 0.300000012, -0.0700000003, 0.980619192, 0, -0.19592388, 0, 1, 0, 0.19592391, -0, 0.980619073)
  134. Weld8.Part0 = Part1
  135. Weld8.Part1 = Part104
  136. Weld8.part1 = Part104
  137. Part9.Name = "Torso"
  138. Part9.Parent = Model0
  139. Part9.CFrame = CFrame.new(-59.6656265, 3.00001097, 6.45593214, 0, 0, -1, 1.61394169e-35, 1, 0, 1, 1.61394169e-35, 0)
  140. Part9.Orientation = Vector3.new(0, -90, 0)
  141. Part9.Position = Vector3.new(-59.6656265, 3.00001097, 6.45593214)
  142. Part9.Rotation = Vector3.new(0, -90, 0)
  143. Part9.Color = Color3.new(1, 0.8, 0.6)
  144. Part9.Size = Vector3.new(2, 2, 1)
  145. Part9.BrickColor = BrickColor.new("Pastel brown")
  146. Part9.LeftParamA = 0
  147. Part9.LeftParamB = 0
  148. Part9.LeftSurface = Enum.SurfaceType.Weld
  149. Part9.RightParamA = 0
  150. Part9.RightParamB = 0
  151. Part9.RightSurface = Enum.SurfaceType.Weld
  152. Part9.brickColor = BrickColor.new("Pastel brown")
  153. Part9.FormFactor = Enum.FormFactor.Symmetric
  154. Part9.formFactor = Enum.FormFactor.Symmetric
  155. Motor6D10.Name = "Right Shoulder"
  156. Motor6D10.Parent = Part9
  157. Motor6D10.MaxVelocity = 0.10000000149012
  158. Motor6D10.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  159. Motor6D10.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  160. Motor6D10.Part0 = Part9
  161. Motor6D10.Part1 = Part28
  162. Motor6D10.part1 = Part28
  163. Motor6D11.Name = "Left Shoulder"
  164. Motor6D11.Parent = Part9
  165. Motor6D11.MaxVelocity = 0.10000000149012
  166. Motor6D11.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  167. Motor6D11.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  168. Motor6D11.Part0 = Part9
  169. Motor6D11.Part1 = Part23
  170. Motor6D11.part1 = Part23
  171. Motor6D12.Name = "Right Hip"
  172. Motor6D12.Parent = Part9
  173. Motor6D12.MaxVelocity = 0.10000000149012
  174. Motor6D12.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  175. Motor6D12.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  176. Motor6D12.Part0 = Part9
  177. Motor6D12.Part1 = Part38
  178. Motor6D12.part1 = Part38
  179. Motor6D13.Name = "Left Hip"
  180. Motor6D13.Parent = Part9
  181. Motor6D13.MaxVelocity = 0.10000000149012
  182. Motor6D13.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  183. Motor6D13.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  184. Motor6D13.Part0 = Part9
  185. Motor6D13.Part1 = Part33
  186. Motor6D13.part1 = Part33
  187. Motor6D14.Name = "Neck"
  188. Motor6D14.Parent = Part9
  189. Motor6D14.MaxVelocity = 0.10000000149012
  190. Motor6D14.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  191. Motor6D14.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  192. Motor6D14.Part0 = Part9
  193. Motor6D14.Part1 = Part1
  194. Motor6D14.part1 = Part1
  195. BillboardGui15.Name = "Healthbar"
  196. BillboardGui15.Parent = Part9
  197. BillboardGui15.Size = UDim2.new(25, 0, 1, 0)
  198. BillboardGui15.AlwaysOnTop = true
  199. BillboardGui15.StudsOffset = Vector3.new(0, 7.5, 0)
  200. Frame16.Parent = BillboardGui15
  201. Frame16.Size = UDim2.new(1, 0, 1, 0)
  202. Frame16.BackgroundColor = BrickColor.new("Really black")
  203. Frame16.BackgroundColor3 = Color3.new(0, 0, 0)
  204. Frame16.BorderColor = BrickColor.new("Really black")
  205. Frame16.BorderColor3 = Color3.new(0, 0, 0)
  206. Frame17.Name = "Full"
  207. Frame17.Parent = Frame16
  208. Frame17.Size = UDim2.new(1, 0, 1, 0)
  209. Frame17.BackgroundColor = BrickColor.new("Lime green")
  210. Frame17.BackgroundColor3 = Color3.new(0, 0.784314, 0)
  211. Frame17.BorderColor = BrickColor.new("Really black")
  212. Frame17.BorderColor3 = Color3.new(0, 0, 0)
  213. Frame17.BorderSizePixel = 0
  214. Frame18.Name = "Reflec"
  215. Frame18.Parent = Frame17
  216. Frame18.Size = UDim2.new(1, 0, 0.370000005, 0)
  217. Frame18.BackgroundColor = BrickColor.new("Institutional white")
  218. Frame18.BackgroundColor3 = Color3.new(1, 1, 1)
  219. Frame18.BackgroundTransparency = 0.625
  220. Frame18.BorderSizePixel = 0
  221. Part23.Name = "Left Arm"
  222. Part23.Parent = Model0
  223. Part23.CFrame = CFrame.new(-59.6656265, 3.00001097, 4.95593214, 0, 0, -1, 1.61394169e-35, 1, 0, 1, 1.61394169e-35, 0)
  224. Part23.Orientation = Vector3.new(0, -90, 0)
  225. Part23.Position = Vector3.new(-59.6656265, 3.00001097, 4.95593214)
  226. Part23.Rotation = Vector3.new(0, -90, 0)
  227. Part23.Color = Color3.new(1, 0.8, 0.6)
  228. Part23.Size = Vector3.new(1, 2, 1)
  229. Part23.BrickColor = BrickColor.new("Pastel brown")
  230. Part23.CanCollide = false
  231. Part23.brickColor = BrickColor.new("Pastel brown")
  232. Part23.FormFactor = Enum.FormFactor.Symmetric
  233. Part23.formFactor = Enum.FormFactor.Symmetric
  234. Part28.Name = "Right Arm"
  235. Part28.Parent = Model0
  236. Part28.CFrame = CFrame.new(-59.6656265, 3.00001097, 7.95593214, 0, 0, -1, 1.61394169e-35, 1, 0, 1, 1.61394169e-35, 0)
  237. Part28.Orientation = Vector3.new(0, -90, 0)
  238. Part28.Position = Vector3.new(-59.6656265, 3.00001097, 7.95593214)
  239. Part28.Rotation = Vector3.new(0, -90, 0)
  240. Part28.Color = Color3.new(1, 0.8, 0.6)
  241. Part28.Size = Vector3.new(1, 2, 1)
  242. Part28.BrickColor = BrickColor.new("Pastel brown")
  243. Part28.CanCollide = false
  244. Part28.brickColor = BrickColor.new("Pastel brown")
  245. Part28.FormFactor = Enum.FormFactor.Symmetric
  246. Part28.formFactor = Enum.FormFactor.Symmetric
  247. Part33.Name = "Left Leg"
  248. Part33.Parent = Model0
  249. Part33.CFrame = CFrame.new(-59.6656265, 1.00001097, 5.95593214, 0, 0, -1, 1.61394169e-35, 1, 0, 1, 1.61394169e-35, 0)
  250. Part33.Orientation = Vector3.new(0, -90, 0)
  251. Part33.Position = Vector3.new(-59.6656265, 1.00001097, 5.95593214)
  252. Part33.Rotation = Vector3.new(0, -90, 0)
  253. Part33.Color = Color3.new(1, 0.8, 0.6)
  254. Part33.Size = Vector3.new(1, 2, 1)
  255. Part33.BottomSurface = Enum.SurfaceType.Smooth
  256. Part33.BrickColor = BrickColor.new("Pastel brown")
  257. Part33.CanCollide = false
  258. Part33.brickColor = BrickColor.new("Pastel brown")
  259. Part33.FormFactor = Enum.FormFactor.Symmetric
  260. Part33.formFactor = Enum.FormFactor.Symmetric
  261. Part38.Name = "Right Leg"
  262. Part38.Parent = Model0
  263. Part38.CFrame = CFrame.new(-59.6656265, 1.00001097, 6.95593214, 0, 0, -1, 1.61394169e-35, 1, 0, 1, 1.61394169e-35, 0)
  264. Part38.Orientation = Vector3.new(0, -90, 0)
  265. Part38.Position = Vector3.new(-59.6656265, 1.00001097, 6.95593214)
  266. Part38.Rotation = Vector3.new(0, -90, 0)
  267. Part38.Color = Color3.new(1, 0.8, 0.6)
  268. Part38.Size = Vector3.new(1, 2, 1)
  269. Part38.BottomSurface = Enum.SurfaceType.Smooth
  270. Part38.BrickColor = BrickColor.new("Pastel brown")
  271. Part38.CanCollide = false
  272. Part38.brickColor = BrickColor.new("Pastel brown")
  273. Part38.FormFactor = Enum.FormFactor.Symmetric
  274. Part38.formFactor = Enum.FormFactor.Symmetric
  275. Humanoid43.Parent = Model0
  276. Humanoid43.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  277. Humanoid43.Health = 1337
  278. Humanoid43.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn
  279. Humanoid43.LeftLeg = Part33
  280. Humanoid43.MaxHealth = 1337
  281. Humanoid43.NameOcclusion = Enum.NameOcclusion.NoOcclusion
  282. Humanoid43.RightLeg = Part38
  283. Humanoid43.Torso = Part44
  284. Humanoid43.WalkSpeed = 10
  285. Humanoid43.maxHealth = 1337
  286. Part44.Name = "HumanoidRootPart"
  287. Part44.Parent = Model0
  288. Part44.CFrame = CFrame.new(-59.6656265, 3.00001097, 6.45593214, 0, 0, -1, 1.61394169e-35, 1, 0, 1, 1.61394169e-35, 0)
  289. Part44.Orientation = Vector3.new(0, -90, 0)
  290. Part44.Position = Vector3.new(-59.6656265, 3.00001097, 6.45593214)
  291. Part44.Rotation = Vector3.new(0, -90, 0)
  292. Part44.Color = Color3.new(0.905882, 0.905882, 0.92549)
  293. Part44.Transparency = 1
  294. Part44.Size = Vector3.new(2, 2, 1)
  295. Part44.BottomSurface = Enum.SurfaceType.Smooth
  296. Part44.BrickColor = BrickColor.new("Pearl")
  297. Part44.CanCollide = false
  298. Part44.LeftParamA = 0
  299. Part44.LeftParamB = 0
  300. Part44.RightParamA = 0
  301. Part44.RightParamB = 0
  302. Part44.TopSurface = Enum.SurfaceType.Smooth
  303. Part44.brickColor = BrickColor.new("Pearl")
  304. Part44.FormFactor = Enum.FormFactor.Symmetric
  305. Part44.formFactor = Enum.FormFactor.Symmetric
  306. Motor6D45.Name = "RootJoint"
  307. Motor6D45.Parent = Part44
  308. Motor6D45.MaxVelocity = 0.10000000149012
  309. Motor6D45.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  310. Motor6D45.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  311. Motor6D45.Part0 = Part44
  312. Motor6D45.Part1 = Part9
  313. Motor6D45.part1 = Part9
  314. BoolValue46.Name = "canAttack"
  315. BoolValue46.Parent = Model0
  316. Configuration47.Name = "Pack"
  317. Configuration47.Parent = Model0
  318. Script48.Name = "Sound"
  319. Script48.Parent = Model0
  320. table.insert(cors,sandbox(Script48,function()
  321. -- util
  322.  
  323. function waitForChild(parent, childName)
  324. local child = parent:findFirstChild(childName)
  325. if child then return child end
  326. while true do
  327. child = parent.ChildAdded:wait()
  328. if child.Name==childName then return child end
  329. end
  330. end
  331.  
  332. function newSound(id)
  333. local sound = Instance.new("Sound")
  334. sound.SoundId = id
  335. sound.archivable = false
  336. sound.Parent = script.Parent.Head
  337. return sound
  338. end
  339.  
  340. -- declarations
  341.  
  342. local sFallingDown = newSound("rbxasset://sounds/splat.wav")
  343. local sGettingUp = newSound("rbxasset://sounds/action_get_up.mp3")
  344. local sDied = newSound("rbxasset://sounds/uuhhh.mp3")
  345. local sFreeFalling = newSound("rbxasset://sounds/action_falling.mp3")
  346. local sJumping = newSound("rbxasset://sounds/action_jump.mp3")
  347. local sLanding = newSound("rbxasset://sounds/action_jump_land.mp3")
  348. local sSplash = newSound("rbxasset://sounds/impact_water.mp3")
  349. local sRunning = newSound("rbxasset://sounds/action_footsteps_plastic.mp3")
  350. sRunning.Looped = true
  351. local sSwimming = newSound("rbxasset://sounds/action_swim.mp3")
  352. sSwimming.Looped = true
  353. local sClimbing = newSound("rbxasset://sounds/action_footsteps_plastic.mp3")
  354. sClimbing.Looped = true
  355.  
  356. local Figure = script.Parent
  357. local Head = waitForChild(Figure, "Head")
  358. local Humanoid = waitForChild(Figure, "Humanoid")
  359.  
  360. local prevState = "None"
  361.  
  362. -- functions
  363.  
  364. function onDied()
  365. stopLoopedSounds()
  366. sDied:Play()
  367. end
  368.  
  369. local fallCount = 0
  370. local fallSpeed = 0
  371. function onStateFall(state, sound)
  372. fallCount = fallCount + 1
  373. if state then
  374. sound.Volume = 0
  375. sound:Play()
  376. Spawn( function()
  377. local t = 0
  378. local thisFall = fallCount
  379. while t < 1.5 and fallCount == thisFall do
  380. local vol = math.max(t - 0.3 , 0)
  381. sound.Volume = vol
  382. wait(0.1)
  383. t = t + 0.1
  384. end
  385. end)
  386. else
  387. sound:Stop()
  388. end
  389. fallSpeed = math.max(fallSpeed, math.abs(Head.Velocity.Y))
  390. end
  391.  
  392.  
  393. function onStateNoStop(state, sound)
  394. if state then
  395. sound:Play()
  396. end
  397. end
  398.  
  399.  
  400. function onRunning(speed)
  401. sClimbing:Stop()
  402. sSwimming:Stop()
  403. if (prevState == "FreeFall" and fallSpeed > 0.1) then
  404. local vol = math.min(1.0, math.max(0.0, (fallSpeed - 50) / 110))
  405. sLanding.Volume = vol
  406. sLanding:Play()
  407. fallSpeed = 0
  408. end
  409. if speed>0.5 then
  410. sRunning:Play()
  411. sRunning.Pitch = 1.6
  412. else
  413. sRunning:Stop()
  414. end
  415. prevState = "Run"
  416. end
  417.  
  418. function onSwimming(speed)
  419. if (prevState ~= "Swim" and speed > 0.1) then
  420. local volume = math.min(1.0, speed / 350)
  421. sSplash.Volume = volume
  422. sSplash:Play()
  423. prevState = "Swim"
  424. end
  425. sClimbing:Stop()
  426. sRunning:Stop()
  427. sSwimming.Pitch = 1.6
  428. sSwimming:Play()
  429. end
  430.  
  431. function onClimbing(speed)
  432. sRunning:Stop()
  433. sSwimming:Stop()
  434. if speed>0.01 then
  435. sClimbing:Play()
  436. sClimbing.Pitch = speed / 5.5
  437. else
  438. sClimbing:Stop()
  439. end
  440. prevState = "Climb"
  441. end
  442. -- connect up
  443.  
  444. function stopLoopedSounds()
  445. sRunning:Stop()
  446. sClimbing:Stop()
  447. sSwimming:Stop()
  448. end
  449.  
  450. Humanoid.Died:connect(onDied)
  451. Humanoid.Running:connect(onRunning)
  452. Humanoid.Swimming:connect(onSwimming)
  453. Humanoid.Climbing:connect(onClimbing)
  454. Humanoid.Jumping:connect(function(state) onStateNoStop(state, sJumping) prevState = "Jump" end)
  455. Humanoid.GettingUp:connect(function(state) stopLoopedSounds() onStateNoStop(state, sGettingUp) prevState = "GetUp" end)
  456. Humanoid.FreeFalling:connect(function(state) stopLoopedSounds() onStateFall(state, sFreeFalling) prevState = "FreeFall" end)
  457. Humanoid.FallingDown:connect(function(state) stopLoopedSounds() onStateNoStop(state, sFallingDown) prevState = "Falling" end)
  458. Humanoid.StateChanged:connect(function(old, new)
  459. if not (new.Name == "Dead" or
  460. new.Name == "Running" or
  461. new.Name == "RunningNoPhysics" or
  462. new.Name == "Swimming" or
  463. new.Name == "Jumping" or
  464. new.Name == "GettingUp" or
  465. new.Name == "Freefall" or
  466. new.Name == "FallingDown") then
  467. stopLoopedSounds()
  468. end
  469. end)
  470.  
  471. end))
  472. Script49.Name = "Deity"
  473. Script49.Parent = Model0
  474. table.insert(cors,sandbox(Script49,function()
  475. me=script.Parent
  476. Torso=me.Torso
  477. Humanoid=me.Humanoid
  478.  
  479. wait()
  480. for _,v in pairs(script:children()) do
  481. if v.className=="Sound" then
  482. v:Stop()
  483. end
  484. end
  485. Charge,Maximum,ChargeAnims,Charging,OverE,EColor,EColor2=0,5000,{},false,0,"White","Black"
  486. CUR=1
  487. Abilities={}
  488. DCCOLS={BrickColor.new(EColor)}
  489. Contact = false
  490. Corrupt = false
  491. CanAnim=true
  492. DCCO1=function(Torso,ti)
  493. for i=1, ti do
  494. if Torso.Parent==nil then
  495. return
  496. end
  497. p=Instance.new("Part")
  498. p.Name="BlastRing"
  499. p.TopSurface=0
  500. p.BottomSurface=0
  501. p.CanCollide=false
  502. p.Anchored=true
  503. p.BrickColor=BrickColor.new(EColor2)
  504. p.Size=Vector3.new(1,1,1)
  505. p.CFrame=Torso.CFrame*CFrame.new(0,4,0)*CFrame.fromEulerAnglesXYZ(math.pi,0,0)
  506. p.Parent=workspace
  507. script.BlastMesh:clone().Parent=p
  508. coroutine.resume(coroutine.create(function(par) for lol=1, 9 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(1,.7,1) par.Transparency=lol*.1 par.CFrame=par.CFrame*CFrame.new(0,.3,0) wait() end par.Parent=nil end),p)
  509. wait(.05)
  510. end
  511. end
  512. DCCO2=function(Torso,ti)
  513. for o=1, ti do
  514. if Torso.Parent==nil then
  515. return
  516. end
  517. p2=Instance.new("Part")
  518. p2.Name="Blast"
  519. p2.TopSurface=0
  520. p2.BottomSurface=0
  521. p2.CanCollide=false
  522. p2.Anchored=true
  523. p2.BrickColor=BrickColor.new(EColor)
  524. p2.Size=Vector3.new(10,10,10)
  525. p2.formFactor="Symmetric"
  526. p2.CFrame=Torso.CFrame*CFrame.new(0,.25,0)
  527. p2.Parent=workspace
  528. m=Instance.new("BlockMesh")
  529. m.Parent=p2
  530. m.Name="BlastMesh"
  531. coroutine.resume(coroutine.create(function(part) for loll=1, 9 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll*.1 part.CFrame=part.CFrame*CFrame.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2)
  532. wait(.025)
  533. end
  534. end
  535. DCCO3=function(Torso,ti)
  536. for o=1, ti do
  537. if Torso.Parent==nil then
  538. return
  539. end
  540. p2=Instance.new("Part")
  541. p2.Name="Blast"
  542. p2.TopSurface=0
  543. p2.BottomSurface=0
  544. p2.CanCollide=false
  545. p2.Anchored=true
  546. p2.BrickColor=BrickColor.new(EColor)
  547. p2.Size=Vector3.new(3,3,3)
  548. p2.formFactor="Symmetric"
  549. p2.CFrame=Torso.CFrame*CFrame.new(0,.25,0)
  550. p2.Parent=workspace
  551. m=Instance.new("BlockMesh")
  552. m.Parent=p2
  553. m.Name="BlastMesh"
  554. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  555. wait(.025)
  556. end
  557. end
  558.  
  559. ----Corrupt State Area--------------------------------------------------------------------------------------------------------
  560. ----Corrupt State Area--------------------------------------------------------------------------------------------------------
  561. ----Corrupt State Area--------------------------------------------------------------------------------------------------------
  562.  
  563. --this replaces Overcharging.
  564. --it still owns everyone around you in one shot (breaking them).
  565.  
  566. LimitBreak=function(part)
  567. e=Instance.new("Part")
  568. e.TopSurface=0
  569. e.BottomSurface=0
  570. e.Anchored=true
  571. e.CanCollide=false
  572. e.formFactor="Plate"
  573. e.Size=Vector3.new(1,.4,1)
  574. e.CFrame=CFrame.new(part.Parent.Torso.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  575. e.Name="Effect"
  576. e.BrickColor=BrickColor.new(EColor2)
  577. r=script.RingMesh:clone()
  578. r.Parent=e
  579. e.Parent=Torso.Parent
  580. coroutine.resume(coroutine.create(function(mesh) for l=1, 20 do r.Parent.Transparency=l/20 r.Scale=r.Scale+Vector3.new(25/l,25/l,.02) wait() end r.Parent.Parent=nil end),r)
  581. PWN={}
  582. for _,v in pairs(workspace:children()) do
  583. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  584. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  585. if v~=me and (v.Torso.Position-me.Torso.Position).magnitude<=40 then
  586. table.insert(PWN,v.Torso)
  587. end
  588. end
  589. end
  590. end
  591. wait(.45)
  592. for _,l in pairs(PWN) do
  593. v=Instance.new("BodyVelocity")
  594. v.P=3000
  595. v.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  596. v.velocity=(l.Position-me.Torso.Position).unit*30+Vector3.new(0,50,0)
  597. v.Parent=l
  598. local ra=Instance.new("BodyAngularVelocity")
  599. ra.P=3000
  600. ra.maxTorque=Vector3.new(5000,5000,5000)*50000
  601. ra.angularvelocity=Vector3.new(math.random(-20,20),math.random(-30,30),math.random(-20,20))
  602. ra.Parent=l
  603. game:GetService("Debris"):AddItem(v,.2)
  604. game:GetService("Debris"):AddItem(ra,.2)
  605. end
  606. wait(.25)
  607. for _,v in pairs(PWN) do
  608. coroutine.resume(coroutine.create(Break),v)
  609. end
  610. end
  611.  
  612. doStartup=function(mouse)
  613. local anim=Humanoid:LoadAnimation(script.darkcorruptstartanim1)
  614. anim:Play()
  615. wait(.25)
  616. for darkowns=1, 17 do
  617. p=Instance.new("Part")
  618. p.TopSurface=0
  619. p.BottomSurface=0
  620. p.Anchored=true
  621. p.CanCollide=false
  622. p.BrickColor=BrickColor.new(EColor2)
  623. p.Size=Vector3.new(1,1,1)
  624. p.formFactor="Symmetric"
  625. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  626. p.Parent=me
  627. Instance.new("BlockMesh").Parent=p
  628. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  629. wait(.05)
  630. end
  631. coroutine.resume(coroutine.create(LimitBreak),Torso)
  632. Corrupt=true
  633. pt=Instance.new("BodyPosition")
  634. pt.P=5000
  635. pt.D=700
  636. pt.maxForce=Vector3.new(0,math.huge,0)
  637. pt.position=Torso.Position+Vector3.new(0,4,0)
  638. pt.Parent=Torso
  639. wait(1.2)
  640. local CurElapsed=0
  641. CurrentHealth=Humanoid.Health
  642. LastHealth=CurrentHealth
  643. local CANIM="idle"
  644. anim:Stop()
  645. anim:Remove()
  646. local animloaded=Humanoid:LoadAnimation(script.darkcorruptidleanim)
  647. animloaded:Play()
  648. local humanoidFunction=Humanoid.Changed:connect(function(Change)
  649. if Change=="Health" then
  650. local Dif=LastHealth-Humanoid.Health
  651. if Dif>0 then
  652. Humanoid.Health=Humanoid.Health+Dif/2
  653. print("DAMAGE HALVED.")
  654. else
  655. Humanoid.Health=LastHealth
  656. print("NOHEALING")
  657. end
  658. CurrentHealth=Humanoid.Health
  659. LastHealth=CurrentHealth
  660. end
  661. end)
  662. local Tilt=Instance.new("BodyGyro")
  663. Tilt.P=80000
  664. Tilt.D=3000
  665. Tilt.maxTorque=Vector3.new(500000000000000000000000,500000000000000000000000,500000000000000000000000)*50000
  666. Tilt.cframe=Torso.CFrame
  667. Tilt.Parent=Torso
  668. local Cam=workspace.CurrentCamera
  669. vPush=Instance.new("BodyVelocity")
  670. vPush.P=3000
  671. vPush.maxForce=Vector3.new(math.huge,0,math.huge)
  672. vPush.velocity=Vector3.new(0,0,0)
  673. vPush.Parent=Torso
  674. coroutine.resume(coroutine.create(function()
  675. while Corrupt==true do
  676. wait(.085)
  677. if vPush.P>0 then
  678. p=Instance.new("Part")
  679. p.Name="BlastRing"
  680. p.TopSurface=0
  681. p.BottomSurface=0
  682. p.CanCollide=false
  683. p.Anchored=true
  684. p.BrickColor=BrickColor.new(EColor2)
  685. p.Size=Vector3.new(1,1,1)
  686. p.CFrame=CFrame.new(Torso.Position)-Vector3.new(0,6,0)
  687. p.Parent=workspace
  688. script.BlastMesh:clone().Parent=p
  689. p.BlastMesh.Scale=Vector3.new(2,1,2)
  690. coroutine.resume(coroutine.create(function(par,int) for lol=1, 10 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(.2+int/5,int/5,.2+int/5) if int==1.2 then par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(0,.9,0) end par.Transparency=lol/10 par.CFrame=par.CFrame*CFrame.fromEulerAnglesXYZ(0,math.pi/20*lol,0) wait() end par.Parent=nil end),p,.5)
  691. p=Instance.new("Part")
  692. p.TopSurface=0
  693. p.BottomSurface=0
  694. p.Anchored=true
  695. p.CanCollide=false
  696. p.BrickColor=BrickColor.new(EColor2)
  697. p.Size=Vector3.new(1,1,1)
  698. p.formFactor="Symmetric"
  699. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  700. p.Parent=me
  701. Instance.new("BlockMesh").Parent=p
  702. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,Charge/160)
  703. p=Instance.new("Part")
  704. p.TopSurface=0
  705. p.BottomSurface=0
  706. p.Anchored=true
  707. p.CanCollide=false
  708. p.BrickColor=BrickColor.new(EColor2)
  709. p.Size=Vector3.new(1,1,1)
  710. p.formFactor="Symmetric"
  711. p.CFrame=me["Left Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  712. p.Parent=me
  713. Instance.new("BlockMesh").Parent=p
  714. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,Charge/160)
  715. end
  716. end
  717. end))
  718. while Charge>0 do
  719. Vel=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)
  720. local Vell=(Vel-Vector3.new(0,0,0)).magnitude
  721. if CanAnim==true then
  722. if Vell>=10 and Vell<120 then
  723. if toload~="move" then
  724. toload="move"
  725. animloaded:Stop()
  726. animloaded:Remove()
  727. animloaded=Humanoid:LoadAnimation(script.darkcorruptmoveanim)
  728. animloaded:Play()
  729. Tilt.Parent=Torso
  730. vPush.P=3000
  731. pt.maxForce=Vector3.new(0,math.huge,0)
  732. vPush.Parent=Torso
  733. Tilt.maxTorque=Vector3.new(500000000000000000000000,500000000000000000000000,500000000000000000000000)*50000
  734. end
  735. else
  736. if toload~="idle" then
  737. toload="idle"
  738. animloaded:Stop()
  739. animloaded:Remove()
  740. animloaded=Humanoid:LoadAnimation(script.darkcorruptidleanim)
  741. animloaded:Play()
  742. Tilt.Parent=Torso
  743. vPush.P=3000
  744. pt.maxForce=Vector3.new(0,math.huge,0)
  745. vPush.Parent=Torso
  746. Tilt.maxTorque=Vector3.new(500000000000000000000000,500000000000000000000000,500000000000000000000000)*50000
  747. end
  748. end
  749. else
  750. toload="nil"
  751. animloaded:Stop()
  752. animloaded:Remove()
  753. Tilt.cframe=CFrame.new(Torso.Position,Torso.Position+Vector3.new(Torso.CFrame.lookVector.x,0,Torso.CFrame.lookVector.z))
  754. print(">_>")
  755. vPush.P=0
  756. vPush.Parent=nil
  757. pt.maxForce=Vector3.new(0,0,0)
  758. wait(.5)
  759. end
  760. local look=Cam.CoordinateFrame
  761. Tilt.cframe=look
  762. local mmmm=Vector3.new(Torso.CFrame.lookVector.x,0,Torso.CFrame.lookVector.z)
  763. local intt=((mouse.ViewSizeY-mouse.Y)/10+.5)/170
  764. --CFrame.new(Torso.Position,Torso.Position+mmmm*30)*CFrame.fromEulerAnglesXYZ(-math.pi/10,0,0)
  765. if toload=="idle" then
  766. Tilt.cframe=Tilt.cframe*CFrame.fromEulerAnglesXYZ(-math.pi/14 - intt,0,0)
  767. else
  768. Tilt.cframe=Tilt.cframe*CFrame.fromEulerAnglesXYZ(-math.pi/6 - intt,0,0)
  769. end
  770. local vii=Torso.CFrame.lookVector*((mouse.ViewSizeY-mouse.Y)/5-20)
  771. vPush.velocity=Vector3.new(vii.x*1.3,0,vii.z*1.3)
  772. wait()
  773. end
  774. animloaded:Stop()
  775. animloaded:Remove()
  776. humanoidFunction:disconnect()
  777. anim=Humanoid:LoadAnimation(script.darkcorruptstartanim2)
  778. anim:Play()
  779. pt.position=Torso.Position-Vector3.new(0,4,0)
  780. pt.Parent=nil
  781. Tilt.Parent=nil
  782. vPush.Parent=nil
  783. Corrupt=false
  784. wait(2)
  785. anim:Stop()
  786. anim:Remove()
  787. p.Parent=nil
  788. end
  789.  
  790.  
  791.  
  792. ----Corrupt State Area--------------------------------------------------------------------------------------------------------
  793. ----Corrupt State Area--------------------------------------------------------------------------------------------------------
  794. ----Corrupt State Area--------------------------------------------------------------------------------------------------------
  795.  
  796.  
  797. SHAKE2=function(CHAR)
  798. if game.Players:GetPlayerFromCharacter(CHAR)~=nil then
  799. s=script.Shake2:clone()
  800. s.Disabled=false
  801. s.Parent=me.Pack
  802. end
  803. end
  804. SHAKE3=function(CHAR)
  805. if game.Players:GetPlayerFromCharacter(CHAR)~=nil then
  806. s=script.Shake3:clone()
  807. s.Disabled=false
  808. s.Parent=me.Pack
  809. end
  810. end
  811.  
  812. DCContact=function(hit,Tors)
  813. if hit.Parent==nil then
  814. return
  815. end
  816. h=hit.Parent:FindFirstChild("Humanoid")
  817. t=hit.Parent:FindFirstChild("Torso")
  818. if h~=nil and t~=nil then
  819. print(Contact)
  820. if Contact==false then
  821. Contact=true
  822. print("CONTINUE!")
  823. end
  824. if h.Health>0 then
  825. if h.Parent==me then
  826. return
  827. end
  828. h:TakeDamage(5)
  829. vl=Instance.new("BodyVelocity")
  830. vl.P=4000
  831. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  832. vl.velocity=Tors.BodyVelocity.velocity/1.1+Vector3.new(0,18,0)
  833. vl.Parent=t
  834. game:GetService("Debris"):AddItem(vl,.2)
  835. rl=Instance.new("BodyAngularVelocity")
  836. rl.P=3000
  837. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  838. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))+Tors.RotVelocity*1.1
  839. rl.Parent=t
  840. game:GetService("Debris"):AddItem(rl,.2)
  841. end
  842. end
  843. end
  844. GBConnect=function(hit,vel)
  845. if hit.Parent==nil then
  846. return
  847. end
  848. h=hit.Parent:FindFirstChild("Humanoid")
  849. t=hit.Parent:FindFirstChild("Torso")
  850. if h~=nil and t~=nil then
  851. if h.Health>0 then
  852. if h.Parent==me then
  853. return
  854. end
  855. h:TakeDamage(El/13)
  856. vl=Instance.new("BodyVelocity")
  857. vl.P=4000
  858. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  859. vl.velocity=vel*(5*El*2)+Vector3.new(0,7,0)
  860. vl.Parent=t
  861. game:GetService("Debris"):AddItem(vl,.2)
  862. rl=Instance.new("BodyAngularVelocity")
  863. rl.P=3000
  864. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  865. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  866. rl.Parent=t
  867. game:GetService("Debris"):AddItem(rl,.2)
  868. end
  869. end
  870. end
  871.  
  872.  
  873.  
  874. DBExplode=function(D)
  875. pf=Instance.new("Part")
  876. pf.TopSurface=0
  877. pf.BottomSurface=0
  878. pf.Anchored=false
  879. pf.CanCollide=false
  880. pf.Shape="Ball"
  881. pf.BrickColor=BrickColor.new(EColor2)
  882. pf.Size=Vector3.new(4,4,4)
  883. pf.formFactor="Symmetric"
  884. pf.CFrame=D.CFrame
  885. pf.Parent=workspace
  886. vp=Instance.new("BodyPosition")
  887. vp.P=4000
  888. vp.maxForce=Vector3.new(50000,50000,50000)*5000000000
  889. vp.position=pf.Position
  890. vp.Parent=pf
  891. pf.Touched:connect(function(hit)
  892. if hit.Parent==nil then
  893. return
  894. end
  895. h=hit.Parent:FindFirstChild("Humanoid")
  896. t=hit.Parent:FindFirstChild("Torso")
  897. if h~=nil and t~=nil then
  898. if h.Parent==me then
  899. return
  900. end
  901. if Corrupt==false then
  902. h:TakeDamage(5)
  903. else
  904. h:TakeDamage(6)
  905. end
  906. vl=Instance.new("BodyVelocity")
  907. vl.P=4500
  908. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  909. vl.velocity=(pf.Position-t.Position).unit*30+Vector3.new(0,10,0)
  910. vl.Parent=t
  911. game:GetService("Debris"):AddItem(vl,.2)
  912. rl=Instance.new("BodyAngularVelocity")
  913. rl.P=3000
  914. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  915. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  916. rl.Parent=t
  917. game:GetService("Debris"):AddItem(rl,.2)
  918. end
  919. end)
  920. c=pf.CFrame
  921. r=Instance.new("Part")
  922. r.Anchored=true
  923. r.Name="Ring"
  924. r.CanCollide=false
  925. r.TopSurface=0
  926. r.BottomSurface=0
  927. r.CFrame=CFrame.new(c.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  928. r.Parent=workspace
  929. script.RingMesh:clone().Parent=r
  930. r.RingMesh.Scale=Vector3.new(3,3,3)
  931. r.BrickColor=BrickColor.new(EColor)
  932. coroutine.resume(coroutine.create(function(par) for i=1, 14 do par.Transparency=i/14 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(5,5,.1) wait() end par.Parent=nil end),r)
  933. r=Instance.new("Part")
  934. r.Anchored=true
  935. r.Name="Ring"
  936. r.CanCollide=false
  937. r.TopSurface=0
  938. r.BottomSurface=0
  939. r.CFrame=CFrame.new(c.p)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  940. r.Parent=workspace
  941. script.RingMesh:clone().Parent=r
  942. r.RingMesh.Scale=Vector3.new(3,3,3)
  943. r.BrickColor=BrickColor.new(EColor)
  944. coroutine.resume(coroutine.create(function(par) for i=1, 7 do par.Transparency=i/7 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(12,12,.3) wait() end par.Parent=nil end),r)
  945. D.Parent=nil
  946. p=Instance.new("Part")
  947. p.Name="BlastRing"
  948. p.TopSurface=0
  949. p.BottomSurface=0
  950. p.CanCollide=false
  951. p.Anchored=true
  952. p.BrickColor=BrickColor.new(EColor2)
  953. p.Size=Vector3.new(1,1,1)
  954. p.CFrame=r.CFrame*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)
  955. p.CFrame=p.CFrame-Vector3.new(0,5,0)
  956. p.Parent=workspace
  957. script.BlastMesh:clone().Parent=p
  958. p.BlastMesh.Scale=Vector3.new(5,5,1)
  959. coroutine.resume(coroutine.create(function(par) for lol=1, 17 do if Corrupt==false then par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(1,1,1) else par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(2,1.3,2) end par.Transparency=lol/17 par.CFrame=par.CFrame*CFrame.new(0,.1,0) wait() end par.Parent=nil end),p)
  960. s=script.DBExplode:clone()
  961. s.Parent=pf
  962. s:Play()
  963. for grow=1, 15 do
  964. if Corrupt==false then
  965. pf.Size=pf.Size+Vector3.new(3,3,3)
  966. else
  967. pf.Size=pf.Size+Vector3.new(4,4,4)
  968. end
  969. pf.Transparency=grow/15
  970. pf.CFrame=c
  971. wait()
  972. end
  973. pf.Parent=nil
  974. end
  975. DBHit=function(hit,DB)
  976. if hit.Parent==nil then
  977. return
  978. end
  979. h=hit.Parent:FindFirstChild("Humanoid")
  980. t=hit.Parent:FindFirstChild("Torso")
  981. if h~=nil and t~=nil then
  982. if h.Parent==me then
  983. return
  984. end
  985. h:TakeDamage(5)
  986. vl=Instance.new("BodyVelocity")
  987. vl.P=4500
  988. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  989. vl.velocity=DB.BodyVelocity.velocity*1.05+Vector3.new(0,3,0)
  990. vl.Parent=t
  991. game:GetService("Debris"):AddItem(vl,.2)
  992. rl=Instance.new("BodyAngularVelocity")
  993. rl.P=3000
  994. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  995. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  996. rl.Parent=t
  997. game:GetService("Debris"):AddItem(rl,.2)
  998. else
  999. if hit.CanCollide==false then
  1000. return
  1001. end
  1002. DBCon:disconnect()
  1003. DBExplode(DB)
  1004. end
  1005. end
  1006. PunchHit=function(hit)
  1007. if hit.Parent==nil then
  1008. return
  1009. end
  1010. h=hit.Parent:FindFirstChild("Humanoid")
  1011. t=hit.Parent:FindFirstChild("Torso")
  1012. if h~=nil and t~=nil then
  1013. if h.Parent==me then
  1014. return
  1015. end
  1016. PAWNSH:disconnect()
  1017. if Corrupt==false then
  1018. h:TakeDamage(40)
  1019. vl=Instance.new("BodyVelocity")
  1020. vl.P=4500
  1021. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1022. vl.velocity=me.Torso.Velocity/2+Vector3.new(0,15,0)
  1023. vl.Parent=t
  1024. game:GetService("Debris"):AddItem(vl,.4)
  1025. rl=Instance.new("BodyAngularVelocity")
  1026. rl.P=3000
  1027. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1028. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1029. rl.Parent=t
  1030. game:GetService("Debris"):AddItem(rl,.5)
  1031. else
  1032. h:TakeDamage(75)
  1033. vl=Instance.new("BodyVelocity")
  1034. vl.P=4500
  1035. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1036. vl.velocity=me.Torso.Velocity/1.5+Vector3.new(0,10,0)
  1037. vl.Parent=t
  1038. game:GetService("Debris"):AddItem(vl,.3)
  1039. rl=Instance.new("BodyAngularVelocity")
  1040. rl.P=3000
  1041. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1042. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))*2
  1043. rl.Parent=t
  1044. game:GetService("Debris"):AddItem(rl,.5)
  1045. end
  1046. end
  1047. end
  1048. SmashHit=function(hit)
  1049. if hit.Parent==nil then
  1050. return
  1051. end
  1052. h=hit.Parent:FindFirstChild("Humanoid")
  1053. t=hit.Parent:FindFirstChild("Torso")
  1054. if h~=nil and t~=nil then
  1055. if h.Parent==me then
  1056. return
  1057. end
  1058. s=script.DSHit:clone()
  1059. s.Parent=hit
  1060. s:Play()
  1061. game:GetService("Debris"):AddItem(s,2)
  1062. LOLOHAX:disconnect()
  1063. h:TakeDamage(40)
  1064. vl=Instance.new("BodyVelocity")
  1065. vl.P=4500
  1066. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1067. vl.velocity=me.Torso.Velocity/2+Vector3.new(0,2,0)+me.Torso.CFrame.lookVector*20
  1068. vl.Parent=t
  1069. game:GetService("Debris"):AddItem(vl,.2)
  1070. rl=Instance.new("BodyAngularVelocity")
  1071. rl.P=3000
  1072. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1073. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1074. rl.Parent=t
  1075. game:GetService("Debris"):AddItem(rl,.2)
  1076. end
  1077. end
  1078. Land=function(hit)
  1079. if hit.Parent==nil or hit.CanCollide==false then
  1080. return
  1081. end
  1082. if hit.Parent:FindFirstChild("Humanoid")==true then
  1083. return
  1084. end
  1085. nCont:disconnect()
  1086. Contact=true
  1087. PWN={}
  1088. for _,v in pairs(workspace:children()) do
  1089. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  1090. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  1091. if v~=me and (v.Torso.Position-me.Torso.Position).magnitude<=50 then
  1092. table.insert(PWN,v.Torso)
  1093. end
  1094. end
  1095. end
  1096. end
  1097. p=Instance.new("Part")
  1098. p.Name="BlastRing"
  1099. p.TopSurface=0
  1100. p.BottomSurface=0
  1101. p.CanCollide=false
  1102. p.Anchored=true
  1103. p.BrickColor=BrickColor.new(EColor2)
  1104. p.Size=Vector3.new(1,1,1)
  1105. p.CFrame=CFrame.new(Torso.Parent.Head.CFrame.p)-Vector3.new(0,4,0)
  1106. p.Parent=workspace
  1107. script.BlastMesh:clone().Parent=p
  1108. p.BlastMesh.Scale=Vector3.new(2,3,2)
  1109. if Corrupt==false then
  1110. coroutine.resume(coroutine.create(function(par) for lol=1, 10 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(2,.4,2) par.Transparency=lol*.1 par.CFrame=par.CFrame*CFrame.new(0,.2,0) wait() end par.Parent=nil end),p)
  1111. else
  1112. coroutine.resume(coroutine.create(function(par) for lol=1, 10 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(4,.7,4) par.Transparency=lol*.1 par.CFrame=par.CFrame*CFrame.new(0,.35,0) wait() end par.Parent=nil end),p)
  1113. end
  1114.  
  1115. for _,t in pairs(PWN) do
  1116. if Corrupt==false then
  1117. Mag=(me.Torso.Position-t.Position).magnitude/10
  1118. t.Parent.Humanoid:TakeDamage(2)
  1119. else
  1120. Mag=(me.Torso.Position-t.Position).magnitude/7
  1121. t.Parent.Humanoid:TakeDamage(10)
  1122. end
  1123. vl=Instance.new("BodyVelocity")
  1124. vl.P=4000
  1125. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1126. vl.velocity=Vector3.new(0,math.random(40,60),0)+(t.Position-me.Torso.Position).unit*(30/Mag)
  1127. vl.Parent=t
  1128. game:GetService("Debris"):AddItem(vl,.2)
  1129. rl=Instance.new("BodyAngularVelocity")
  1130. rl.P=3000
  1131. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  1132. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1133. rl.Parent=t
  1134. game:GetService("Debris"):AddItem(rl,.2)
  1135. end
  1136. end
  1137. doArms=function(Com)
  1138. if Com==true then
  1139. Torso=me.Torso
  1140. RA=Torso:FindFirstChild("Right Shoulder")
  1141. if RA==nil then
  1142. return
  1143. end
  1144. LA=Torso:FindFirstChild("Left Shoulder")
  1145. if LA==nil then
  1146. return
  1147. end
  1148. RightS=Instance.new("Motor")
  1149. RightS.Name="Right_Shoulder"
  1150. RightS.C0=RA.C0
  1151. RightS.C1=RA.C1
  1152. RightS.Part0=RA.Part0
  1153. RightS.Part1=RA.Part1
  1154. RightS.MaxVelocity=.35
  1155. RightS.Parent=Torso
  1156. LeftS=Instance.new("Motor")
  1157. LeftS.Name="Left_Shoulder"
  1158. LeftS.C0=LA.C0
  1159. LeftS.C1=LA.C1
  1160. LeftS.Part0=LA.Part0
  1161. LeftS.Part1=LA.Part1
  1162. LeftS.MaxVelocity=.35
  1163. LeftS.Parent=Torso
  1164. RA.Parent=nil
  1165. LA.Parent=nil
  1166. RA.Part1=nil
  1167. LA.Part1=nil
  1168. else
  1169. RightS.Part1=nil
  1170. LeftS.Part1=nil
  1171. RightS.Parent=nil
  1172. LeftS.Parent=nil
  1173. RA.Parent=Torso
  1174. LA.Parent=Torso
  1175. RA.Part1=nil
  1176. LA.Part1=nil
  1177. RA.Part1=me["Right Arm"]
  1178. LA.Part1=me["Left Arm"]
  1179. wait(.2)
  1180. RA.Part0=Torso
  1181. LA.Part0=Torso
  1182. RA.Part1=me["Right Arm"]
  1183. LA.Part1=me["Left Arm"]
  1184. end
  1185. end
  1186.  
  1187. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1188. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1189. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1190. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1191. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1192. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1193. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1194. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1195. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1196. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1197. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1198. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1199. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1200. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1201. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1202. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1203. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1204. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1205. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1206. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1207. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1208. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1209. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1210. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1211. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1212. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1213. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1214. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1215. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1216. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  1217.  
  1218. --these moves require extreme power. Only jj363 can harness enough dark energy to perform these.
  1219.  
  1220. SPIKEHIT=function(hit,p,BOOST)
  1221. if hit.Parent==nil then
  1222. return
  1223. end
  1224. h=hit.Parent:FindFirstChild("Humanoid")
  1225. if h~=nil and hit.Parent~=me and hit.Parent:FindFirstChild("Torso")~=nil then
  1226. if h.Health>0 then
  1227. h:TakeDamage(3*BOOST)
  1228. vl=Instance.new("BodyVelocity")
  1229. vl.P=4000
  1230. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1231. vl.velocity=Vector3.new(0,(BOOST*20),0)+(hit.Parent.Torso.Position-p).unit*(50/BOOST)
  1232. vl.Parent=hit.Parent.Torso
  1233. game:GetService("Debris"):AddItem(vl,.2)
  1234. rl=Instance.new("BodyAngularVelocity")
  1235. rl.P=3000
  1236. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  1237. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1238. rl.Parent=hit.Parent.Torso
  1239. game:GetService("Debris"):AddItem(rl,.2)
  1240. ss=script.DCHHIT:clone()
  1241. ss.Parent=hit.Parent.Torso
  1242. ss:Play()
  1243. end
  1244. end
  1245. end
  1246.  
  1247. MakeSpike=function(Location,PO,b)
  1248. Spike=Instance.new("Part")
  1249. Spike.BrickColor=BrickColor.new(EColor)
  1250. Spike.CanCollide=false
  1251. script.SpikeMesh:clone().Parent=Spike
  1252. Spike.formFactor="Symmetric"
  1253. Spike.Size=Vector3.new(5+b*3,11+b*4,5+b*3)
  1254. Spike.CFrame=CFrame.new(Location-Vector3.new(0,3*b*1.5,0))
  1255. Spike.SpikeMesh.Scale=(Spike.SpikeMesh.Scale*(b/2))*1.5
  1256. v=Instance.new("BodyPosition")
  1257. v.P=4000
  1258. v.maxForce=Vector3.new(5000,math.huge,5000)
  1259. v.position=Spike.Position+Vector3.new(0,28+b*18,0)
  1260. v.Parent=Spike
  1261. Spike.Parent=workspace
  1262. coroutine.resume(coroutine.create(function(BANANA) for i=1, 12 do BANANA.SpikeMesh.Scale=BANANA.SpikeMesh.Scale-Vector3.new(.6,0,.6) BANANA.Transparency=i/12 wait() end BANANA.Parent=nil end),Spike)
  1263. Spike.Touched:connect(function(hit) SPIKEHIT(hit,PO,b) end)
  1264. ss=script.LOL:clone()
  1265. ss.Pitch=.8/b
  1266. ss.Parent=Spike
  1267. ss:Play()
  1268. end
  1269.  
  1270. DarkChaser=function()
  1271. Torso=me:FindFirstChild("Torso")
  1272. if Torso.Velocity.y>5 or Torso.Velocity.y<-5 then
  1273. return
  1274. end
  1275. if Charge>=80 then
  1276. Charge=Charge-80
  1277. else
  1278. return
  1279. end
  1280. Pos=Torso.Position
  1281. Dir=Torso.CFrame.lookVector
  1282. Start=Torso.Position+Dir*7
  1283. b=1
  1284. for t=1, 12 do
  1285. for i=1, 12 do
  1286. if t==12 then
  1287. b=2
  1288. end
  1289. coroutine.resume(coroutine.create(MakeSpike),Pos+Vector3.new(math.cos(i)*(6*t),0,math.sin(i)*(6*t)),Pos,b)
  1290. end
  1291. wait(.1)
  1292. end
  1293. end
  1294.  
  1295. DarkSmash=function()
  1296. if Charge>=70 then
  1297. Charge=Charge-70
  1298. else
  1299. e=Instance.new("Part")
  1300. e.TopSurface=0
  1301. e.BottomSurface=0
  1302. e.CanCollide=false
  1303. e.Anchored=true
  1304. e.Shape="Ball"
  1305. e.Size=Vector3.new(1,1,1)
  1306. e.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  1307. e.Name="Effect"
  1308. e.BrickColor=BrickColor.new(EColor2)
  1309. e.Parent=Torso.Parent
  1310. m=script.BlastMesh:clone()
  1311. m.Scale=Vector3.new(2,2,.1)
  1312. m.Parent=e
  1313. coroutine.resume(coroutine.create(function(m) for i=1, 5 do m.Parent.CFrame=m.Parent.CFrame*CFrame.new(0,.7,0) m.Scale=m.Scale+Vector3.new(1,.3,1) m.Parent.Transparency=i/6 wait() end m.Parent.Parent=nil end),e.BlastMesh)
  1314. pu=Instance.new("BodyVelocity")
  1315. pu.maxForce=Vector3.new(math.huge,0,math.huge)
  1316. pu.velocity=Torso.CFrame.lookVector*3
  1317. pu.Parent=Torso
  1318. wait(.1)
  1319. pu.Parent=nil
  1320. return
  1321. end
  1322. e=Instance.new("Part")
  1323. e.TopSurface=0
  1324. e.BottomSurface=0
  1325. e.CanCollide=false
  1326. e.Anchored=true
  1327. e.Shape="Ball"
  1328. e.Size=Vector3.new(1,1,1)
  1329. e.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)+Torso.CFrame.lookVector*3
  1330. e.Name="Effect"
  1331. e.BrickColor=BrickColor.new(EColor2)
  1332. e.Parent=Torso.Parent
  1333. m=script.BlastMesh:clone()
  1334. m.Scale=Vector3.new(2,2,.1)
  1335. m.Parent=e
  1336. coroutine.resume(coroutine.create(function(m) for i=1, 6 do m.Parent.CFrame=m.Parent.CFrame*CFrame.new(0,.8,0) m.Scale=m.Scale+Vector3.new(1.4,.35,1.4) m.Parent.Transparency=i/6 wait() end m.Parent.Parent=nil end),e.BlastMesh)
  1337. pu=Instance.new("BodyVelocity")
  1338. pu.P=9000
  1339. pu.maxForce=Vector3.new(math.huge,0,math.huge)
  1340. pu.velocity=Torso.CFrame.lookVector*70
  1341. pu.Parent=Torso
  1342. g=Instance.new("BodyGyro")
  1343. g.Parent=Torso
  1344. for forward=1, 6 do
  1345. for _,v in pairs(Torso.Parent:children()) do
  1346. if v.className=="Part" and v.Name~="Effect" then
  1347. n=v:clone()
  1348. n.archivable=true
  1349. n.Anchored=true
  1350. n.CanCollide=false
  1351. n.Name="TRAILER"
  1352. n.BrickColor=BrickColor.new(EColor)
  1353. n.CFrame=n.CFrame+Torso.CFrame.lookVector*(2+forward)
  1354. n.Parent=workspace
  1355. coroutine.resume(coroutine.create(function(ne,m) for i=1, m do ne.Transparency=i/m wait() end ne.Parent=nil end),n,5+forward)
  1356. elseif v.className=="Hat" then
  1357. n=v.Handle:clone()
  1358. n.archivable=true
  1359. n.Anchored=true
  1360. n.CanCollide=false
  1361. n.Mesh.VertexColor=Vector3.new(0,0,0)
  1362. n.Name="TRAILER"
  1363. n.BrickColor=BrickColor.new(EColor)
  1364. n.CFrame=n.CFrame+Torso.CFrame.lookVector*(2+forward)
  1365. n.Parent=workspace
  1366. coroutine.resume(coroutine.create(function(ne,m) for i=1, m do ne.Transparency=i/m wait() end ne.Parent=nil end),n,5+forward)
  1367. end
  1368. end
  1369. end
  1370. sgb=script.DS:clone()
  1371. sgb.Parent=Torso
  1372. sgb:Play()
  1373. Dist=Torso.CFrame.lookVector*12.5
  1374. Pos=Torso.Position+Dist
  1375. r=Instance.new("Part")
  1376. r.Anchored=true
  1377. r.Name="Ring"
  1378. r.CanCollide=false
  1379. r.TopSurface=0
  1380. r.BottomSurface=0
  1381. r.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,0,0)+Dist
  1382. r.Parent=workspace
  1383. script.RingMesh:clone().Parent=r
  1384. r.RingMesh.Scale=Vector3.new(3,3,3)
  1385. r.BrickColor=BrickColor.new(EColor)
  1386. coroutine.resume(coroutine.create(function(par) for i=1, 8 do par.Transparency=i/8 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(1.5,1.5,.3) par.CFrame=par.CFrame*CFrame.new(0,0,.4) wait() end par.Parent=nil end),r)
  1387. e=Instance.new("Part")
  1388. e.TopSurface=0
  1389. e.BottomSurface=0
  1390. e.CanCollide=false
  1391. e.Anchored=true
  1392. e.Shape="Ball"
  1393. e.Size=Vector3.new(1,1,1)
  1394. e.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)+Dist
  1395. e.Name="Effect"
  1396. e.BrickColor=BrickColor.new(EColor2)
  1397. e.Parent=Torso.Parent
  1398. m=script.BlastMesh:clone()
  1399. m.Scale=Vector3.new(2,2,.1)
  1400. m.Parent=e
  1401. coroutine.resume(coroutine.create(function(m) for i=1, 5 do m.Parent.CFrame=m.Parent.CFrame*CFrame.new(0,.3,0) m.Scale=m.Scale+Vector3.new(1,.6,1) m.Parent.Transparency=i/5 wait() end m.Parent.Parent=nil end),e.BlastMesh)
  1402.  
  1403. PWN={}
  1404. for _,v in pairs(workspace:children()) do
  1405. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil and v~=Torso.Parent and v:FindFirstChild("Torso")~=nil then
  1406. if (v.Torso.Position-Torso.Position).magnitude<=13 then
  1407. vv=Instance.new("BodyVelocity")
  1408. vv.P=800
  1409. vv.maxForce=Vector3.new(5000000,0,5000000)
  1410. vv.velocity=(v.Torso.Position-Torso.Position).unit*2+Torso.CFrame.lookVector*4
  1411. vv.Parent=v.Torso
  1412. game:GetService("Debris"):AddItem(vv,.2)
  1413. vv=Instance.new("BodyAngularVelocity")
  1414. vv.P=400
  1415. vv.maxTorque=Vector3.new(50000,50000,50000)
  1416. vv.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1417. vv.Parent=v.Torso
  1418. game:GetService("Debris"):AddItem(vv,.2)
  1419. v.Humanoid:TakeDamage(3)
  1420. table.insert(PWN,v)
  1421. end
  1422. end
  1423. end
  1424. for _,v in pairs(PWN) do
  1425. if game.Players:GetPlayerFromCharacter(v)~=nil then
  1426. s=script.Shake4:clone()
  1427. s.Disabled=false
  1428. s.Parent=v
  1429. end
  1430. end
  1431. s=script.Shake4:clone()
  1432. s.Disabled=false
  1433. s.Parent=Torso.Parent
  1434. connector=Instance.new("Part")
  1435. connector.Name="HITSPACE"
  1436. connector.formFactor="Symmetric"
  1437. connector.Size=Vector3.new(4,5,2)
  1438. connector.CanCollide=false
  1439. connector.CFrame=Torso.CFrame
  1440. connector.Transparency=1
  1441. connector.Parent=workspace
  1442. v=Instance.new("BodyVelocity")
  1443. v.P=9000
  1444. v.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1445. v.velocity=Torso.CFrame.lookVector*100
  1446. v.Parent=connector
  1447. LOLOHAX=connector.Touched:connect(function(hit) SmashHit(hit) end)
  1448. game:GetService("Debris"):AddItem(connector,.2)
  1449.  
  1450. wait(.125)
  1451. r=Instance.new("Part")
  1452. r.Anchored=true
  1453. r.Name="Ring"
  1454. r.CanCollide=false
  1455. r.TopSurface=0
  1456. r.BottomSurface=0
  1457. r.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,0,0)+Dist-Torso.CFrame.lookVector*3
  1458. r.Parent=workspace
  1459. script.RingMesh:clone().Parent=r
  1460. r.RingMesh.Scale=Vector3.new(3,3,3)
  1461. r.BrickColor=BrickColor.new(EColor)
  1462. coroutine.resume(coroutine.create(function(par) for i=1, 7 do par.Transparency=i/7 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(1.3,1.3,.1) par.CFrame=par.CFrame*CFrame.new(0,0,.3) wait() end par.Parent=nil end),r)
  1463. e=Instance.new("Part")
  1464. e.TopSurface=0
  1465. e.BottomSurface=0
  1466. e.CanCollide=false
  1467. e.Anchored=true
  1468. e.Shape="Ball"
  1469. e.Size=Vector3.new(1,1,1)
  1470. e.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  1471. e.Name="Effect"
  1472. e.BrickColor=BrickColor.new(EColor2)
  1473. e.Parent=Torso.Parent
  1474. m=script.BlastMesh:clone()
  1475. m.Scale=Vector3.new(1,1,.1)
  1476. m.Parent=e
  1477. coroutine.resume(coroutine.create(function(m) for i=1, 7 do m.Parent.CFrame=m.Parent.CFrame*CFrame.new(0,1.2,0) m.Scale=m.Scale+Vector3.new(1.2,.1,1.2) m.Parent.Transparency=i/7 wait() end m.Parent.Parent=nil end),e.BlastMesh)
  1478. pu.Parent=nil
  1479. wait(.2)
  1480. g.Parent=nil
  1481. sgb.Parent=nil
  1482. end
  1483.  
  1484.  
  1485. DPunisherGrab=function(hit)
  1486. if hit.Parent==nil then
  1487. return
  1488. end
  1489. h=hit.Parent:FindFirstChild("Humanoid")
  1490. t=hit.Parent:FindFirstChild("Torso")
  1491. print(hit.Parent.Name)
  1492. if h~=nil and t~=nil then
  1493. if h.Health<1 or h.Parent==me then
  1494. return
  1495. end
  1496. me.Torso.BodyVelocityM.velocity=Vector3.new(0,0,0)
  1497. Grabbed=t
  1498. DPG:disconnect()
  1499. end
  1500. end
  1501.  
  1502. DarkDPunisher=function()
  1503. Torso=me.Torso
  1504. RA=Torso:FindFirstChild("Right Shoulder")
  1505. if RA==nil then
  1506. return
  1507. end
  1508. LA=Torso:FindFirstChild("Left Shoulder")
  1509. if LA==nil then
  1510. return
  1511. end
  1512. doArms(true)
  1513. RightS.MaxVelocity=.3
  1514. LeftS.MaxVelocity=.2
  1515. RightS.DesiredAngle=-1.5
  1516. LeftS.DesiredAngle=-.6
  1517. wait(.5)
  1518. RightS.MaxVelocity=1
  1519. LeftS.MaxVelocity=.4
  1520. RightS.DesiredAngle=1.6
  1521. LeftS.DesiredAngle=1.2
  1522. v=Instance.new("BodyVelocity")
  1523. v.Name="BodyVelocityM"
  1524. v.P=3000
  1525. v.maxForce=Vector3.new(math.huge,50000000000000000000,math.huge)
  1526. v.velocity=Torso.CFrame.lookVector*160
  1527. if Corrupt==true then v.velocity=Torso.CFrame.lookVector*200 end
  1528. v.Parent=Torso
  1529. g=Instance.new("BodyGyro")
  1530. g.P=95000
  1531. g.D=100
  1532. g.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1533. g.cframe=Torso.CFrame
  1534. g.Parent=Torso
  1535. Grabbed=nil
  1536. DidGrab=false
  1537. sa=Instance.new("Part")
  1538. sa.Name="StrikeArea"
  1539. sa.TopSurface=0
  1540. sa.BottomSurface=0
  1541. sa.CFrame=Torso.Parent.Head.CFrame
  1542. sa.formFactor="Symmetric"
  1543. sa.Transparency=1
  1544. sa.CanCollide=false
  1545. sa.Size=Vector3.new(2,2,2)
  1546. sa.Parent=me
  1547. ww=Instance.new("Weld")
  1548. ww.Part0=me["Right Arm"]
  1549. ww.Part1=sa
  1550. ww.Parent=sa
  1551. ww.C0=CFrame.new(0,-1.3,0)
  1552. DPG=sa.Touched:connect(DPunisherGrab)
  1553. for i=1, 7 do
  1554. if Grabbed~=nil then
  1555. DidGrab=true
  1556. break
  1557. end
  1558. wait()
  1559. end
  1560. if DidGrab==false or Charge<60 then
  1561. print("No grab.")
  1562. v.Parent=nil
  1563. else
  1564. Charge=Charge-60
  1565. v.Parent=nil
  1566. pt=Instance.new("BodyPosition")
  1567. pt.P=5000
  1568. pt.maxForce=Vector3.new(0,500000000000000000000000000,0)
  1569. pt.position=Torso.Position
  1570. pt.Parent=Torso
  1571. game:GetService("Debris"):AddItem(pt,4)
  1572. Torso.Neck.C0=Torso.Neck.C0*CFrame.fromEulerAnglesXYZ(-math.pi/7,0,0)
  1573. g.cframe=CFrame.new(Torso.Position,Torso.Position+Torso.CFrame.lookVector*10)
  1574. print(Grabbed)
  1575. w=Instance.new("Weld")
  1576. w.Part0=Torso
  1577. w.Part1=Grabbed
  1578. w.C0=CFrame.new(1.5,1.75,-1.45)*CFrame.fromEulerAnglesXYZ(math.pi/6,math.pi,0)
  1579. w.Parent=me["Torso"]
  1580. RightS.MaxVelocity=.2
  1581. RightS.CurrentAngle=1.6
  1582. RightS.DesiredAngle=2.4
  1583. LeftS.DesiredAngle=.2
  1584. wait(.25)
  1585. s=script.DBC:clone()
  1586. s.Pitch=.375
  1587. s.Parent=Torso
  1588. s:Play()
  1589. for darkowns=1, 12 do
  1590. s.Pitch=s.Pitch+.075
  1591. Grabbed.Parent.Humanoid.Health=Grabbed.Parent.Humanoid.Health-1.5
  1592. p=Instance.new("Part")
  1593. p.TopSurface=0
  1594. p.BottomSurface=0
  1595. p.Anchored=true
  1596. p.CanCollide=false
  1597. p.BrickColor=BrickColor.new(EColor2)
  1598. p.Size=Vector3.new(1,1,1)
  1599. p.formFactor="Symmetric"
  1600. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  1601. p.Parent=me
  1602. Instance.new("BlockMesh").Parent=p
  1603. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns/1.5)
  1604. wait(.05)
  1605. end
  1606. s:Stop()
  1607. s.Parent=nil
  1608. s=script.DBExplode:clone()
  1609. s.Pitch=.425
  1610. s.Parent=Grabbed
  1611. s:Play()
  1612. ww.C0=CFrame.new(0,-2,0)
  1613. p=Instance.new("Part")
  1614. p.Name="BlastRing"
  1615. p.TopSurface=0
  1616. p.BottomSurface=0
  1617. p.CanCollide=false
  1618. p.Anchored=true
  1619. p.BrickColor=BrickColor.new(EColor2)
  1620. p.Size=Vector3.new(1,1,1)
  1621. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(math.pi,0,0)
  1622. p.Parent=workspace
  1623. script.BlastMesh:clone().Parent=p
  1624. p.BlastMesh.Scale=Vector3.new(1,1,1)
  1625. coroutine.resume(coroutine.create(function(par) for lol=1, 11 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(.6,1.8,.6) par.Transparency=lol/11 par.CFrame=par.CFrame*CFrame.new(0,1,0) wait() end par.Parent=nil end),p)
  1626. coroutine.resume(coroutine.create(DCCO2),sa,4)
  1627. coroutine.resume(coroutine.create(DCCO3),sa,8)
  1628. r=Instance.new("Part")
  1629. r.Anchored=true
  1630. r.Name="Ring"
  1631. r.CanCollide=false
  1632. r.TopSurface=0
  1633. r.BottomSurface=0
  1634. r.CFrame=sa.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  1635. r.Parent=workspace
  1636. script.RingMesh:clone().Parent=r
  1637. r.RingMesh.Scale=Vector3.new(3,3,3)
  1638. r.BrickColor=BrickColor.new(EColor)
  1639. coroutine.resume(coroutine.create(function(par) for i=1, 15 do par.Transparency=i/15 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(1.5,1.5,.5) par.CFrame=par.CFrame*CFrame.new(0,0,.4) wait() end par.Parent=nil end),r)
  1640. RightS.DesiredAngle=RightS.DesiredAngle+.5
  1641. Dir=(me["Right Arm"].Position-(( me["Right Arm"].CFrame * CFrame.new(0,50,0) ).p)).unit
  1642. vlo=Instance.new("BodyVelocity")
  1643. vlo.Name="BodyVelocity"
  1644. vlo.P=4500
  1645. vlo.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1646. vlo.velocity=Dir*20
  1647. if Corrupt==true then vlo.velocity=vlo.velocity*5-Vector3.new(0,60,0) end
  1648. vlo.Parent=Grabbed
  1649. game:GetService("Debris"):AddItem(vlo,.2)
  1650. rl=Instance.new("BodyAngularVelocity")
  1651. rl.P=3000
  1652. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1653. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1654. rl.Parent=Grabbed
  1655. game:GetService("Debris"):AddItem(rl,.2)
  1656. Grabbed.Parent.Humanoid.Health=Grabbed.Parent.Humanoid.Health-70
  1657. p.Parent=nil
  1658. w.Parent=nil
  1659. game:GetService("Debris"):AddItem(s,2)
  1660. pt.Parent=nil
  1661. coroutine.resume(coroutine.create(DCCO3),Grabbed,6)
  1662. wait(.6)
  1663. Torso.Neck.C0=Torso.Neck.C0*CFrame.fromEulerAnglesXYZ(math.pi/7,0,0)
  1664. end
  1665. wait(.3)
  1666. sa.Parent=nil
  1667. g.Parent=nil
  1668. doArms(false)
  1669. end
  1670.  
  1671. DarkHide=function()
  1672. Torso=me.Torso
  1673. RA=Torso:FindFirstChild("Right Shoulder")
  1674. if RA==nil then
  1675. return
  1676. end
  1677. LA=Torso:FindFirstChild("Left Shoulder")
  1678. if LA==nil then
  1679. return
  1680. end
  1681. if Charge>=20 then
  1682. Charge=Charge-20
  1683. else
  1684. return
  1685. end
  1686. doArms(true)
  1687. OR=RA.C0
  1688. RightS.C0=OR*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)+Vector3.new(.2,-.5,0)
  1689. RightS.DesiredAngle=2
  1690. LeftS.DesiredAngle=.3
  1691. RightS.MaxVelocity=.2
  1692. LeftS.MaxVelocity=.1
  1693. s=script.DBC:clone()
  1694. s.Pitch=.9
  1695. s.Parent=Torso
  1696. s:Play()
  1697. for darkowns=1, 12 do
  1698. s.Pitch=s.Pitch-.06
  1699. p=Instance.new("Part")
  1700. p.TopSurface=0
  1701. p.BottomSurface=0
  1702. p.Anchored=true
  1703. p.CanCollide=false
  1704. p.BrickColor=BrickColor.new(EColor2)
  1705. p.Size=Vector3.new(1,1,1)
  1706. p.formFactor="Symmetric"
  1707. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  1708. p.Parent=me
  1709. Instance.new("BlockMesh").Parent=p
  1710. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  1711. wait(.05)
  1712. end
  1713. for _,v in pairs(me:children()) do
  1714. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1715. coroutine.resume(coroutine.create(function(PAR) for i=1, 5 do PAR.Transparency=i*.2 wait(.02) end end),v)
  1716. elseif v.className=="Hat" and v:FindFirstChild("Handle")~=nil then
  1717. coroutine.resume(coroutine.create(function(PAR) for i=1, 5 do PAR.Transparency=i*.2 wait(.02) end end),v.Handle)
  1718. end
  1719. end
  1720. for darkowns=1, 12 do
  1721. s.Pitch=s.Pitch-.03
  1722. p=Instance.new("Part")
  1723. p.TopSurface=0
  1724. p.BottomSurface=0
  1725. p.Anchored=true
  1726. p.CanCollide=false
  1727. p.BrickColor=BrickColor.new(EColor2)
  1728. p.Size=Vector3.new(1,1,1)
  1729. p.formFactor="Symmetric"
  1730. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  1731. p.Parent=me
  1732. Instance.new("BlockMesh").Parent=p
  1733. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  1734. wait(.05)
  1735. end
  1736. RightS.DesiredAngle=-1
  1737. LeftS.DesiredAngle=1
  1738. RightS.MaxVelocity=.4
  1739. LeftS.MaxVelocity=.4
  1740. s:Stop()
  1741. s.Parent=nil
  1742. wait(1)
  1743. doArms(false)
  1744. wait(10)
  1745. for _,v in pairs(me:children()) do
  1746. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1747. coroutine.resume(coroutine.create(function(PAR) for i=1, 5 do PAR.Transparency=PAR.Transparency-.2 wait(.02) end end),v)
  1748. elseif v.className=="Hat" and v:FindFirstChild("Handle")~=nil then
  1749. coroutine.resume(coroutine.create(function(PAR) for i=1, 5 do PAR.Transparency=PAR.Transparency-.2 wait(.02) end end),v.Handle)
  1750. end
  1751. end
  1752. end
  1753.  
  1754. DoTornado=function(nVel,Pwn)
  1755. t=Instance.new("Part")
  1756. t.BrickColor=BrickColor.new(EColor)
  1757. g=Instance.new("BodyGyro")
  1758. g.P=5000
  1759. g.D=50
  1760. g.cframe=CFrame.new(0,0,0)
  1761. g.maxTorque=Vector3.new(5000000000,0,5000000000)*50000000000
  1762. g.Parent=t
  1763. t.formFactor="Symmetric"
  1764. t.Size=Vector3.new(2,2,2)
  1765. t.CanCollide=false
  1766. t.CFrame=CFrame.new(me.Torso.CFrame.p+me.Torso.CFrame.lookVector*5+Vector3.new(0,3,0))*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  1767. vm=Instance.new("BodyVelocity")
  1768. vm.P=3000
  1769. vm.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1770. vm.velocity=me.Torso.CFrame.lookVector*40+Vector3.new(math.random(-5,5),0,math.random(-5,5))+nVel
  1771. vm.Parent=t
  1772. vl=Instance.new("BodyPosition")
  1773. vl.P=3000
  1774. vl.maxForce=Vector3.new(0,5000000,0)
  1775. vl.position=t.Position
  1776. vl.Parent=t
  1777. r=Instance.new("BodyAngularVelocity")
  1778. r.P=1450
  1779. r.maxTorque=Vector3.new(0,50000000000000000000000000,0)*5000
  1780. r.angularvelocity=Vector3.new(0,250,0)
  1781. r.Parent=t
  1782. s=Instance.new("Sound")
  1783. s.Volume=1
  1784. s.Pitch=.4
  1785. s.SoundId="http://www.roblox.com/asset?id=2101157"
  1786. s.Parent=t
  1787. s:Play()
  1788. script.NadoMesh:clone().Parent=t
  1789. t.Name="'Nado"
  1790. t.Parent=workspace
  1791. s=script.TORNADO:clone()
  1792. s.VP.Value=me
  1793. s.Disabled=false
  1794. s.Parent=t
  1795. s.VP.Value=me
  1796. end
  1797.  
  1798. DarkStorm=function()
  1799. Torso=me.Torso
  1800. RA=Torso:FindFirstChild("Right Shoulder")
  1801. if RA==nil then
  1802. return
  1803. end
  1804. LA=Torso:FindFirstChild("Left Shoulder")
  1805. if LA==nil then
  1806. return
  1807. end
  1808. if Charge>=50 then
  1809. Charge=Charge-50
  1810. else
  1811. return
  1812. end
  1813. doArms(true)
  1814. OR=RA.C0
  1815. RightS.C0=OR*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)+Vector3.new(.2,-.5,0)
  1816. RightS.DesiredAngle=2
  1817. LeftS.DesiredAngle=.3
  1818. RightS.MaxVelocity=.2
  1819. LeftS.MaxVelocity=.1
  1820. ss=script.DBC:clone()
  1821. ss.Pitch=.7
  1822. ss.Parent=Torso
  1823. ss:Play()
  1824. lolocaik=8
  1825. if Corrupt==true then lolocaik=4 end
  1826. for darkowns=1, lolocaik do
  1827. p=Instance.new("Part")
  1828. p.TopSurface=0
  1829. p.BottomSurface=0
  1830. p.Anchored=true
  1831. p.CanCollide=false
  1832. p.BrickColor=BrickColor.new(EColor2)
  1833. p.Size=Vector3.new(1,1,1)
  1834. p.formFactor="Symmetric"
  1835. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  1836. p.Parent=me
  1837. Instance.new("BlockMesh").Parent=p
  1838. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  1839. wait(.05)
  1840. end
  1841. coroutine.resume(coroutine.create(DoTornado),Vector3.new(0,0,0),PWN)
  1842.  
  1843. Pos=me.Torso.CFrame*CFrame.new(3,0,0)
  1844.  
  1845. for i=1,10 do
  1846. wait(.1)
  1847. nDir=(me.Torso.Position-Pos.p).unit*i*5
  1848. coroutine.resume(coroutine.create(DoTornado),nDir,PWN)
  1849. nDir=(me.Torso.Position-Pos.p).unit*i*-5
  1850. coroutine.resume(coroutine.create(DoTornado),nDir,PWN)
  1851. end
  1852.  
  1853. RightS.DesiredAngle=-1
  1854. LeftS.DesiredAngle=1
  1855. RightS.MaxVelocity=.4
  1856. LeftS.MaxVelocity=.4
  1857. ss:Stop()
  1858. ss.Parent=nil
  1859. wait(.4)
  1860. doArms(false)
  1861. end
  1862.  
  1863. DarkWave=function()
  1864. Torso=me.Torso
  1865. RA=Torso:FindFirstChild("Right Shoulder")
  1866. if RA==nil then
  1867. return
  1868. end
  1869. LA=Torso:FindFirstChild("Left Shoulder")
  1870. if LA==nil then
  1871. return
  1872. end
  1873. if Charge>=50 then
  1874. Charge=Charge-50
  1875. else
  1876. return
  1877. end
  1878. doArms(true)
  1879. OR=RA.C0
  1880. RightS.C0=OR*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)+Vector3.new(.2,-.5,0)
  1881. RightS.DesiredAngle=2
  1882. LeftS.DesiredAngle=.3
  1883. RightS.MaxVelocity=.2
  1884. LeftS.MaxVelocity=.1
  1885. ss=script.DBC:clone()
  1886. ss.Pitch=.8
  1887. ss.Parent=Torso
  1888. ss:Play()
  1889. for darkowns=1, 22 do
  1890. p=Instance.new("Part")
  1891. ss.Pitch=ss.Pitch-.02
  1892. p.TopSurface=0
  1893. p.BottomSurface=0
  1894. p.Anchored=true
  1895. p.CanCollide=false
  1896. p.BrickColor=BrickColor.new(EColor2)
  1897. p.Size=Vector3.new(1,1,1)
  1898. p.formFactor="Symmetric"
  1899. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  1900. p.Parent=me
  1901. Instance.new("BlockMesh").Parent=p
  1902. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  1903. wait(.05)
  1904. end
  1905. RightS.DesiredAngle=-1
  1906. LeftS.DesiredAngle=1
  1907. RightS.MaxVelocity=.4
  1908. LeftS.MaxVelocity=.4
  1909. ss:Stop()
  1910. ss.Parent=nil
  1911. Dir=Torso.CFrame.lookVector
  1912. coroutine.resume(coroutine.create(function(Dir)
  1913. for i=1, 20 do
  1914. p=Instance.new("Part")
  1915. p.Name="BlastRing"
  1916. p.TopSurface=0
  1917. p.BottomSurface=0
  1918. p.CanCollide=false
  1919. p.Anchored=true
  1920. p.BrickColor=BrickColor.new(EColor2)
  1921. p.Size=Vector3.new(2,2,2)
  1922. p.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,0,0)+Dir*(9*i+i)-Vector3.new(0,4,0)
  1923. p.Parent=workspace
  1924. script.BlastMesh:clone().Parent=p
  1925. p.BlastMesh.Scale=Vector3.new(2,1,2)
  1926. coroutine.resume(coroutine.create(function(par,int) for lol=1, 10 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(.5+int,.6+int,.5+int) if int==1.2 then par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(0,.9,0) end par.Transparency=lol/10 par.CFrame=par.CFrame*CFrame.new(0,.4+int/3,0) wait() end par.Parent=nil end),p,i*.1)
  1927. PWN={}
  1928. for _,v in pairs(workspace:children()) do
  1929. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  1930. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  1931. if v~=me and (v.Torso.Position-p.Position).magnitude<=7+(i) then
  1932. table.insert(PWN,v.Torso)
  1933. end
  1934. end
  1935. end
  1936. end
  1937. for _,t in pairs(PWN) do
  1938. SHAKE2(t.Parent)
  1939. t.Parent.Humanoid:TakeDamage(5)
  1940. Mag=(p.Position-t.Position).magnitude/10
  1941. t.Parent.Humanoid:TakeDamage(2)
  1942. vl=Instance.new("BodyVelocity")
  1943. vl.P=4000
  1944. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1945. vl.velocity=Vector3.new(0,math.random(45,50),0)+(t.Position-p.Position).unit*(5/Mag)+Dir*(32)
  1946. if i==12 then
  1947. vl.velocity=vl.velocity+Vector3.new(0,40,0)+(t.Position-p.Position).unit*(20/Mag)
  1948. t.Parent.Humanoid:TakeDamage(5)
  1949. SHAKE3(t.Parent)
  1950. end
  1951. vl.Parent=t
  1952. game:GetService("Debris"):AddItem(vl,.2)
  1953. rl=Instance.new("BodyAngularVelocity")
  1954. rl.P=3000
  1955. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  1956. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1957. rl.Parent=t
  1958. game:GetService("Debris"):AddItem(rl,.2)
  1959. end
  1960.  
  1961. wait(.1)
  1962. end
  1963. end),Dir)
  1964. wait(.4)
  1965. doArms(false)
  1966. end
  1967.  
  1968. GBKEYDOWN=false
  1969. DarkGBuster=function()
  1970. Torso=me.Torso
  1971. RA=Torso:FindFirstChild("Right Shoulder")
  1972. if RA==nil then
  1973. return
  1974. end
  1975. LA=Torso:FindFirstChild("Left Shoulder")
  1976. if LA==nil then
  1977. return
  1978. end
  1979. if Charge>=150 then
  1980. Charge=Charge-150
  1981. else
  1982. return
  1983. end
  1984. doArms(true)
  1985. VDIR=Torso.CFrame.lookVector
  1986. OR=RA.C0
  1987. RightS.C0=OR*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)+Vector3.new(.2,-.5,0)
  1988. RightS.DesiredAngle=2
  1989. LeftS.DesiredAngle=.3
  1990. RightS.MaxVelocity=.2
  1991. LeftS.MaxVelocity=.1
  1992. ss=script.DBC:clone()
  1993. ss.Pitch=.3
  1994. ss.Parent=Torso
  1995. ss:Play()
  1996. Torso.Neck.C0=Torso.Neck.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.pi/2)
  1997. g=Instance.new("BodyGyro")
  1998. g.P=20000
  1999. g.D=800
  2000. g.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2001. g.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  2002. g.Parent=Torso
  2003. El=15
  2004. GBKEYDOWN=true
  2005. while El<60 and GBKEYDOWN==true do
  2006. El=El+1
  2007. p=Instance.new("Part")
  2008. ss.Pitch=ss.Pitch+.006
  2009. p.TopSurface=0
  2010. p.BottomSurface=0
  2011. p.Anchored=true
  2012. p.CanCollide=false
  2013. p.BrickColor=BrickColor.new(EColor2)
  2014. p.Size=Vector3.new(1,1,1)
  2015. p.formFactor="Symmetric"
  2016. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)
  2017. p.Parent=me
  2018. Instance.new("BlockMesh").Parent=p
  2019. coroutine.resume(coroutine.create(function(par,int) for i=1, 10 do par.Transparency=i/10 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,El)
  2020. wait(.04)
  2021. end
  2022. RightS.MaxVelocity=.4
  2023. RightS.DesiredAngle=0
  2024. LeftS.DesiredAngle=1
  2025. RightS.MaxVelocity=.8
  2026. LeftS.MaxVelocity=.4
  2027. for darkowns=1, 4 do
  2028. p=Instance.new("Part")
  2029. ss.Pitch=ss.Pitch+.005
  2030. p.TopSurface=0
  2031. p.BottomSurface=0
  2032. p.Anchored=true
  2033. p.CanCollide=false
  2034. p.BrickColor=BrickColor.new(EColor2)
  2035. p.Size=Vector3.new(1,1,1)
  2036. p.formFactor="Symmetric"
  2037. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  2038. p.Parent=me
  2039. Instance.new("BlockMesh").Parent=p
  2040. coroutine.resume(coroutine.create(function(par,int) for i=1, 10 do par.Transparency=i/10 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/70,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,40)
  2041. wait(.04)
  2042. end
  2043. p=Instance.new("Part")
  2044. p.Name="BlastRing"
  2045. p.TopSurface=0
  2046. p.BottomSurface=0
  2047. p.CanCollide=false
  2048. p.Anchored=true
  2049. p.BrickColor=BrickColor.new(EColor2)
  2050. p.Size=Vector3.new(1,1,1)
  2051. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  2052. p.Parent=workspace
  2053. script.BlastMesh:clone().Parent=p
  2054. p.BlastMesh.Scale=Vector3.new(1,1,1)
  2055. coroutine.resume(coroutine.create(function(par) for lol=1, 11 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(.6,1.8,.6) par.Transparency=lol/11 par.CFrame=par.CFrame*CFrame.new(0,1,0) wait() end par.Parent=nil end),p)
  2056. r=Instance.new("Part")
  2057. r.Anchored=true
  2058. r.Name="Ring"
  2059. r.CanCollide=false
  2060. r.TopSurface=0
  2061. r.BottomSurface=0
  2062. r.CFrame=me["Right Arm"].CFrame*CFrame.new(0,3,0)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  2063. r.Parent=workspace
  2064. script.RingMesh:clone().Parent=r
  2065. r.RingMesh.Scale=Vector3.new(3,3,3)
  2066. r.BrickColor=BrickColor.new(EColor)
  2067. coroutine.resume(coroutine.create(function(par) for i=1, 15 do par.Transparency=i/15 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(1.5,1.5,.5) par.CFrame=par.CFrame*CFrame.new(0,0,.4) wait() end par.Parent=nil end),r)
  2068. bStart=Instance.new("Part")
  2069. bStart.Name="BlastStart"
  2070. bStart.TopSurface=0
  2071. bStart.BottomSurface=0
  2072. bStart.BrickColor=BrickColor.new(EColor)
  2073. bStart.formFactor="Symmetric"
  2074. bStart.Size=Vector3.new(El,El,30)
  2075. m=Instance.new("SpecialMesh")
  2076. m.MeshType="Sphere"
  2077. m.Scale=Vector3.new(1,1,1)
  2078. m.Parent=bStart
  2079. bStart.Anchored=false
  2080. bStart.CanCollide=false
  2081. bStart.CFrame=Torso.CFrame*CFrame.new(17,0,0)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  2082. pv=Instance.new("BodyPosition")
  2083. pv.P=2000
  2084. pv.D=20
  2085. pv.maxForce=Vector3.new(0,500000000000000000000000000000000000000000000000,0)
  2086. pv.position=bStart.Position
  2087. pv.Parent=bStart
  2088. bStart.Parent=workspace
  2089. b=Instance.new("Part")
  2090. b.Name="BlastStart"
  2091. b.TopSurface=0
  2092. b.BottomSurface=0
  2093. b.BrickColor=BrickColor.new(EColor)
  2094. b.formFactor="Symmetric"
  2095. b.Size=Vector3.new(El,200,El)
  2096. m=Instance.new("CylinderMesh")
  2097. m.Parent=b
  2098. b.Anchored=false
  2099. b.CanCollide=false
  2100. b.CFrame=bStart.CFrame*CFrame.new(0,0,217)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  2101. pv2=Instance.new("BodyPosition")
  2102. pv2.P=2000
  2103. pv2.D=20
  2104. pv2.maxForce=Vector3.new(0,50000000000000000000000000000000000000000000000,0)
  2105. pv2.position=b.Position
  2106. pv2.Parent=b
  2107. b.Parent=workspace
  2108. ss:Stop()
  2109. ss.Parent=nil
  2110. be=Instance.new("Part")
  2111. be.Name="BlastStart"
  2112. be.TopSurface=0
  2113. be.BottomSurface=0
  2114. be.BrickColor=BrickColor.new(EColor)
  2115. be.formFactor="Symmetric"
  2116. be.Size=Vector3.new(El,El,30)
  2117. m=Instance.new("SpecialMesh")
  2118. m.MeshType="Sphere"
  2119. m.Scale=Vector3.new(1,1,1)
  2120. m.Parent=be
  2121. be.Anchored=false
  2122. be.CanCollide=false
  2123. be.CFrame=bStart.CFrame*CFrame.new(0,0,210)
  2124. pv3=Instance.new("BodyPosition")
  2125. pv3.P=2000
  2126. pv3.D=20
  2127. pv3.maxForce=Vector3.new(0,5000000000000000000000000000000000000000,0)
  2128. pv3.position=be.Position
  2129. pv3.Parent=be
  2130. be.Parent=workspace
  2131. pv=Instance.new("BodyPosition")
  2132. pv.P=2000
  2133. pv.D=20
  2134. pv.maxForce=Vector3.new(0,5000000000000000,0)
  2135. pv.position=bStart.Position
  2136. pv.Parent=bStart
  2137. bStart.Parent=workspace
  2138. PUSH=Instance.new("BodyVelocity")
  2139. PUSH.maxForce=Vector3.new(math.huge,0,math.huge)
  2140. PUSH.velocity=-VDIR*(El/5)
  2141. PUSH.Parent=Torso
  2142. for s=1, 4 do
  2143. script["GB"..tostring(s)]:Play()
  2144. end
  2145. coroutine.resume(coroutine.create(function()
  2146. for i=1, 50 do
  2147. bStart.CFrame=Torso.CFrame*CFrame.new(17,0,0)*CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  2148. bStart.CFrame=bStart.CFrame*CFrame.new(math.random(-30,30)/40,math.random(-30,30)/40,0)
  2149. b.CFrame=bStart.CFrame*CFrame.new(0,0,100)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  2150. be.CFrame=bStart.CFrame*CFrame.new(0,0,200)
  2151. pv.position=bStart.Position
  2152. pv2.position=b.Position
  2153. pv3.position=be.Position
  2154. wait()
  2155. end
  2156. end))
  2157. for i=1, 4 do
  2158. wait(.15)
  2159. p=Instance.new("Part")
  2160. p.Name="BlastRing"
  2161. p.TopSurface=0
  2162. p.BottomSurface=0
  2163. p.CanCollide=false
  2164. p.Anchored=true
  2165. p.BrickColor=BrickColor.new(EColor2)
  2166. p.Size=Vector3.new(1,1,1)
  2167. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-3,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  2168. p.Parent=workspace
  2169. script.BlastMesh:clone().Parent=p
  2170. p.BlastMesh.Scale=Vector3.new(1,1,1)
  2171. coroutine.resume(coroutine.create(function(par) for lol=1, 11 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(1,.8,1) par.Transparency=lol/11 par.CFrame=par.CFrame*CFrame.new(0,.7,0) wait() end par.Parent=nil end),p)
  2172. r=Instance.new("Part")
  2173. r.Anchored=true
  2174. r.Name="Ring"
  2175. r.CanCollide=false
  2176. r.TopSurface=0
  2177. r.BottomSurface=0
  2178. r.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-i,0)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  2179. r.Parent=workspace
  2180. script.RingMesh:clone().Parent=r
  2181. r.RingMesh.Scale=Vector3.new(3,3,3)
  2182. r.BrickColor=BrickColor.new(EColor)
  2183. coroutine.resume(coroutine.create(function(par) for i=1, 11 do par.Transparency=i/11 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(1,1,.25) par.CFrame=par.CFrame*CFrame.new(0,0,-.4) wait() end par.Parent=nil end),r)
  2184. pv.position=bStart.Position
  2185. pv2.position=b.Position
  2186. connector=Instance.new("Part")
  2187. connector.Name="HITSPACE"
  2188. connector.formFactor="Symmetric"
  2189. connector.Size=Vector3.new(El/2,130,5)
  2190. connector.CanCollide=false
  2191. connector.CFrame=b.CFrame-Vector3.new(0,7.5,0)
  2192. push=Instance.new("BodyPosition")
  2193. push.P=3000
  2194. push.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2195. push.position=connector.Position+Vector3.new(0,15,0)
  2196. push.Parent=connector
  2197. connector.Transparency=1
  2198. connector.Parent=workspace
  2199. connector.Touched:connect(function(hit) GBConnect(hit,VDIR) end)
  2200. game:GetService("Debris"):AddItem(connector,1)
  2201. connector=Instance.new("Part")
  2202. connector.Name="HITSPACE"
  2203. connector.formFactor="Symmetric"
  2204. connector.Size=Vector3.new(El/2,211,1)
  2205. connector.CanCollide=false
  2206. connector.CFrame=b.CFrame+Vector3.new(0,5,0)
  2207. connector.Transparency=1
  2208. connector.Parent=workspace
  2209. connector.Touched:connect(function(hit) GBConnect(hit,VDIR) end)
  2210. game:GetService("Debris"):AddItem(connector,1)
  2211. connector=Instance.new("Part")
  2212. connector.Name="HITSPACE"
  2213. connector.formFactor="Symmetric"
  2214. connector.Size=Vector3.new(El/2,El/2,1)
  2215. connector.CanCollide=false
  2216. connector.CFrame=bStart.CFrame
  2217. connector.Transparency=1
  2218. connector.Parent=workspace
  2219. connector.Touched:connect(function(hit) GBConnect(hit,VDIR) end)
  2220. v=Instance.new("BodyVelocity")
  2221. v.P=2000
  2222. v.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2223. v.velocity=VDIR*400
  2224. v.Parent=connector
  2225. game:GetService("Debris"):AddItem(connector,.7)
  2226. end
  2227. for i=1, 7 do
  2228. wait(.15)
  2229. p=Instance.new("Part")
  2230. p.Name="BlastRing"
  2231. p.TopSurface=0
  2232. p.BottomSurface=0
  2233. p.CanCollide=false
  2234. p.Anchored=true
  2235. p.BrickColor=BrickColor.new(EColor2)
  2236. p.Size=Vector3.new(1,1,1)
  2237. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-3,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  2238. p.Parent=workspace
  2239. script.BlastMesh:clone().Parent=p
  2240. p.BlastMesh.Scale=Vector3.new(1,1,1)
  2241. coroutine.resume(coroutine.create(function(par) for lol=1, 11 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(1,.8,1) par.Transparency=lol/11 par.CFrame=par.CFrame*CFrame.new(0,.7,0) wait() end par.Parent=nil end),p)
  2242. connector=Instance.new("Part")
  2243. connector.Name="HITSPACE"
  2244. connector.formFactor="Symmetric"
  2245. connector.Size=Vector3.new(El/2,211,5)
  2246. connector.CanCollide=false
  2247. connector.CFrame=b.CFrame-Vector3.new(0,5,0)
  2248. push=Instance.new("BodyPosition")
  2249. push.P=5000
  2250. push.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2251. push.position=connector.Position+Vector3.new(0,15,0)
  2252. push.Parent=connector
  2253. connector.Transparency=1
  2254. connector.Parent=workspace
  2255. connector.Touched:connect(function(hit) GBConnect(hit,VDIR) end)
  2256. game:GetService("Debris"):AddItem(connector,.5)
  2257. connector=Instance.new("Part")
  2258. connector.Name="HITSPACE"
  2259. connector.formFactor="Symmetric"
  2260. connector.Size=Vector3.new(El/2,211,8)
  2261. connector.CanCollide=false
  2262. connector.CFrame=b.CFrame+Vector3.new(0,7.5,0)
  2263. connector.Transparency=1
  2264. connector.Parent=workspace
  2265. connector.Touched:connect(function(hit) GBConnect(hit,VDIR) end)
  2266. game:GetService("Debris"):AddItem(connector,1)
  2267. connector=Instance.new("Part")
  2268. connector.Name="HITSPACE"
  2269. connector.formFactor="Symmetric"
  2270. connector.Size=Vector3.new(El/2,El/2,1)
  2271. connector.CanCollide=false
  2272. connector.CFrame=bStart.CFrame
  2273. connector.Transparency=1
  2274. connector.Parent=workspace
  2275. connector.Touched:connect(function(hit) GBConnect(hit,VDIR) end)
  2276. v=Instance.new("BodyVelocity")
  2277. v.P=2000
  2278. v.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2279. v.velocity=VDIR*300
  2280. v.Parent=connector
  2281. game:GetService("Debris"):AddItem(connector,.7)
  2282. end
  2283. bStart.Parent=nil
  2284. b.Parent=nil
  2285. be.Parent=nil
  2286. PUSH.Parent=nil
  2287. RightS.DesiredAngle=2
  2288. RightS.MaxVelocity=.6
  2289. wait(1)
  2290. LeftS.DesiredAngle=0
  2291. LeftS.MaxVelocity=.4
  2292. for i=1, 10 do
  2293. wait()
  2294. Torso.Neck.C0=Torso.Neck.C0*CFrame.fromEulerAnglesXYZ(0,0,math.pi/20)
  2295. end
  2296. g.Parent=nil
  2297. doArms(false)
  2298. end
  2299.  
  2300.  
  2301. DarkCurse=function()
  2302. Torso=me.Torso
  2303. RA=Torso:FindFirstChild("Right Shoulder")
  2304. if RA==nil then
  2305. return
  2306. end
  2307. LA=Torso:FindFirstChild("Left Shoulder")
  2308. if LA==nil then
  2309. return
  2310. end
  2311. if Charge>=50 then
  2312. Charge=Charge-50
  2313. else
  2314. return
  2315. end
  2316. doArms(true)
  2317. VDIR=Torso.CFrame.lookVector
  2318. OR=RA.C0
  2319. RightS.DesiredAngle=-.9
  2320. LeftS.DesiredAngle=-.3
  2321. RightS.MaxVelocity=.3
  2322. LeftS.MaxVelocity=.1
  2323. ss=script.DBC:clone()
  2324. ss.Pitch=.3
  2325. ss.Parent=Torso
  2326. ss:Play()
  2327. for darkowns=1, 15 do
  2328. p=Instance.new("Part")
  2329. ss.Pitch=ss.Pitch+.007
  2330. p.TopSurface=0
  2331. p.BottomSurface=0
  2332. p.Anchored=true
  2333. p.CanCollide=false
  2334. p.BrickColor=BrickColor.new(EColor2)
  2335. p.Size=Vector3.new(1,1,1)
  2336. p.formFactor="Symmetric"
  2337. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  2338. p.Parent=me
  2339. Instance.new("BlockMesh").Parent=p
  2340. coroutine.resume(coroutine.create(function(par,int) for i=1, 10 do par.Transparency=i/10 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/70,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns/2)
  2341. wait(.04)
  2342. end
  2343. RightS.DesiredAngle=1.6
  2344. for darkowns=1, 17 do
  2345. p=Instance.new("Part")
  2346. ss.Pitch=ss.Pitch+.003
  2347. p.TopSurface=0
  2348. p.BottomSurface=0
  2349. p.Anchored=true
  2350. p.CanCollide=false
  2351. p.BrickColor=BrickColor.new(EColor2)
  2352. p.Size=Vector3.new(1,1,1)
  2353. p.formFactor="Symmetric"
  2354. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  2355. p.Parent=me
  2356. Instance.new("BlockMesh").Parent=p
  2357. coroutine.resume(coroutine.create(function(par,int) for i=1, 10 do par.Transparency=i/10 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/70,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns/5+7.5)
  2358. wait(.04)
  2359. end
  2360. ss:Stop()
  2361. ss.Parent=nil
  2362. ss=script.DBExplode:clone()
  2363. ss.Parent=Torso
  2364. ss.Pitch=1
  2365. ss:Play()
  2366. game:GetService("Debris"):AddItem(ss,2)
  2367. LeftS.DesiredAngle=.3
  2368. coroutine.resume(coroutine.create(DCCO2),p,1)
  2369. coroutine.resume(coroutine.create(DCCO3),p,3)
  2370. md=12
  2371. if Corrupt==true then md=17 end
  2372. PWN={}
  2373. for _,v in pairs(workspace:children()) do
  2374. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  2375. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  2376. if v~=me and (v.Torso.Position-p.Position).magnitude<=md then
  2377. table.insert(PWN,v.Torso)
  2378. end
  2379. end
  2380. end
  2381. end
  2382. for _,t in pairs(PWN) do
  2383. SHAKE3(t.Parent)
  2384. Num=0
  2385. for __,vv in pairs(t.Parent:children()) do
  2386. if vv.Name=="DC" then
  2387. Num=Num+1
  2388. end
  2389. end
  2390. ss=script.Curse:clone()
  2391. ss.Parent=t
  2392. game:GetService("Debris"):AddItem(ss,2)
  2393. if Num<=1 then
  2394. s=script.DC:clone()
  2395. s.Disabled=false
  2396. s.Parent=t.Parent
  2397. rl=Instance.new("BodyAngularVelocity")
  2398. rl.P=3000
  2399. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  2400. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/5
  2401. rl.Parent=t
  2402. game:GetService("Debris"):AddItem(rl,.1)
  2403. ss.Pitch=.5
  2404. ss:Play()
  2405. else
  2406. ss.Pitch=.37
  2407. ss:Play()
  2408. t.Parent.Humanoid:TakeDamage(8)
  2409. rl=Instance.new("BodyAngularVelocity")
  2410. rl.P=3000
  2411. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  2412. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))*2
  2413. rl.Parent=t
  2414. game:GetService("Debris"):AddItem(rl,.1)
  2415. end
  2416. if Corrupt==true then
  2417. t.Parent.Humanoid:TakeDamage(16)
  2418. rl=Instance.new("BodyAngularVelocity")
  2419. rl.P=3000
  2420. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  2421. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))*2
  2422. rl.Parent=t
  2423. game:GetService("Debris"):AddItem(rl,.1)
  2424. end
  2425. end
  2426. wait(.5)
  2427. doArms(false)
  2428. end
  2429.  
  2430. DarkRiftF=function(par)
  2431. coroutine.resume(coroutine.create(DCCO2),par,250)
  2432. coroutine.resume(coroutine.create(DCCO3),par,250)
  2433. if Corrupt==true then s=script.projPuller:clone() s.Disabled=false s.Parent=par end
  2434. for timelapse=1, 120 do
  2435. PWN={}
  2436. for _,v in pairs(workspace:children()) do
  2437. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  2438. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  2439. if v~=me and (v.Torso.Position-par.Position).magnitude<=25 then
  2440. table.insert(PWN,v.Torso)
  2441. end
  2442. end
  2443. end
  2444. end
  2445. for _,t in pairs(PWN) do
  2446. Mag=(par.Position-t.Position).magnitude/2
  2447. t.Parent.Humanoid:TakeDamage(.6)
  2448. rl=Instance.new("BodyAngularVelocity")
  2449. rl.P=3000
  2450. rl.maxTorque=Vector3.new(500000,500000,500000)*5000
  2451. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10
  2452. rl.Parent=t
  2453. game:GetService("Debris"):AddItem(rl,.1)
  2454. if Mag<=2 then
  2455. t.Parent.Humanoid.Health=t.Parent.Humanoid.Health-.3
  2456. SHAKE3(t.Parent)
  2457. else
  2458. vl=Instance.new("BodyVelocity")
  2459. vl.P=3000
  2460. vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
  2461. vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
  2462. vl.Parent=t
  2463. game:GetService("Debris"):AddItem(vl,.1)
  2464. end
  2465. end
  2466. wait(.08)
  2467. end
  2468. par.Parent=nil
  2469. end
  2470.  
  2471. DarkRift=function()
  2472. Torso=me.Torso
  2473. RA=Torso:FindFirstChild("Right Shoulder")
  2474. if RA==nil then
  2475. return
  2476. end
  2477. LA=Torso:FindFirstChild("Left Shoulder")
  2478. if LA==nil then
  2479. return
  2480. end
  2481. if Charge>=100 then
  2482. Charge=Charge-100
  2483. else
  2484. return
  2485. end
  2486. doArms(true)
  2487. OR=RA.C0
  2488. RightS.DesiredAngle=-.9
  2489. LeftS.DesiredAngle=-.3
  2490. RightS.MaxVelocity=.3
  2491. LeftS.MaxVelocity=.1
  2492. ss=script.DBC:clone()
  2493. ss.Pitch=.3
  2494. ss.Parent=Torso
  2495. ss:Play()
  2496. for darkowns=1, 5 do
  2497. p=Instance.new("Part")
  2498. ss.Pitch=ss.Pitch+.003
  2499. p.TopSurface=0
  2500. p.BottomSurface=0
  2501. p.Anchored=true
  2502. p.CanCollide=false
  2503. p.BrickColor=BrickColor.new(EColor2)
  2504. p.Size=Vector3.new(1,1,1)
  2505. p.formFactor="Symmetric"
  2506. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  2507. p.Parent=me
  2508. Instance.new("BlockMesh").Parent=p
  2509. coroutine.resume(coroutine.create(function(par,int) for i=1, 10 do par.Transparency=i/10 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/70,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns/2)
  2510. wait(.04)
  2511. end
  2512. RightS.DesiredAngle=1.6
  2513. for darkowns=1, 12 do
  2514. p=Instance.new("Part")
  2515. ss.Pitch=ss.Pitch+.002
  2516. p.TopSurface=0
  2517. p.BottomSurface=0
  2518. p.Anchored=true
  2519. p.CanCollide=false
  2520. p.BrickColor=BrickColor.new(EColor2)
  2521. p.Size=Vector3.new(1,1,1)
  2522. p.formFactor="Symmetric"
  2523. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/7.5)
  2524. p.Parent=me
  2525. Instance.new("BlockMesh").Parent=p
  2526. coroutine.resume(coroutine.create(function(par,int) for i=1, 10 do par.Transparency=i/10 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/70,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns/5+7.5)
  2527. wait(.04)
  2528. end
  2529. ss:Stop()
  2530. ss:Remove()
  2531. l=Instance.new("Part")
  2532. l.Name="Rift"
  2533. l.Transparency=0
  2534. l.Anchored=true
  2535. l.CanCollide=false
  2536. l.Size=Vector3.new(1,1,1)
  2537. l.CFrame=p.CFrame
  2538. l.Parent=workspace
  2539. coroutine.resume(coroutine.create(DarkRiftF),l)
  2540. s=script.GB4:clone()
  2541. s.Pitch=.5
  2542. s.Parent=l
  2543. s:Play()
  2544. wait(.5)
  2545. RightS.DesiredAngle=0
  2546. wait(.2)
  2547. doArms(false)
  2548. wait(.5)
  2549. end
  2550.  
  2551. DarkSUMMONWEEGEEXD=function(hit)
  2552. if hit==nil then
  2553. return
  2554. end
  2555. h=hit.Parent:FindFirstChild("Humanoid")
  2556. if h~=nil then
  2557. vv=game.Players:GetPlayerFromCharacter(hit.Parent)
  2558. if vv~=nil then
  2559. PLGUI=vv.PlayerGui
  2560. m=Instance.new("Message")
  2561. m.Text=PLGUI.Name
  2562. m.Parent=workspace
  2563. wait(1)
  2564. m.Parent=nil
  2565. S=script.OWNAGEgui:clone()
  2566. S.Parent=PLGUI
  2567. if Charge>=70 then
  2568. Charge=Charge-70
  2569. else
  2570. return
  2571. end
  2572. S.Script.Disabled=false
  2573. end
  2574. end
  2575. end
  2576.  
  2577. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  2578. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  2579. --------------------MegamanBlue only----------------------------------------------------------------------------------------------------------------------------------
  2580.  
  2581. DarkPunch=function()
  2582. Torso=me.Torso
  2583. RA=Torso:FindFirstChild("Right Shoulder")
  2584. if RA==nil then
  2585. return
  2586. end
  2587. LA=Torso:FindFirstChild("Left Shoulder")
  2588. if LA==nil then
  2589. return
  2590. end
  2591. if Charge>=40 then
  2592. Charge=Charge-40
  2593. else
  2594. return
  2595. end
  2596. doArms(true)
  2597. RightS.MaxVelocity=.3
  2598. LeftS.MaxVelocity=.2
  2599. RightS.DesiredAngle=-1.5
  2600. LeftS.DesiredAngle=-.6
  2601.  
  2602. for darkowns=1, 6 do
  2603. p=Instance.new("Part")
  2604. p.TopSurface=0
  2605. p.BottomSurface=0
  2606. p.Anchored=true
  2607. p.CanCollide=false
  2608. p.BrickColor=BrickColor.new(EColor2)
  2609. p.Size=Vector3.new(1,1,1)
  2610. p.formFactor="Symmetric"
  2611. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  2612. p.Parent=me
  2613. Instance.new("BlockMesh").Parent=p
  2614. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  2615. wait(.05)
  2616. end
  2617.  
  2618. RightS.MaxVelocity=1
  2619. LeftS.MaxVelocity=.4
  2620. RightS.DesiredAngle=1.6
  2621. LeftS.DesiredAngle=1.2
  2622. v=Instance.new("BodyVelocity")
  2623. v.P=6000
  2624. v.maxForce=Vector3.new(math.huge,5000000000,math.huge)
  2625. v.velocity=Torso.CFrame.lookVector*60
  2626. v.Parent=Torso
  2627. print(v)
  2628. g=Instance.new("BodyGyro")
  2629. g.P=3000
  2630. g.maxTorque=Vector3.new(50000,50000,50000)*50000
  2631. g.cframe=Torso.CFrame
  2632. g.Parent=Torso
  2633. if Corrupt==true then v.velocity=Torso.CFrame.lookVector*120 end
  2634.  
  2635. sa=Instance.new("Part")
  2636. sa.Name="StrikeArea"
  2637. sa.TopSurface=0
  2638. sa.BottomSurface=0
  2639. sa.CFrame=Torso.Parent.Head.CFrame
  2640. sa.formFactor="Symmetric"
  2641. sa.Transparency=1
  2642. sa.CanCollide=false
  2643. sa.Size=Vector3.new(2,1,2)
  2644. sa.Parent=me
  2645. w=Instance.new("Weld")
  2646. w.Part0=me["Right Arm"]
  2647. w.Part1=sa
  2648. w.Parent=sa
  2649. w.C0=CFrame.new(0,-1.5,0)
  2650. PAWNSH=sa.Touched:connect(PunchHit)
  2651.  
  2652. p=Instance.new("Part")
  2653. p.Name="BlastRing"
  2654. p.TopSurface=0
  2655. p.BottomSurface=0
  2656. p.CanCollide=false
  2657. p.Anchored=true
  2658. p.BrickColor=BrickColor.new(EColor2)
  2659. p.Size=Vector3.new(1,1,1)
  2660. p.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)+Torso.CFrame.lookVector*-2
  2661. p.Parent=workspace
  2662. script.BlastMesh:clone().Parent=p
  2663. p.BlastMesh.Scale=Vector3.new(1,1,1)
  2664. coroutine.resume(coroutine.create(function(par) for lol=1, 9 do par.BlastMesh.Scale=par.BlastMesh.Scale+Vector3.new(.8,.8,.6) par.Transparency=lol/9 par.CFrame=par.CFrame*CFrame.new(0,.2,0) wait() end par.Parent=nil end),p)
  2665.  
  2666. wait(.2)
  2667. sa.Parent=nil
  2668. v.Parent=nil
  2669. wait(.5)
  2670. RightS.DesiredAngle=0
  2671. LeftS.DesiredAngle=0
  2672. wait(.5)
  2673. g.Parent=nil
  2674. doArms(false)
  2675. end
  2676. DarkBomb=function()
  2677. Torso=me.Torso
  2678. RA=Torso:FindFirstChild("Right Shoulder")
  2679. if RA==nil then
  2680. return
  2681. end
  2682. LA=Torso:FindFirstChild("Left Shoulder")
  2683. if LA==nil then
  2684. return
  2685. end
  2686. if Charge>=100 then
  2687. Charge=Charge-100
  2688. else
  2689. return
  2690. end
  2691. doArms(true)
  2692. OR=RA.C0
  2693. OL=LA.C0
  2694. RightS.C0=OR*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)+Vector3.new(.2,-.5,0)
  2695. LeftS.C0=OL*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)+Vector3.new(-.2,-.5,0)
  2696. RightS.DesiredAngle=2
  2697. LeftS.DesiredAngle=-2
  2698. RightS.MaxVelocity=.2
  2699. LeftS.MaxVelocity=.2
  2700. Torso.Neck.C0=Torso.Neck.C0*CFrame.fromEulerAnglesXYZ(math.pi/9,0,0)
  2701. s=script.DBC:clone()
  2702. s.Parent=Torso
  2703. s:Play()
  2704. for darkowns=1, 25 do
  2705. p=Instance.new("Part")
  2706. p.TopSurface=0
  2707. p.BottomSurface=0
  2708. p.Anchored=true
  2709. p.CanCollide=false
  2710. p.BrickColor=BrickColor.new(EColor2)
  2711. p.Size=Vector3.new(1,1,1)
  2712. p.formFactor="Symmetric"
  2713. p.CFrame=me["Right Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  2714. p.Parent=me
  2715. Instance.new("BlockMesh").Parent=p
  2716. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  2717. p=Instance.new("Part")
  2718. p.TopSurface=0
  2719. p.BottomSurface=0
  2720. p.Anchored=true
  2721. p.CanCollide=false
  2722. p.BrickColor=BrickColor.new(EColor2)
  2723. p.Size=Vector3.new(1,1,1)
  2724. p.formFactor="Symmetric"
  2725. p.CFrame=me["Left Arm"].CFrame*CFrame.new(0,-1.5,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20)+Torso.CFrame.lookVector*(darkowns/12)
  2726. p.Parent=me
  2727. Instance.new("BlockMesh").Parent=p
  2728. coroutine.resume(coroutine.create(function(par,int) for i=1, 13 do par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.05+int*.025,.05+int*.025,.05+int*.025) par.CFrame=par.CFrame*CFrame.new(0,math.random(0,10)/50,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10)/20,math.random(-10,10)/20,math.random(-10,10)/20) wait() end par.Parent=nil end),p,darkowns)
  2729. wait(.05)
  2730. end
  2731. RightS.DesiredAngle=-1
  2732. LeftS.DesiredAngle=1
  2733. RightS.MaxVelocity=.4
  2734. LeftS.MaxVelocity=.4
  2735. s.Parent=nil
  2736. Torso.Neck.C0=Torso.Neck.C0*CFrame.fromEulerAnglesXYZ(-math.pi/9,0,0)
  2737.  
  2738. Dir=Torso.CFrame.lookVector
  2739. Vel=Dir*100
  2740. if Corrupt==true then Vel=Dir*150 end
  2741.  
  2742. bomb=Instance.new("Part")
  2743. bomb.Name="DarkBlast"
  2744. bomb.Transparency=1
  2745. bomb.TopSurface=0
  2746. bomb.BottomSurface=0
  2747. bomb.Anchored=false
  2748. bomb.CanCollide=false
  2749. bomb.Size=Vector3.new(7,1,7)
  2750. bomb.formFactor="Symmetric"
  2751. bomb.CFrame=CFrame.new(Torso.CFrame.p+Vector3.new(0,1,0)+Dir*6,Torso.Position+Dir*50)*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)
  2752. bomb.Parent=workspace
  2753. DBCon=bomb.Touched:connect(function(hit) DBHit(hit,bomb) end)
  2754. v=Instance.new("BodyVelocity")
  2755. v.P=3000
  2756. v.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2757. v.velocity=Vel
  2758. v.Parent=bomb
  2759. s=script.Abscond:clone()
  2760. s.Pitch=.6
  2761. s.Parent=bomb
  2762. s:Play()
  2763. coroutine.resume(coroutine.create(DCCO1),bomb,10)
  2764. coroutine.resume(coroutine.create(DCCO2),bomb,20)
  2765. for loopwait=1, 20 do
  2766. if bomb.Parent==nil then
  2767. return doArms(false)
  2768. end
  2769. wait(.025)
  2770. end
  2771. DBCon:disconnect()
  2772. DBExplode(bomb)
  2773. doArms(false)
  2774. end
  2775. DarkBoostStrike=function()
  2776. if Charge>=80 then
  2777. Charge=Charge-80
  2778. else
  2779. return
  2780. end
  2781. script.Defile:Play()
  2782. Contact=false
  2783. Torso=me.Torso
  2784. coroutine.resume(coroutine.create(DCCO1),Torso,5)
  2785. coroutine.resume(coroutine.create(DCCO2),Torso,10)
  2786. sa=Instance.new("Part")
  2787. sa.Name="StrikeArea"
  2788. sa.TopSurface=0
  2789. sa.BottomSurface=0
  2790. sa.CFrame=Torso.Parent.Head.CFrame
  2791. sa.formFactor="Symmetric"
  2792. sa.Transparency=1
  2793. sa.CanCollide=false
  2794. sa.Size=Vector3.new(8,1,8)
  2795. sa.Parent=me
  2796. w=Instance.new("Weld")
  2797. w.Part0=me.Torso
  2798. w.Part1=sa
  2799. w.Parent=sa
  2800. w.C0=CFrame.new(0,3,0)
  2801. Dir=Torso.CFrame.lookVector
  2802. Vel=Dir*150
  2803. if Corrupt==true then Vel=Dir*200 end
  2804. uv=Instance.new("BodyVelocity")
  2805. uv.P=4000
  2806. uv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2807. uv.velocity=Vel
  2808. uv.Parent=Torso
  2809. g=Instance.new("BodyGyro")
  2810. g.P=4500
  2811. g.D=500
  2812. g.maxTorque=Vector3.new(5000000,5000000,5000000)*5000000000000000
  2813. g.cframe=Torso.CFrame*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)
  2814. g.Parent=Torso
  2815. ContactF=sa.Touched:connect(function(hit) DCContact(hit,Torso) end)
  2816. coroutine.resume(coroutine.create(DCCO3),Torso,10)
  2817. for waitloop=1, 10 do
  2818. wait(.025)
  2819. end
  2820. if Contact==false or Charge<35 then
  2821. ContactF:disconnect()
  2822. uv.velocity=uv.velocity/10
  2823. wait()
  2824. uv.Parent=nil
  2825. g.Parent=nil
  2826. else
  2827. Charge=Charge-35
  2828. print("GOING ON!")
  2829. coroutine.resume(coroutine.create(DCCO1),Torso,5)
  2830. coroutine.resume(coroutine.create(DCCO2),Torso,10)
  2831. coroutine.resume(coroutine.create(DCCO3),Torso,10)
  2832. Contact=false
  2833. for rise=1, 20 do
  2834. uv.velocity=Dir*(100-(rise*3))+Vector3.new(0,(rise/4)*rise,0)
  2835. g.cframe=CFrame.new(Vector3.new(0,0,0),Torso.Velocity.unit)*CFrame.fromEulerAnglesXYZ(-math.pi/2,math.pi/10*rise,0)
  2836. wait(.25/10)
  2837. end
  2838. if Contact==false or Charge<35 then
  2839. print("DONE")
  2840. ContactF:disconnect()
  2841. uv.velocity=uv.velocity/10
  2842. wait()
  2843. uv.Parent=nil
  2844. g.Parent=nil
  2845. else
  2846. print("CONTINUE!")
  2847. ContactF:disconnect()
  2848. w.C0=CFrame.new(0,-3.5,0)
  2849. nCont=sa.Touched:connect(Land)
  2850. Contact=false
  2851. uv.P=0
  2852. doRing=false
  2853. while true do
  2854. if Torso.Velocity.y<=-10 and doRing==false then
  2855. doRing=true
  2856. coroutine.resume(coroutine.create(DCCO1),Torso,5)
  2857. coroutine.resume(coroutine.create(DCCO2),Torso,10)
  2858. end
  2859. if Contact==true then
  2860. break
  2861. end
  2862. g.cframe=CFrame.new(Vector3.new(0,0,0),Torso.Velocity.unit)*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  2863. wait()
  2864. end
  2865. Charge=Charge-35
  2866. uv.P=3000
  2867. uv.velocity=Vector3.new(0,0,0)
  2868. wait()
  2869. uv.Parent=nil
  2870. g.Parent=nil
  2871. end
  2872. end
  2873. sa.Parent=nil
  2874. end
  2875. HPHeal=function(part)
  2876. if part==nil then
  2877. return
  2878. end
  2879. h=part.Parent:FindFirstChild("Humanoid")
  2880. if h~=nil then
  2881. if h.Health<0 then
  2882. return
  2883. end
  2884. Torso=h.Parent:FindFirstChild("Torso")
  2885. if Torso~=nil then
  2886. if (Torso.Position-me.Torso.Position).magnitude>=20 then
  2887. return
  2888. end
  2889. if Charge>=20 then
  2890. Charge=Charge-20
  2891. else
  2892. return
  2893. end
  2894. s=script.Imbue:clone()
  2895. s.Pitch=1.2
  2896. s.Parent=Torso
  2897. s:Play()
  2898. game:GetService("Debris"):AddItem(s,2)
  2899. s=script.Imbue:clone()
  2900. s.Pitch=.8
  2901. s.Parent=me.Torso
  2902. s:Play()
  2903. game:GetService("Debris"):AddItem(s,2)
  2904. for i=1, 18 do
  2905. e=Instance.new("Part")
  2906. e.TopSurface=0
  2907. e.BottomSurface=0
  2908. e.CanCollide=false
  2909. e.formFactor="Plate"
  2910. e.Size=Vector3.new(1,.4,1)
  2911. e.CFrame=CFrame.new(part.Parent.Torso.CFrame.p+Vector3.new(math.cos(i)*5,0,math.sin(i)*5)+Vector3.new(0,6.4,0),part.Parent.Torso.CFrame.p+Vector3.new(0,6.4,0))
  2912. e.Name="Effect"
  2913. e.BrickColor=BrickColor.new(EColor2)
  2914. f=Instance.new("BodyVelocity")
  2915. f.P=500
  2916. f.maxForce=Vector3.new(0,math.huge,0)
  2917. f.velocity=Vector3.new(0,-20,0)
  2918. f.Parent=e
  2919. e.Parent=part.Parent
  2920. coroutine.resume(coroutine.create(function(par) for i=1, 30 do par.Transparency=i/30 wait() end par.Parent=nil end),e)
  2921. e=Instance.new("Part")
  2922. e.TopSurface=0
  2923. e.BottomSurface=0
  2924. e.CanCollide=false
  2925. e.formFactor="Plate"
  2926. e.Size=Vector3.new(1,.4,1)
  2927. e.CFrame=CFrame.new(me.Torso.CFrame.p+Vector3.new(-math.cos(i)*5,0,-math.sin(i)*5)-Vector3.new(0,3.2,0),me.Torso.CFrame.p-Vector3.new(0,3.2,0))
  2928. e.Name="Effect"
  2929. e.BrickColor=BrickColor.new(EColor2)
  2930. f=Instance.new("BodyVelocity")
  2931. f.P=500
  2932. f.maxForce=Vector3.new(0,math.huge,0)
  2933. f.velocity=Vector3.new(0,20,0)
  2934. f.Parent=e
  2935. e.Parent=part.Parent
  2936. coroutine.resume(coroutine.create(function(par) for i=1, 30 do par.Transparency=i/30 wait() end par.Parent=nil end),e)
  2937. part.Parent.Humanoid.Health=part.Parent.Humanoid.Health-10
  2938. me.Humanoid.Health=me.Humanoid.Health+1000
  2939. wait(.1)
  2940. end
  2941. end
  2942. end
  2943. end
  2944. HPSteal=function(part)
  2945. if part==nil then
  2946. return
  2947. end
  2948. h=part.Parent:FindFirstChild("Humanoid")
  2949. if h~=nil then
  2950. if h.Health<0 then
  2951. return
  2952. end
  2953. Torso=h.Parent:FindFirstChild("Torso")
  2954. if Torso~=nil then
  2955. if (Torso.Position-me.Torso.Position).magnitude>=40 then
  2956. return
  2957. end
  2958. if Charge>=60 then
  2959. Charge=Charge-60
  2960. else
  2961. return
  2962. end
  2963. s=script.Imbue:clone()
  2964. s.Pitch=.8
  2965. s.Parent=Torso
  2966. s:Play()
  2967. game:GetService("Debris"):AddItem(s,2)
  2968. s=script.Imbue:clone()
  2969. s.Pitch=1.2
  2970. s.Parent=me.Torso
  2971. s:Play()
  2972. game:GetService("Debris"):AddItem(s,2)
  2973. for i=1, 18 do
  2974. e=Instance.new("Part")
  2975. e.TopSurface=0
  2976. e.BottomSurface=0
  2977. e.CanCollide=false
  2978. e.formFactor="Plate"
  2979. e.Size=Vector3.new(1,.4,1)
  2980. e.CFrame=CFrame.new(part.Parent.Torso.CFrame.p+Vector3.new(math.cos(i)*5,0,math.sin(i)*5)-Vector3.new(0,3.2,0),part.Parent.Torso.CFrame.p-Vector3.new(0,3.2,0))
  2981. e.Name="Effect"
  2982. e.BrickColor=BrickColor.new(EColor2)
  2983. f=Instance.new("BodyVelocity")
  2984. f.P=500
  2985. f.maxForce=Vector3.new(0,math.huge,0)
  2986. f.velocity=Vector3.new(0,20,0)
  2987. f.Parent=e
  2988. e.Parent=part.Parent
  2989. coroutine.resume(coroutine.create(function(par) for i=1, 30 do par.Transparency=i/30 wait() end par.Parent=nil end),e)
  2990. e=Instance.new("Part")
  2991. e.TopSurface=0
  2992. e.BottomSurface=0
  2993. e.CanCollide=false
  2994. e.formFactor="Plate"
  2995. e.Size=Vector3.new(1,.4,1)
  2996. e.CFrame=CFrame.new(me.Torso.CFrame.p+Vector3.new(-math.cos(i)*5,0,-math.sin(i)*5)+Vector3.new(0,6.4,0),me.Torso.CFrame.p+Vector3.new(0,6.4,0))
  2997. e.Name="Effect"
  2998. e.BrickColor=BrickColor.new(EColor2)
  2999. f=Instance.new("BodyVelocity")
  3000. f.P=500
  3001. f.maxForce=Vector3.new(0,math.huge,0)
  3002. f.velocity=Vector3.new(0,-20,0)
  3003. f.Parent=e
  3004. e.Parent=part.Parent
  3005. coroutine.resume(coroutine.create(function(par) for i=1, 30 do par.Transparency=i/30 wait() end par.Parent=nil end),e)
  3006. part.Parent.Humanoid.Health=part.Parent.Humanoid.Health-2
  3007. me.Humanoid.Health=me.Humanoid.Health+2
  3008. wait(.1)
  3009. end
  3010. end
  3011. end
  3012. end
  3013. DarkDoubleJump=function()
  3014. Torso=me:FindFirstChild("Torso")
  3015. if Charge>=5 then
  3016. Charge=Charge-5
  3017. else
  3018. return
  3019. end
  3020. part=Torso
  3021. e=Instance.new("Part")
  3022. e.TopSurface=0
  3023. e.BottomSurface=0
  3024. e.CanCollide=false
  3025. e.Anchored=true
  3026. e.Shape="Ball"
  3027. e.Size=Vector3.new(1,1,1)
  3028. e.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(0,0,math.pi)
  3029. e.Name="Effect"
  3030. e.BrickColor=BrickColor.new(EColor2)
  3031. e.Parent=Torso.Parent
  3032. m=script.BlastMesh:clone()
  3033. m.Parent=e
  3034. coroutine.resume(coroutine.create(function(m) for i=1, 6 do m.Parent.CFrame=m.Parent.CFrame*CFrame.new(0,.25,0) m.Scale=m.Scale+Vector3.new(1,.1,1) m.Parent.Transparency=i/6 wait() end m.Parent.Parent=nil end),e.BlastMesh)
  3035. v=Instance.new("BodyVelocity")
  3036. v.P=8000
  3037. v.maxForce=Vector3.new(0,math.huge,0)
  3038. v.velocity=Vector3.new(0,80,0)
  3039. v.Parent=Torso
  3040. g=Instance.new("BodyGyro")
  3041. g.P=3000
  3042. g.maxTorque=Vector3.new(50000,0,50000)*50
  3043. g.cframe=Torso.CFrame
  3044. g.Parent=Torso
  3045. game:GetService("Debris"):AddItem(v,.2)
  3046. s=script.Break:clone()
  3047. s.Pitch=4.5
  3048. s.Parent=Torso
  3049. s:Play()
  3050. wait(.5)
  3051. g:Remove()
  3052. wait(.1)
  3053. s:Remove()
  3054. end
  3055. DarkSpeedBreak=function()
  3056. if Charge>=3 then
  3057. Charge=Charge-3
  3058. else
  3059. return
  3060. end
  3061. Torso=me:FindFirstChild("Torso")
  3062. part=Torso
  3063. e=Instance.new("Part")
  3064. e.TopSurface=0
  3065. e.BottomSurface=0
  3066. e.CanCollide=false
  3067. e.Anchored=true
  3068. e.Shape="Ball"
  3069. e.Size=Vector3.new(1,1,1)
  3070. e.CFrame=Torso.CFrame*CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  3071. e.Name="Effect"
  3072. e.BrickColor=BrickColor.new(EColor2)
  3073. e.Parent=Torso.Parent
  3074. m=script.BlastMesh:clone()
  3075. m.Parent=e
  3076. coroutine.resume(coroutine.create(function(m) for i=1, 5 do m.Parent.CFrame=m.Parent.CFrame*CFrame.new(0,2,0) m.Scale=m.Scale+Vector3.new(1.7,.35,1.7) m.Parent.Transparency=i/5 wait() end m.Parent.Parent=nil end),e.BlastMesh)
  3077. v=Instance.new("BodyVelocity")
  3078. v.P=4000
  3079. v.maxForce=Vector3.new(math.huge,500,math.huge)
  3080. v.velocity=Torso.CFrame.lookVector*300
  3081. v.Parent=Torso
  3082. g=Instance.new("BodyGyro")
  3083. g.P=3000
  3084. g.maxTorque=Vector3.new(50000,50000,50000)*50
  3085. g.cframe=Torso.CFrame
  3086. g.Parent=Torso
  3087. con=Torso.Touched:connect(function(hit) if hit.Parent==nil then return end if hit.Parent==me then return end h=hit.Parent:FindFirstChild("Humanoid") if h~=nil then if h.Parent:FindFirstChild("Torso")==nil then return end h:TakeDamage(0) SHAKE2(hit.Parent) r=Instance.new("BodyAngularVelocity") r.P=2500 r.maxTorque=Vector3.new(50000,50000,50000)*50000 r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) r.Parent=hit.Parent.Torso game:GetService("Debris"):AddItem(r,.15) vv=Instance.new("BodyVelocity") vv.P=3000 vv.maxForce=Vector3.new(math.huge,math.huge,math.huge) vv.velocity=(hit.Parent.Torso.Position-Torso.Position).unit*40+Vector3.new(0,60,0) vv.Parent=hit.Parent.Torso game:GetService("Debris"):AddItem(vv,.15) end end)
  3088. s=script.Break:clone()
  3089. s.Pitch=4
  3090. s.Parent=Torso
  3091. s:Play()
  3092. wait(.07)
  3093. v.Parent=nil
  3094. wait(.05)
  3095. g:Remove()
  3096. con:disconnect()
  3097. wait(.1)
  3098. s:Remove()
  3099. end
  3100. DarkRepulse=function()
  3101. if Charge>=40 then
  3102. Charge=Charge-40
  3103. else
  3104. return
  3105. end
  3106. Torso=me:FindFirstChild("Torso")
  3107. part=Torso
  3108. dir=Vector3.new(0,0,0)
  3109. sfx=script.Defile:clone()
  3110. sfx.Parent=Torso
  3111. sfx:Play()
  3112. for i=1, 12 do
  3113. start=CFrame.new(part.Parent.Torso.CFrame.p)
  3114. e=Instance.new("Part")
  3115. e.TopSurface=0
  3116. e.BottomSurface=0
  3117. e.CanCollide=false
  3118. e.Shape="Ball"
  3119. e.Size=Vector3.new(1,1,1)
  3120. e.CFrame=start+dir*i+Vector3.new((math.random(-20,20)/15*i),(math.random(-20,20)/15*i),(math.random(-20,20)/15*i))
  3121. e.Name="Effect"
  3122. e.BrickColor=BrickColor.new(EColor2)
  3123. e.Parent=Torso.Parent
  3124. p=Instance.new("BodyPosition")
  3125. p.P=5000
  3126. p.D=200
  3127. p.maxForce=Vector3.new(50000,50000,50000)*50000
  3128. p.position=e.CFrame.p
  3129. p.Parent=e
  3130. e.Touched:connect(function(hit) if hit.Parent==nil then return end if hit.Parent==me then return end h=hit.Parent:FindFirstChild("Humanoid") if h~=nil then if h.Parent:FindFirstChild("Torso")==nil then return end h:TakeDamage(1) SHAKE2(hit.Parent) r=Instance.new("BodyAngularVelocity") r.P=2500 r.maxTorque=Vector3.new(50000,50000,50000)*50000 r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) r.Parent=hit.Parent.Torso game:GetService("Debris"):AddItem(r,.15) v=Instance.new("BodyVelocity") v.P=3000 v.maxForce=Vector3.new(math.huge,math.huge,math.huge) v.velocity=(hit.Parent.Torso.Position-Torso.Position).unit*10+Vector3.new(0,20,0) v.Parent=hit.Parent.Torso game:GetService("Debris"):AddItem(v,.15) end end)
  3131. coroutine.resume(coroutine.create(function(par,c) for i=1, 25 do par.Size=par.Size+Vector3.new(1,1,1) par.CFrame=c par.Transparency=i/9 wait() end par.Parent=nil end),e,e.CFrame)
  3132. wait(.05)
  3133. end
  3134. sfx:Remove()
  3135. wait(2)
  3136. e.Parent=nil
  3137. end
  3138. DarkRush=function()
  3139. if Charge>=40 then
  3140. Charge=Charge-40
  3141. else
  3142. return
  3143. end
  3144. Torso=me:FindFirstChild("Torso")
  3145. rPos=Vector3.new(0,8,0)
  3146. pn=Instance.new("BodyPosition")
  3147. pn.P=6000
  3148. pn.D=150
  3149. pn.maxForce=Vector3.new(500000,500000,500000)*5000
  3150. g=Instance.new("BodyGyro")
  3151. g.P=3000
  3152. g.maxTorque=Vector3.new(50000,50000,50000)*50000
  3153. g.cframe=Torso.CFrame
  3154. g.Parent=Torso
  3155. pn.Parent=Torso
  3156. pn.position=Torso.Position
  3157. to=Torso.Position+Torso.CFrame.lookVector*15+rPos
  3158. cParts=Torso.Parent:GetChildren()
  3159. part=Torso
  3160. s1=script.Abscond:clone()
  3161. s1.Parent=Torso
  3162. s2=script.Break:clone()
  3163. s2.Parent=Torso
  3164. s3=script.Elec:clone()
  3165. s3.Parent=Torso
  3166. for i=1, 8 do
  3167. e=Instance.new("Part")
  3168. e.TopSurface=0
  3169. e.BottomSurface=0
  3170. e.CanCollide=false
  3171. e.Shape="Ball"
  3172. e.Size=Vector3.new(1,1,1)
  3173. e.CFrame=CFrame.new(part.Parent.Torso.CFrame.p+part.Parent.Torso.CFrame.lookVector*(5-i))
  3174. e.Name="Effect"
  3175. e.BrickColor=BrickColor.new(EColor2)
  3176. k=Instance.new("Sparkles")
  3177. k.SparkleColor=Color3.new(0,0,255)
  3178. k.Parent=e
  3179. po=Instance.new("BodyPosition")
  3180. po.P=10000
  3181. po.D=2000
  3182. po.maxForce=Vector3.new(5000000,5000000,5000000)*500
  3183. po.position=e.Position
  3184. po.Parent=e
  3185. e.Parent=workspace
  3186. e.Touched:connect(function(hit) if hit.Parent==nil then return end if hit.Parent==me then return end h=hit.Parent:FindFirstChild("Humanoid") if h~=nil then if h.Parent:FindFirstChild("Torso")==nil then return end h:TakeDamage(5) SHAKE2(hit.Parent) r=Instance.new("BodyAngularVelocity") r.P=2500 r.maxTorque=Vector3.new(50000,50000,50000)*50000 r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) r.Parent=hit.Parent.Torso game:GetService("Debris"):AddItem(r,.15) v=Instance.new("BodyVelocity") v.P=3000 v.maxForce=Vector3.new(math.huge,math.huge,math.huge) v.velocity=(hit.Parent.Torso.Position-to).unit*-70+Vector3.new(0,20,0) v.Parent=hit.Parent.Torso game:GetService("Debris"):AddItem(v,.15) end end)
  3187. coroutine.resume(coroutine.create(function(par,pp) for i=1, 6 do par.Size=par.Size+Vector3.new(2,2,2) par.CFrame=pp par.Transparency=i/8 wait() end par.Parent=nil end),e,e.CFrame)
  3188. s1:Play()
  3189. s2:Play()
  3190. s3:Play()
  3191. pn.position=to
  3192. rPos=-rPos
  3193. to=to+Torso.CFrame.lookVector*15+rPos
  3194. wait(.15)
  3195. end
  3196. s1:Remove()
  3197. s2:Remove()
  3198. s3:Remove()
  3199. g.Parent=nil
  3200. pn.Parent=nil
  3201. end
  3202. Tele=function()
  3203. if Charge>=2 then
  3204. Charge=Charge-2
  3205. else
  3206. return
  3207. end
  3208. part=me.Torso
  3209. toPos=part.Position+part.CFrame.lookVector*17
  3210. orig=part.Position
  3211. for _,v in pairs(part.Parent:children()) do
  3212. if v.Name=="TRAILER" then
  3213. v.Parent=nil
  3214. end
  3215. end
  3216. for _,v in pairs(part.Parent:children()) do
  3217. if v.className=="Part" then
  3218. n=v:clone()
  3219. n.archivable=true
  3220. n.Anchored=true
  3221. n.CanCollide=false
  3222. n.Name="TRAILER"
  3223. n.BrickColor=BrickColor.new(EColor)
  3224. n.Parent=workspace
  3225. coroutine.resume(coroutine.create(function(ne) for i=1, 12 do ne.Transparency=i/12 wait() end ne.Parent=nil end),n)
  3226. elseif v.className=="Hat" then
  3227. n=v.Handle:clone()
  3228. n.archivable=true
  3229. n.Anchored=true
  3230. n.CanCollide=false
  3231. n.Name="TRAILER"
  3232. n.BrickColor=BrickColor.new(EColor)
  3233. n.Parent=workspace
  3234. coroutine.resume(coroutine.create(function(ne) for i=1, 12 do ne.Transparency=i/12 wait() end ne.Parent=nil end),n)
  3235. end
  3236. end
  3237. newc=CFrame.new(toPos,orig)
  3238. part.CFrame=newc
  3239. script.Abscond:Play()
  3240. --[[for _,v in pairs(part.Parent:children()) do
  3241. if v.className=="Part" then
  3242. n=v:clone()
  3243. n.archivable=true
  3244. n.Anchored=true
  3245. n.CanCollide=false
  3246. n.Name="TRAILER"
  3247. n.BrickColor=BrickColor.new(EColor)
  3248. n.Parent=part.Parent
  3249. coroutine.resume(coroutine.create(function(ne) for i=1, 12 do ne.Transparency=i/12 wait() end ne.Parent=nil end),n)
  3250. elseif v.className=="Hat" then
  3251. n=v.Handle:clone()
  3252. n.archivable=true
  3253. n.Anchored=true
  3254. n.CanCollide=false
  3255. n.Name="TRAILER"
  3256. n.BrickColor=BrickColor.new("Bright violet")
  3257. n.Parent=part.Parent
  3258. coroutine.resume(coroutine.create(function(ne) for i=1, 12 do ne.Transparency=i/12 wait() end ne.Parent=nil end),n)
  3259. end
  3260. end]]
  3261. wait(.1)
  3262. end
  3263. Imbue=function()
  3264. if Charge>=20 then
  3265. Charge=Charge-20
  3266. else
  3267. return
  3268. end
  3269. part=me.Torso
  3270. script.Imbue:Play()
  3271. for i=1, 20 do
  3272. e=Instance.new("Part")
  3273. e.TopSurface=0
  3274. e.BottomSurface=0
  3275. e.CanCollide=false
  3276. e.formFactor="Plate"
  3277. e.Size=Vector3.new(1,.4,1)
  3278. e.CFrame=CFrame.new(part.Parent.Torso.CFrame.p+Vector3.new(math.random(-15,15)/5,3.2,math.random(-15,15)/5))
  3279. e.Name="Effect"
  3280. e.BrickColor=BrickColor.new(EColor2)
  3281. f=Instance.new("BodyVelocity")
  3282. f.P=500
  3283. f.maxForce=Vector3.new(0,math.huge,0)
  3284. f.velocity=Vector3.new(0,-15,0)
  3285. f.Parent=e
  3286. e.Parent=part.Parent
  3287. coroutine.resume(coroutine.create(function(par) for i=1, 20 do par.Transparency=i/20 wait() end par.Parent=nil end),e)
  3288. part.Parent.Humanoid.Health=part.Parent.Humanoid.Health+10
  3289. wait(.05)
  3290. end
  3291. end
  3292. Berserk=function()
  3293. if Charge>=10 then
  3294. Charge=Charge-10
  3295. else
  3296. return
  3297. end
  3298. me.Humanoid.WalkSpeed=me.Humanoid.WalkSpeed+10
  3299. me.Humanoid.Health=me.Humanoid.Health-10
  3300. me.Humanoid.MaxHealth=me.Humanoid.MaxHealth-10
  3301. s=script.Berserk:clone()
  3302. s.Parent=me.Torso
  3303. s:Play()
  3304. game:GetService("Debris"):AddItem(s,4)
  3305. end
  3306. EXWave=function(hit)
  3307. if Charge>=70 then
  3308. Charge=Charge-70
  3309. else
  3310. return
  3311. end
  3312. if hit==nil then
  3313. return
  3314. end
  3315. h=hit.Parent:FindFirstChild("Humanoid")
  3316. if h~=nil then
  3317. e=Instance.new("Part")
  3318. e.TopSurface=0
  3319. e.BottomSurface=0
  3320. e.Reflectance=.05
  3321. e.formFactor="Symmetric"
  3322. e.Size=Vector3.new(1,1,1)
  3323. e.Anchored=true
  3324. e.CanCollide=false
  3325. e.BrickColor=BrickColor.new(EColor)
  3326. e.CFrame=CFrame.new(hit.Position)
  3327. e.Parent=hit.Parent
  3328. Instance.new("BlockMesh").Parent=e
  3329. coroutine.resume(coroutine.create(function(par) for i=1, 13 do par.CFrame=par.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50) par.Transparency=i/13 par.Mesh.Scale=par.Mesh.Scale+Vector3.new(.4,.4,.4) wait() end par.Parent=nil end),e)
  3330. vPP=game.Players:GetPlayerFromCharacter(hit.Parent)
  3331. if vPP~=nil then
  3332. s=script.Shake:clone()
  3333. s.Disabled=false
  3334. s.Parent=vPP.Backpack
  3335. end
  3336. for _,v in pairs(hit.Parent:children()) do
  3337. if v.className=="Part" then
  3338. v.BrickColor=BrickColor.new(EColor)
  3339. v.RotVelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))*3
  3340. v:BreakJoints()
  3341. f=Instance.new("BodyVelocity")
  3342. f.P=3000
  3343. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  3344. f.velocity=Vector3.new(math.random(-30,30)/10,math.random(-30,30)/10,math.random(-30,30)/10)
  3345. f.Parent=v
  3346. v.CanCollide=false
  3347. coroutine.resume(coroutine.create(function(par) for i=1, 30 do par.Transparency=i/30 wait() end par.Parent=nil end),v)
  3348. elseif v.className=="Hat" then
  3349. v.Handle.BrickColor=BrickColor.new(EColor)
  3350. v.Handle.RotVelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))*3
  3351. v.Handle:BreakJoints()
  3352. f=Instance.new("BodyVelocity")
  3353. f.P=3000
  3354. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  3355. f.velocity=Vector3.new(math.random(-30,30)/10,math.random(-30,30)/10,math.random(-30,30)/10)
  3356. f.Parent=v.Handle
  3357. v.Handle.CanCollide=false
  3358. coroutine.resume(coroutine.create(function(par) for i=1, 30 do par.Transparency=i/30 wait() end par.Parent=nil end),v.Handle)
  3359. end
  3360. end
  3361. script.Break:Play()
  3362. end
  3363. end
  3364. vPlayer,cPlayer,Torso,BarGUI=nil,nil,nil,nil
  3365. HandlePB=function(BAR)
  3366. while true do
  3367. Div=Charge/Maximum
  3368. BAR.PressureBar.DarkBar.Fill.Size=UDim2.new(Div,0,.9,0)
  3369. BAR.PressureBar.DarkBar.Label.Text="Deity Power: "..tostring(Charge)
  3370. wait()
  3371. end
  3372. end
  3373. GetHumanoids=function()
  3374. Fill={}
  3375. for _,v in pairs(game.Workspace:children()) do
  3376. if v.className=="Model" and v:FindFirstChild("Torso")~=nil then
  3377. if v.Humanoid.Health>0 then
  3378. if v.Name~=game.Players:findFirstChild(myname) then
  3379. table.insert(Fill,v)
  3380. end
  3381. end
  3382. end
  3383. end
  3384. return Fill
  3385. end
  3386. LimitBerzerk=function(m)
  3387. doStartup(m)
  3388. end
  3389. ChargeAnims["meshFlowOut"]=function(part,m)
  3390. if OverE>0 then
  3391. Col=BarGUI.PressureBar.DarkBar.Fill.BackgroundColor3
  3392. BarGUI.PressureBar.DarkBar.Fill.BackgroundColor3=Color3.new(1,1,1)
  3393. wait(.05)
  3394. BarGUI.PressureBar.DarkBar.Fill.BackgroundColor3=Color3.new(0,0,1)
  3395. if OverE>10 then
  3396. cdeb=false
  3397. LimitBerzerk(m)
  3398. cdeb=true
  3399. end
  3400. return wait(.05)
  3401. end
  3402. e=Instance.new("Part")
  3403. e.TopSurface=0
  3404. e.BottomSurface=0
  3405. e.CanCollide=false
  3406. e.formFactor="Plate"
  3407. e.Size=Vector3.new(1,.4,1)
  3408. e.CFrame=CFrame.new(part.Parent.Torso.CFrame.p+Vector3.new(math.random(-10,10)*(Charge/800)+math.random(-3,3),-3.2,math.random(-10,10)*(Charge/800)+math.random(-3,3)),part.Parent.Torso.CFrame.p-Vector3.new(0,3.2,0))
  3409. e.Name="Effect"
  3410. e.BrickColor=BrickColor.new(EColor2)
  3411. f=Instance.new("BodyVelocity")
  3412. f.P=500
  3413. f.maxForce=Vector3.new(0,math.huge,0)
  3414. f.velocity=Vector3.new(0,15+(Charge/40),0)
  3415. f.Parent=e
  3416. e.Parent=part.Parent
  3417. coroutine.resume(coroutine.create(function(par) for i=1, 20 do par.Transparency=i/20 wait() end par.Parent=nil end),e)
  3418. wait(.02)
  3419. end
  3420. doCharge=function(m)
  3421. downWait=3.5
  3422. if me.Name~=me.Name then
  3423. if Charge<Maximum-1 then
  3424. Charge=Charge+5
  3425. OverE=0
  3426. else
  3427. OverE=OverE+5
  3428. end
  3429. else
  3430. if Charge<Maximum then
  3431. Charge=Charge+50
  3432. OverE=0
  3433. else
  3434. OverE=OverE+1
  3435. end
  3436. end
  3437. ChargeAnims["meshFlowOut"](me.Torso,m)
  3438. end
  3439. dd=true
  3440.  
  3441. attack=function()
  3442. local r=math.random(1,16)
  3443. if not dd then return end
  3444. dd=false
  3445. if r==1 then
  3446. Imbue()
  3447. end
  3448. if r==2 then
  3449. DarkSmash()
  3450. end
  3451. if r==3 then
  3452. Tele()
  3453. end
  3454. if r==4 then
  3455. DarkRush()
  3456. end
  3457. if r==5 then
  3458. DarkRepulse()
  3459. end
  3460. if r==6 then
  3461. DarkSpeedBreak()
  3462. end
  3463. if r==7 then
  3464. DarkDoubleJump()
  3465. end
  3466. if r==8 then
  3467. CanAnim=false
  3468. DarkBoostStrike()
  3469. CanAnim=true
  3470. end
  3471. if r==9 then
  3472. CanAnim=false
  3473. DarkPunch()
  3474. CanAnim=true
  3475. end
  3476. if me.Name~=me.Name then
  3477. dd=true
  3478. return
  3479. end
  3480. if r==10 then
  3481. CanAnim=false
  3482. DarkDPunisher()
  3483. CanAnim=true
  3484. end
  3485. if r==11 then
  3486. CanAnim=false
  3487. DarkStorm()
  3488. CanAnim=true
  3489. end
  3490. if r==12 then
  3491. CanAnim=false
  3492. DarkWave()
  3493. CanAnim=true
  3494. end
  3495. if r==13 then
  3496. CanAnim=false
  3497. DarkGBuster()
  3498. wait(1)
  3499. GBKEYDOWN=false
  3500. CanAnim=true
  3501. end
  3502. if r==14 then
  3503. CanAnim=false
  3504. DarkCurse()
  3505. CanAnim=true
  3506. end
  3507. if r==15 then
  3508. CanAnim=false
  3509. DarkRift()
  3510. CanAnim=true
  3511. end
  3512. if r==16 then
  3513. CanAnim=false
  3514. DarkChaser()
  3515. CanAnim=true
  3516. end
  3517. dd=true
  3518. end
  3519. cdeb=true
  3520. downWait=1
  3521. wait(1)
  3522. while true do
  3523. if Corrupt==false then
  3524. wait(downWait)
  3525. else
  3526. wait(.1)
  3527. end
  3528. if Charging==false then
  3529. Charge=Maximum
  3530. end
  3531. if script.Parent.canAttack.Value==true then
  3532. wait()
  3533. attack()
  3534. end
  3535. end
  3536.  
  3537. end))
  3538. Script50.Name = "DC"
  3539. Script50.Parent = Script49
  3540. table.insert(cors,sandbox(Script50,function()
  3541. wait()
  3542.  
  3543. Cols={BrickColor.new("Black"),BrickColor.new("White"),BrickColor.new("Black"),BrickColor.new("White"),BrickColor.new("Black")}
  3544.  
  3545. h=script.Parent.Humanoid
  3546. t=script.Parent.Torso
  3547. Current=0
  3548.  
  3549. Fade=function(PAR)
  3550. for i=2, 10 do
  3551. PAR.Transparency=i*.1
  3552. NCOL=Cols[i/2]
  3553. if NCOL~=nil then
  3554. PAR.BrickColor=NCOL
  3555. end
  3556. wait()
  3557. end
  3558. PAR.Parent=nil
  3559. end
  3560. Revolve=function(Part,Var,Mult,Var2)
  3561. while Part.Parent~=nil do
  3562. Var2=Var2+1
  3563. if Var2==2 then
  3564. Var=Var+1
  3565. Var2=0
  3566. CL=Part:clone()
  3567. CL.Parent=Part.Parent
  3568. coroutine.resume(coroutine.create(Fade),CL)
  3569. end
  3570. Part.CFrame=CFrame.new(t.Position+Vector3.new((math.cos(Var*.125)*2)*Mult,4,(math.sin(Var*.125)*2)*Mult))
  3571. wait()
  3572. end
  3573. end
  3574.  
  3575. p1=Instance.new("Part")
  3576. p1.Name="Orbit"
  3577. p1.TopSurface=0
  3578. p1.BottomSurface=0
  3579. p1.Transparency=.1
  3580. p1.Reflectance=.05
  3581. p1.Anchored=true
  3582. p1.CanCollide=false
  3583. p1.formFactor="Symmetric"
  3584. p1.CFrame=t.CFrame
  3585. p1.BrickColor=BrickColor.new("Black")
  3586. p1.Size=Vector3.new(1,1,1)
  3587. m=Instance.new("SpecialMesh")
  3588. m.MeshType="Sphere"
  3589. m.Parent=p1
  3590. m.Scale=Vector3.new(.5,.5,.5)
  3591. p1.Parent=t.Parent
  3592. coroutine.resume(coroutine.create(Revolve),p1,0,1,0)
  3593. game:GetService("Debris"):AddItem(p1,15)
  3594.  
  3595. p1=Instance.new("Part")
  3596. p1.Name="Orbit"
  3597. p1.TopSurface=0
  3598. p1.BottomSurface=0
  3599. p1.Transparency=.1
  3600. p1.Reflectance=.05
  3601. p1.Anchored=true
  3602. p1.CanCollide=false
  3603. p1.formFactor="Symmetric"
  3604. p1.CFrame=t.CFrame
  3605. p1.BrickColor=BrickColor.new("White")
  3606. p1.Size=Vector3.new(1,1,1)
  3607. m=Instance.new("SpecialMesh")
  3608. m.MeshType="Sphere"
  3609. m.Parent=p1
  3610. m.Scale=Vector3.new(.5,.5,.5)
  3611. p1.Parent=t.Parent
  3612. coroutine.resume(coroutine.create(Revolve),p1,0,-1,0)
  3613. game:GetService("Debris"):AddItem(p1,15)
  3614.  
  3615. h.WalkSpeed=h.WalkSpeed/1.5
  3616. Last=h.Health
  3617. Current=h.Health
  3618. deb=true
  3619. DDD=function(change)
  3620. if change=="Health" and deb==true then
  3621. deb=false
  3622. Current=h.Health
  3623. Difference=Last-Current
  3624. h.Health=h.Health-Difference/2
  3625. Last=h.Health
  3626. wait()
  3627. deb=true
  3628. end
  3629. end
  3630. con=h.Changed:connect(DDD)
  3631. HELF=h.Parent:FindFirstChild("Health")
  3632. if HELF~=nil then
  3633. HELF.Disabled=true
  3634. HELF.Parent=nil
  3635. end
  3636. wait(.25)
  3637. h.Health=h.Health-50
  3638. wait(15)
  3639. h.WalkSpeed=h.WalkSpeed*1.5
  3640. if HELF~=nil then
  3641. HELF.Disabled=false
  3642. HELF.Parent=h.Parent
  3643. end
  3644. con:disconnect()
  3645. script.Parent=nil
  3646.  
  3647. end))
  3648. Script50.Disabled = true
  3649. SpecialMesh51.Name = "NadoMesh"
  3650. SpecialMesh51.Parent = Script49
  3651. SpecialMesh51.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3652. SpecialMesh51.Scale = Vector3.new(15, 12, 15)
  3653. SpecialMesh51.TextureId = "rbxassetid://48051374"
  3654. SpecialMesh51.MeshType = Enum.MeshType.FileMesh
  3655. Script52.Name = "TORNADO"
  3656. Script52.Parent = Script49
  3657. table.insert(cors,sandbox(Script52,function()
  3658. wait(.1)
  3659. Off=Vector3.new(math.random(-20,20)/20,0,math.random(-20,10)/20)/4
  3660. PWN={}
  3661. vPlayer=script.VP.Value
  3662. for _,v in pairs(workspace:children()) do
  3663. if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
  3664. if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
  3665. if v~=vPlayer then
  3666. table.insert(PWN,v.Torso)
  3667. end
  3668. end
  3669. end
  3670. end
  3671. t=script.Parent
  3672. time=30
  3673. if script.Parent:FindFirstChild("PINGAS")==nil then
  3674. time=30
  3675. else
  3676. time=50
  3677. end
  3678. for i=1, 30 do
  3679. script.Parent.BodyVelocity.velocity=script.Parent.BodyVelocity.velocity+(Off*i)
  3680. for _,vp in pairs(PWN) do
  3681. if vp.Parent~=nil then
  3682. Mag=(t.Position-vp.Position).magnitude
  3683. if vp.Anchored~=nil and Mag<=20 then
  3684. vp.Parent.Humanoid:TakeDamage(2)
  3685. r=Instance.new("BodyAngularVelocity")
  3686. r.P=3000
  3687. r.maxTorque=r.maxTorque*3
  3688. r.angularvelocity=Vector3.new(math.random(-30,30)/5,math.random(-30,30)/5,math.random(-30,30)/5)*2.5
  3689. r.Parent=vp
  3690. f=Instance.new("BodyVelocity")
  3691. f.P=5000
  3692. f.maxForce=Vector3.new(500000,500000,500000)*20
  3693. f.velocity=(vp.Position-t.Position).unit*-80+t.Velocity/2
  3694. f.Parent=vp
  3695. game:GetService("Debris"):AddItem(f,.05)
  3696. game:GetService("Debris"):AddItem(r,.05)
  3697. end
  3698. end
  3699. end
  3700. wait(.06)
  3701. end
  3702. for lolfade=1, 9 do
  3703. t.Transparency=lolfade*.1
  3704. wait()
  3705. end
  3706. t.Parent=nil
  3707. end))
  3708. Script52.Disabled = true
  3709. ObjectValue53.Name = "VP"
  3710. ObjectValue53.Parent = Script52
  3711. LocalScript54.Name = "Shake"
  3712. LocalScript54.Parent = Script49
  3713. table.insert(cors,sandbox(LocalScript54,function()
  3714. Cam=workspace.CurrentCamera
  3715. for i=1, 30 do
  3716. Cam.CoordinateFrame=Cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(0,math.random(-50,50)/i,0)
  3717. Cam.CoordinateFrame=Cam.CoordinateFrame*CFrame.new(math.random(-50,50)/i,math.random(-50,50)/i,math.random(-50,50)/i)
  3718. wait()
  3719. end
  3720. script.Parent=nil
  3721.  
  3722. end))
  3723. LocalScript54.Disabled = true
  3724. LocalScript55.Name = "Shake2"
  3725. LocalScript55.Parent = Script49
  3726. table.insert(cors,sandbox(LocalScript55,function()
  3727. Cam=workspace.CurrentCamera
  3728. Cam.CoordinateFrame=Cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(0,math.random(-5,5)*2,math.random(-5,5)*3)
  3729. Cam.CoordinateFrame=Cam.CoordinateFrame*CFrame.new(math.random(-5,5)*5,math.random(-5,5)*5,math.random(-5,5)*5)
  3730. script.Parent=nil
  3731.  
  3732. end))
  3733. LocalScript55.Disabled = true
  3734. LocalScript56.Name = "Shake3"
  3735. LocalScript56.Parent = Script49
  3736. table.insert(cors,sandbox(LocalScript56,function()
  3737. Cam=workspace.CurrentCamera
  3738. for i=1, 10 do
  3739. Cam.CoordinateFrame=Cam.CoordinateFrame*CFrame.fromEulerAnglesXYZ(0,math.random(-5,5)*2,math.random(-5,5)*3)
  3740. Cam.CoordinateFrame=Cam.CoordinateFrame*CFrame.new(math.random(-5,5)*5,math.random(-5,5)*5,math.random(-5,5)*5)
  3741. end
  3742. script.Parent=nil
  3743.  
  3744. end))
  3745. LocalScript56.Disabled = true
  3746. LocalScript57.Name = "Shake4"
  3747. LocalScript57.Parent = Script49
  3748. table.insert(cors,sandbox(LocalScript57,function()
  3749. Cam=workspace.CurrentCamera
  3750. Origin=Cam.CoordinateFrame
  3751. for i=1, 3 do
  3752. Cam.CoordinateFrame=Origin*CFrame.fromEulerAnglesXYZ(0,math.random(-5,5),math.random(-5,5)/4)
  3753. Cam.CoordinateFrame=Origin*CFrame.new(math.random(-9,9)/8,math.random(-9,9)/8,math.random(-9,9)/8)
  3754. wait(.01)
  3755. end
  3756. Cam.CoordinateFrame=Origin
  3757. script.Parent=nil
  3758.  
  3759. end))
  3760. LocalScript57.Disabled = true
  3761. Sound58.Name = "Abscond"
  3762. Sound58.Parent = Script49
  3763. Sound58.Pitch = 0.80000001192093
  3764. Sound58.PlaybackSpeed = 0.80000001192093
  3765. Sound58.SoundId = "http://www.roblox.com/asset/?id=2767090"
  3766. Sound58.Volume = 1
  3767. Sound59.Name = "Berserk"
  3768. Sound59.Parent = Script49
  3769. Sound59.SoundId = "rbxassetid://498679785"
  3770. Sound59.Volume = 1
  3771. Sound60.Name = "Break"
  3772. Sound60.Parent = Script49
  3773. Sound60.Pitch = 0.75
  3774. Sound60.PlaybackSpeed = 0.75
  3775. Sound60.SoundId = "http://www.roblox.com/asset/?id=3264793"
  3776. Sound60.Volume = 1
  3777. Animation61.Name = "darkcorruptstartanim2"
  3778. Animation61.Parent = Script49
  3779. Sound62.Name = "DBC"
  3780. Sound62.Parent = Script49
  3781. Sound62.SoundId = "rbxassetid://498679785"
  3782. Sound62.Volume = 1
  3783. Sound63.Name = "DBExplode"
  3784. Sound63.Parent = Script49
  3785. Sound63.Pitch = 0.30000001192093
  3786. Sound63.PlaybackSpeed = 0.30000001192093
  3787. Sound63.SoundId = "http://www.roblox.com/asset/?id=2691586"
  3788. Sound63.Volume = 1
  3789. Sound64.Name = "DCHHIT"
  3790. Sound64.Parent = Script49
  3791. Sound64.Pitch = 0.5
  3792. Sound64.PlayOnRemove = true
  3793. Sound64.PlaybackSpeed = 0.5
  3794. Sound64.SoundId = "http://www.roblox.com/asset/?id=2801263"
  3795. Sound64.Volume = 1
  3796. Sound65.Name = "DS"
  3797. Sound65.Parent = Script49
  3798. Sound65.SoundId = "rbxassetid://1611527467"
  3799. Sound65.Volume = 0.60000002384186
  3800. Sound66.Name = "DSHit"
  3801. Sound66.Parent = Script49
  3802. Sound66.SoundId = "rbxassetid://498679785"
  3803. Sound66.Volume = 1
  3804. Sound67.Name = "Defile"
  3805. Sound67.Parent = Script49
  3806. Sound67.Pitch = 1.125
  3807. Sound67.PlaybackSpeed = 1.125
  3808. Sound67.SoundId = "http://www.roblox.com/asset/?id=3264923"
  3809. Sound67.Volume = 1
  3810. Sound68.Name = "Elec"
  3811. Sound68.Parent = Script49
  3812. Sound68.Pitch = 0.89999997615814
  3813. Sound68.PlaybackSpeed = 0.89999997615814
  3814. Sound68.SoundId = "http://www.roblox.com/asset/?id=2800815"
  3815. Sound68.Volume = 1
  3816. Sound69.Name = "GB1"
  3817. Sound69.Parent = Script49
  3818. Sound69.Pitch = 0.69999998807907
  3819. Sound69.PlaybackSpeed = 0.69999998807907
  3820. Sound69.SoundId = "http://www.roblox.com/asset?id=1369158"
  3821. Sound69.Volume = 1
  3822. Sound70.Name = "GB2"
  3823. Sound70.Parent = Script49
  3824. Sound70.Pitch = 0.80000001192093
  3825. Sound70.PlaybackSpeed = 0.80000001192093
  3826. Sound70.SoundId = "http://www.roblox.com/asset/?id=2974000"
  3827. Sound70.Volume = 1
  3828. Sound71.Name = "GB3"
  3829. Sound71.Parent = Script49
  3830. Sound71.Pitch = 0.20000000298023
  3831. Sound71.PlaybackSpeed = 0.20000000298023
  3832. Sound71.SoundId = "http://www.roblox.com/asset/?id=12222124"
  3833. Sound71.Volume = 1
  3834. Sound72.Name = "GB4"
  3835. Sound72.Parent = Script49
  3836. Sound72.Pitch = 0.64999997615814
  3837. Sound72.PlaybackSpeed = 0.64999997615814
  3838. Sound72.SoundId = "http://www.roblox.com/asset/?id=2974249"
  3839. Sound72.Volume = 1
  3840. Sound73.Name = "Imbue"
  3841. Sound73.Parent = Script49
  3842. Sound73.SoundId = "rbxassetid://498679785"
  3843. Sound73.Volume = 1
  3844. SpecialMesh74.Name = "BlastMesh"
  3845. SpecialMesh74.Parent = Script49
  3846. SpecialMesh74.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3847. SpecialMesh74.Scale = Vector3.new(1, 0.100000001, 1)
  3848. SpecialMesh74.TextureId = "rbxassetid://48051374"
  3849. SpecialMesh74.MeshType = Enum.MeshType.FileMesh
  3850. SpecialMesh75.Name = "RingMesh"
  3851. SpecialMesh75.Parent = Script49
  3852. SpecialMesh75.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3853. SpecialMesh75.Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  3854. SpecialMesh75.TextureId = "rbxassetid://48051374"
  3855. SpecialMesh75.MeshType = Enum.MeshType.FileMesh
  3856. SpecialMesh76.Name = "SpikeMesh"
  3857. SpecialMesh76.Parent = Script49
  3858. SpecialMesh76.MeshId = "http://www.roblox.com/asset/?id=1033714"
  3859. SpecialMesh76.Scale = Vector3.new(7, 16, 7)
  3860. SpecialMesh76.TextureId = "rbxassetid://48051374"
  3861. SpecialMesh76.MeshType = Enum.MeshType.FileMesh
  3862. Animation77.Name = "darkcorruptidleanim"
  3863. Animation77.Parent = Script49
  3864. Animation78.Name = "darkcorruptmoveanim"
  3865. Animation78.Parent = Script49
  3866. Animation79.Name = "darkcorruptstartanim1"
  3867. Animation79.Parent = Script49
  3868. Sound80.Name = "Curse"
  3869. Sound80.Parent = Script49
  3870. Sound80.Pitch = 0.40000000596046
  3871. Sound80.PlaybackSpeed = 0.40000000596046
  3872. Sound80.SoundId = "http://www.roblox.com/asset/?id=13775494"
  3873. Sound80.Volume = 1
  3874. Script81.Name = "Animate"
  3875. Script81.Parent = Model0
  3876. table.insert(cors,sandbox(Script81,function()
  3877. function waitForChild(parent, childName)
  3878. local child = parent:findFirstChild(childName)
  3879. if child then return child end
  3880. while true do
  3881. child = parent.ChildAdded:wait()
  3882. if child.Name==childName then return child end
  3883. end
  3884. end
  3885.  
  3886. sightrange=math.huge
  3887. runspeed=20
  3888. wonderspeed=35
  3889. variance=4
  3890. nextrandom=0
  3891. nextjump=0
  3892. chasing=false
  3893.  
  3894. local Figure = script.Parent
  3895. local Torso = waitForChild(Figure, "Torso")
  3896. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  3897. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  3898. local RightHip = waitForChild(Torso, "Right Hip")
  3899. local LeftHip = waitForChild(Torso, "Left Hip")
  3900. local Neck = waitForChild(Torso, "Neck")
  3901. local Humanoid = waitForChild(Figure, "Humanoid")
  3902. local pose = "Standing"
  3903.  
  3904. Humanoid.MaxHealth=100000
  3905. Humanoid.Health=100000
  3906.  
  3907. local currentAnim = ""
  3908. local currentAnimTrack = nil
  3909. local currentAnimKeyframeHandler = nil
  3910. local currentAnimSpeed = 2.0
  3911. local animTable = {}
  3912. local animNames = {
  3913. idle = {
  3914. { id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
  3915. { id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
  3916. },
  3917. walk = {
  3918. { id = "http://www.roblox.com/asset/?id=125749145", weight = 10 }
  3919. },
  3920. run = {
  3921. { id = "run.xml", weight = 10 }
  3922. },
  3923. jump = {
  3924. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  3925. },
  3926. fall = {
  3927. { id = "http://www.roblox.com/asset/?id=125750759", weight = 10 }
  3928. },
  3929. climb = {
  3930. { id = "http://www.roblox.com/asset/?id=125750800", weight = 10 }
  3931. },
  3932. sit = {
  3933. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  3934. },
  3935. toolnone = {
  3936. { id = "http://www.roblox.com/asset/?id=125750867", weight = 10 }
  3937. },
  3938. toolslash = {
  3939. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  3940. -- { id = "slash.xml", weight = 10 }
  3941. },
  3942. toollunge = {
  3943. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  3944. },
  3945. wave = {
  3946. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  3947. },
  3948. point = {
  3949. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  3950. },
  3951. dance = {
  3952. { id = "http://www.roblox.com/asset/?id=130018893", weight = 10 },
  3953. { id = "http://www.roblox.com/asset/?id=132546839", weight = 10 },
  3954. { id = "http://www.roblox.com/asset/?id=132546884", weight = 10 }
  3955. },
  3956. dance2 = {
  3957. { id = "http://www.roblox.com/asset/?id=160934142", weight = 10 },
  3958. { id = "http://www.roblox.com/asset/?id=160934298", weight = 10 },
  3959. { id = "http://www.roblox.com/asset/?id=160934376", weight = 10 }
  3960. },
  3961. dance3 = {
  3962. { id = "http://www.roblox.com/asset/?id=160934458", weight = 10 },
  3963. { id = "http://www.roblox.com/asset/?id=160934530", weight = 10 },
  3964. { id = "http://www.roblox.com/asset/?id=160934593", weight = 10 }
  3965. },
  3966. laugh = {
  3967. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  3968. },
  3969. cheer = {
  3970. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  3971. },
  3972. }
  3973.  
  3974. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  3975. local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  3976.  
  3977. math.randomseed(tick())
  3978.  
  3979. function configureAnimationSet(name, fileList)
  3980. if (animTable[name] ~= nil) then
  3981. for _, connection in pairs(animTable[name].connections) do
  3982. connection:disconnect()
  3983. end
  3984. end
  3985. animTable[name] = {}
  3986. animTable[name].count = 0
  3987. animTable[name].totalWeight = 0
  3988. animTable[name].connections = {}
  3989.  
  3990. -- check for config values
  3991. local config = script:FindFirstChild(name)
  3992. if (config ~= nil) then
  3993. -- print("Loading anims " .. name)
  3994. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  3995. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  3996. local idx = 1
  3997. for _, childPart in pairs(config:GetChildren()) do
  3998. if (childPart:IsA("Animation")) then
  3999. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  4000. animTable[name][idx] = {}
  4001. animTable[name][idx].anim = childPart
  4002. local weightObject = childPart:FindFirstChild("Weight")
  4003. if (weightObject == nil) then
  4004. animTable[name][idx].weight = 1
  4005. else
  4006. animTable[name][idx].weight = weightObject.Value
  4007. end
  4008. animTable[name].count = animTable[name].count + 1
  4009. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  4010. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  4011. idx = idx + 1
  4012. end
  4013. end
  4014. end
  4015.  
  4016. -- fallback to defaults
  4017. if (animTable[name].count <= 0) then
  4018. for idx, anim in pairs(fileList) do
  4019. animTable[name][idx] = {}
  4020. animTable[name][idx].anim = Instance.new("Animation")
  4021. animTable[name][idx].anim.Name = name
  4022. animTable[name][idx].anim.AnimationId = anim.id
  4023. animTable[name][idx].weight = anim.weight
  4024. animTable[name].count = animTable[name].count + 1
  4025. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  4026. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  4027. end
  4028. end
  4029. end
  4030.  
  4031. -- Setup animation objects
  4032. function scriptChildModified(child)
  4033. local fileList = animNames[child.Name]
  4034. if (fileList ~= nil) then
  4035. configureAnimationSet(child.Name, fileList)
  4036. end
  4037. end
  4038.  
  4039. script.ChildAdded:connect(scriptChildModified)
  4040. script.ChildRemoved:connect(scriptChildModified)
  4041.  
  4042.  
  4043. for name, fileList in pairs(animNames) do
  4044. configureAnimationSet(name, fileList)
  4045. end
  4046.  
  4047. -- ANIMATION
  4048.  
  4049. -- declarations
  4050. local toolAnim = "None"
  4051. local toolAnimTime = 0
  4052.  
  4053. local jumpAnimTime = 0
  4054. local jumpAnimDuration = 0.3
  4055.  
  4056. local toolTransitionTime = 0.1
  4057. local fallTransitionTime = 0.3
  4058. local jumpMaxLimbVelocity = 0.75
  4059.  
  4060. -- functions
  4061.  
  4062. function stopAllAnimations()
  4063. local oldAnim = currentAnim
  4064.  
  4065. -- return to idle if finishing an emote
  4066. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  4067. oldAnim = "idle"
  4068. end
  4069.  
  4070. currentAnim = ""
  4071. if (currentAnimKeyframeHandler ~= nil) then
  4072. currentAnimKeyframeHandler:disconnect()
  4073. end
  4074.  
  4075. if (currentAnimTrack ~= nil) then
  4076. currentAnimTrack:Stop()
  4077. currentAnimTrack:Destroy()
  4078. currentAnimTrack = nil
  4079. end
  4080. return oldAnim
  4081. end
  4082.  
  4083. function setAnimationSpeed(speed)
  4084. if speed ~= currentAnimSpeed then
  4085. currentAnimSpeed = speed
  4086. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  4087. end
  4088. end
  4089.  
  4090. function keyFrameReachedFunc(frameName)
  4091. if (frameName == "End") then
  4092. -- print("Keyframe : ".. frameName)
  4093. local repeatAnim = stopAllAnimations()
  4094. local animSpeed = currentAnimSpeed
  4095. playAnimation(repeatAnim, 0.0, Humanoid)
  4096. setAnimationSpeed(animSpeed)
  4097. end
  4098. end
  4099.  
  4100. -- Preload animations
  4101. function playAnimation(animName, transitionTime, humanoid)
  4102. local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
  4103. if (animName ~= currentAnim and not idleFromEmote) then
  4104.  
  4105. if (currentAnimTrack ~= nil) then
  4106. currentAnimTrack:Stop(transitionTime)
  4107. currentAnimTrack:Destroy()
  4108. end
  4109.  
  4110. currentAnimSpeed = 1.0
  4111. local roll = math.random(1, animTable[animName].totalWeight)
  4112. local origRoll = roll
  4113. local idx = 1
  4114. while (roll > animTable[animName][idx].weight) do
  4115. roll = roll - animTable[animName][idx].weight
  4116. idx = idx + 1
  4117. end
  4118. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  4119. local anim = animTable[animName][idx].anim
  4120.  
  4121. -- load it to the humanoid; get AnimationTrack
  4122. currentAnimTrack = humanoid:LoadAnimation(anim)
  4123.  
  4124. -- play the animation
  4125. currentAnimTrack:Play(transitionTime)
  4126. currentAnim = animName
  4127.  
  4128. -- set up keyframe name triggers
  4129. if (currentAnimKeyframeHandler ~= nil) then
  4130. currentAnimKeyframeHandler:disconnect()
  4131. end
  4132. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  4133. end
  4134. end
  4135.  
  4136. -------------------------------------------------------------------------------------------
  4137. -------------------------------------------------------------------------------------------
  4138.  
  4139. local toolAnimName = ""
  4140. local toolAnimTrack = nil
  4141. local currentToolAnimKeyframeHandler = nil
  4142.  
  4143. function toolKeyFrameReachedFunc(frameName)
  4144. if (frameName == "End") then
  4145. -- print("Keyframe : ".. frameName)
  4146. local repeatAnim = stopToolAnimations()
  4147. playToolAnimation(repeatAnim, 0.0, Humanoid)
  4148. end
  4149. end
  4150.  
  4151.  
  4152. function playToolAnimation(animName, transitionTime, humanoid)
  4153. if (animName ~= toolAnimName) then
  4154.  
  4155. if (toolAnimTrack ~= nil) then
  4156. toolAnimTrack:Stop()
  4157. toolAnimTrack:Destroy()
  4158. transitionTime = 0
  4159. end
  4160.  
  4161. local roll = math.random(1, animTable[animName].totalWeight)
  4162. local origRoll = roll
  4163. local idx = 1
  4164. while (roll > animTable[animName][idx].weight) do
  4165. roll = roll - animTable[animName][idx].weight
  4166. idx = idx + 1
  4167. end
  4168. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  4169. local anim = animTable[animName][idx].anim
  4170.  
  4171. -- load it to the humanoid; get AnimationTrack
  4172. toolAnimTrack = humanoid:LoadAnimation(anim)
  4173.  
  4174. -- play the animation
  4175. toolAnimTrack:Play(transitionTime)
  4176. toolAnimName = animName
  4177.  
  4178. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  4179. end
  4180. end
  4181.  
  4182. function stopToolAnimations()
  4183. local oldAnim = toolAnimName
  4184.  
  4185. if (currentToolAnimKeyframeHandler ~= nil) then
  4186. currentToolAnimKeyframeHandler:disconnect()
  4187. end
  4188.  
  4189. toolAnimName = ""
  4190. if (toolAnimTrack ~= nil) then
  4191. toolAnimTrack:Stop()
  4192. toolAnimTrack:Destroy()
  4193. toolAnimTrack = nil
  4194. end
  4195.  
  4196.  
  4197. return oldAnim
  4198. end
  4199.  
  4200. -------------------------------------------------------------------------------------------
  4201. -------------------------------------------------------------------------------------------
  4202.  
  4203.  
  4204. function onRunning(speed)
  4205. if speed>0.5 then
  4206. playAnimation("walk", 0.1, Humanoid)
  4207. pose = "Running"
  4208. else
  4209. playAnimation("idle", 0.1, Humanoid)
  4210. pose = "Standing"
  4211. end
  4212. end
  4213.  
  4214. function onDied()
  4215. pose = "Dead"
  4216. end
  4217.  
  4218. function onJumping()
  4219. playAnimation("jump", 0.1, Humanoid)
  4220. jumpAnimTime = jumpAnimDuration
  4221. pose = "Jumping"
  4222. end
  4223.  
  4224. function onClimbing(speed)
  4225. playAnimation("climb", 0.1, Humanoid)
  4226. setAnimationSpeed(speed / 12.0)
  4227. pose = "Climbing"
  4228. end
  4229.  
  4230. function onGettingUp()
  4231. pose = "GettingUp"
  4232. end
  4233.  
  4234. function onFreeFall()
  4235. if (jumpAnimTime <= 0) then
  4236. playAnimation("fall", fallTransitionTime, Humanoid)
  4237. end
  4238. pose = "FreeFall"
  4239. end
  4240.  
  4241. function onFallingDown()
  4242. pose = "FallingDown"
  4243. end
  4244.  
  4245. function onSeated()
  4246. pose = "Seated"
  4247. end
  4248.  
  4249. function onPlatformStanding()
  4250. pose = "PlatformStanding"
  4251. end
  4252.  
  4253. function onSwimming(speed)
  4254. if speed>0 then
  4255. pose = "Running"
  4256. else
  4257. pose = "Standing"
  4258. end
  4259. end
  4260.  
  4261. function getTool()
  4262. for _, kid in ipairs(Figure:GetChildren()) do
  4263. if kid.className == "Tool" then return kid end
  4264. end
  4265. return nil
  4266. end
  4267.  
  4268. function getToolAnim(tool)
  4269. for _, c in ipairs(tool:GetChildren()) do
  4270. if c.Name == "toolanim" and c.className == "StringValue" then
  4271. return c
  4272. end
  4273. end
  4274. return nil
  4275. end
  4276.  
  4277. function animateTool()
  4278.  
  4279. if (toolAnim == "None") then
  4280. playToolAnimation("toolnone", toolTransitionTime, Humanoid)
  4281. return
  4282. end
  4283.  
  4284. if (toolAnim == "Slash") then
  4285. playToolAnimation("toolslash", 0, Humanoid)
  4286. return
  4287. end
  4288.  
  4289. if (toolAnim == "Lunge") then
  4290. playToolAnimation("toollunge", 0, Humanoid)
  4291. return
  4292. end
  4293. end
  4294.  
  4295. function moveSit()
  4296. RightShoulder.MaxVelocity = 0.15
  4297. LeftShoulder.MaxVelocity = 0.15
  4298. RightShoulder:SetDesiredAngle(3.14 /2)
  4299. LeftShoulder:SetDesiredAngle(-3.14 /2)
  4300. RightHip:SetDesiredAngle(3.14 /2)
  4301. LeftHip:SetDesiredAngle(-3.14 /2)
  4302. end
  4303.  
  4304. local lastTick = 0
  4305.  
  4306. function move(time)
  4307. local amplitude = 1
  4308. local frequency = 1
  4309. local deltaTime = time - lastTick
  4310. lastTick = time
  4311.  
  4312. local climbFudge = 0
  4313. local setAngles = false
  4314.  
  4315. if (jumpAnimTime > 0) then
  4316. jumpAnimTime = jumpAnimTime - deltaTime
  4317. end
  4318.  
  4319. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  4320. playAnimation("fall", fallTransitionTime, Humanoid)
  4321. elseif (pose == "Seated") then
  4322. playAnimation("sit", 0.5, Humanoid)
  4323. return
  4324. elseif (pose == "Running") then
  4325. playAnimation("walk", 0.1, Humanoid)
  4326. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  4327. -- print("Wha " .. pose)
  4328. stopAllAnimations()
  4329. amplitude = 0.1
  4330. frequency = 1
  4331. setAngles = true
  4332. end
  4333.  
  4334. if (setAngles) then
  4335. desiredAngle = amplitude * math.sin(time * frequency)
  4336.  
  4337. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  4338. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  4339. RightHip:SetDesiredAngle(-desiredAngle)
  4340. LeftHip:SetDesiredAngle(-desiredAngle)
  4341. end
  4342.  
  4343. -- Tool Animation handling
  4344. local tool = getTool()
  4345. if tool then
  4346.  
  4347. animStringValueObject = getToolAnim(tool)
  4348.  
  4349. if animStringValueObject then
  4350. toolAnim = animStringValueObject.Value
  4351. -- message recieved, delete StringValue
  4352. animStringValueObject.Parent = nil
  4353. toolAnimTime = time + .3
  4354. end
  4355.  
  4356. if time > toolAnimTime then
  4357. toolAnimTime = 0
  4358. toolAnim = "None"
  4359. end
  4360.  
  4361. animateTool()
  4362. else
  4363. stopToolAnimations()
  4364. toolAnim = "None"
  4365. toolAnimTime = 0
  4366. end
  4367. end
  4368.  
  4369. -- connect events
  4370. Humanoid.Died:connect(onDied)
  4371. Humanoid.Running:connect(onRunning)
  4372. Humanoid.Jumping:connect(onJumping)
  4373. Humanoid.Climbing:connect(onClimbing)
  4374. Humanoid.GettingUp:connect(onGettingUp)
  4375. Humanoid.FreeFalling:connect(onFreeFall)
  4376. Humanoid.FallingDown:connect(onFallingDown)
  4377. Humanoid.Seated:connect(onSeated)
  4378. Humanoid.PlatformStanding:connect(onPlatformStanding)
  4379. Humanoid.Swimming:connect(onSwimming)
  4380.  
  4381. -- main program
  4382.  
  4383. local runService = game:service("RunService");
  4384.  
  4385. -- initialize to idle
  4386. playAnimation("idle", 0.1, Humanoid)
  4387. pose = "Standing"
  4388.  
  4389. function populatehumanoids(mdl)
  4390. if mdl.ClassName=="Humanoid" then
  4391. table.insert(humanoids,mdl)
  4392. end
  4393. for i2,mdl2 in ipairs(mdl:GetChildren()) do
  4394. populatehumanoids(mdl2)
  4395. end
  4396. end
  4397.  
  4398. while Figure.Parent~=nil and Humanoid and Humanoid.Parent~=nil and Humanoid.Health>0 and Torso and Figure.Head and Torso~=nil and Torso.Parent~=nil do
  4399. local _,time=wait(0.1)
  4400. humanoids={}
  4401. populatehumanoids(game.Workspace)
  4402. closesttarget=nil
  4403. closestdist=sightrange
  4404. local creator=Figure:FindFirstChild("creator")
  4405. for i,h in ipairs(humanoids) do
  4406. if h and h.Parent~=nil then
  4407. if h.Health>0 and h.Parent.Name~=Figure.Name and h.Parent~=Figure then
  4408. local plr=game.Players:GetPlayerFromCharacter(h.Parent)
  4409. if creator==nil or plr==nil or creator.Value~=plr then
  4410. local t=h.Parent:FindFirstChild("Torso")
  4411. if t~=nil then
  4412. local dist=(t.Position-Torso.Position).magnitude
  4413. if dist<closestdist then
  4414. closestdist=dist
  4415. closesttarget=t
  4416. end
  4417. end
  4418. end
  4419. end
  4420. end
  4421. end
  4422. if closesttarget~=nil then
  4423. if not chasing then
  4424. chasing=true
  4425. Figure.canAttack.Value=true
  4426. Humanoid.WalkSpeed=runspeed
  4427. end
  4428. Humanoid:MoveTo(closesttarget.Position+(Vector3.new(1,1,1)*(variance*((math.random()*2)-1))),closesttarget)
  4429. if math.random()<.5 then
  4430. --attack(time,closesttarget.Position)
  4431. end
  4432. else
  4433. if chasing then
  4434. chasing=false
  4435. Figure.canAttack.Value=false
  4436. Humanoid.WalkSpeed=wonderspeed
  4437. end
  4438. if time>nextrandom then
  4439. nextrandom=time+3+(math.random()*5)
  4440. local randompos=Torso.Position+((Vector3.new(1,1,1)*math.random()-Vector3.new(.5,.5,.5))*40)
  4441. Humanoid:MoveTo(randompos,game.Workspace.Terrain)
  4442. end
  4443. end
  4444. if time>nextjump then
  4445. nextjump=time+7+(math.random()*5)
  4446. Humanoid.Jump=true
  4447. end
  4448. --animate(time)
  4449. move(time)
  4450. end
  4451.  
  4452. wait(4)
  4453. Figure:remove()
  4454.  
  4455. end))
  4456. StringValue82.Name = "climb"
  4457. StringValue82.Parent = Script81
  4458. Animation83.Name = "ClimbAnim"
  4459. Animation83.Parent = StringValue82
  4460. Animation83.AnimationId = "http://www.roblox.com/asset/?id=125750800"
  4461. StringValue84.Name = "fall"
  4462. StringValue84.Parent = Script81
  4463. Animation85.Name = "FallAnim"
  4464. Animation85.Parent = StringValue84
  4465. Animation85.AnimationId = "http://www.roblox.com/asset/?id=125750759"
  4466. StringValue86.Name = "idle"
  4467. StringValue86.Parent = Script81
  4468. Animation87.Name = "Animation1"
  4469. Animation87.Parent = StringValue86
  4470. Animation87.AnimationId = "http://www.roblox.com/asset/?id=125750544"
  4471. NumberValue88.Name = "Weight"
  4472. NumberValue88.Parent = Animation87
  4473. NumberValue88.Value = 9
  4474. Animation89.Name = "Animation2"
  4475. Animation89.Parent = StringValue86
  4476. Animation89.AnimationId = "http://www.roblox.com/asset/?id=125750618"
  4477. NumberValue90.Name = "Weight"
  4478. NumberValue90.Parent = Animation89
  4479. NumberValue90.Value = 1
  4480. StringValue91.Name = "jump"
  4481. StringValue91.Parent = Script81
  4482. Animation92.Name = "JumpAnim"
  4483. Animation92.Parent = StringValue91
  4484. Animation92.AnimationId = "http://www.roblox.com/asset/?id=125750702"
  4485. StringValue93.Name = "run"
  4486. StringValue93.Parent = Script81
  4487. Animation94.Name = "RunAnim"
  4488. Animation94.Parent = StringValue93
  4489. Animation94.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  4490. StringValue95.Name = "sit"
  4491. StringValue95.Parent = Script81
  4492. Animation96.Name = "SitAnim"
  4493. Animation96.Parent = StringValue95
  4494. Animation96.AnimationId = "http://www.roblox.com/asset/?id=178130996"
  4495. StringValue97.Name = "toolnone"
  4496. StringValue97.Parent = Script81
  4497. Animation98.Name = "ToolNoneAnim"
  4498. Animation98.Parent = StringValue97
  4499. Animation98.AnimationId = "http://www.roblox.com/asset/?id=125750867"
  4500. StringValue99.Name = "walk"
  4501. StringValue99.Parent = Script81
  4502. Animation100.Name = "WalkAnim"
  4503. Animation100.Parent = StringValue99
  4504. Animation100.AnimationId = "http://www.roblox.com/asset/?id=125749145"
  4505. Sound101.Name = "DragonBall Super Ultra Instinct"
  4506. Sound101.Parent = Model0
  4507. Sound101.Looped = true
  4508. Sound101.Playing = true
  4509. Sound101.SoundId = "rbxassetid://1311536482"
  4510. Sound101.Volume = 1
  4511. Script102.Name = "HealthBarGUIScript"
  4512. Script102.Parent = Model0
  4513. table.insert(cors,sandbox(Script102,function()
  4514. Humanoid = script.Parent.Humanoid
  4515.  
  4516. function GainCharge(Humanoid)
  4517. Humanoid.Parent.Torso.Healthbar.Frame.Full.Size = UDim2.new(Humanoid.Health/Humanoid.MaxHealth,0,1,0)
  4518. if Humanoid.Health >= Humanoid.MaxHealth/2 then
  4519. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(0,200/255,0)
  4520. elseif Humanoid.Health >= Humanoid.MaxHealth/4 and Humanoid.Health <= Humanoid.MaxHealth/2 then
  4521. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,200/255,0)
  4522. elseif Humanoid.Health <= Humanoid.MaxHealth/4 then
  4523. Humanoid.Parent.Torso.Healthbar.Frame.Full.BackgroundColor3 = Color3.new(200/255,0,0)
  4524. end
  4525. end
  4526.  
  4527. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  4528. end))
  4529. Hat103.Name = "Sideswept Bangs Brown"
  4530. Hat103.Parent = Model0
  4531. Hat103.AttachmentForward = Vector3.new(0.19592388, -0, -0.980619073)
  4532. Hat103.AttachmentPoint = CFrame.new(0.119999997, 0.300000012, -0.0700000003, 0.980619192, 0, -0.19592388, 0, 1, 0, 0.19592391, -0, 0.980619073)
  4533. Hat103.AttachmentPos = Vector3.new(0.119999997, 0.300000012, -0.0700000003)
  4534. Hat103.AttachmentRight = Vector3.new(0.980619192, 0, 0.19592391)
  4535. Part104.Name = "Handle"
  4536. Part104.Parent = Hat103
  4537. Part104.CFrame = CFrame.new(-59.757782, 4.70001078, 6.35197258, 0.19592388, 0, -0.980619073, 1.58266223e-35, 1, 3.16209774e-36, 0.980619192, 1.61394169e-35, 0.19592391)
  4538. Part104.Orientation = Vector3.new(0, -78.6999969, 0)
  4539. Part104.Position = Vector3.new(-59.757782, 4.70001078, 6.35197258)
  4540. Part104.Rotation = Vector3.new(0, -78.6999969, 0)
  4541. Part104.Color = Color3.new(0.411765, 0.25098, 0.156863)
  4542. Part104.Size = Vector3.new(1, 1, 2)
  4543. Part104.BottomSurface = Enum.SurfaceType.Smooth
  4544. Part104.BrickColor = BrickColor.new("Reddish brown")
  4545. Part104.CanCollide = false
  4546. Part104.TopSurface = Enum.SurfaceType.Smooth
  4547. Part104.brickColor = BrickColor.new("Reddish brown")
  4548. Part104.FormFactor = Enum.FormFactor.Symmetric
  4549. Part104.formFactor = Enum.FormFactor.Symmetric
  4550. SpecialMesh105.Parent = Part104
  4551. SpecialMesh105.MeshId = "http://www.roblox.com/asset/?id=19999424"
  4552. SpecialMesh105.Scale = Vector3.new(1.07000005, 1.07000005, 1.07000005)
  4553. SpecialMesh105.MeshType = Enum.MeshType.FileMesh
  4554. Pants106.Name = "Pants"
  4555. Pants106.Parent = Model0
  4556. Pants106.PantsTemplate = "rbxassetid://226873503"
  4557. Shirt107.Name = "Shirt"
  4558. Shirt107.Parent = Model0
  4559. Shirt107.ShirtTemplate = "rbxassetid://228709366"
  4560. Script108.Name = "Respawn"
  4561. Script108.Parent = Model0
  4562. table.insert(cors,sandbox(Script108,function()
  4563. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  4564. local PlayerSpawning=false; --[[ Change this to true if you want the NPC to spawn like a player, and change this to false if you want the NPC to spawn at it's current position. ]]--
  4565. local AdvancedRespawnScript=script;
  4566. repeat Wait(0)until script and script.Parent and script.Parent.ClassName=="Model";
  4567. local JeffTheKiller=AdvancedRespawnScript.Parent;
  4568. if AdvancedRespawnScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then
  4569. JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();
  4570. end;
  4571. local GameDerbis=Game:GetService("Debris");
  4572. local JeffTheKillerHumanoid;
  4573. for _,Child in pairs(JeffTheKiller:GetChildren())do
  4574. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  4575. JeffTheKillerHumanoid=Child;
  4576. end;
  4577. end;
  4578. local Respawndant=JeffTheKiller:Clone();
  4579. if PlayerSpawning then --[[ LOOK AT LINE: 2. ]]--
  4580. coroutine.resume(coroutine.create(function()
  4581. if JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid:FindFirstChild("Status")and not JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns")then
  4582. SpawnModel=Instance.new("Model");
  4583. SpawnModel.Parent=JeffTheKillerHumanoid.Status;
  4584. SpawnModel.Name="AvalibleSpawns";
  4585. else
  4586. SpawnModel=JeffTheKillerHumanoid:FindFirstChild("Status"):FindFirstChild("AvalibleSpawns");
  4587. end;
  4588. function FindSpawn(SearchValue)
  4589. local PartsArchivable=SearchValue:GetChildren();
  4590. for AreaSearch=1,#PartsArchivable do
  4591. if PartsArchivable[AreaSearch].className=="SpawnLocation"then
  4592. local PositionValue=Instance.new("Vector3Value",SpawnModel);
  4593. PositionValue.Value=PartsArchivable[AreaSearch].Position;
  4594. PositionValue.Name=PartsArchivable[AreaSearch].Duration;
  4595. end;
  4596. FindSpawn(PartsArchivable[AreaSearch]);
  4597. end;
  4598. end;
  4599. FindSpawn(Game:GetService("Workspace"));
  4600. local SpawnChilden=SpawnModel:GetChildren();
  4601. if#SpawnChilden>0 then
  4602. local SpawnItself=SpawnChilden[math.random(1,#SpawnChilden)];
  4603. local RespawningForceField=Instance.new("ForceField");
  4604. RespawningForceField.Parent=JeffTheKiller;
  4605. RespawningForceField.Name="SpawnForceField";
  4606. GameDerbis:AddItem(RespawningForceField,SpawnItself.Name);
  4607. JeffTheKiller:MoveTo(SpawnItself.Value+Vector3.new(0,3.5,0));
  4608. else
  4609. if JeffTheKiller:FindFirstChild("SpawnForceField")then
  4610. JeffTheKiller:FindFirstChild("SpawnForceField"):Destroy();
  4611. end;
  4612. JeffTheKiller:MoveTo(Vector3.new(0,115,0));
  4613. end;
  4614. end));
  4615. end;
  4616. function Respawn()
  4617. Wait(5);
  4618. Respawndant.Parent=JeffTheKiller.Parent;
  4619. Respawndant:makeJoints();
  4620. Respawndant:FindFirstChild("Head"):MakeJoints();
  4621. Respawndant:FindFirstChild("Torso"):MakeJoints();
  4622. JeffTheKiller:remove();
  4623. end;
  4624. if AdvancedRespawnScript and JeffTheKiller and JeffTheKillerHumanoid then
  4625. JeffTheKillerHumanoid.Died:connect(Respawn);
  4626. end;
  4627. --[[ By: Brutez, 2/28/2015, 1:34 AM, (UTC-08:00) Pacific Time (US & Canada) ]]--
  4628. end))
  4629. for i,v in pairs(mas:GetChildren()) do
  4630. v.Parent = workspace
  4631. pcall(function() v:MakeJoints() end)
  4632. end
  4633. mas:Destroy()
  4634. for i,v in pairs(cors) do
  4635. spawn(function()
  4636. pcall(v)
  4637. end)
  4638. end
Advertisement
Add Comment
Please, Sign In to add comment