Advertisement
carlosname

Untitled

Mar 4th, 2023
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.17 KB | None | 0 0
  1. --- Equip/UnEquip
  2. local LightningBolt = require(game.ReplicatedStorage.LightningBolt)
  3. local LightningSparks = require(game.ReplicatedStorage.LightningBolt.LightningSparks)
  4.  
  5. local Tool = script.Parent
  6.  
  7. Tool.Equipped:Connect(function()
  8. Tool.Equip.Value = true
  9. end)
  10.  
  11. Tool.Unequipped:Connect(function()
  12. Tool.Equip.Value = false
  13. end)
  14.  
  15. local UIS = game:GetService("UserInputService")
  16. local plr = game.Players.LocalPlayer
  17. local Mouse = plr:GetMouse()
  18. Player = game.Players.LocalPlayer
  19. local Track1 : Animation = script:WaitForChild("Anim01")
  20. Track1 = Player.Character:WaitForChild("Humanoid"):LoadAnimation(script.Anim01)
  21. local Track2 : Animation = script:WaitForChild("Anim02")
  22. Track2 = Player.Character:WaitForChild("Humanoid"):LoadAnimation(script.Anim02)
  23. local Track3 : Animation = script:WaitForChild("Anim03")
  24. Track3 = Player.Character:WaitForChild("Humanoid"):LoadAnimation(script.Anim03)
  25. local Track4 : Animation = script:WaitForChild("Anim04")
  26. Track4 = Player.Character:WaitForChild("Humanoid"):LoadAnimation(script.Anim04)
  27. local Track5 : Animation = script:WaitForChild("Anim05")
  28. Track5 = Player.Character:WaitForChild("Humanoid"):LoadAnimation(script.Anim05)
  29. local PrevWalkSpeed = nil
  30. local Tween = game:GetService("TweenService")
  31. local Gui = Player.PlayerGui:WaitForChild("Rumble_Skill_List".. Player.Name):WaitForChild("Frame")
  32.  
  33. local CooldownEDur = 5
  34. local CanUseE = true
  35. local CooldownRDur = 5
  36. local CanUseR = true
  37. local CooldownXDur = 5
  38. local CanUseZ = true
  39. local CooldownZDur = 5
  40. local CanUseX = true
  41. local CooldownCDur = 5
  42. local CanUseC = true
  43. local CooldownDashDur = 0.2
  44. local CanDash = true
  45.  
  46. local char = plr.Character
  47. local Size = 20
  48.  
  49. local CooldownTDur = 5
  50. local CanUseT = true
  51. local HoldingT = false
  52. local BetweenTime = 0
  53. local AmountOfTP = 0
  54. local GoroFlightDistancePerTick = 35
  55.  
  56. UIS.InputBegan:Connect(function(Input)
  57. local char = plr.Character
  58. if Input.KeyCode == Enum.KeyCode.Q and CanDash == true and plr.Character.Humanoid.FloorMaterial ~= nil and plr.Character.Humanoid.FloorMaterial ~= Enum.Material.Air and Tool.Active.Value == "None" then
  59. local position = plr.Character.PrimaryPart.Position
  60. local PartDash :Part = Instance.new("Part", workspace.Visuals)
  61. PartDash.CFrame = char.PrimaryPart.CFrame
  62. PartDash.CanCollide = false
  63. PartDash.Anchored = true
  64. PartDash.Transparency = 1
  65. local A1 = Instance.new("Attachment", PartDash)
  66. A1.WorldPosition = char.PrimaryPart.Position
  67. A1.Visible = false
  68. local A2 = Instance.new("Attachment", char.PrimaryPart)
  69. A2.Visible = false
  70. A2.Position = Vector3.new(0,0,1)
  71. local PointLight = Instance.new("PointLight", A2)
  72. local Sound = game.ReplicatedStorage.Goro.DashZap:Clone()
  73. Sound.Parent = char.PrimaryPart
  74. Sound:Play()
  75. game.Debris:AddItem(Sound,1)
  76. PointLight.Color = Color3.fromRGB(49, 235, 255)
  77. PointLight.Range = 0
  78. PointLight.Brightness = 30
  79. game.Debris:AddItem(PointLight, 1)
  80. game.Debris:AddItem(PartDash, 1)
  81.  
  82. local Distance = 15
  83. Tween:Create(PointLight, TweenInfo.new(0.4), {Range = Distance, Brightness = 0}):Play()
  84. wait()
  85. if char.Humanoid.MoveDirection == Vector3.new(0,0,0) then
  86. local RayCast = Ray.new(char.PrimaryPart.Position, char.PrimaryPart.CFrame.LookVector * Distance)
  87. local PartDash, Pos = game.Workspace:FindPartOnRayWithIgnoreList(RayCast, {char, PartDash, workspace.Visuals})
  88. char.PrimaryPart.CFrame = CFrame.new(Pos.X, Pos.Y, Pos.Z) * CFrame.fromOrientation(char.PrimaryPart.Orientation.X*3.14/180,char.PrimaryPart.Orientation.Y*3.14/180,char.PrimaryPart.Orientation.Z*3.14/180)
  89. else
  90. local RayCast = Ray.new(char.PrimaryPart.Position, char.Humanoid.MoveDirection * Distance)
  91. local PartDash, Pos = game.Workspace:FindPartOnRayWithIgnoreList(RayCast, {char, PartDash, workspace.Visuals})
  92. char.PrimaryPart.CFrame = CFrame.new(Pos.X, Pos.Y, Pos.Z) * CFrame.fromOrientation(char.PrimaryPart.Orientation.X*3.14/180,char.PrimaryPart.Orientation.Y*3.14/180,char.PrimaryPart.Orientation.Z*3.14/180)
  93. end
  94. script.Fire:FireServer("GoroDash", position)
  95. position = nil
  96.  
  97. CanDash = false
  98.  
  99. local NewBolt = LightningBolt.new(A1, A2, 25)
  100. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  101. NewBolt.PulseSpeed = 10
  102. NewBolt.Thickness = 1
  103. NewBolt.PulseLength = 1
  104. NewBolt.FadeLength = 0.45
  105. NewBolt.RanNum = 10
  106. NewBolt.Frequency = 5
  107. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  108.  
  109. local NewSparks = LightningSparks.new(NewBolt, 20)
  110. wait(CooldownDashDur)
  111. CanDash = true
  112. elseif Input.KeyCode == Enum.KeyCode.E and CanUseE == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
  113. Tool.Active.Value = "1LightningParalyze"
  114. PrevWalkSpeed = Player.Character:WaitForChild("Humanoid").WalkSpeed
  115. Gui:FindFirstChild(Tool.Active.Value).Frame.Size = UDim2.new(1, 0, 1, 0)
  116. Player.Character:WaitForChild("Humanoid").WalkSpeed = 5
  117. Track1:Play()
  118. script.Fire:FireServer("holdE")
  119. sphere = game.ReplicatedStorage.Goro.Radius:Clone()
  120. local Weld = Instance.new("Weld", sphere)
  121. Weld.Part0 = plr.Character.PrimaryPart
  122. Weld.Part1 = sphere
  123. sphere.Parent = game.Workspace.Visuals
  124. sphere.Transparency = 1
  125. Size = math.clamp(10, 10, 40)
  126. delay(0.3, function()
  127. Track1:AdjustSpeed(0)
  128. end)
  129. if Tool.Active.Value == "1LightningParalyze" then
  130. for i = 1,320 do -- (Max Size - Min Size)*1/4
  131. if Tool.Active.Value == "1LightningParalyze" then
  132. Size = math.clamp(Size + 1/4, 20, 100)
  133. Tween:Create(sphere.Mesh, TweenInfo.new(0.1), {Scale = Vector3.new(Size * 0.5, Size * 0.5, Size * 0.5)}):Play()
  134. Tween:Create(sphere, TweenInfo.new(0.5), {Transparency = 0}):Play()
  135. wait(0.05)
  136. end
  137. end
  138. end
  139. elseif Input.KeyCode == Enum.KeyCode.R and CanUseR == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
  140. Tool.Active.Value = "2FlashSmash"
  141. char.PrimaryPart.Anchored = true
  142. LookAtMouse = true
  143. Gui:FindFirstChild(Tool.Active.Value).Frame.Size = UDim2.new(1, 0, 1, 0)
  144. Track2:Play()
  145. script.Fire:FireServer("holdR")
  146. delay(0.4, function()
  147. Track2:AdjustSpeed(0)
  148. end)
  149. while LookAtMouse == true and char.PrimaryPart.Anchored == true do
  150. plr.Character.PrimaryPart.CFrame = CFrame.lookAt(plr.Character.PrimaryPart.Position, Vector3.new(Mouse.Hit.p.X, plr.Character.PrimaryPart.Position.Y, Mouse.Hit.p.Z), Vector3.new(0,1,0))
  151. wait()
  152. end
  153. elseif Input.KeyCode == Enum.KeyCode.Z and CanUseZ == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
  154. Tool.Active.Value = "3ElThor"
  155. char.PrimaryPart.Anchored = true
  156. PrevWalkSpeed = Player.Character:WaitForChild("Humanoid").WalkSpeed
  157. Gui:FindFirstChild(Tool.Active.Value).Frame.Size = UDim2.new(1, 0, 1, 0)
  158. Player.Character:WaitForChild("Humanoid").WalkSpeed = 5
  159. Track3:Play()
  160. script.Fire:FireServer("holdZ")
  161. Track3:AdjustSpeed(0)
  162. LookAtMouse = true
  163. while LookAtMouse == true do
  164. plr.Character.PrimaryPart.CFrame = CFrame.lookAt(plr.Character.PrimaryPart.Position, Vector3.new(Mouse.Hit.p.X, plr.Character.PrimaryPart.Position.Y, Mouse.Hit.p.Z), Vector3.new(0,1,0))
  165. wait()
  166. end
  167.  
  168. elseif Input.KeyCode == Enum.KeyCode.X and CanUseX == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
  169. Tool.Active.Value = "4LightningDragon"
  170. char.PrimaryPart.Anchored = true
  171. PrevWalkSpeed = Player.Character:WaitForChild("Humanoid").WalkSpeed
  172. Gui:FindFirstChild(Tool.Active.Value).Frame.Size = UDim2.new(1, 0, 1, 0)
  173. Player.Character:WaitForChild("Humanoid").WalkSpeed = 5
  174. Track4:Play()
  175. script.Fire:FireServer("holdX")
  176. delay(0.15, function()
  177. Track4:AdjustSpeed(0)
  178. end)
  179. LookAtMouse = true
  180. while LookAtMouse == true do
  181. plr.Character.PrimaryPart.CFrame = CFrame.lookAt(plr.Character.PrimaryPart.Position, Vector3.new(Mouse.Hit.p.X, plr.Character.PrimaryPart.Position.Y, Mouse.Hit.p.Z), Vector3.new(0,1,0))
  182. wait()
  183. end
  184.  
  185. elseif Input.KeyCode == Enum.KeyCode.C and CanUseC == true and Tool.Equip.Value == true and Tool.Active.Value == "None" then
  186. Tool.Active.Value = "5GoroUlt"
  187. PrevWalkSpeed = Player.Character:WaitForChild("Humanoid").WalkSpeed
  188. Gui:FindFirstChild(Tool.Active.Value).Frame.Size = UDim2.new(1, 0, 1, 0)
  189. Player.Character:WaitForChild("Humanoid").WalkSpeed = 5
  190. Track5:Play()
  191. script.Fire:FireServer("holdC")
  192. delay(0.55, function()
  193. Track5:AdjustSpeed(0)
  194. end)
  195. LookAtMouse = true
  196. while LookAtMouse == true do
  197. plr.Character.PrimaryPart.CFrame = CFrame.lookAt(plr.Character.PrimaryPart.Position, Vector3.new(Mouse.Hit.p.X, plr.Character.PrimaryPart.Position.Y, Mouse.Hit.p.Z), Vector3.new(0,1,0))
  198. wait()
  199. end
  200. elseif Input.KeyCode == Enum.KeyCode.T and Tool.Active.Value == "None" and Tool.Equip.Value == true then
  201. Tool.Active.Value = "6GoroFlight"
  202. HoldingT = true
  203. AmountOfTP = 0
  204. BetweenTime = 0
  205. local A3 = Instance.new("Attachment", plr.Character.PrimaryPart)
  206. A3.Name = "AmongUsAttachmentSuspicious:O"
  207. local Particle1 = game.ReplicatedStorage.Goro.Electric2:Clone()
  208. Particle1.Parent = A3
  209. Particle1.Enabled = true
  210. local Particle2 = game.ReplicatedStorage.Goro.Flash:Clone()
  211. Particle2.Parent = A3
  212. Particle2.Enabled = true
  213. Gui:FindFirstChild(Tool.Active.Value).Frame.Size = UDim2.new(1, 0, 1, 0)
  214. script.Fire:FireServer("GoroFlight1", plr.Character)
  215. for _, ItemF in pairs(plr.Character:GetDescendants()) do
  216. if ItemF:IsA("MeshPart") or ItemF:IsA("Part") or ItemF:IsA("Union") then
  217. if ItemF.Name ~= "HumanoidRootPart" then
  218. ItemF.Transparency = ItemF.Transparency + 10
  219. local ElectricParticle = game.ReplicatedStorage.Goro.ElectricParticle:Clone()
  220. ElectricParticle.Enabled = true
  221. ElectricParticle.Parent = ItemF
  222. end
  223. end
  224. end
  225. while HoldingT == true do
  226. AmountOfTP = AmountOfTP + 1
  227. plr.Character.PrimaryPart.Anchored = true
  228. local ray = Ray.new(plr.Character.PrimaryPart.Position, CFrame.new(plr.Character.PrimaryPart.Position, Mouse.Hit.p).LookVector * GoroFlightDistancePerTick)
  229. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  230. local position = plr.Character.PrimaryPart.Position
  231. local PartDash :Part = Instance.new("Part", workspace.Visuals)
  232. plr.Character.PrimaryPart.CFrame = CFrame.lookAt(plr.Character.PrimaryPart.Position, HitPos)
  233. PartDash.CFrame = char.PrimaryPart.CFrame
  234. PartDash.CanCollide = false
  235. PartDash.Anchored = true
  236. PartDash.Transparency = 1
  237. local A1 = Instance.new("Attachment", PartDash)
  238. A1.WorldPosition = char.PrimaryPart.Position
  239. A1.Visible = false
  240. local A2 = Instance.new("Attachment", char.PrimaryPart)
  241. A2.Visible = false
  242. A2.Position = Vector3.new(0,0,1)
  243. local Particle1 = game.ReplicatedStorage.Goro.Electric2:Clone()
  244. Particle1.Parent = A2
  245. local Particle2 = game.ReplicatedStorage.Goro.Flash:Clone()
  246. Particle2.Parent = A2
  247. local PointLight = Instance.new("PointLight", A2)
  248. local Sound = game.ReplicatedStorage.Goro.DashZap:Clone()
  249. Sound.Parent = char.PrimaryPart
  250. Sound:Play()
  251. game.Debris:AddItem(Sound,1)
  252. PointLight.Color = Color3.fromRGB(49, 235, 255)
  253. PointLight.Range = 0
  254. PointLight.Brightness = 30
  255. game.Debris:AddItem(PointLight, 1)
  256. game.Debris:AddItem(PartDash, 1)
  257.  
  258. local Distance = 15
  259. Tween:Create(PointLight, TweenInfo.new(0.4), {Range = Distance, Brightness = 0}):Play()
  260. wait()
  261. Particle1:Emit(50)
  262. Particle2:Emit(5)
  263. char.PrimaryPart.CFrame = CFrame.new(HitPos.X, HitPos.Y + 4, HitPos.Z) * CFrame.fromOrientation(char.PrimaryPart.Orientation.X*3.14/180,char.PrimaryPart.Orientation.Y*3.14/180,char.PrimaryPart.Orientation.Z*3.14/180)
  264. script.Fire:FireServer("GoroFlight2", position, HitPos)
  265. position = nil
  266.  
  267. local NewBolt = LightningBolt.new(A1, A2, 25)
  268. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  269. NewBolt.PulseSpeed = 10
  270. NewBolt.Thickness = 1
  271. NewBolt.PulseLength = 2
  272. NewBolt.FadeLength = 0.45
  273. NewBolt.RanNum = 10
  274. NewBolt.Frequency = 5
  275. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  276. NewBolt.MaxRadius = 4
  277. local NewSparks = LightningSparks.new(NewBolt, 20)
  278.  
  279. wait(BetweenTime)
  280.  
  281. if BetweenTime == 0 then
  282. BetweenTime = 1
  283. else
  284. BetweenTime = math.clamp(BetweenTime - BetweenTime/2, 0.25, 2)
  285. end
  286. end
  287. end
  288. end)
  289.  
  290. UIS.InputEnded:Connect(function(Input)
  291. if Input.KeyCode == Enum.KeyCode.E and CanUseE == true and Tool.Equip.Value == true and Tool.Active.Value == "1LightningParalyze" then
  292. Player.Character:WaitForChild("1LightningParalyzeValue", 1200)
  293. CanUseE = false
  294. sphere.Mesh.Scale = Vector3.new(0,0,0)
  295. Track1:AdjustSpeed(1)
  296. wait(0.1)
  297. sphere.Mesh.Scale = Vector3.new(0,0,0)
  298. Tween:Create(sphere.Mesh, TweenInfo.new(0.5), {Scale = Vector3.new(Size, Size, Size)}):Play()
  299. Tween:Create(sphere, TweenInfo.new(0.5), {Transparency = 1}):Play()
  300. game.Debris:AddItem(sphere, 2)
  301. script.Fire:FireServer("releaseE", plr.Character.PrimaryPart.CFrame, Size)
  302. Size = 10
  303. Tween:Create(Gui:FindFirstChild(Tool.Active.Value).Frame, TweenInfo.new(CooldownEDur, Enum.EasingStyle.Linear), {Size = UDim2.new(0, 0, 1, 0)}):Play()
  304. Tool.Active.Value = "None"
  305. Player.Character:WaitForChild("Humanoid").WalkSpeed = PrevWalkSpeed
  306. wait(CooldownEDur)
  307. CanUseE = true
  308. elseif Input.KeyCode == Enum.KeyCode.R and CanUseR == true and Tool.Equip.Value == true and Tool.Active.Value == "2FlashSmash" then
  309. LookAtMouse = false
  310. Player.Character:WaitForChild("2FlashSmashValue", 1200)
  311. CanUseR = false
  312. Track2:AdjustSpeed(1)
  313. local PrevCFrame = plr.Character.PrimaryPart.CFrame
  314. local ray = Ray.new(plr.Character.PrimaryPart.Position, CFrame.new(plr.Character.PrimaryPart.Position, Mouse.Hit.p).LookVector * 100)
  315. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  316. wait(0.1)
  317. delay(0.8, function()
  318. char.PrimaryPart.Anchored = false
  319. end)
  320. script.Fire:FireServer("releaseR", PrevCFrame, HitPos, plr.Character.PrimaryPart.Position)
  321. Tween:Create(Gui:FindFirstChild(Tool.Active.Value).Frame, TweenInfo.new(CooldownRDur, Enum.EasingStyle.Linear), {Size = UDim2.new(0, 0, 1, 0)}):Play()
  322. Tool.Active.Value = "None"
  323. wait(CooldownRDur)
  324. CanUseR = true
  325. elseif Input.KeyCode == Enum.KeyCode.Z and CanUseZ == true and Tool.Equip.Value == true and Tool.Active.Value == "3ElThor" then
  326. Player.Character:WaitForChild("3ElThorValue", 1200)
  327. CanUseZ = false
  328. LookAtMouse = false
  329. Track3:AdjustSpeed(1)
  330. local ray = Ray.new(plr.Character.PrimaryPart.Position, CFrame.new(plr.Character.PrimaryPart.Position, Mouse.Hit.p).LookVector * 500)
  331. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  332. delay(0.1, function()
  333. char.PrimaryPart.Anchored = false
  334. script.Fire:FireServer("releaseZ", HitPos)
  335. Tween:Create(Gui:FindFirstChild(Tool.Active.Value).Frame, TweenInfo.new(CooldownZDur, Enum.EasingStyle.Linear), {Size = UDim2.new(0, 0, 1, 0)}):Play()
  336. Tool.Active.Value = "None"
  337. Player.Character:WaitForChild("Humanoid").WalkSpeed = PrevWalkSpeed
  338. wait(CooldownZDur)
  339. CanUseZ = true
  340. end)
  341. elseif Input.KeyCode == Enum.KeyCode.X and CanUseX == true and Tool.Equip.Value == true and Tool.Active.Value == "4LightningDragon" then
  342. Player.Character:WaitForChild("4LightningDragonValue", 1200)
  343. CanUseX = false
  344. LookAtMouse = false
  345. Track4:AdjustSpeed(1)
  346. local ray = Ray.new(plr.Character.PrimaryPart.Position, CFrame.new(plr.Character.PrimaryPart.Position, Mouse.Hit.p).LookVector * 500)
  347. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  348. delay(0.1, function()
  349. char.PrimaryPart.Anchored = false
  350. script.Fire:FireServer("releaseX", HitPos)
  351. Tween:Create(Gui:FindFirstChild(Tool.Active.Value).Frame, TweenInfo.new(CooldownXDur, Enum.EasingStyle.Linear), {Size = UDim2.new(0, 0, 1, 0)}):Play()
  352. Tool.Active.Value = "None"
  353. Player.Character:WaitForChild("Humanoid").WalkSpeed = PrevWalkSpeed
  354. wait(CooldownXDur)
  355. CanUseX = true
  356. delay(0.05, function()
  357. Track4:AdjustSpeed(1)
  358. end)
  359. end)
  360. elseif Input.KeyCode == Enum.KeyCode.C and CanUseC == true and Tool.Equip.Value == true and Tool.Active.Value == "5GoroUlt" then
  361. Player.Character:WaitForChild("5GoroUltValue", 1200)
  362. CanUseC = false
  363. LookAtMouse = false
  364. Track5:AdjustSpeed(1)
  365. local ray = Ray.new(plr.Character.PrimaryPart.Position, CFrame.new(plr.Character.PrimaryPart.Position, Mouse.Hit.p).LookVector * 1200)
  366. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  367. delay(0.1, function()
  368. script.Fire:FireServer("releaseC", plr.Character.PrimaryPart.CFrame, HitPos)
  369. Tween:Create(Gui:FindFirstChild(Tool.Active.Value).Frame, TweenInfo.new(CooldownCDur, Enum.EasingStyle.Linear), {Size = UDim2.new(0, 0, 1, 0)}):Play()
  370. Tool.Active.Value = "None"
  371. Player.Character:WaitForChild("Humanoid").WalkSpeed = PrevWalkSpeed
  372. wait(CooldownCDur)
  373. CanUseC = true
  374. end)
  375. elseif Input.KeyCode == Enum.KeyCode.T and Tool.Active.Value == "6GoroFlight" and Tool.Equip.Value == true and CanUseT == true then
  376. HoldingT = false
  377. script.Fire:FireServer("GoroFlight3", plr.Character)
  378. for _, ItemF in pairs(plr.Character:GetDescendants()) do
  379. if ItemF.Name ~= "HumanoidRootPart" then
  380. if ItemF:IsA("MeshPart") or ItemF:IsA("Part") or ItemF:IsA("Union") then
  381. ItemF.Transparency = ItemF.Transparency - 10
  382. if ItemF:FindFirstChild("ElectricParticle") then
  383. ItemF.ElectricParticle:Destroy()
  384. end
  385. elseif ItemF.Name == "AmongUsAttachmentSuspicious:O" then
  386. ItemF:FindFirstChild("Flash").Enabled = false
  387. ItemF:FindFirstChild("Electric2").Enabled = false
  388. game.Debris:AddItem(ItemF, 1)
  389. end
  390. end
  391. end
  392. delay(0.4, function()
  393. Tween:Create(Gui:FindFirstChild(Tool.Active.Value).Frame, TweenInfo.new(CooldownCDur, Enum.EasingStyle.Linear), {Size = UDim2.new(0, 0, 1, 0)}):Play()
  394. CanUseT = false
  395. Tool.Active.Value = "None"
  396. plr.Character.PrimaryPart.Anchored = false
  397. BetweenTime = 0
  398. AmountOfTP = 0
  399. wait(CooldownTDur)
  400. CanUseT = true
  401. end)
  402. end
  403. end)
  404.  
  405. --------------------------------------------------------------------------------------------------------------------------------------
  406. local IsHitting = false
  407. local Proto1 = nil
  408. local Proto2 = nil
  409. local Proto3 = nil
  410. local TweenService = game:GetService("TweenService")
  411. local ChargeTimeE = 0.3
  412. local ChargeTimeR = 0.5
  413. local ChargeTimeZ = 0.4
  414. local ChargeTimeX = 0.2
  415. local ChargeTimeC = 0.4
  416. local Timer = nil
  417. local UltCharging = false
  418. local UltSize = 10
  419.  
  420. script.Parent.OnServerEvent:Connect(function(plr, val, Item1, Item2, Item3)
  421. if val == "holdE" then
  422. Timer = ChargeTimeE
  423. for i = 1,ChargeTimeE*10 do
  424. Timer = Timer - 0.1
  425. wait(0.1)
  426. end
  427. local Value = Instance.new("StringValue")
  428. Value.Name = "1LightningParalyzeValue"
  429. Value.Parent = plr.Character
  430. Proto2 = Value
  431. elseif val == "releaseE" then
  432. IsHitting = true
  433. game.ReplicatedStorage.FireClientEvent:FireAllClients("LightningCloud", plr.Character.RightHand)
  434. local Projectile = game.ReplicatedStorage.Goro.Radius:Clone()
  435. local Item22 = math.clamp(Item2, 20, 100)
  436. Projectile.Size = Vector3.new(Item22, Item22, Item22)
  437. Projectile.Transparency = 1
  438. Projectile.Anchored = true
  439. Projectile.Parent = workspace.Visuals
  440. Projectile.Sound:Play()
  441. Projectile.Sound.TimePosition = 0.7
  442. game.Debris:AddItem(Proto2, 2)
  443. Proto2 = nil
  444. Projectile.CFrame = Item1
  445. Projectile.Touched:Connect(function(hit)
  446. if hit.Parent:FindFirstChild("Humanoid") and IsHitting == true then
  447. if hit.Parent.Name ~= plr.Name and not hit.Parent:FindFirstChild("AlreadyHitLightningParalyze".. plr.Name) then
  448. local Check = Instance.new("IntValue", hit.Parent)
  449. Check.Name = "AlreadyHitLightningParalyze".. plr.Name
  450. game.Debris:AddItem(Check ,1)
  451. hit.Parent.PrimaryPart.Anchored = false
  452. local B2V = Instance.new("BodyPosition",hit.Parent.PrimaryPart)
  453. B2V.Position = hit.Parent.PrimaryPart.Position + Vector3.new(0,6,0)
  454. B2V.MaxForce = Vector3.new(150000,150000,150000)
  455. wait(math.random(1,3)/10)
  456. hit.Parent.Humanoid:TakeDamage(10)
  457. game.Debris:AddItem(B2V, 0.5)
  458. game.ReplicatedStorage.FireClientEvent:FireAllClients("LightningCloud", hit.Parent.Head)
  459. end
  460. end
  461. end)
  462. wait(0.3)
  463. IsHitting = false
  464. game.Debris:AddItem(Projectile, 0.1)
  465. elseif val == "holdR" then
  466. Timer = ChargeTimeR
  467. for i = 1,ChargeTimeR*10 do
  468. Timer = Timer - 0.1
  469. wait(0.1)
  470. end
  471. local Value = Instance.new("StringValue")
  472. Value.Name = "2FlashSmashValue"
  473. Value.Parent = plr.Character
  474. Proto2 = Value
  475. elseif val == "releaseR" then
  476. Proto2:Destroy()
  477. Proto2 = nil
  478. plr.Character.PrimaryPart.CFrame = CFrame.new(Item2.X, Item2.Y + 4, Item2.Z) * CFrame.fromOrientation(Item1.Rotation.X*3.14/180,Item1.Rotation.Y*3.14/180,Item1.Rotation.Z*3.14/180)
  479. game.ReplicatedStorage.FireClientEvent:FireAllClients("GoroDash", plr, Item3, "ForAll")
  480. wait(0.4)
  481. local Projectile = game.ReplicatedStorage.Goro.Radius:Clone()
  482. Projectile.Size = Vector3.new(45,45,45)
  483. Projectile.Transparency = 1
  484. Projectile.Mesh:Destroy()
  485. Projectile.Anchored = true
  486. Projectile.Parent = workspace.Visuals
  487. Projectile.CFrame = CFrame.new(Item2)
  488. Projectile.Touched:Connect(function(hit)
  489. if hit.Parent:FindFirstChild("Humanoid") then
  490. if hit.Parent.Name ~= plr.Name and not hit.Parent:FindFirstChild("AlreadyHitFlashSmash".. plr.Name) then
  491. local Check = Instance.new("IntValue", hit.Parent)
  492. Check.Name = "AlreadyHitFlashSmash".. plr.Name
  493. game.Debris:AddItem(Check ,1)
  494. hit.Parent.PrimaryPart.Anchored = false
  495. local B2V = Instance.new("BodyVelocity",hit.Parent.PrimaryPart)
  496. B2V.Velocity = CFrame.new(Projectile.Position, hit.Parent.HumanoidRootPart.Position).LookVector * 30 + Projectile.CFrame.UpVector * 10
  497. B2V.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  498. hit.Parent.Humanoid:TakeDamage(20)
  499. game.Debris:AddItem(B2V, 0.64)
  500. game.ReplicatedStorage.FireClientEvent:FireAllClients("Electrify", hit.Parent)
  501. end
  502. end
  503. end)
  504. game.Debris:AddItem(Projectile, 0.6)
  505. elseif val == "holdZ" then
  506. Timer = ChargeTimeZ
  507. for i = 1,ChargeTimeZ*10 do
  508. Timer = Timer - 0.1
  509. wait(0.1)
  510. end
  511. local Value = Instance.new("StringValue")
  512. Value.Name = "3ElThorValue"
  513. Value.Parent = plr.Character
  514. Proto1 = Value
  515. elseif val == "releaseZ" then
  516. Proto1:Destroy()
  517. Proto1 = nil
  518. game.ReplicatedStorage.FireClientEvent:FireAllClients("ElThor", Item1, plr)
  519. for i = 1,10 do
  520. local Projectile = game.ReplicatedStorage.Goro.Radius:Clone()
  521. Projectile.Size = Vector3.new(80,80,80)
  522. Projectile.Transparency = 1
  523. Projectile.Mesh:Destroy()
  524. Projectile.Anchored = true
  525. Projectile.Parent = workspace.Visuals
  526. Projectile.CFrame = CFrame.new(Item1)
  527. Projectile.Touched:Connect(function(hit)
  528. if hit.Parent:FindFirstChild("Humanoid") then
  529. if hit.Parent.Name ~= plr.Name and not hit.Parent:FindFirstChild("AlreadyHitElThor"..i.. plr.Name) then
  530. local Check = Instance.new("IntValue", hit.Parent)
  531. Check.Name = "AlreadyHitElThor"..i.. plr.Name
  532. game.Debris:AddItem(Check, 1)
  533. hit.Parent.PrimaryPart.Anchored = false
  534. local B2V = Instance.new("BodyVelocity",hit.Parent.PrimaryPart)
  535. B2V.Velocity = CFrame.new(Projectile.Position, Vector3.new(hit.Parent.HumanoidRootPart.Position.X,Projectile.Position.Y,hit.Parent.HumanoidRootPart.Position.Z)).LookVector * 60 + Projectile.CFrame.UpVector * 20
  536. B2V.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  537. hit.Parent.Humanoid:TakeDamage(5)
  538. game.Debris:AddItem(B2V, 0.3)
  539. game.ReplicatedStorage.FireClientEvent:FireAllClients("Electrify", hit.Parent)
  540. end
  541. end
  542. end)
  543. game.Debris:AddItem(Projectile, 0.3)
  544. wait(0.2)
  545. end
  546. elseif val == "holdX" then
  547. Timer = ChargeTimeX
  548. for i = 1,ChargeTimeX*10 do
  549. Timer = Timer - 0.1
  550. wait(0.1)
  551. end
  552. local Value = Instance.new("StringValue")
  553. Value.Name = "4LightningDragonValue"
  554. Value.Parent = plr.Character
  555. Proto1 = Value
  556. elseif val == "releaseX" then
  557. game.Debris:AddItem(Proto1)
  558. Proto1 = nil
  559. local ray = Ray.new(Item1 + Vector3.new(0, 50, 0), Item1 - Vector3.new(0, 50000, 0))
  560. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  561. local speed = math.clamp((plr.Character.PrimaryPart.CFrame.p - HitPos).Magnitude/10, 1, 8)
  562. local duration = (plr.Character.PrimaryPart.Position - HitPos).Magnitude / speed
  563. game.ReplicatedStorage.FireClientEvent:FireAllClients("LightningDragon", plr.Character.PrimaryPart, CFrame.new(HitPos), speed)
  564. delay(duration/20, function()
  565. local Projectile = game.ReplicatedStorage.Goro.Radius:Clone()
  566. Projectile.Size = Vector3.new(50,50,50)
  567. Projectile.Transparency = 1
  568. Projectile.Mesh:Destroy()
  569. Projectile.Anchored = true
  570. Projectile.Parent = workspace.Visuals
  571. Projectile.CFrame = CFrame.new(Item1)
  572. Projectile.Touched:Connect(function(hit)
  573. if hit.Parent:FindFirstChild("Humanoid") then
  574. if hit.Parent.Name ~= plr.Name and not hit.Parent:FindFirstChild("AlreadyHitLightningDragon".. plr.Name) then
  575. local Check = Instance.new("IntValue", hit.Parent)
  576. Check.Name = "AlreadyHitLightningDragon".. plr.Name
  577. game.Debris:AddItem(Check ,1)
  578. hit.Parent.PrimaryPart.Anchored = false
  579. local B2V = Instance.new("BodyVelocity",hit.Parent.PrimaryPart)
  580. B2V.Velocity = CFrame.new(Projectile.Position, hit.Parent.HumanoidRootPart.Position).LookVector * 60 + Projectile.CFrame.UpVector * 10
  581. B2V.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  582. hit.Parent.Humanoid:TakeDamage(20)
  583. game.Debris:AddItem(B2V, 0.3)
  584. game.ReplicatedStorage.FireClientEvent:FireAllClients("Electrify", hit.Parent)
  585. end
  586. end
  587. end)
  588. game.Debris:AddItem(Projectile, 0.6)
  589. end)
  590. elseif val == "holdC" then
  591. local prevVal = plr.Character:FindFirstChild("5GoroUltValue")
  592. if prevVal then
  593. prevVal:Destroy()
  594. end
  595. local ThunderBomb = game.ReplicatedStorage.Goro.ThunderBomb:Clone()
  596. ThunderBomb.Parent = game.Workspace.Visuals
  597. ThunderBomb.Position = plr.Character.PrimaryPart.Position + Vector3.new(0, 150, 0)
  598. ThunderBomb.Inner.Position = plr.Character.PrimaryPart.Position + Vector3.new(0, 150, 0)
  599. ThunderBomb.Name = tostring(math.random(0,1000)).. "#" .. plr.Name.. "RaigoUltimate"
  600. Proto1 = ThunderBomb
  601. UltCharging = true
  602. local BV = Instance.new("BodyPosition", plr.Character.PrimaryPart)
  603. BV.MaxForce = Vector3.new(1000000000,7000000000,100000000)
  604. BV.Position = Vector3.new(plr.Character.PrimaryPart.Position.X, plr.Character.PrimaryPart.Position.Y + 45, plr.Character.PrimaryPart.Position.Z)
  605. Proto3 = BV
  606. game.ReplicatedStorage.FireClientEvent:FireAllClients("Raigo", ThunderBomb, plr.Character.PrimaryPart.Position + Vector3.new(0, 70, 0), BV)
  607. wait(0.4)
  608. Timer = ChargeTimeC
  609. for i = 1,ChargeTimeC*10 do
  610. Timer = Timer - 0.05
  611. wait(0.1)
  612. end
  613. local Value = Instance.new("StringValue")
  614. Value.Name = "5GoroUltValue"
  615. Value.Parent = plr.Character
  616. Proto2 = Value
  617. while UltCharging == true do
  618. if UltSize < 150 then
  619. UltSize = UltSize + 1
  620. ThunderBomb.Value.Value = UltSize
  621. end
  622. wait(0.05)
  623. end
  624. elseif val == "releaseC" then
  625. UltCharging = false
  626. local Hitting = true
  627. local ray = Ray.new(plr.Character.PrimaryPart.Position, CFrame.new(plr.Character.PrimaryPart.Position, Item2).LookVector * 1200)
  628. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  629. local Distance = (Item2 - Proto1.Position).Magnitude/175 * math.clamp(Proto1.Value.Value/75, 0.75, math.huge)
  630. Proto1.Value.Value = -1
  631. Proto1.Size = Vector3.new(1.05 * UltSize, 1.05 * UltSize, 1.05 * UltSize)
  632. Proto1.Inner.Size = Vector3.new(UltSize, UltSize, UltSize)
  633. game.ReplicatedStorage.FireClientEvent:FireAllClients("RaigoThrow", Proto1, HitPos, Distance, HitPart)
  634. game.Debris:AddItem(Proto1, Distance + 5)
  635. Proto1 = nil
  636. Proto2:Destroy()
  637. Proto2 = nil
  638. delay(0.4, function()
  639. Proto3:Destroy()
  640. Proto3 = nil
  641. end)
  642. wait(Distance)
  643. local Projectile = game.ReplicatedStorage.Goro.Radius:Clone()
  644. Projectile.Size = Vector3.new(UltSize * 2.2,UltSize * 2.2, UltSize * 2.2)
  645. Projectile.Transparency = 1
  646. Projectile.Mesh:Destroy()
  647. Projectile.Anchored = true
  648. Projectile.Parent = workspace.Visuals
  649. Projectile.CFrame = CFrame.new(HitPos)
  650. Projectile.Touched:Connect(function(hit)
  651. if hit.Parent:FindFirstChild("Humanoid") and Hitting == true then
  652. if hit.Parent.Name ~= plr.Name and not hit.Parent:FindFirstChild("AlreadyHitLightningRaigoUlt".. plr.Name) then
  653. local Check = Instance.new("IntValue", hit.Parent)
  654. Check.Name = "AlreadyHitLightningRaigoUlt".. plr.Name
  655. game.Debris:AddItem(Check ,1)
  656. hit.Parent.PrimaryPart.Anchored = false
  657. local B2V = Instance.new("BodyVelocity",hit.Parent.PrimaryPart)
  658. B2V.Velocity = CFrame.new(Projectile.Position, hit.Parent.HumanoidRootPart.Position).LookVector * Projectile.Size.X/1.5 + Projectile.CFrame.UpVector * Projectile.Size.X/1.5
  659. B2V.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  660. hit.Parent.Humanoid:TakeDamage(20)
  661. game.Debris:AddItem(B2V, 0.64)
  662. game.ReplicatedStorage.FireClientEvent:FireAllClients("Electrify", hit.Parent)
  663. end
  664. end
  665. end)
  666. UltSize = 10
  667. game.Debris:AddItem(Projectile, 2)
  668. wait(2)
  669. Hitting = false
  670. elseif val == "GoroDash" then
  671. game.ReplicatedStorage.FireClientEvent:FireAllClients("GoroDash", plr, Item1, "NotForAll")
  672. elseif val == "GoroFlight1" then
  673. game.ReplicatedStorage.FireClientEvent:FireAllClients("GoroFlight1", plr.Character)
  674. elseif val == "GoroFlight2" then
  675. game.ReplicatedStorage.FireClientEvent:FireAllClients("GoroFlight2", Item1, Item2)
  676. elseif val == "GoroFlight3" then
  677. game.ReplicatedStorage.FireClientEvent:FireAllClients("GoroFlight3", plr.Character)
  678. end
  679. end)
  680.  
  681. -----
  682.  
  683. local GoroRemote = game.ReplicatedStorage.FireClientEvent
  684. local Tween = game:GetService("TweenService")
  685. local plr = game.Players.LocalPlayer
  686.  
  687. local Crator = require(game.ReplicatedStorage.Goro.CircularCratorScript)
  688. local LightningBolt = require(game.ReplicatedStorage.LightningBolt)
  689. local LightningSparks = require(game.ReplicatedStorage.LightningBolt.LightningSparks)
  690. local LightningExplosion = require(game.ReplicatedStorage.LightningBolt.LightningExplosion)
  691.  
  692. local Bezier_Module = {}
  693. function Bezier_Module:QuadraticBezier(Time,Point0,Point1,Point2)
  694. return (1-Time)^2*Point0+2*(1-Time)*Time*Point1+Time^2*Point2;
  695. end;
  696.  
  697. GoroRemote.OnClientEvent:Connect(function(Item1, Item2, Item3, Item4, Item5, Item6)
  698. if Item1 == "GoroDash" and Item3 ~= nil then
  699. if Item2.Name ~= plr.Name and Item4 == "NotForAll" then
  700. local PartDash = Instance.new("Part", game.Workspace.Visuals)
  701. PartDash.Anchored = true
  702. local A1 = Instance.new("Attachment", PartDash)
  703. A1.WorldPosition = Item3
  704. A1.Visible = false
  705. local A2 = Instance.new("Attachment", Item2.Character.PrimaryPart)
  706. A2.Position = Vector3.new(0,0,1)
  707. --A2.WorldPosition = A2O
  708. A2.Visible = false
  709. local PointLight = Instance.new("PointLight", A2)
  710. local Sound = game.ReplicatedStorage.Goro.DashZap:Clone()
  711. Sound.Parent = Item2.Character.PrimaryPart
  712. Sound:Play()
  713. game.Debris:AddItem(Sound,1)
  714. PointLight.Color = Color3.fromRGB(49, 235, 255)
  715. PointLight.Range = 0
  716. PointLight.Brightness = 30
  717. PartDash.CanCollide = false
  718. PartDash.Transparency = 1
  719. game.Debris:AddItem(PointLight, 1)
  720. game.Debris:AddItem(PartDash, 2)
  721. PartDash.Anchored = true
  722. local Distance = 15
  723. Tween:Create(PointLight, TweenInfo.new(0.25), {Range = Distance, Brightness = 0}):Play()
  724. wait()
  725. local NewBolt = LightningBolt.new(A1, A2, 25)
  726. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  727. NewBolt.PulseSpeed = 10
  728. NewBolt.Thickness = 1
  729. NewBolt.PulseLength = 1
  730. NewBolt.FadeLength = 0.45
  731. NewBolt.RanNum = 10
  732. NewBolt.Frequency = 5
  733. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  734.  
  735. local NewSparks = LightningSparks.new(NewBolt, 20)
  736. elseif Item4 == "ForAll" then
  737. local PartDash = Instance.new("Part", game.Workspace.Visuals)
  738. PartDash.Size = Vector3.new(0,0,0)
  739. PartDash.Anchored = true
  740. local A1 = Instance.new("Attachment", PartDash)
  741. A1.WorldPosition = Item3
  742. A1.Visible = false
  743. local A2 = Instance.new("Attachment", Item2.Character.PrimaryPart)
  744. A2.Position = Vector3.new(0,0,1)
  745. --A2.WorldPosition = A2O
  746. A2.Visible = false
  747. local PointLight = Instance.new("PointLight", A2)
  748. local Sound = game.ReplicatedStorage.Goro.DashZap:Clone()
  749. Sound.Parent = Item2.Character.PrimaryPart
  750. Sound:Play()
  751. game.Debris:AddItem(Sound,1)
  752. PointLight.Color = Color3.fromRGB(49, 235, 255)
  753. PointLight.Range = 0
  754. PointLight.Brightness = 30
  755. PartDash.CanCollide = false
  756. PartDash.Transparency = 1
  757. game.Debris:AddItem(PointLight, 1)
  758. game.Debris:AddItem(PartDash, 2)
  759. PartDash.Anchored = true
  760. local Distance = 15
  761. Tween:Create(PointLight, TweenInfo.new(0.25), {Range = Distance, Brightness = 0}):Play()
  762. wait()
  763. local NewBolt = LightningBolt.new(A1, A2, 25)
  764. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  765. NewBolt.PulseSpeed = 10
  766. NewBolt.Thickness = 1
  767. NewBolt.PulseLength = 1
  768. NewBolt.FadeLength = 0.45
  769. NewBolt.RanNum = 10
  770. NewBolt.Frequency = 5
  771. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  772.  
  773. local NewSparks = LightningSparks.new(NewBolt, 40)
  774. wait(0.4)
  775. local BoltSound = game.ReplicatedStorage.Goro.lightning_bolt:Clone()
  776. BoltSound.Parent = Item2.Character.PrimaryPart
  777. BoltSound:Play()
  778. game.Debris:AddItem(BoltSound, 5)
  779. local ray = Ray.new(Item2.Character.PrimaryPart.Position, Item2.Character.PrimaryPart.Position - Vector3.new(0, 40, 0))
  780. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character, Item2.Character})
  781. if HitPart then
  782. local Pr = game.ReplicatedStorage.Goro.Radius:Clone()
  783. Pr.Size = Vector3.new(6,6,6)
  784. Pr.Transparency = 1
  785. Pr.Attachment.Dust.Parent = Pr
  786. Pr.Anchored = true
  787. Pr.Parent = game.Workspace.Visuals
  788. Pr.CanCollide = false
  789. Pr.Position = HitPos
  790. Pr.Dust.Color = ColorSequence.new(HitPart.Color)
  791. Pr.Dust.Size = NumberSequence.new(5,45)
  792. Pr.Dust:Emit(15)
  793. Pr.Dust.Enabled = false
  794. Pr["Rock Smash Sound effect"]:Play()
  795. Pr.Name = "qfqjfsafeqwfefwfqfqfq"
  796. delay(0.6, function()
  797. Pr.Dust.Enabled = false
  798. end)
  799. game.Debris:AddItem(Pr,2.5)
  800. end
  801. Crator.Ground(Item2.Character.PrimaryPart.CFrame, 39, 40, 3, 28, 4, 4, false)
  802. local Ring = game.ReplicatedStorage.Goro.Ring:Clone()
  803. Ring.Parent = game.Workspace.Visuals
  804. Ring.Position = Item2.Character.PrimaryPart.Position + Vector3.new(0, 20, 0)
  805. game.Debris:AddItem(Ring, 0.55)
  806. Tween:Create(Ring, TweenInfo.new(0.55, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Size = Vector3.new(70,4,70), Transparency = 1, Position = Ring.Position - Vector3.new(0, 20, 0)}):Play()
  807. local Explosion = LightningExplosion.new(Item2.Character.PrimaryPart.Position, 2, 17, Color3.new(0.305882, 0.643137, 1), Color3.new(0.388235, 0.686275, 1))
  808. local PointLight2 = Instance.new("PointLight", Item2.Character.PrimaryPart)
  809. PointLight2.Color = Color3.fromRGB(49, 235, 255)
  810. PointLight2.Range = 10
  811. PointLight2.Brightness = 100
  812. game.Debris:AddItem(PointLight2, 2)
  813. Tween:Create(PointLight2, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Range = 60, Brightness = 0}):Play()
  814. local ForceField = game.ReplicatedStorage.Goro.Radius:Clone()
  815. ForceField.CFrame = CFrame.new(Item2.Character.PrimaryPart.Position)
  816. ForceField.Name = "fqfeda"
  817. ForceField.Anchored = true
  818. ForceField.Transparency = -2
  819. ForceField.Parent = game.Workspace.Visuals
  820. ForceField.Size = Vector3.new(0,0,0)
  821. Tween:Create(ForceField, TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  822. Tween:Create(ForceField.Mesh, TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Scale = Vector3.new(30,30,30)}):Play()
  823. game.Debris:AddItem(ForceField, 1)
  824. end
  825. elseif Item1 == "Electrify" and Item2 ~= nil then
  826. for _, BodyPart in pairs(Item2:GetDescendants()) do
  827. if BodyPart:IsA("Part") or BodyPart:IsA("MeshPart") or BodyPart:IsA("Union") then
  828. local Electric = game.ReplicatedStorage.Goro.ElectricParticle:Clone()
  829. Electric.Parent = BodyPart
  830. Electric:Emit(15)
  831. if BodyPart.Name == "HumanoidRootPart" then
  832. local SFX = game.ReplicatedStorage.Goro.Cloud2.electricity1:Clone()
  833. SFX.Parent = BodyPart
  834. SFX:Play()
  835. game.Debris:AddItem(SFX, 2)
  836. end
  837. game.Debris:AddItem(Electric, 4)
  838. delay(0.3, function()
  839. local Electric = game.ReplicatedStorage.Goro.ElectricParticle:Clone()
  840. Electric.Parent = BodyPart
  841. Electric:Emit(15)
  842. game.Debris:AddItem(Electric, 4)
  843. end)
  844. end
  845. end
  846. elseif Item1 == "LightningCloud" and Item2 ~= nil then
  847. local Cloud = game.ReplicatedStorage.Goro.Cloud2:Clone()
  848. Cloud.Parent = game.Workspace.Visuals
  849. Cloud.Position = Item2.Parent.HumanoidRootPart.Position + Vector3.new(0, math.random(20,30), 0)
  850. Cloud.Orientation = Vector3.new(0, math.random(-360,360), 0)
  851. local rando = math.random(5,9)/10
  852. Tween:Create(Cloud, TweenInfo.new(rando, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false), {Size = Vector3.new(10.598, 5.292, 14.211)}):Play()
  853. delay(rando, function()
  854. Tween:Create(Cloud, TweenInfo.new(rando, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false), {Size = Vector3.new(20, 3, 19), Transparency = 1}):Play()
  855. end)
  856. game.Debris:AddItem(Cloud, 3.2)
  857. local A1 = Instance.new("Attachment", Item2)
  858. game.Debris:AddItem(A1,2)
  859. local A2 = Cloud.A2
  860. local LightningBolt = require(game.ReplicatedStorage.LightningBolt)
  861.  
  862. local NewBolt = LightningBolt.new(A1, A2, 25)
  863. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  864. NewBolt.PulseSpeed = 10
  865. NewBolt.Thickness = 1
  866. NewBolt.PulseLength = 3
  867. NewBolt.FadeLength = 0.5
  868. NewBolt.RanNum = 10
  869. NewBolt.Frequency = 5
  870. NewBolt.MaxRadius = 3
  871. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  872. local Pointlight = game.ReplicatedStorage.Goro.LightHit:Clone()
  873. Pointlight.Parent = Item2.Parent.HumanoidRootPart
  874. game.Debris:AddItem(Pointlight, 1)
  875. Tween:Create(Pointlight, TweenInfo.new(1), {Brightness = 0, Range = 30}):Play()
  876. if Item2.Name ~= "RightHand" then
  877. Cloud["Lightning Strike"]:Play()
  878. Cloud.electricity1:Play()
  879.  
  880. Cloud.electricity2:Play()
  881. for _, BodyPart in pairs(Item2.Parent:GetDescendants()) do
  882. if BodyPart:IsA("Part") or BodyPart:IsA("MeshPart") or BodyPart:IsA("Union") then
  883. local Electric = game.ReplicatedStorage.Goro.ElectricParticle:Clone()
  884. Electric.Parent = BodyPart
  885. Electric:Emit(15)
  886. game.Debris:AddItem(Electric, 4)
  887. delay(0.3, function()
  888. local Electric = game.ReplicatedStorage.Goro.ElectricParticle:Clone()
  889. Electric.Parent = BodyPart
  890. Electric:Emit(15)
  891. game.Debris:AddItem(Electric, 4)
  892. end)
  893. end
  894. end
  895. end
  896. elseif Item1 == "ElThor" then
  897. local part = Instance.new("Part", game.Workspace.Visuals)
  898. part.Anchored = true
  899. part.Transparency = 1
  900. part.Size = Vector3.new(0,0,0)
  901. part.CanCollide = false
  902. part.CFrame = CFrame.new(Item2)
  903. local A1 = Instance.new("Attachment", part)
  904. A1.WorldPosition = Item2 + Vector3.new(0, 85, 0)
  905. local A2 = Instance.new("Attachment", part)
  906. for i = 1,10 do
  907. local Cloud = game.ReplicatedStorage.Goro.Cloud2:Clone()
  908. Cloud.Name = Item3.Name.. "ElThorCloud"
  909. Cloud.Parent = game.Workspace.Visuals
  910. Cloud.Transparency = 0
  911. Cloud.Size = Vector3.new(0,0,0)
  912. Cloud.Position = Item2 + Vector3.new(math.random(-50,50),math.random(80,100),math.random(-50,50))
  913. Cloud.Orientation = Vector3.new(0, math.random(-360,360), 0)
  914. local dur = math.random(5,7)/10
  915. Tween:Create(Cloud, TweenInfo.new(dur, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, math.random(1,5)/10), {Size = Vector3.new(math.random(50,80),math.random(15,25),math.random(50,80))}):Play()
  916. delay(dur * 2, function()
  917. Tween:Create(Cloud, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, math.random(1,5)/10), {Size = Vector3.new(130,25,130), Transparency = 1}):Play()
  918. game.Debris:AddItem(Cloud, 1)
  919. end)
  920. local Cloud2 = game.ReplicatedStorage.Goro.Cloud2:Clone()
  921. Cloud2.Name = Item3.Name.. "ElThorCloud"
  922. Cloud2.Parent = game.Workspace.Visuals
  923. Cloud2.Transparency = 0
  924. Cloud2.Size = Vector3.new(0,0,0)
  925. Cloud2.Position = Item2 + Vector3.new(math.random(-50,50),math.random(85,100),math.random(-50,50))
  926. Cloud2.Orientation = Vector3.new(0, math.random(-360,360), 0)
  927. local dur2 = math.random(5,7)/10
  928. Tween:Create(Cloud2, TweenInfo.new(dur, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, math.random(1,5)/10), {Size = Vector3.new(math.random(50,80),math.random(15,25),math.random(50,80))}):Play()
  929. delay(dur2 * 2, function()
  930. Tween:Create(Cloud2, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, math.random(1,5)/10), {Size = Vector3.new(130,25,130), Transparency = 1}):Play()
  931. game.Debris:AddItem(Cloud2, 1)
  932. end)
  933. delay(i/10, function()
  934. Crator.Ground(CFrame.new(Item2), 10 + (i * 8), 10 + (i * 8), math.clamp(i, 1, 5), math.clamp(i * 4, 8, 20), 3, 3, false)
  935. local Explosion = LightningExplosion.new(Item2, 2, 5, Color3.new(0.305882, 0.643137, 1), Color3.new(0.388235, 0.686275, 1))
  936. for i2 = 1,2 do
  937. local Ring = game.ReplicatedStorage.Goro.Ring:Clone()
  938. Ring.Parent = game.Workspace.Visuals
  939. Ring.Position = A1.WorldPosition
  940. Tween:Create(Ring, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = Vector3.new(80, 3.5, 80), Transparency = 1, Position = Item2}):Play()
  941. game.Debris:AddItem(Ring, 0.5)
  942. local sound = game.ReplicatedStorage.Goro.lightning_bolt:Clone()
  943. local ForceField = game.ReplicatedStorage.Goro.Radius:Clone()
  944. sound.Parent = ForceField
  945. if i2 == 2 then
  946. sound:Play()
  947. ForceField["Rock Smash Sound effect"]:Play()
  948. end
  949. ForceField.CFrame = CFrame.new(Item2)
  950. ForceField.Anchored = true
  951. ForceField.Parent = game.Workspace.Visuals
  952. ForceField.Attachment.Position = Vector3.new(0, 5, 0)
  953. ForceField.Size = Vector3.new(0,0,0)
  954. Tween:Create(ForceField, TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  955. Tween:Create(ForceField.Mesh, TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Scale = Vector3.new(40,40,40), VertexColor = Vector3.new(0.5, 1.6, 2)}):Play()
  956. Tween:Create(ForceField.Attachment.PointLight, TweenInfo.new(0.6), {Range = 60, Brightness = 0}):Play()
  957. game.Debris:AddItem(ForceField, 1.5)
  958.  
  959. local NewBolt = LightningBolt.new(A1, A2, 7)
  960. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  961. NewBolt.PulseSpeed = 10
  962. NewBolt.Thickness = 2
  963. NewBolt.MinTransparency = 0
  964. NewBolt.MaxTransparency = 0.5
  965. NewBolt.PulseLength = 3
  966. NewBolt.FadeLength = 0.5
  967. NewBolt.MaxRadius = 20
  968. if i == 1 then
  969. NewBolt.Color = Color3.fromRGB(78, 164, 255)
  970. else
  971. NewBolt.Color = Color3.fromRGB(147, 214, 255)
  972. end
  973.  
  974.  
  975. local NewSparks = LightningSparks.new(NewBolt, 5)
  976. NewSparks.MinDistance = 25
  977. NewSparks.MaxDistance = 30
  978. end
  979. end)
  980. end
  981. local ShakePower = math.clamp(plr:DistanceFromCharacter(Item2), 0, 200)
  982. local ShakeSub = (200 - ShakePower)/200
  983. local hum = plr.Character.Humanoid
  984. local camoffset = hum.CameraOffset
  985. for i = 1,10 do
  986. local Num = 40
  987. Tween:Create(hum, TweenInfo.new(0.05, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, true), {CameraOffset = Vector3.new(math.random(-Num,Num)/20 * ShakeSub, math.random(-Num,Num)/10 * ShakeSub, math.random(-Num,Num)/20 * ShakeSub)}):Play()
  988. Num = Num - 4
  989. wait(0.1)
  990. end
  991. hum.CameraOffset = camoffset
  992. elseif Item1 == "LightningDragon" then
  993. local Object = game.ReplicatedStorage.Goro.Dragon:Clone()
  994. Object.Parent = game.Workspace.Visuals
  995. Object.CFrame = Item2.CFrame
  996. local speed = Item4
  997. local pivotCFrame = Item3
  998. local ObjectStartCf = Item2.CFrame
  999. local timeElapsed = 0
  1000.  
  1001. local rnd = Random.new()
  1002. local rndCF = CFrame.new(rnd:NextInteger(-70,70),rnd:NextNumber(60,80),rnd:NextNumber(-70,70))
  1003.  
  1004. local duration = (ObjectStartCf.p - pivotCFrame.p).Magnitude / speed
  1005. local tweenDelay = 0.1
  1006. local new = Instance.new("Part")
  1007. new.CFrame = Object.CFrame * rndCF
  1008. new.Size = Vector3.new(1,1,1)
  1009. new.Anchored = true
  1010. new.CanCollide = false
  1011. new.Material = Enum.Material.Neon
  1012. new.Parent = script.Parent
  1013. game.Debris:AddItem(new, 1)
  1014.  
  1015. timeElapsed = 0
  1016. while timeElapsed < duration do
  1017. local progress = timeElapsed / duration
  1018. local pointAtTimeElapsed = Bezier_Module:QuadraticBezier(progress,ObjectStartCf.p,(ObjectStartCf * rndCF).p, pivotCFrame.p)
  1019. local lookAt = Bezier_Module:QuadraticBezier(progress+0.01,ObjectStartCf.p,(ObjectStartCf * rndCF).p, pivotCFrame.p)
  1020.  
  1021.  
  1022. if timeElapsed == 0 then
  1023. Object.CFrame = CFrame.new(pointAtTimeElapsed,Bezier_Module:QuadraticBezier(progress+.01,ObjectStartCf.p,(ObjectStartCf * rndCF).p, pivotCFrame.p)) -- Makes the Object face the right way
  1024. elseif timeElapsed == speed then
  1025. local tween = Tween:Create(Object,TweenInfo.new(.4),{Transparency = 0}):Play()
  1026. end
  1027.  
  1028. timeElapsed += speed
  1029. local tween = Tween:Create(Object,TweenInfo.new(tweenDelay),{CFrame = CFrame.new(pointAtTimeElapsed,lookAt)})
  1030. tween:Play()
  1031. wait(tweenDelay)
  1032. end
  1033. local A1 = Instance.new("Attachment", Object)
  1034. A1.WorldPosition = ObjectStartCf.p
  1035. Object.Size = Vector3.new(0,0,0)
  1036. Object.Shockwave.Size = Vector3.new(0,0,0)
  1037. local BoltSound = game.ReplicatedStorage.Goro.Sound2:Clone()
  1038. BoltSound.Parent = Object
  1039. BoltSound:Play()
  1040. game.Debris:AddItem(BoltSound, 5)
  1041. Object.Size = Vector3.new(0,0,0)
  1042. Object.Shockwave.Size = Vector3.new(0,0,0)
  1043. local ForceField = game.ReplicatedStorage.Goro.Radius:Clone()
  1044. ForceField["Rock Smash Sound effect"]:Play()
  1045. ForceField.CFrame = CFrame.new(Item3.p)
  1046. ForceField.Name = "fqfeda"
  1047. ForceField.Anchored = true
  1048. ForceField.Transparency = -2
  1049. ForceField.Parent = game.Workspace.Visuals
  1050. ForceField.Size = Vector3.new(0,0,0)
  1051. Object.Size = Vector3.new(0,0,0)
  1052. Object.Shockwave.Size = Vector3.new(0,0,0)
  1053. Tween:Create(ForceField, TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  1054. Tween:Create(ForceField.Mesh, TweenInfo.new(0.5, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Scale = Vector3.new(30,30,30)}):Play()
  1055. local Explosion = LightningExplosion.new(ForceField.Position, 2, 17, Color3.new(0.305882, 0.643137, 1), Color3.new(0.388235, 0.686275, 1))
  1056. game.Debris:AddItem(ForceField, 1)
  1057. local PointLight2 = Instance.new("PointLight", ForceField)
  1058. PointLight2.Color = Color3.fromRGB(49, 235, 255)
  1059. PointLight2.Range = 10
  1060. PointLight2.Brightness = 100
  1061. Object.Transparency = 1
  1062. Object.Shockwave.Size = Vector3.new(0,0,0)
  1063. local Ring = game.ReplicatedStorage.Goro.Ring:Clone()
  1064. Ring.Parent = game.Workspace.Visuals
  1065. Ring.Position = ForceField.Position + Vector3.new(0, 20, 0)
  1066. Object.Size = Vector3.new(0,0,0)
  1067. Object.Shockwave.Size = Vector3.new(0,0,0)
  1068. game.Debris:AddItem(Ring, 0.55)
  1069. Tween:Create(Ring, TweenInfo.new(0.55, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Size = Vector3.new(70,4,70), Transparency = 1, Position = Ring.Position - Vector3.new(0, 20, 0)}):Play()
  1070. Tween:Create(PointLight2, TweenInfo.new(1, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Range = 60, Brightness = 0}):Play()
  1071. game.Debris:AddItem(PointLight2, 2)
  1072. delay(speed + 1, function()
  1073. Object:Destroy()
  1074. end)
  1075. elseif Item1 == "Raigo" and Item2 ~= nil and Item3 ~= nil and Item4 ~= nil then
  1076. for i = 1,45 do
  1077. local Cloud = game.ReplicatedStorage.Goro.Cloud2:Clone()
  1078. Cloud.Name = Item2.Name.. "ThunderCloud"
  1079. Cloud.Parent = game.Workspace.Visuals
  1080. Cloud.Transparency = 0
  1081. Cloud.Size = Vector3.new(0,0,0)
  1082. Cloud.Position = Item2.Position + Vector3.new(math.random(-100,100),math.random(-35,20),math.random(-100,100))
  1083. Cloud.Orientation = Vector3.new(0, math.random(-360,360), 0)
  1084. Tween:Create(Cloud, TweenInfo.new(math.random(5,9)/10, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, math.random(1,10)/10), {Size = Vector3.new(math.random(100,200),math.random(30,70),math.random(100,200))}):Play()
  1085. end
  1086. local A1 = Instance.new("Attachment", Item4.Parent)
  1087. A1.Position = Vector3.new(0,-40,0)
  1088. A1.Visible = false
  1089. local A2 = Instance.new("Attachment", Item4.Parent)
  1090. A2.Position = Vector3.new(0,0,0)
  1091. A2.Visible = false
  1092. local PointLight = Instance.new("PointLight", A2)
  1093. local Sound = game.ReplicatedStorage.Goro.DashZap:Clone()
  1094. Sound.Parent = A2.Parent
  1095. Sound:Play()
  1096. game.Debris:AddItem(Sound,1)
  1097. PointLight.Color = Color3.fromRGB(49, 235, 255)
  1098. PointLight.Range = 0
  1099. PointLight.Brightness = 30
  1100. game.Debris:AddItem(PointLight, 1)
  1101. Tween:Create(PointLight, TweenInfo.new(0.25), {Range = 60, Brightness = 0}):Play()
  1102. local NewBolt = LightningBolt.new(A1, A2, 25)
  1103. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  1104. NewBolt.PulseSpeed = 10
  1105. NewBolt.Thickness = 1
  1106. NewBolt.PulseLength = 2
  1107. NewBolt.FadeLength = 1
  1108. NewBolt.Color = Color3.fromRGB(78, 164, 255)
  1109.  
  1110. local NewSparks = LightningSparks.new(NewBolt, 20)
  1111. Item2["Thunder Lightning 9 (SFX)"]:Play()
  1112. Item2["Electric sound loop"]:Play()
  1113. Item2.lightning_strike:Play()
  1114. while true and Item2 and Item2.Value.Value <= 150 and Item2.Value.Value ~= -1 do
  1115. for i = 1,2 do
  1116. Tween:Create(Item2, TweenInfo.new(0.05, Enum.EasingStyle.Linear), {Position = Item3 + Vector3.new(0, 0.45 * Item2.Value.Value, 0), Size = Vector3.new(1.05 * Item2.Value.Value, 1.05 * Item2.Value.Value, 1.05 * Item2.Value.Value)}):Play()
  1117. Tween:Create(Item2.Inner, TweenInfo.new(0.05, Enum.EasingStyle.Linear), {Position = Item3 + Vector3.new(0, 0.45 * Item2.Value.Value, 0), Size = Vector3.new(Item2.Value.Value, Item2.Value.Value, Item2.Value.Value)}):Play()
  1118. Item2["Thunder Lightning 9 (SFX)"].RollOffMinDistance = Item2.Value.Value
  1119. Item2["Electric sound loop"].RollOffMinDistance = Item2.Value.Value
  1120. Item2["Boom"].RollOffMinDistance = Item2.Value.Value * 1.25
  1121. Item2.lightning_strike.RollOffMinDistance = Item2.Value.Value
  1122. local A3 = Instance.new("Attachment", Item2)
  1123. A3.Position = Vector3.new(0,0,0)
  1124. A3.Visible = false
  1125. local A4 = Instance.new("Attachment", Item2)
  1126. A4.Visible = false
  1127. local randoX = math.random(-Item2.Size.X*1.1,Item2.Size.X*1.1)
  1128. local randoY = math.random(-Item2.Size.Y*1.1,Item2.Size.Y*1.1)
  1129. local randoZ = math.random(-Item2.Size.Z*1.1,Item2.Size.Z*1.1)
  1130. A4.Position = Vector3.new(randoX, randoY, randoZ)
  1131.  
  1132. game.Debris:AddItem(A3,4)
  1133. game.Debris:AddItem(A4,4)
  1134.  
  1135. local NewBolt = LightningBolt.new(A3, A4, 15)
  1136. NewBolt.CurveSize0, NewBolt.CurveSize1 = randoX, randoX
  1137. NewBolt.PulseSpeed = 15
  1138. NewBolt.Thickness = Item2.Size.X/15
  1139. NewBolt.AnimationSpeed = 15
  1140. NewBolt.PulseLength = 2
  1141. NewBolt.MaxRadius = Item2.Size.X * 0.2
  1142. NewBolt.MinTransparency = 0
  1143. NewBolt.MaxTransparency = 0.5
  1144. NewBolt.FadeLength = 0.25
  1145. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  1146.  
  1147. local NewSparks = LightningSparks.new(NewBolt)
  1148. NewSparks.MinDistance = Item2.Size.X * 0.75
  1149. NewSparks.SparksN = 100
  1150. NewSparks.MaxDistance = Item2.Size.X
  1151. end
  1152.  
  1153. wait(0.05)
  1154. end
  1155. elseif Item1 == "RaigoThrow" and Item2 ~= nil and Item3 ~= nil and Item4 ~= nil then
  1156. local RingCreate = true
  1157. for _, ItemF in pairs(game.Workspace.Visuals:GetDescendants()) do
  1158. if ItemF:IsA("MeshPart") and ItemF.Name == Item2.Name.. "ThunderCloud" then
  1159. Tween:Create(ItemF, TweenInfo.new(math.random(9,10)/10, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, false, math.random(1,5)/10), {Size = Vector3.new(ItemF.Size.X * 2,0,ItemF.Size.Z * 2), Transparency = 1}):Play()
  1160. delay(3.2, function()
  1161. ItemF:Destroy()
  1162. end)
  1163. end
  1164. end
  1165. Tween:Create(Item2, TweenInfo.new(Item4, Enum.EasingStyle.Linear), {Position = Item3}):Play()
  1166. Tween:Create(Item2.Inner, TweenInfo.new(Item4, Enum.EasingStyle.Linear), {Position = Item3}):Play()
  1167. delay(Item4/1.015, function()
  1168. for i = 1,20 do
  1169. delay(i/10, function()
  1170. local ForceField = game.ReplicatedStorage.Goro.Radius:Clone()
  1171. ForceField.CFrame = CFrame.new(Item3)
  1172. ForceField.Anchored = true
  1173. ForceField.Transparency = -2
  1174. ForceField.Parent = game.Workspace.Visuals
  1175. ForceField.Size = Vector3.new(0,0,0)
  1176. Tween:Create(ForceField, TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Transparency = 1}):Play()
  1177. Tween:Create(ForceField.Mesh, TweenInfo.new(0.25, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Scale = Vector3.new(Item2.Size.X, Item2.Size.Y, Item2.Size.Z)}):Play()
  1178. game.Debris:AddItem(ForceField, 0.26)
  1179. for i = 1,4 do
  1180. local A3 = Instance.new("Attachment", Item2)
  1181. A3.Position = Vector3.new(0,0,0)
  1182. A3.Visible = false
  1183. local A4 = Instance.new("Attachment", Item2)
  1184. A4.Visible = false
  1185. local randoX = math.random(-Item2.Size.X*1,Item2.Size.X*1)
  1186. local randoY = math.random(-Item2.Size.Y*1,Item2.Size.Y*1)
  1187. local randoZ = math.random(-Item2.Size.Z*1,Item2.Size.Z*1)
  1188. A4.Position = Vector3.new(randoX, randoY, randoZ)
  1189.  
  1190. game.Debris:AddItem(A3,4)
  1191. game.Debris:AddItem(A4,4)
  1192.  
  1193. local NewBolt = LightningBolt.new(A3, A4, 15)
  1194. NewBolt.CurveSize0, NewBolt.CurveSize1 = randoX, randoX
  1195. NewBolt.PulseSpeed = 15
  1196. NewBolt.Thickness = Item2.Size.X/15
  1197. NewBolt.AnimationSpeed = 15
  1198. NewBolt.PulseLength = 2
  1199. NewBolt.MaxRadius = Item2.Size.X * 0.2
  1200. NewBolt.MinTransparency = 0
  1201. NewBolt.MaxTransparency = 0.5
  1202. NewBolt.FadeLength = 0.25
  1203. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  1204.  
  1205. local NewSparks = LightningSparks.new(NewBolt)
  1206. NewSparks.MinDistance = Item2.Size.X * 0.75
  1207. NewSparks.SparksN = 100
  1208. NewSparks.MaxDistance = Item2.Size.X
  1209. end
  1210. end)
  1211. end
  1212. Crator.Ground2(Item2.CFrame, Item2.Size.X * 1.1, math.clamp(Item2.Size.X/10, 2, 35), math.clamp(Item2.Size.X, 15, 30), 2, 6)
  1213.  
  1214. Tween:Create(Item2.Inner, TweenInfo.new(0.5, Enum.EasingStyle.Linear), {Size = Vector3.new(Item2.Size.X * 1.25,Item2.Size.Y * 1.25, Item2.Size.Z * 1.25), Color = Color3.fromRGB(165, 236, 255)}):Play()
  1215. Item2.Boom:Play()
  1216. RingCreate = false
  1217. delay(0.1, function()
  1218. Item2["Thunder Lightning 9 (SFX)"]:Stop()
  1219. Item2["Electric sound loop"]:Stop()
  1220. Item2.lightning_strike:Stop()
  1221. Item2.Inner.Material = Enum.Material.Neon
  1222. if Item5 ~= nil then
  1223. local ray = Ray.new(Item3, Item3 - Vector3.new(0, -Item2.Size * 1.2, 0))
  1224. local HitPart, HitPos = game.Workspace:FindPartOnRayWithIgnoreList(ray, {game.Workspace.Visuals, plr.Character})
  1225. Item2.Attachment.WorldPosition = Vector3.new(Item2.Attachment.WorldPosition.X,HitPos.Y - HitPos.Y/2,Item2.Attachment.WorldPosition.Z)
  1226. Item2.Attachment.Dust.Color = ColorSequence.new(Item5.Color)
  1227. Item2.Attachment.Dust:Emit(20)
  1228. Item2.Attachment.Dust.Enabled = true
  1229. Item2.Attachment.Dust.Size = NumberSequence.new(math.clamp(Item2.Size.X/4, 0, 5), math.clamp(Item2.Size.X/1.5, 0, 50))
  1230. Item2.Attachment.Dust.Speed = NumberRange.new(math.clamp((Item2.Size.X * 10)/4, 0, 200), math.clamp(Item2.Size.X * 10, 0, 2000))
  1231. end
  1232. end)
  1233. Tween:Create(Item2, TweenInfo.new(2, Enum.EasingStyle.Quad), {Size = Vector3.new(Item2.Size.X * 2,Item2.Size.Y * 2, Item2.Size.Z * 2), Color = Color3.fromRGB(105, 165, 255)}):Play()
  1234. Tween:Create(Item2.Inner, TweenInfo.new(2, Enum.EasingStyle.Quad), {Size = Vector3.new(Item2.Size.X * 2,Item2.Size.Y * 2, Item2.Size.Z * 2), Color = Color3.fromRGB(105, 165, 255)}):Play()
  1235. local Ring = game.ReplicatedStorage.Goro.Ring:Clone()
  1236. Ring.Parent = game.Workspace.Visuals
  1237. Ring.CFrame = Item2.CFrame
  1238. Tween:Create(Ring, TweenInfo.new(0.55, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Size = Vector3.new(2.5 * Item2.Size.X, 0.1 * Item2.Size.Y, 2.5 * Item2.Size.Z), Transparency = 0.5, Position = Item2.Position + Vector3.new(0, Item2.Size.Y/4, 0)}):Play()
  1239. local Ring2 = game.ReplicatedStorage.Goro.Ring:Clone()
  1240. Ring2.Parent = game.Workspace.Visuals
  1241. Ring2.CFrame = Item2.CFrame
  1242. Tween:Create(Ring2, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {Size = Vector3.new(3.5 * Item2.Size.X, 0.1 * Item2.Size.Y, 3.5 * Item2.Size.Z), Transparency = 1, Position = Item2.Position + Vector3.new(0, Item2.Size.Y/8, 0)}):Play()
  1243. delay(0.25, function()
  1244. delay(0.25, function()
  1245. Tween:Create(Ring, TweenInfo.new(2, Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Size = Vector3.new(0, Item2.Size.Y/20, 0), Transparency = 1, Position = Item2.Position + Vector3.new(0, Item2.Size.Y/1.2, 0)}):Play()
  1246. game.Debris:AddItem(Ring, 2)
  1247. game.Debris:AddItem(Ring2, 2)
  1248. end)
  1249. end)
  1250. delay(2, function()
  1251. Tween:Create(Item2, TweenInfo.new(0.25, Enum.EasingStyle.Bounce), {Size = Vector3.new(0,0,0), Color = Color3.fromRGB(105, 165, 255)}):Play()
  1252. Tween:Create(Item2.Inner, TweenInfo.new(0.25, Enum.EasingStyle.Bounce), {Size = Vector3.new(0,0,0), Color = Color3.fromRGB(105, 165, 255)}):Play()
  1253. Item2.Attachment.Dust.Enabled = false
  1254. end)
  1255. local ShakePower = math.clamp(plr:DistanceFromCharacter(Item3), 0, Item2.Size.X * 2.5)
  1256. local ShakeSub = (Item2.Size.X * 2.5 - ShakePower)/Item2.Size.X * 2.5
  1257. local hum = plr.Character.Humanoid
  1258. local camoffset = hum.CameraOffset
  1259. for i = 1,20 do
  1260. local Num = 40
  1261. Tween:Create(hum, TweenInfo.new(0.05, Enum.EasingStyle.Back, Enum.EasingDirection.Out, 0, true), {CameraOffset = Vector3.new(math.random(-Num,Num)/30 * ShakeSub, math.random(-Num,Num)/30 * ShakeSub, math.random(-Num,Num)/30 * ShakeSub)}):Play()
  1262. Num = Num - 2
  1263. wait(0.1)
  1264. end
  1265. hum.CameraOffset = camoffset
  1266. end)
  1267. while true and RingCreate == true do
  1268. local Ring = game.ReplicatedStorage.Goro.Ring:Clone()
  1269. Ring.Parent = game.Workspace.Visuals
  1270. Ring.CFrame = CFrame.lookAt(Item2.Position, Item3) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1271. Tween:Create(Ring, TweenInfo.new(math.clamp(Item2.Size.X/40, 0.05, 1.5), Enum.EasingStyle.Cubic, Enum.EasingDirection.Out), {Size = Vector3.new(Ring.Size.X * Item2.Size.X,Ring.Size.Y * Item2.Size.Y, Ring.Size.Z * Item2.Size.Z), Transparency = 1}):Play()
  1272. game.Debris:AddItem(Ring, 2)
  1273. wait(math.clamp(Item2.Size.X/200, 0.005, 0.75))
  1274. end
  1275. elseif Item1 == "GoroFlight1" and Item2 ~= nil and plr.Name ~= Item2.Name then
  1276. local A3 = Instance.new("Attachment", Item2.PrimaryPart)
  1277. A3.Name = "AmongUsAttachmentSuspicious:O"
  1278. local Particle1 = game.ReplicatedStorage.Goro.Electric2:Clone()
  1279. Particle1.Parent = A3
  1280. Particle1.Enabled = true
  1281. local Particle2 = game.ReplicatedStorage.Goro.Flash:Clone()
  1282. Particle2.Parent = A3
  1283. Particle2.Enabled = true
  1284. for _, ItemF in pairs(Item2:GetDescendants()) do
  1285. if ItemF:IsA("MeshPart") or ItemF:IsA("Part") or ItemF:IsA("Union") then
  1286. if ItemF.Name ~= "HumanoidRootPart" then
  1287. ItemF.Transparency = ItemF.Transparency + 10
  1288. local ElectricParticle = game.ReplicatedStorage.Goro.ElectricParticle:Clone()
  1289. ElectricParticle.Enabled = true
  1290. ElectricParticle.Parent = ItemF
  1291. end
  1292. end
  1293. end
  1294. elseif Item1 == "GoroFlight2" and Item2 ~= nil and Item3 ~= nil and plr.Name ~= Item2.Name then
  1295. local PartDash :Part = Instance.new("Part", workspace.Visuals)
  1296. PartDash.CFrame = CFrame.new(Item3)
  1297. PartDash.CanCollide = false
  1298. PartDash.Anchored = true
  1299. PartDash.Transparency = 1
  1300. local A1 = Instance.new("Attachment", PartDash)
  1301. A1.WorldPosition = Item2
  1302. A1.Visible = false
  1303. local A2 = Instance.new("Attachment", PartDash)
  1304. A2.Visible = false
  1305. A2.WorldPosition = Item3
  1306. local Particle1 = game.ReplicatedStorage.Goro.Electric2:Clone()
  1307. Particle1.Parent = A2
  1308. local Particle2 = game.ReplicatedStorage.Goro.Flash:Clone()
  1309. Particle2.Parent = A2
  1310. local PointLight = Instance.new("PointLight", A2)
  1311. local Sound = game.ReplicatedStorage.Goro.DashZap:Clone()
  1312. Sound.Parent = PartDash
  1313. Sound:Play()
  1314. game.Debris:AddItem(Sound,1)
  1315. PointLight.Color = Color3.fromRGB(49, 235, 255)
  1316. PointLight.Range = 0
  1317. PointLight.Brightness = 30
  1318. game.Debris:AddItem(PointLight, 1)
  1319. game.Debris:AddItem(PartDash, 1)
  1320.  
  1321. local Distance = 15
  1322. Tween:Create(PointLight, TweenInfo.new(0.4), {Range = Distance, Brightness = 0}):Play()
  1323. wait()
  1324. Particle1:Emit(50)
  1325.  
  1326. local NewBolt = LightningBolt.new(A1, A2, 25)
  1327. NewBolt.CurveSize0, NewBolt.CurveSize1 = 1, 1
  1328. NewBolt.PulseSpeed = 10
  1329. NewBolt.Thickness = 1
  1330. NewBolt.PulseLength = 2
  1331. NewBolt.FadeLength = 0.45
  1332. NewBolt.RanNum = 10
  1333. NewBolt.Frequency = 5
  1334. NewBolt.Color = Color3.fromRGB(85, 145, 255)
  1335. NewBolt.MaxRadius = 4
  1336. local NewSparks = LightningSparks.new(NewBolt, 20)
  1337. elseif Item1 == "GoroFlight3" and Item2 ~= nil and plr.Name ~= Item2.Name then
  1338. for _, ItemF in pairs(Item2:GetDescendants()) do
  1339. if ItemF.Name ~= "HumanoidRootPart" then
  1340. if ItemF:IsA("MeshPart") or ItemF:IsA("Part") or ItemF:IsA("Union") then
  1341. ItemF.Transparency = ItemF.Transparency - 10
  1342. if ItemF:FindFirstChild("ElectricParticle") then
  1343. ItemF.ElectricParticle:Destroy()
  1344. end
  1345. elseif ItemF.Name == "AmongUsAttachmentSuspicious:O" then
  1346. ItemF:FindFirstChild("Flash").Enabled = false
  1347. ItemF:FindFirstChild("Electric2").Enabled = false
  1348. game.Debris:AddItem(ItemF, 1)
  1349. end
  1350. end
  1351. end
  1352. end
  1353. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement