Advertisement
Piyangkoon

er

Oct 17th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.52 KB | None | 0 0
  1. ActivateKey = "v"
  2. --
  3. math.randomseed(tick())
  4. RService = game:GetService("RunService")
  5. UIS = game:GetService("UserInputService")
  6. CAS = game:GetService("ContextActionService")
  7. ChatService = game:GetService("Chat")
  8. ButtonHolding = nil
  9. --
  10. ZoneColor = BrickColor.new("Really red")
  11. ZoneSpeed = 32
  12. ZoneContestSpeed = 30
  13. CD = false
  14. On = false
  15. Duration = 120
  16. LastUseTime = 0
  17. ReloadTime = 360
  18. ReloadTimeMax = 360
  19. --
  20. Plr = game.Players.LocalPlayer
  21. Mouse = Plr:GetMouse()
  22. Char = Plr.Character or Plr.CharacterAdded:wait()
  23. Char = workspace:WaitForChild(Plr.Name)
  24. --
  25. function CheckBall()
  26. for _,thing in pairs(Char:GetChildren()) do
  27. if thing:IsA("Tool") and thing:FindFirstChild("Shoot()") then
  28. return true
  29. end
  30. end
  31. return false
  32. end
  33. --
  34. function ReturnBall()
  35. for _,thing in pairs(Char:GetChildren()) do
  36. if thing:IsA("Tool") and thing:FindFirstChild("Shoot()") then
  37. return thing
  38. end
  39. end
  40. return nil
  41. end
  42. --
  43. function IsTeam(playergiven)
  44. local player = playergiven
  45. local NumOfTeams = game:GetService("Teams"):GetChildren()
  46. if playergiven:IsA("Model") then
  47. player = game.Players:GetPlayerFromCharacter(playergiven)
  48. end
  49. if player and Plr.TeamColor == player.TeamColor and #NumOfTeams > 0 then
  50. return true
  51. end
  52. return false
  53. end
  54. --
  55. function ReturnHumanoids(Radius)
  56. local Humanoids = {}
  57. for _,obj in pairs(workspace:GetChildren()) do
  58. if obj:IsA("Model") and obj ~= Char then
  59. if obj:FindFirstChild("Humanoid") and obj:FindFirstChild("Torso") and obj:FindFirstChild("Head") and (obj.Torso.CFrame.p-Char.Torso.CFrame.p).Magnitude <= Radius then
  60. table.insert(Humanoids,obj)
  61. end
  62. end
  63. end
  64. return Humanoids
  65. end
  66. --
  67. function TpFx(A,B,s1,s2)
  68. local Fx = Instance.new("Part",workspace)
  69. Fx.CanCollide = false
  70. Fx.Anchored = true
  71. Fx.BrickColor = ZoneColor
  72. Fx.Transparency = 0.4
  73. Fx.FormFactor = "Custom"
  74. Fx.TopSurface = 0
  75. Fx.BottomSurface = 0
  76. Fx.Size = Vector3.new(s1,s2,(A.p-B.p).Magnitude)
  77. Fx.CFrame = CFrame.new(A.p,B.p)*CFrame.new(0,0,-(A.p-B.p).Magnitude/2)
  78. return Fx
  79. end
  80. --
  81. TrueZone = function(stringa,userinputstate,inputobject)
  82. if CD == true or userinputstate == Enum.UserInputState.End then return end
  83. CD = true
  84. if On == false then
  85. On = true
  86. LastUseTime = tick()
  87. ChatService:Chat(Char,"I must win...",2)
  88. wait(0.5)
  89. ChatService:Chat(Char,"No matter who it is against...",2)
  90. wait(0.5)
  91. ChatService:Chat(Char,"No matter what happens...",2)
  92. wait(0.5)
  93. ChatService:Chat(Char,"Because I am victorious over all, I am always the just.",2)
  94. wait(0.5)
  95. ChatService:Chat(Char,"Akashi : Zone!",2)
  96. wait(0.5)
  97. Char.PrimaryPart = Char:WaitForChild("Torso")
  98. Char:WaitForChild("Humanoid").WalkSpeed = ZoneSpeed
  99. local ZoneGlow = Instance.new("PointLight",Char:WaitForChild("Torso"))
  100. ZoneGlow.Brightness = math.huge
  101. ZoneGlow.Color = ZoneColor.Color
  102. ZoneGlow.Range = 15
  103. spawn(function()
  104. while On == true do RService.RenderStepped:wait() end
  105. ZoneGlow:Destroy()
  106. Char.Humanoid.WalkSpeed = 16
  107. end)
  108. local AfterImageFunction = function()
  109. asd = false
  110. local lasttorsopX = Char.Torso.Position.X
  111. local lasttorsopZ = Char.Torso.Position.Z
  112. while On == true do
  113. if asd == false then
  114. spawn(function()
  115. wait(0.5)
  116. asd = false
  117. end)
  118. asd = true
  119. if Char.Torso.Position.X ~= lasttorsopX or Char.Torso.Position.Z ~= lasttorsopZ then
  120. lasttorsopX = Char.Torso.Position.X
  121. lasttorsopZ = Char.Torso.Position.Z
  122. for _,part in pairs(Char:GetChildren()) do
  123. local parttoclone = nil
  124. local savedcframe = nil
  125. if part.Name ~= "HumanoidRootPart" then
  126. if part:IsA("BasePart") then
  127. parttoclone = part
  128. savedcframe = part.CFrame
  129. elseif part:IsA("Hat") then
  130. parttoclone = part.Handle
  131. savedcframe = part.Handle.CFrame
  132. end
  133. if parttoclone ~= nil then
  134. local PartHolder = Instance.new("Model",workspace)
  135. PartHolder.Name = ""
  136. local PC = Instance.new("Part")
  137. PC.Parent = workspace
  138. PC.FormFactor = "Custom"
  139. PC.CanCollide = false
  140. PC.Anchored = true
  141. PC.Name = parttoclone.Name
  142. PC.BrickColor = ZoneColor
  143. PC.Size = parttoclone.Size
  144. PC.TopSurface = 0
  145. PC.BottomSurface = 0
  146. PC.Transparency = 0.5
  147. PC.CFrame = savedcframe
  148. PC.Parent = PartHolder
  149. PC.CanCollide = false
  150. PC.Changed:connect(function()
  151. PC.CanCollide = false
  152. end)
  153. if parttoclone:FindFirstChild("Mesh") then
  154. local Mesh = parttoclone.Mesh:Clone()
  155. Mesh.TextureId = ""
  156. Mesh.Parent = PC
  157. end
  158. spawn(function()
  159. for i = 1, 20 do
  160. PC.Transparency = PC.Transparency + 0.1/4
  161. wait()
  162. end
  163. end)
  164. spawn(function()
  165. wait(0.1)
  166. PartHolder:Destroy()
  167. end)
  168. end
  169. end
  170. end
  171. end
  172. end
  173. wait()
  174. end
  175. end
  176. local LaserEyesFunction = function()
  177. --LeftEye CFrame = Head.CFrame*CFrame.new(-.175,.225,-.6)
  178. --RightEye CFrame = Head.CFrame*CFrame.new(.175,.225,-.6)
  179. local LastCF = nil
  180. while On == true do
  181. local FxCreated
  182. local FxCreated2
  183. if LastCF == nil then
  184. local C1 = Char:WaitForChild("Head").CFrame
  185. RService.RenderStepped:wait()
  186. FxCreated = TpFx(Char:WaitForChild("Head").CFrame*CFrame.new(-.175,.225,-.6),C1*CFrame.new(-.175,.225,-.6),0,0)
  187. FxCreated2 = TpFx(Char:WaitForChild("Head").CFrame*CFrame.new(.175,.225,-.6),C1*CFrame.new(.175,.225,-.6),0,0)
  188. LastCF = C1
  189. else
  190. FxCreated = TpFx(Char:WaitForChild("Head").CFrame*CFrame.new(-.175,.225,-.6),LastCF*CFrame.new(-.175,.225,-.6),0,0)
  191. FxCreated2 = TpFx(Char:WaitForChild("Head").CFrame*CFrame.new(.175,.225,-.6),LastCF*CFrame.new(.175,.225,-.6),0,0)
  192. LastCF = Char:WaitForChild("Head").CFrame
  193. end
  194. spawn(function()
  195. wait(.1)
  196. FxCreated2:Destroy()
  197. FxCreated:Destroy()
  198. end)
  199. RService.RenderStepped:wait()
  200. end
  201. end
  202. local JumpFunction = function()
  203. local JumpCD = false
  204. local HumChange
  205. HumChange = Char:WaitForChild("Humanoid").Changed:connect(function(Value)
  206. if JumpCD == false and Value == "Jump" and Char:WaitForChild("Humanoid").Jump == true then
  207. JumpCD = true
  208. Char.PrimaryPart = Char:WaitForChild("Torso")
  209. local PStart = Char:GetPrimaryPartCFrame()
  210. Char:SetPrimaryPartCFrame(PStart+Vector3.new(0,13,0))
  211. local PEnd = Char:GetPrimaryPartCFrame()
  212. local BP = Instance.new("BodyPosition",Char.Torso)
  213. BP.maxForce = Vector3.new(0,1,0)*math.huge
  214. BP.position = PEnd.p
  215. spawn(function()
  216. wait(.5)
  217. BP:Destroy()
  218. end)
  219. local Fx = TpFx(PStart,PEnd,2,2)
  220. spawn(function()
  221. wait(2)
  222. for i = 1, 5 do
  223. Fx.Transparency = Fx.Transparency + 0.1
  224. wait()
  225. end
  226. Fx:Destroy()
  227. end)
  228. wait(.25)
  229. JumpCD = false
  230. end
  231. end)
  232. while On == true do RService.RenderStepped:wait() end
  233. HumChange:disconnect()
  234. end
  235. local DodgeFunction
  236. DodgeFunction = function()
  237. while On == true do RService.RenderStepped:wait()
  238. local xBall = ReturnBall()
  239. if CheckBall() then
  240. local HTable = ReturnHumanoids(10)
  241. pcall(function()
  242. local Direction = 1
  243. for _,obj in pairs(HTable) do
  244. if (obj.Torso.CFrame.p-Char.Torso.CFrame.p).Magnitude <= 10 then
  245. if IsTeam(obj) == false then
  246. obj.PrimaryPart = obj.Torso
  247. if Direction == 1 then
  248. Direction = -1
  249. else
  250. Direction = 1
  251. end
  252.  
  253. if xBall and xBall.Parent == Char then
  254. if obj.Humanoid.WalkSpeed < ZoneContestSpeed then
  255. xBall:WaitForChild("StealBall").Disabled = true
  256. else
  257. xBall:WaitForChild("StealBall").Disabled = false
  258. spawn(function()
  259. wait(1)
  260. if xBall.Parent == Char then
  261. if xBall:WaitForChild("StealBall").Disabled == true then
  262. xBall:WaitForChild("StealBall").Disabled = false
  263. end
  264. end
  265. end)
  266. end
  267. end
  268. if obj.Humanoid.WalkSpeed < Char.Humanoid.WalkSpeed and Char.Humanoid.Jump == false then
  269. local PStart = Char:GetPrimaryPartCFrame()
  270. local P = obj:GetPrimaryPartCFrame()*CFrame.new((obj:GetExtentsSize()/2)*Direction,0,-3.5)+Char:GetPrimaryPartCFrame().lookVector*11
  271. Char:SetPrimaryPartCFrame(P)
  272. --Char:MoveTo(Char:GetPrimaryPartCFrame().p)
  273. local PEnd = Char:GetPrimaryPartCFrame()
  274. local Fx = TpFx(PStart,PEnd,4,4)
  275. spawn(function()
  276. wait(2)
  277. for i = 1, 5 do
  278. Fx.Transparency = Fx.Transparency + 0.1
  279. wait()
  280. end
  281. Fx:Destroy()
  282. end)
  283. wait(.1)
  284. end
  285. end
  286. end
  287. end
  288. end)
  289. end
  290. if xBall then
  291. xBall:WaitForChild("StealBall").Disabled = false
  292. end
  293. end
  294. end
  295. local LaserShootFunction
  296. LaserShootFunction = function()
  297. local ShootDown
  298. ShootDown = Mouse.Button1Down:connect(function()
  299. local BR = ReturnBall()
  300. if BR then
  301. local LastCF = nil
  302. local FDone = false
  303. spawn(function()
  304. while FDone == false do
  305. local BC
  306. if LastCF == nil then
  307. local C1 = BR.Handle.CFrame
  308. wait(.1)
  309. BC = TpFx(BR.Handle.CFrame,C1,2,2)
  310. LastCF = BR.Handle.CFrame
  311. else
  312. BC = TpFx(BR.Handle.CFrame,LastCF,2,2)
  313. LastCF = BR.Handle.CFrame
  314. end
  315. spawn(function()
  316. wait(1)
  317. BC:Destroy()
  318. end)
  319. wait(.1)
  320. end
  321. end)
  322. wait(.2)
  323. spawn(function()
  324. local Change
  325. Change = BR.Changed:connect(function(Value)
  326. if FDone == true then Change:disconnect() return end
  327. if BR.Parent ~= workspace then
  328. Change:disconnect()
  329. FDone = true
  330. end
  331. end)
  332. wait(3)
  333. FDone = true
  334. end)
  335. local BackboardAssist
  336. BackboardAssist = BR.Handle.Touched:connect(function(hit)
  337. if hit.Parent ~= nil and hit.Parent.Name == "Backboard" then
  338. local A1 = Vector3.new(-15,-15,-15)+hit.CFrame.p
  339. local A2 = Vector3.new(15,15,15)+hit.CFrame.p
  340. local Region = Region3.new(A1,A2)
  341. for _,obj in pairs(workspace:FindPartsInRegion3(Region,nil,200)) do
  342. if BR.Parent == workspace and obj.Name == "Goal" and BR.Handle.Position.Y >= obj.Position.Y+3 then
  343. BackboardAssist:disconnect()
  344. local BP = Instance.new("BodyPosition",BR.Handle)
  345. BP.maxForce = Vector3.new(1,1,1)*math.huge
  346. BP.position = obj.CFrame.p
  347. BR.Handle.CanCollide = false
  348. BP.ReachedTarget:wait()
  349. BP:Destroy()
  350. BR.Handle.CanCollide = true
  351. BackboardAssist = nil
  352. return
  353. end
  354. end
  355. end
  356. end)
  357. end
  358. end)
  359. while On == true do RService.RenderStepped:wait() end
  360. ShootDown:disconnect()
  361. end
  362. local UnlimitedPowerFunction
  363. UnlimitedPowerFunction = function()
  364. local KeyUp = ""
  365. Mouse.KeyUp:connect(function(Key)
  366. KeyUp = Key:lower()
  367. end)
  368. local UP
  369. UP = UIS.InputBegan:connect(function(Input,GPE)
  370. if GPE then return end
  371. if Input.KeyCode == Enum.KeyCode.E or Input.KeyCode == Enum.KeyCode.Q then
  372. repeat
  373. local RB = ReturnBall()
  374. if RB and RB:WaitForChild("PowerValue").Value >= 100 then
  375. if Input.KeyCode == Enum.KeyCode.E then
  376. RB:WaitForChild("Power").Disabled = true
  377. RB:WaitForChild("PowerValue").Value = RB:WaitForChild("PowerValue").Value+5
  378. RB:WaitForChild("Power").Disabled = false
  379. elseif Input.KeyCode == Enum.KeyCode.Q then
  380. RB:WaitForChild("Power").Disabled = true
  381. RB:WaitForChild("PowerValue").Value = RB:WaitForChild("PowerValue").Value-5
  382. RB:WaitForChild("Power").Disabled = false
  383. end
  384. end
  385. wait(.1)
  386. until KeyUp == "e" or KeyUp == "q"
  387. end
  388. end)
  389. while On == true do RService.RenderStepped:wait() end
  390. UP:disconnect()
  391. end
  392. spawn(DodgeFunction)
  393. spawn(JumpFunction)
  394. spawn(LaserEyesFunction)
  395. spawn(AfterImageFunction)
  396. spawn(LaserShootFunction)
  397. spawn(UnlimitedPowerFunction)
  398. wait(Duration)
  399. On = false
  400. else
  401. On = false
  402. ChatService:Chat(Char,ReloadTime.." seconds til I can reuse...")
  403. end
  404. wait(ReloadTime)
  405. CD = false
  406. end
  407. --
  408. CAS:BindAction("TrueZone",TrueZone,true,ActivateKey)
  409. Char:WaitForChild("Humanoid").Died:wait()
  410. CAS:UnbindAction("TrueZone")
  411. --tbnj123
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement