Advertisement
Its_YeBoi

Ghaster

Nov 5th, 2017
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 116.10 KB | None | 0 0
  1. ---GhasterBlasters by xXVipergamerXx1-----
  2. ---MUST BE R15 TO USE!!!----
  3. local op=false
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. local p = game.Players.LocalPlayer
  17. local char = p.Character
  18. local mouse = p:GetMouse()
  19. local hed = char.Head
  20. local hum = char.Humanoid
  21. local cam = game.Workspace.CurrentCamera
  22. local root = char.HumanoidRootPart
  23. local deb = false
  24. local shot = 0
  25. local l = game:GetService("Lighting")
  26. local rs = game:GetService("RunService").RenderStepped
  27. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  28. math.randomseed(os.time())
  29. ----------------------------------------------------
  30. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  31. --[[Part0 = Vector3 (Start pos)
  32. Part1 = Vector3 (End pos)
  33. Times = number (Amount of lightning parts)
  34. Offset = number (Offset)
  35. Color = color (brickcolor value)
  36. Thickness = number (thickness)
  37. Trans = number (transparency)
  38. ]]--
  39. local magz = (Part0 - Part1).magnitude
  40. local curpos = Part0
  41. local trz = {-Offset,Offset}
  42. for i=1,Times do
  43. local li = Instance.new("Part", root)
  44. li.Name = "Lightning"
  45. li.TopSurface =0
  46. li.Material = "Neon"
  47. li.BottomSurface = 0
  48. li.Anchored = true
  49. li.Locked = true
  50. li.Transparency = Trans or 1
  51. li.BrickColor = BrickColor.new(Color)
  52. li.formFactor = "Custom"
  53. li.CanCollide = false
  54. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  55.  
  56. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  57. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  58. if Times == i then
  59. local magz2 = (curpos - Part1).magnitude
  60. li.Size = Vector3.new(Thickness,Thickness,magz2)
  61. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  62. else
  63. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  64. end
  65. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  66. game.Debris:AddItem(li,.1)
  67. end
  68. end
  69.  
  70. BodyParts = {} -- Parts to emit lightning effects from
  71. for _, v in pairs(char:GetChildren()) do
  72. if v:IsA("Part") or v:IsA("MeshPart") and v.Name ~= "HumanoidRootPart2" and v.Name ~= "HumanoidRootPart" then
  73. table.insert(BodyParts, v)
  74. end
  75. end
  76.  
  77. Bounding = {} -- Calculate the bounding boxes
  78. for _, v in pairs(BodyParts) do
  79. local temp = {X=nil, Y=nil, Z=nil}
  80. temp.X = v.Size.X/2 * 10
  81. temp.Y = v.Size.Y/2 * 10
  82. temp.Z = v.Size.Z/2 * 10
  83. Bounding[v.Name] = temp
  84. --table.insert(Bounding, v.Name, temp)
  85. end
  86. local num = 0
  87. local p = game:GetService("Players").LocalPlayer
  88. local char = p.Character
  89. local c = p.Character
  90. local rad = math.rad
  91. local hum = char.Humanoid
  92. ---------------------------------------------------
  93. local LeftUpperArm = char.LeftUpperArm
  94. local LeftShoulder = char.LeftUpperArm.LeftShoulder
  95. local LeftLowerArm = char.LeftLowerArm
  96. local LeftElbow = char.LeftLowerArm.LeftElbow
  97. --------------------------------------------------------
  98. local LeftUpperLeg = char.LeftUpperLeg
  99. local LeftHip = char.LeftUpperLeg.LeftHip
  100. local LeftLowerLeg = char.LeftLowerLeg
  101. local LeftKnee = char.LeftLowerLeg.LeftKnee
  102. ----------------------------------------------------------
  103. local RightUpperArm = char.RightUpperArm
  104. local RightShoulder = char.RightUpperArm.RightShoulder
  105. local RightLowerArm = char.RightLowerArm
  106. local RightElbow = char.RightLowerArm.RightElbow
  107. ----------------------------------------------------------
  108. local RightUpperLeg = char.RightUpperLeg
  109. local RightHip = char.RightUpperLeg.RightHip
  110. local RightLowerLeg = char.RightLowerLeg
  111. local RightKnee = char.RightLowerLeg.RightKnee
  112. ----------------------------------------------------------
  113.  
  114. local UpperTorso = char.UpperTorso
  115. local LowerTorso = char.LowerTorso
  116. local Root = char.LowerTorso.Root
  117. --------------------------------------------
  118. local Head = char.Head
  119. local Neck = char.Head.Neck
  120. local RootPart = char.HumanoidRootPart
  121. local LeftHand = char.LeftHand
  122. local RightHand = char.RightHand
  123. local LeftFoot = char.LeftFoot
  124. local RightFoot = char.RightFoot
  125. ---------------------------------------------
  126.  
  127. hum:SetStateEnabled("Dead",false)
  128. hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  129. local v3 = Vector3.new
  130. local idle = true
  131. local walk = true
  132. local walk1 = true
  133. local walkon = true
  134. local ns = NumberSequence.new
  135. local new = Instance.new
  136. local nr = NumberRange.new
  137. local bc =BrickColor.new
  138. local UpperTorso = char.UpperTorso
  139. local Waist = char.UpperTorso.Waist
  140. local mouse = p:GetMouse()
  141. local Blasters = true
  142. local debounce = true
  143. hum.MaxHealth = 500
  144. hum.Health = hum.MaxHealth
  145. local equiped = false
  146. new("ForceField",char).Visible = false
  147. local Create = LoadLibrary("RbxUtility").Create
  148. function RemoveOutlines(part)
  149. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  150. end
  151. CFuncs = {
  152. ["Part"] = {
  153. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  154. local Part = Create("Part"){
  155. Parent = Parent,
  156. Reflectance = Reflectance,
  157. Transparency = Transparency,
  158. CanCollide = false,
  159. Locked = true,
  160. BrickColor = BrickColor.new(tostring(BColor)),
  161. Name = Name,
  162. Size = Size,
  163. Material = Material,
  164. }
  165. RemoveOutlines(Part)
  166. return Part
  167. end;
  168. };
  169.  
  170. ["Mesh"] = {
  171. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  172. local Msh = Create(Mesh){
  173. Parent = Part,
  174. Offset = OffSet,
  175. Scale = Scale,
  176. }
  177. if Mesh == "SpecialMesh" then
  178. Msh.MeshType = MeshType
  179. Msh.MeshId = MeshId
  180. end
  181. return Msh
  182. end;
  183. };
  184.  
  185. ["Mesh"] = {
  186. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  187. local Msh = Create(Mesh){
  188. Parent = Part,
  189. Offset = OffSet,
  190. Scale = Scale,
  191. }
  192. if Mesh == "SpecialMesh" then
  193. Msh.MeshType = MeshType
  194. Msh.MeshId = MeshId
  195. end
  196. return Msh
  197. end;
  198. };
  199.  
  200. ["Weld"] = {
  201. Create = function(Parent, Part0, Part1, C0, C1)
  202. local Weld = Create("Weld"){
  203. Parent = Parent,
  204. Part0 = Part0,
  205. Part1 = Part1,
  206. C0 = C0,
  207. C1 = C1,
  208. }
  209. return Weld
  210. end;
  211. };
  212.  
  213. ["Sound"] = {
  214. Create = function(id, par, vol, pit)
  215. coroutine.resume(coroutine.create(function()
  216. local S = Create("Sound"){
  217. Volume = vol,
  218. Pitch = pit or 1,
  219. SoundId = id,
  220. Parent = par or workspace,
  221. }
  222. wait()
  223. S:play()
  224. game:GetService("Debris"):AddItem(S, 6)
  225. end))
  226. end;
  227. };
  228.  
  229. ["ParticleEmitter"] = {
  230. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  231. local fp = Create("ParticleEmitter"){
  232. Parent = Parent,
  233. Color = ColorSequence.new(Color1, Color2),
  234. LightEmission = LightEmission,
  235. Size = Size,
  236. Texture = Texture,
  237. Transparency = Transparency,
  238. ZOffset = ZOffset,
  239. Acceleration = Accel,
  240. Drag = Drag,
  241. LockedToPart = LockedToPart,
  242. VelocityInheritance = VelocityInheritance,
  243. EmissionDirection = EmissionDirection,
  244. Enabled = Enabled,
  245. Lifetime = LifeTime,
  246. Rate = Rate,
  247. Rotation = Rotation,
  248. RotSpeed = RotSpeed,
  249. Speed = Speed,
  250. VelocitySpread = VelocitySpread,
  251. }
  252. return fp
  253. end;
  254. };
  255.  
  256. CreateTemplate = {
  257.  
  258. };
  259. }
  260. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  261. if hit.Parent == nil then
  262. return
  263. end
  264. local h = hit.Parent:FindFirstChild("Humanoid")
  265. for _, v in pairs(hit.Parent:children()) do
  266. if v:IsA("Humanoid") then
  267. h = v
  268. end
  269. end
  270. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  271. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  272. if hit.Parent.DebounceHit.Value == true then
  273. return
  274. end
  275. end
  276. local c = Create("ObjectValue"){
  277. Name = "creator",
  278. Value = game:service("Players").LocalPlayer,
  279. Parent = h,
  280. }
  281. game:GetService("Debris"):AddItem(c, .5)
  282. if HitSound ~= nil and HitPitch ~= nil then
  283. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  284. end
  285. local Damage = math.random(minim, maxim)
  286. local blocked = false
  287. local block = hit.Parent:findFirstChild("Block")
  288. if block ~= nil then
  289. if block.className == "IntValue" then
  290. if block.Value > 0 then
  291. blocked = true
  292. block.Value = block.Value - 1
  293. print(block.Value)
  294. end
  295. end
  296. end
  297. if blocked == false then
  298. h.Health = h.Health - Damage
  299. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  300. else
  301. h.Health = h.Health - (Damage / 2)
  302. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  303. end
  304. if Type == "Knockdown" then
  305. local hum = hit.Parent.Humanoid
  306. hum.PlatformStand = true
  307. coroutine.resume(coroutine.create(function(HHumanoid)
  308. swait(1)
  309. HHumanoid.PlatformStand = false
  310. end), hum)
  311. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  312. local bodvol = Create("BodyVelocity"){
  313. velocity = angle * knockback,
  314. P = 5000,
  315. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  316. Parent = hit,
  317. }
  318. local rl = Create("BodyAngularVelocity"){
  319. P = 3000,
  320. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  321. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  322. Parent = hit,
  323. }
  324. game:GetService("Debris"):AddItem(bodvol, .5)
  325. game:GetService("Debris"):AddItem(rl, .5)
  326. elseif Type == "Normal" then
  327. local vp = Create("BodyVelocity"){
  328. P = 500,
  329. maxForce = Vector3.new(math.huge, 0, math.huge),
  330. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  331. }
  332. if knockback > 0 then
  333. vp.Parent = hit.Parent.Torso
  334. end
  335. game:GetService("Debris"):AddItem(vp, .5)
  336. elseif Type == "Up" then
  337. local bodyVelocity = Create("BodyVelocity"){
  338. velocity = Vector3.new(0, 20, 0),
  339. P = 5000,
  340. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  341. Parent = hit,
  342. }
  343. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  344. elseif Type == "DarkUp" then
  345. coroutine.resume(coroutine.create(function()
  346. for i = 0, 1, 0.1 do
  347. swait()
  348. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  349. end
  350. end))
  351. local bodyVelocity = Create("BodyVelocity"){
  352. velocity = Vector3.new(0, 20, 0),
  353. P = 5000,
  354. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  355. Parent = hit,
  356. }
  357. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  358. elseif Type == "Snare" then
  359. local bp = Create("BodyPosition"){
  360. P = 2000,
  361. D = 100,
  362. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  363. position = hit.Parent.Torso.Position,
  364. Parent = hit.Parent.Torso,
  365. }
  366. game:GetService("Debris"):AddItem(bp, 1)
  367. elseif Type == "Freeze" then
  368. local BodPos = Create("BodyPosition"){
  369. P = 50000,
  370. D = 1000,
  371. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  372. position = hit.Parent.Torso.Position,
  373. Parent = hit.Parent.Torso,
  374. }
  375. local BodGy = Create("BodyGyro") {
  376. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  377. P = 20e+003,
  378. Parent = hit.Parent.Torso,
  379. cframe = hit.Parent.Torso.CFrame,
  380. }
  381. hit.Parent.Torso.Anchored = true
  382. coroutine.resume(coroutine.create(function(Part)
  383. swait(1.5)
  384. Part.Anchored = false
  385. end), hit.Parent.Torso)
  386. game:GetService("Debris"):AddItem(BodPos, 3)
  387. game:GetService("Debris"):AddItem(BodGy, 3)
  388. end
  389. local debounce = Create("BoolValue"){
  390. Name = "DebounceHit",
  391. Parent = hit.Parent,
  392. Value = true,
  393. }
  394. game:GetService("Debris"):AddItem(debounce, Delay)
  395. c = Create("ObjectValue"){
  396. Name = "creator",
  397. Value = Player,
  398. Parent = h,
  399. }
  400. game:GetService("Debris"):AddItem(c, .5)
  401. end
  402. end
  403.  
  404. function ShowDamage(Pos, Text, Time, Color)
  405. local Rate = (1 / 30)
  406. local Pos = (Pos or Vector3.new(0, 0, 0))
  407. local Text = (Text or "")
  408. local Time = (Time or 2)
  409. local Color = (Color or Color3.new(1, 0, 1))
  410. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  411. EffectPart.Anchored = true
  412. local BillboardGui = Create("BillboardGui"){
  413. Size = UDim2.new(3, 0, 3, 0),
  414. Adornee = EffectPart,
  415. Parent = EffectPart,
  416. }
  417. local TextLabel = Create("TextLabel"){
  418. BackgroundTransparency = 1,
  419. Size = UDim2.new(1, 0, 1, 0),
  420. Text = Text,
  421. Font = "SciFi",
  422. TextColor3 = Color,
  423. TextScaled = true,
  424. Parent = BillboardGui,
  425. }
  426. game.Debris:AddItem(EffectPart, (Time))
  427. EffectPart.Parent = game:GetService("Workspace")
  428. delay(0, function()
  429. local Frames = (Time / Rate)
  430. for Frame = 1, Frames do
  431. wait(Rate)
  432. local Percent = (Frame / Frames)
  433. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  434. TextLabel.TextTransparency = Percent
  435. end
  436. if EffectPart and EffectPart.Parent then
  437. EffectPart:Destroy()
  438. end
  439. end)
  440. end
  441.  
  442. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  443. for _, c in pairs(workspace:children()) do
  444. local hum = c:findFirstChild("Humanoid")
  445. if hum ~= nil then
  446. local head = c:findFirstChild("Torso")
  447. if head ~= nil then
  448. local targ = head.Position - Part.Position
  449. local mag = targ.magnitude
  450. if mag <= Magnitude and c.Name ~= Player.Name then
  451. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  452. end
  453. end
  454. end
  455. end
  456. end
  457.  
  458. EffectModel = Create("Model"){
  459. Parent = Character,
  460. Name = "Effects",
  461. }
  462. local music = Instance.new("Sound",root)
  463. music.SoundId = "rbxassetid://187569497"
  464. music.Looped = true
  465. music.Volume = 1
  466. music.Name = "killme2"
  467.  
  468.  
  469. local shootsnd = new("Sound",char)
  470. shootsnd.SoundId = "rbxassetid://340722848"
  471. shootsnd.Volume = 10
  472. shootsnd.Pitch = 1
  473.  
  474.  
  475. local hdebounce = true
  476.  
  477.  
  478. local RGhasterBlaster = new("Part",root)
  479. RGhasterBlaster.Size = v3(1,1,1)
  480. RGhasterBlaster.Name = "RGhasterBlaster"
  481. RGhasterBlaster.CanCollide = false
  482. RGhasterBlaster.Material = "Neon"
  483. RGhasterBlaster.Shape = "Ball"
  484. RGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame
  485. RGhasterBlaster.Anchored = false
  486. RGhasterBlaster.BrickColor = bc("White")
  487. RGhasterBlaster.Transparency = 1
  488. RGhasterBlaster.Name = "HumanoidRootPart2"
  489.  
  490. local LGhasterBlaster = new("Part",root)
  491. LGhasterBlaster.Size = v3(1,1,1)
  492. LGhasterBlaster.CanCollide = false
  493. LGhasterBlaster.Name = "LGhasterBlaster"
  494. LGhasterBlaster.Material = "Neon"
  495. LGhasterBlaster.BrickColor = bc("White")
  496. LGhasterBlaster.Shape = "Ball"
  497. LGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  498. LGhasterBlaster.Anchored = false
  499. LGhasterBlaster.Transparency = 1
  500. LGhasterBlaster.Name = "HumanoidRootPart2"
  501.  
  502.  
  503. local zxc = Instance.new("SpecialMesh",LGhasterBlaster)
  504. zxc.MeshType = "FileMesh"
  505. zxc.Scale = Vector3.new(2,2,2)
  506. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  507. local zxc = Instance.new("SpecialMesh",RGhasterBlaster)
  508. zxc.MeshType = "FileMesh"
  509. zxc.Scale = Vector3.new(2,2,2)
  510. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  511. local lgbbg=Instance.new("BodyGyro",LGhasterBlaster)
  512. lgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  513. lgbbg.D=400
  514.  
  515. lgbbp = Instance.new("BodyPosition", LGhasterBlaster)
  516.  
  517. local rgbbg=Instance.new("BodyGyro",RGhasterBlaster)
  518. rgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  519. rgbbg.D=400
  520.  
  521. rgbbp = Instance.new("BodyPosition", RGhasterBlaster)
  522.  
  523. spawn(function()
  524. while Blasters == true do
  525. rgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(10,5,0)).p
  526. lgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-10,5,0)).p
  527. rgbbg.CFrame=CFrame.new(RGhasterBlaster.Position,mouse.Hit.p)
  528. lgbbg.CFrame=CFrame.new(LGhasterBlaster.Position,mouse.Hit.p)
  529.  
  530. wait()
  531. end
  532. end)
  533. ParticleEmitter0 = Instance.new("ParticleEmitter")
  534. ParticleEmitter0 = Instance.new("ParticleEmitter")
  535. ParticleEmitter0.Name = "Fire"
  536. ParticleEmitter0.Parent = char.RightHand
  537. ParticleEmitter0.Transparency = NumberSequence.new(0,0,0,0,1,0)
  538. ParticleEmitter0.Rotation = NumberRange.new(-90, 90)
  539. ParticleEmitter0.Archivable = false
  540. ParticleEmitter0.Size = NumberSequence.new(1,0)
  541. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  542. ParticleEmitter0.LightEmission = 1
  543. ParticleEmitter0.Texture = "rbxassetid://56561915"
  544. ParticleEmitter0.ZOffset = 1
  545. ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.5)
  546. ParticleEmitter0.Rate = 100
  547. ParticleEmitter0.RotSpeed = NumberRange.new(-90, 90)
  548. ParticleEmitter0.Speed = NumberRange.new(0.10000000149012, 0.10000000149012)
  549. ParticleEmitter0.Enabled = false
  550. local transPoints = {
  551. NumberSequenceKeypoint.new(0,.819,.0375),
  552. NumberSequenceKeypoint.new(.207,.594,.0187),
  553. NumberSequenceKeypoint.new(.4,.55,.031),
  554. NumberSequenceKeypoint.new(.57,.619,.05),
  555. NumberSequenceKeypoint.new(.76,.8,.0375),
  556. NumberSequenceKeypoint.new(1,1,0),
  557. }
  558.  
  559. local Size = NumberSequence.new(0.6,0.6,0.6)
  560. local Transparency = NumberSequence.new(transPoints)
  561. rayModel = Instance.new("Model",char)
  562. efxBlock = Instance.new("Part",char)
  563.  
  564. efxBlock.BrickColor = BrickColor.new("Cyan")
  565. efxBlock.Material = "Neon"
  566. efxBlock.FormFactor = "Custom"
  567. efxBlock.Transparency = 1
  568. efxBlock.Size = Vector3.new(.3,.3,.3)
  569. local offset = Vector3.new(-0.11, .23, -0.5)
  570. local weld = Instance.new("Weld",char.Head)
  571. weld.Part0 = char.Head
  572. weld.Part1 = efxBlock
  573. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  574. efxBlock.Parent = char
  575. local mesh = Instance.new("SpecialMesh",efxBlock)
  576. mesh.MeshType = Enum.MeshType.Sphere
  577. mesh.Scale = Vector3.new(1,1,1)
  578. light = Instance.new("PointLight",char.Head)
  579. light.Range = 0.5
  580. light.Color = Color3.new(0,200/255,1)
  581. light.Shadows = false
  582. light.Enabled = false
  583. local particles = Instance.new("ParticleEmitter",efxBlock)
  584. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  585. particles.LightEmission = .95
  586. particles.Size = Size
  587. particles.Name = "Fire"
  588. particles.Transparency = Transparency
  589. particles.VelocityInheritance = .5
  590. particles.LockedToPart = false
  591. particles.Rate = 100
  592. particles.Texture = "rbxassetid://56561915"
  593. particles.Lifetime = NumberRange.new(.5,.5)
  594. particles.Speed = NumberRange.new(7,7)
  595. particles.Enabled = false
  596. script.Parent = efxBlock
  597. fire = particles
  598. local CurrentEffects={}
  599. local CurrentDamages={}
  600.  
  601. local Player=game.Players.LocalPlayer
  602. local Char = Player.Character
  603. local Human=Char.Humanoid
  604. local Head=Char.Head
  605. local Torso = Char.HumanoidRootPart
  606. local RootPart=Char.HumanoidRootPart
  607. local equipped=false
  608. local Debounce=false
  609. local Anim="Idle"
  610. local chat = game:GetService("Chat")
  611. local Mouse=Player:GetMouse()
  612. local Lighting=game.Lighting
  613. local cam=workspace.CurrentCamera
  614. local cf=CFrame.new
  615. local v3=Vector3.new
  616. local c3=Color3.new
  617. local it=Instance.new
  618. local angles=CFrame.Angles
  619. local rad=math.rad
  620. local ran=math.random
  621. local huge=math.huge
  622. Tool=script.Parent
  623. Equipped=false
  624. local op=false
  625. r=game:service'RunService'.RenderStepped
  626.  
  627. Effects=Instance.new("Folder",Char)
  628. Effects.Name="Effects"
  629. Welds=Instance.new("Folder",Char)
  630. Welds.Name="Welds"
  631. Sounds=Instance.new("Folder",Char)
  632. Sounds.Name="Sounds"
  633.  
  634. part=function(parent,anchored,cancollide,size,cframe,col3,material,trans)
  635. local p=it("Part",parent)
  636. p.Anchored=anchored
  637. p.CanCollide=cancollide
  638. p.Size=size
  639. p.CFrame=cframe
  640. p.Color=col3
  641. p.Material=material
  642. p.Transparency=trans
  643. return p
  644. end
  645.  
  646. mesh=function(parent,ttype,scale)
  647. local m=it("SpecialMesh",parent)
  648. m.MeshType=ttype
  649. m.Scale=scale
  650. return m
  651. end
  652.  
  653. spmesh=function(parent,id,scale)
  654. local m=it("SpecialMesh",parent)
  655. m.MeshId=id
  656. m.Scale=scale
  657. return m
  658. end
  659.  
  660. local Smooth=function(Table)
  661. for _, v in pairs(Table) do
  662. if v.ClassName=="Part" then
  663. v.TopSurface,v.BottomSurface,v.BackSurface,v.FrontSurface,v.LeftSurface,v.RightSurface=10,10,10,10,10,10 end end
  664. end
  665.  
  666. function sw(t) spawn(function()
  667. local c=part(Effects,true,false,v3(0,0,0),Torso.CFrame*cf(0,-1.4,-1.5),Color3.new(0,0,1),"Neon",.9)
  668. local cm=spmesh(c,"rbxassetid://20329976",v3(6,2,6))
  669. for i=1,100 do r:wait()
  670. cm.Scale=cm.Scale:Lerp(cm.Scale+Vector3.new(4,-.021,4),1)
  671. if t==true then
  672. c.CFrame=c.CFrame*angles(0,rad(i),0)
  673. elseif t==false then
  674. c.CFrame=c.CFrame*angles(0,rad(i*-1),0)
  675. end
  676. if op == false then
  677. c.Transparency = 1
  678. else
  679. c.Transparency=c.Transparency + .004
  680. end
  681. end
  682. c:Destroy() end)
  683. end
  684.  
  685. for i = 1,100 do r:wait()
  686. sw(false)
  687. end
  688.  
  689. local p = game.Players.LocalPlayer
  690. local char = p.Character
  691. local mouse = p:GetMouse()
  692. local hed = char.Head
  693. local hum = char.Humanoid
  694. local cam = game.Workspace.CurrentCamera
  695. local root = char.HumanoidRootPart
  696. local deb = false
  697. local shot = 0
  698. local debris=game:service"Debris"
  699. local l = game:GetService("Lighting")
  700. local rs = game:GetService("RunService").RenderStepped
  701. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  702. math.randomseed(os.time())
  703. ----------------------------------------------------
  704. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  705. --[[Part0 = Vector3 (Start pos)
  706. Part1 = Vector3 (End pos)
  707. Times = number (Amount of lightning parts)
  708. Offset = number (Offset)
  709. Color = color (brickcolor value)
  710. Thickness = number (thickness)
  711. Trans = number (transparency)
  712. ]]--
  713. local magz = (Part0 - Part1).magnitude
  714. local curpos = Part0
  715. local trz = {-Offset,Offset}
  716. for i=1,Times do
  717. local li = Instance.new("Part", hum)
  718. li.Name = "Lightning"
  719. li.TopSurface =0
  720. li.Material = "Neon"
  721. li.BottomSurface = 0
  722. li.Anchored = true
  723. li.Locked = true
  724. li.Transparency = Trans or 1
  725. li.BrickColor = BrickColor.new(Color)
  726. li.formFactor = "Custom"
  727. li.CanCollide = false
  728. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  729. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  730. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  731. if Times == i then
  732. local magz2 = (curpos - Part1).magnitude
  733. li.Size = Vector3.new(Thickness,Thickness,magz2)
  734. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  735. else
  736. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  737. end
  738. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  739. game.Debris:AddItem(li,.1)
  740. end
  741. end
  742.  
  743. BodyParts = {} -- Parts to emit lightning effects from
  744. for _, v in pairs(char:GetChildren()) do
  745. if v:IsA("Part") or v:IsA("MeshPart") and v.Name ~= "HumanoidRootPart" then
  746. table.insert(BodyParts, v)
  747. end
  748. end
  749.  
  750. Bounding = {} -- Calculate the bounding boxes
  751. for _, v in pairs(BodyParts) do
  752. local temp = {X=nil, Y=nil, Z=nil}
  753. temp.X = v.Size.X/2 * 10
  754. temp.Y = v.Size.Y/2 * 10
  755. temp.Z = v.Size.Z/2 * 10
  756. Bounding[v.Name] = temp
  757. --table.insert(Bounding, v.Name, temp)
  758. end
  759.  
  760. local Body1 = BodyParts[math.random(#BodyParts)]
  761. local Body2 = BodyParts[math.random(#BodyParts)]
  762. local Pos1 = Vector3.new(
  763. math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
  764. math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
  765. math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
  766. )
  767. local Pos2 = Vector3.new(
  768. math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
  769. math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
  770. math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
  771. )
  772. local SPos1 = Body1.Position + Pos1
  773. local SPos2 = Body2.Position + Pos2
  774. Lightning(SPos1, SPos2, 20, 3, "Cyan", .000001, 0)
  775.  
  776. spawn(function()
  777. for i=1,math.huge do r:wait()
  778. if op==true then
  779. if i%5 ==0 then
  780. sw(true)
  781. sw(false)
  782. end
  783. end
  784. end
  785. end)
  786. function equip()
  787. if equiped == false then
  788. equiped = true
  789. hum.WalkSpeed = 0
  790. hum.JumpPower = 0
  791. for i = 1,20 do
  792. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(-90)),.1) --LeftUpperArm
  793. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(90)),.1)--RightUpperArm
  794. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
  795. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
  796. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
  797. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  798. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
  799. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  800. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
  801. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  802. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  803. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  804. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  805. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  806. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(60)),.1)--Head
  807. wait()
  808. end
  809. for i = 1,20 do
  810. LGhasterBlaster.Transparency = LGhasterBlaster.Transparency-0.1
  811. RGhasterBlaster.Transparency = RGhasterBlaster.Transparency-0.1
  812. wait()
  813. end
  814. hum.WalkSpeed = 15
  815. hum.JumpPower = 50
  816. particles.Enabled = true
  817. efxBlock.Transparency = 0
  818. ParticleEmitter0.Enabled = true
  819. op = true
  820.  
  821.  
  822.  
  823. local mouse = p:GetMouse()
  824. local part11 = nil
  825. local bp = nil
  826. local particles = nil
  827.  
  828. mouse.KeyDown:connect(function(key)
  829. if key == "m" then
  830. if op == true then
  831. if mouse ~= nil then
  832. if mouse.Target ~= nil then
  833. part11 = mouse.Target
  834. bp = Instance.new("BodyPosition",part11)
  835. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  836. bp.Position = part11.Position
  837. ParticleEmitter01 = Instance.new("ParticleEmitter")
  838. ParticleEmitter01 = Instance.new("ParticleEmitter",part11)
  839. ParticleEmitter01.Rotation = NumberRange.new(-90, 90)
  840. ParticleEmitter01.Archivable = true
  841. ParticleEmitter01.Size = NumberSequence.new(1,0)
  842. ParticleEmitter01.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  843. ParticleEmitter01.LightEmission = 1
  844. ParticleEmitter01.Texture = "rbxassetid://56561915"
  845. ParticleEmitter01.ZOffset = 1
  846. ParticleEmitter01.Lifetime = NumberRange.new(0.5, 0.5)
  847. ParticleEmitter01.Rate = 100
  848. ParticleEmitter01.RotSpeed = NumberRange.new(-90, 90)
  849. ParticleEmitter01.Speed = NumberRange.new(0.10000000149012, 0.10000000149012)
  850. dwn = true
  851. end
  852. end
  853. end
  854. end
  855. while dwn == true and op == true do
  856. wait()
  857. bp.Position = mouse.hit.p
  858. if part11 then
  859. if part11.Parent:FindFirstChildOfClass("Humanoid") then
  860. part11.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  861. end
  862. end
  863. end
  864. end)
  865. mouse.KeyUp:connect(function(key)
  866. if key == "m" then
  867. dwn = false
  868. if part11 then if part11.Parent:FindFirstChildOfClass("Humanoid") then part11.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part11 = nil end
  869. if bp then bp:Destroy() end
  870. if ParticleEmitter01 then ParticleEmitter01:Destroy() end
  871. end
  872. end)
  873.  
  874. touchCounter = 0
  875.  
  876.  
  877.  
  878. music:Play()
  879. for i = 1,20 do
  880. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
  881. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
  882. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
  883. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
  884. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
  885. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  886. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
  887. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  888. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
  889. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  890. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  891. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  892. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  893. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  894. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  895. wait()
  896. end
  897. else
  898. equiped = false
  899. hum.WalkSpeed = 0
  900. hum.JumpPower = 0
  901. for i = 1,20 do
  902. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(math.rad(-137.052), math.rad(-87.376), math.rad(-180.023)),.1) --LeftUpperArm
  903. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(44.576), math.rad(80.787), 0),.1)--RightUpperArm
  904. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(92.934),rad(0),rad(0)),.1)--LeftLowerArm
  905. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(math.rad(92.132), math.rad(0.057), math.rad(0.229)),.1)--RightLowerArm
  906. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(59.588),rad(0),rad(0)),.1)--LeftUpperLeg
  907. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(1.089),rad(0),rad(0)),.1)--RightUpperLeg
  908. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-38.044),rad(0),rad(0)),.1)--LeftLowerLeg
  909. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-17.704),rad(0),rad(0)),.1)--RightUpperLeg
  910. Root.C0 = Root.C0:lerp(CFrame.new(0, -0.206, 0.078)*CFrame.Angles(rad(-20.856),rad(0),rad(0)),.1)--Torso
  911. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(18.564),rad(0),rad(0)),.1)--Head
  912. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  913. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  914. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  915. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  916. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  917. wait()
  918. end
  919.  
  920. ParticleEmitter0.Enabled = false
  921. particles.Enabled = false
  922. music.Playing = false
  923. op = false
  924. efxBlock.Transparency = 1
  925.  
  926.  
  927. for i = 1,20 do
  928. LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
  929. RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
  930. wait()
  931. end
  932. for i = 1,20 do
  933. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
  934. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
  935. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
  936. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
  937. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
  938. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  939. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
  940. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  941. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
  942. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  943. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  944. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  945. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  946. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  947. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  948. wait()
  949. end
  950. hum.WalkSpeed = 15
  951. hum.JumpPower = 50
  952. end
  953. end
  954. function beam()
  955. if debounce == true then
  956. if equiped == true then
  957. debounce = false
  958. local finalflash = false
  959. local finalgo = 0
  960. local finalgo1 = 6
  961. game:GetService("RunService").RenderStepped:connect(function()
  962. if finalflash == true then
  963. finalgo = finalgo + 1
  964. finalgo1 = finalgo1 + 2
  965. char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
  966. char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
  967. char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  968.  
  969. char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  970.  
  971. end
  972. end)
  973.  
  974. shootsnd:Play()
  975.  
  976. local RayThing = Instance.new("Part",char)
  977. RayThing.Size = Vector3.new(5,1,1)
  978. RayThing.Shape = "Cylinder"
  979. RayThing.Name = "FinalFlash"
  980. RayThing.CanCollide = false
  981. RayThing.Transparency = 0
  982. RayThing.Anchored = true
  983. RayThing.Material = "Neon"
  984. RayThing.BrickColor = BrickColor.new("Cyan")
  985.  
  986. local inRayThing = Instance.new("Part",char)
  987. inRayThing.Size = Vector3.new(5,1,1)
  988. inRayThing.Transparency = 1
  989. inRayThing.Shape = "Cylinder"
  990. inRayThing.Name = "inFinalFlash"
  991. inRayThing.CanCollide = false
  992. inRayThing.Anchored = true
  993. inRayThing.Material = "Neon"
  994. inRayThing.BrickColor = BrickColor.new("Cyan")
  995. inRayThing.Touched:connect(function(hit)
  996.  
  997.  
  998. if hit.Parent == char then return end
  999. if hit.Parent == workspace.Base then return end
  1000. for i,v in pairs(hit.Parent:GetChildren()) do
  1001. if v:IsA("Humanoid") then
  1002. if hdebounce == true then
  1003. hdebounce = false
  1004. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -30, 1.5, BrickColor.new("Toothpaste").Color)
  1005. v.Health = v.Health - 30
  1006. wait(1)
  1007. hdebounce = true
  1008. end
  1009.  
  1010.  
  1011. end
  1012. end
  1013.  
  1014. end)
  1015. finalflash = true
  1016.  
  1017. wait(0.5)
  1018.  
  1019. finalflash = false
  1020. for i = 1,10 do
  1021. char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
  1022. char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
  1023. char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  1024.  
  1025. char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  1026. wait()
  1027. end
  1028. inRayThing:Destroy()
  1029. RayThing:Destroy()
  1030. finalgo = 0
  1031. finalgo1 = 6
  1032. debounce = true
  1033. end
  1034. end
  1035. end
  1036. function beam2()
  1037. if equiped == true then
  1038. if debounce == true then
  1039. debounce = false
  1040. local finalflash = false
  1041. local finalgo = 0
  1042. local finalgo1 = 6
  1043. game:GetService("RunService").RenderStepped:connect(function()
  1044. if finalflash == true then
  1045. finalgo = finalgo + 1
  1046. finalgo1 = finalgo1 + 2
  1047.  
  1048. char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
  1049. char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
  1050. char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  1051. char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  1052.  
  1053.  
  1054. end
  1055. end)
  1056.  
  1057. shootsnd:Play()
  1058. local RayThing = Instance.new("Part",char)
  1059. RayThing.Size = Vector3.new(5,1,1)
  1060. RayThing.Shape = "Cylinder"
  1061. RayThing.Name = "FinalFlash"
  1062. RayThing.CanCollide = false
  1063. RayThing.Transparency = 0
  1064. RayThing.Anchored = true
  1065. RayThing.Material = "Neon"
  1066. RayThing.BrickColor = BrickColor.new("Cyan")
  1067.  
  1068. local inRayThing = Instance.new("Part",char)
  1069. inRayThing.Size = Vector3.new(10,1,1)
  1070. inRayThing.Transparency = 1
  1071. inRayThing.Shape = "Cylinder"
  1072. inRayThing.Name = "inFinalFlash"
  1073. inRayThing.CanCollide = false
  1074. inRayThing.Anchored = true
  1075. inRayThing.Material = "Neon"
  1076. inRayThing.BrickColor = BrickColor.new("Cyan")
  1077.  
  1078. RayThing.Touched:connect(function(hit)
  1079.  
  1080.  
  1081. if hit.Parent == char then return end
  1082. if hit.Parent == workspace.Base then return end
  1083. for i,v in pairs(hit.Parent:GetChildren()) do
  1084. if v:IsA("Humanoid") then
  1085. if hdebounce == true then
  1086. hdebounce = false
  1087. local hitnumb = math.random(1,2)
  1088. v.Health = v.Health - math.random(10,20)
  1089. if hitnumb == 1 then
  1090. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1091. end
  1092. if hitnumb == 2 then
  1093. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1094. end
  1095. wait(1)
  1096. hdebounce = true
  1097. end
  1098.  
  1099.  
  1100. end
  1101. end
  1102.  
  1103. end)
  1104. finalflash = true
  1105.  
  1106. wait(0.5)
  1107.  
  1108. finalflash = false
  1109. for i = 1,10 do
  1110. char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
  1111. char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
  1112. char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  1113. char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  1114. wait()
  1115. end
  1116.  
  1117. inRayThing:Destroy()
  1118. RayThing:Destroy()
  1119. finalgo = 0
  1120. finalgo1 = 6
  1121. debounce = true
  1122. end
  1123. end
  1124. end
  1125. mounted = false
  1126. function mount()
  1127. if equiped == true then
  1128. if mounted == false then
  1129. mounted = true
  1130. char.Humanoid.PlatformStand = true
  1131. local mountw = new("Weld",RGhasterBlaster)
  1132. mountw.Part0 = char.HumanoidRootPart
  1133. mountw.Part1 = RGhasterBlaster
  1134. mountw.Name = "mountw"
  1135. mountw.C1 = CFrame.new(0,3,0)
  1136. for i = 1,5 do
  1137. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5) --LeftUpperArm
  1138. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperArm
  1139. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(70),rad(0),rad(0)),.5)--Head
  1140. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--LeftUpperLeg
  1141. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperLeg
  1142. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--LeftLowerLeg
  1143. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--RightUpperLeg
  1144. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(-170),rad(0),rad(0)),.1)--Torso
  1145. wait()
  1146. end
  1147.  
  1148. elseif mounted == true then
  1149. mounted = false
  1150. for i = 1,5 do
  1151. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5) --LeftUpperArm
  1152. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperArm
  1153. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Head
  1154. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftUpperLeg
  1155. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
  1156. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftLowerLeg
  1157. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
  1158. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Torso
  1159. wait()
  1160. end
  1161. char.Humanoid.PlatformStand = false
  1162. RGhasterBlaster.mountw:destroy()
  1163. RGhasterBlaster.CFrame = char.LeftHand.CFrame
  1164. end
  1165. end
  1166. end
  1167. local srot = 0
  1168. mouse.Button1Down:connect(function()
  1169. ral = math.random(1,2)
  1170. if ral == 1 then
  1171. beam()
  1172. end
  1173. if ral == 2 then
  1174. beam2()
  1175. end
  1176.  
  1177.  
  1178. end)
  1179. function cross()
  1180. if equiped == true then
  1181. if debounce == true then
  1182. debounce = false
  1183. local targeta = new("Part",char)
  1184. targeta.Position = mouse.Hit.p
  1185. targeta.Anchored = true
  1186. targeta.CanCollide = false
  1187. targeta.Transparency = 1
  1188.  
  1189. local CrossGhast1 = new("Part",char)
  1190. CrossGhast1.CanCollide = false
  1191. CrossGhast1.Anchored = false
  1192. CrossGhast1.Size = v3(1,1,1)
  1193. CrossGhast1.Material = "Neon"
  1194. CrossGhast1.BrickColor = bc("White")
  1195. CrossGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1196.  
  1197.  
  1198. local zxc = Instance.new("SpecialMesh",CrossGhast1)
  1199. zxc.MeshType = "FileMesh"
  1200. zxc.Scale = Vector3.new(2,2,2)
  1201. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1202. PointBP = Instance.new("BodyPosition",CrossGhast1)
  1203. PointBP.Position = (targeta.CFrame*CFrame.new(20,1,0)).p
  1204. PointBP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1205. local PointBG=Instance.new("BodyGyro",CrossGhast1)
  1206. PointBG.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1207. PointBG.D=400
  1208. local CrossGhast2 = new("Part",char)
  1209. CrossGhast2.CanCollide = false
  1210. CrossGhast2.Anchored = false
  1211. CrossGhast2.Size = v3(1,1,1)
  1212. CrossGhast2.Material = "Neon"
  1213. CrossGhast2.BrickColor = bc("White")
  1214. CrossGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1215.  
  1216. local zxc = Instance.new("SpecialMesh",CrossGhast2)
  1217. zxc.MeshType = "FileMesh"
  1218. zxc.Scale = Vector3.new(2,2,2)
  1219. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1220. PointBP2 = Instance.new("BodyPosition",CrossGhast2)
  1221. PointBP2.Position = (targeta.CFrame*CFrame.new(-20,1,0)).p
  1222. PointBP2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1223. local PointBG2=Instance.new("BodyGyro",CrossGhast2)
  1224. PointBG2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1225. PointBG2.D=400
  1226. local CrossGhast3 = new("Part",char)
  1227. CrossGhast3.CanCollide = false
  1228. CrossGhast3.Anchored = false
  1229. CrossGhast3.Size = v3(1,1,1)
  1230. CrossGhast3.Material = "Neon"
  1231. CrossGhast3.BrickColor = bc("White")
  1232. CrossGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1233.  
  1234. local zxc = Instance.new("SpecialMesh",CrossGhast3)
  1235. zxc.MeshType = "FileMesh"
  1236. zxc.Scale = Vector3.new(2,2,2)
  1237. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1238. PointBP3 = Instance.new("BodyPosition",CrossGhast3)
  1239. PointBP3.Position = (targeta.CFrame*CFrame.new(0,1,-20)).p
  1240. PointBP3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1241. local PointBG3=Instance.new("BodyGyro",CrossGhast3)
  1242. PointBG3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1243. PointBG3.D=400
  1244. local CrossGhasta = new("Part",char)
  1245. CrossGhasta.CanCollide = false
  1246. CrossGhasta.Anchored = false
  1247. CrossGhasta.Size = v3(1,1,1)
  1248. CrossGhasta.Material = "Neon"
  1249. CrossGhasta.BrickColor = bc("White")
  1250. CrossGhasta.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1251.  
  1252. local zxc = Instance.new("SpecialMesh",CrossGhasta)
  1253. zxc.MeshType = "FileMesh"
  1254. zxc.Scale = Vector3.new(2,2,2)
  1255. zxc.MeshId = "http://www.roblox.csdom/asset/?id=920580395"
  1256. PointBPa = Instance.new("BodyPosition",CrossGhasta)
  1257. PointBPa.Position = (targeta.CFrame*CFrame.new(0,1,20)).p
  1258. PointBPa.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1259. local PointBGa=Instance.new("BodyGyro",CrossGhasta)
  1260. PointBGa.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1261. PointBGa.D=400
  1262. for i = 1,50 do
  1263. PointBG.CFrame=CFrame.new(CrossGhast1.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1264. PointBG2.CFrame=CFrame.new(CrossGhast2.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1265. PointBG3.CFrame=CFrame.new(CrossGhast3.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1266. PointBGa.CFrame=CFrame.new(CrossGhasta.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1267.  
  1268. wait()
  1269. end
  1270. shootsnd:Play()
  1271. local GhastShot1 = new("Part",CrossGhast1)
  1272. GhastShot1.Shape = "Cylinder"
  1273. GhastShot1.Size = v3(100,5,5)
  1274. GhastShot1.BrickColor = bc("Cyan")
  1275. GhastShot1.Material = "Neon"
  1276. GhastShot1.CanCollide = false
  1277. GhastShot1.Anchored = true
  1278. GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1279. local GhastShot2 = new("Part",CrossGhast1)
  1280. GhastShot2.Shape = "Cylinder"
  1281. GhastShot2.Size = v3(100,5,5)
  1282. GhastShot2.BrickColor = bc("Cyan")
  1283. GhastShot2.Material = "Neon"
  1284. GhastShot2.CanCollide = false
  1285. GhastShot2.Anchored = true
  1286. GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1287. local GhastShot3 = new("Part",CrossGhast1)
  1288. GhastShot3.Shape = "Cylinder"
  1289. GhastShot3.Size = v3(100,5,5)
  1290. GhastShot3.BrickColor = bc("Cyan")
  1291. GhastShot3.Material = "Neon"
  1292. GhastShot3.CanCollide = false
  1293. GhastShot3.Anchored = true
  1294. GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1295. local GhastShota = new("Part",CrossGhast1)
  1296. GhastShota.Shape = "Cylinder"
  1297. GhastShota.Size = v3(100,5,5)
  1298. GhastShota.BrickColor = bc("Cyan")
  1299. GhastShota.Material = "Neon"
  1300. GhastShota.CanCollide = false
  1301. GhastShota.Anchored = true
  1302. GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1303. GhastShota.Touched:connect(function(hit)
  1304.  
  1305.  
  1306. if hit.Parent == char then return end
  1307. if hit.Parent == workspace.Base then return end
  1308. for i,v in pairs(hit.Parent:GetChildren()) do
  1309. if v:IsA("Humanoid") then
  1310. if hdebounce == true then
  1311. hdebounce = false
  1312. local hitnumb2 = math.random(1,2)
  1313. for i = 1,20 do
  1314. v.Health = v.Health-2
  1315. wait(0.01)
  1316. end
  1317. if hitnumb == 1 then
  1318. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1319. end
  1320. if hitnumb == 2 then
  1321. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1322. end
  1323. wait(0.9)
  1324. hdebounce = true
  1325. end
  1326.  
  1327.  
  1328. end
  1329. end
  1330.  
  1331. end)
  1332. GhastShot1.Touched:connect(function(hit)
  1333.  
  1334. if hit.Parent == char then return end
  1335. if hit.Parent == workspace.Base then return end
  1336. for i,v in pairs(hit.Parent:GetChildren()) do
  1337. if v:IsA("Humanoid") then
  1338. if hdebounce == true then
  1339. hdebounce = false
  1340. local hitnumb2 = math.random(1,2)
  1341. for i = 1,20 do
  1342. v.Health = v.Health-2
  1343. wait(0.01)
  1344. end
  1345. if hitnumb == 1 then
  1346. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1347. end
  1348. if hitnumb == 2 then
  1349. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1350. end
  1351. wait(0.9)
  1352. hdebounce = true
  1353. end
  1354.  
  1355.  
  1356. end
  1357. end
  1358.  
  1359. end)
  1360. GhastShot2.Touched:connect(function(hit)
  1361. if hit.Parent == workspace.Base then return end
  1362.  
  1363. if hit.Parent == char then return end
  1364.  
  1365. for i,v in pairs(hit.Parent:GetChildren()) do
  1366. if v:IsA("Humanoid") then
  1367. if hdebounce == true then
  1368. hdebounce = false
  1369. local hitnumb2 = math.random(1,2)
  1370. for i = 1,20 do
  1371. v.Health = v.Health-2
  1372. wait(0.01)
  1373. end
  1374. if hitnumb == 1 then
  1375. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1376. end
  1377. if hitnumb == 2 then
  1378. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1379. end
  1380. wait(0.9)
  1381. hdebounce = true
  1382. end
  1383.  
  1384.  
  1385. end
  1386. end
  1387.  
  1388. end)
  1389. GhastShot3.Touched:connect(function(hit)
  1390. if hit.Parent == workspace.Base then return end
  1391. if hit.Parent == char then return end
  1392.  
  1393. for i,v in pairs(hit.Parent:GetChildren()) do
  1394. if v:IsA("Humanoid") then
  1395. if hdebounce == true then
  1396. hdebounce = false
  1397. local hitnumb2 = math.random(1,2)
  1398. for i = 1,20 do
  1399. v.Health = v.Health-2
  1400. wait(0.01)
  1401. end
  1402. if hitnumb == 1 then
  1403. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1404. end
  1405. if hitnumb == 2 then
  1406. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1407. end
  1408. wait(0.9)
  1409. hdebounce = true
  1410. end
  1411.  
  1412.  
  1413. end
  1414. end
  1415.  
  1416. end)
  1417. wait(0.2)
  1418. for i = 1,10 do
  1419. GhastShot1.Size = GhastShot1.Size+v3(0,-1,-1)
  1420. GhastShot2.Size = GhastShot2.Size+v3(0,-1,-1)
  1421. GhastShot3.Size = GhastShot3.Size+v3(0,-1,-1)
  1422. GhastShota.Size = GhastShota.Size+v3(0,-1,-1)
  1423. GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1424. GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1425. GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1426. GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1427. GhastShot1.Transparency = GhastShot1.Transparency+0.1
  1428. GhastShot2.Transparency = GhastShot2.Transparency+0.1
  1429. GhastShot3.Transparency = GhastShot3.Transparency+0.1
  1430. GhastShota.Transparency = GhastShota.Transparency+0.1
  1431.  
  1432. wait()
  1433. end
  1434. wait(1)
  1435. for i = 1,10 do
  1436. CrossGhast2.Transparency = CrossGhast2.Transparency+0.1
  1437. CrossGhast1.Transparency = CrossGhast1.Transparency+0.1
  1438. CrossGhasta.Transparency = CrossGhasta.Transparency+0.1
  1439. CrossGhast3.Transparency = CrossGhast3.Transparency+0.1
  1440. wait()
  1441. end
  1442. CrossGhast1:destroy()
  1443. CrossGhast2:destroy()
  1444. CrossGhast3:destroy()
  1445. CrossGhasta:destroy()
  1446. wait(1)
  1447. debounce = true
  1448. end
  1449. end
  1450. end
  1451. local dodgedebounce = true
  1452. function DodgeLeft()
  1453. if dodgedebounce == true then
  1454. dodgedebounce = false
  1455. local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
  1456. local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
  1457. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1458. bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
  1459. wait(0.8)
  1460. bodyp.Position=currentpos
  1461. wait(0.5)
  1462. bodyp:Destroy()
  1463. wait(1)
  1464. dodgedebounce = true
  1465. end
  1466. end
  1467. function RightDodge()
  1468. if dodgedebounce == true then
  1469. dodgedebounce = false
  1470. local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
  1471. local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
  1472. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1473. bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(15,0,0)).p
  1474. wait(0.8)
  1475. bodyp.Position=currentpos
  1476. wait(0.5)
  1477. bodyp:Destroy()
  1478. wait(1)
  1479. dodgedebounce = true
  1480. end
  1481. end
  1482. function octo()
  1483. if equiped == true then
  1484. if debounce == true then
  1485. debounce = false
  1486. local target2 = new("Part",char)
  1487. target2.Position = mouse.Hit.p
  1488. target2.Anchored = true
  1489. target2.CanCollide = false
  1490. target2.Transparency = 1
  1491. local OctoGhast1 = new("Part",char)
  1492. OctoGhast1.CanCollide = false
  1493. OctoGhast1.Anchored = false
  1494. OctoGhast1.Size = v3(1,1,1)
  1495. OctoGhast1.Material = "Neon"
  1496. OctoGhast1.BrickColor = bc("White")
  1497. OctoGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1498.  
  1499.  
  1500. local zxc = Instance.new("SpecialMesh",OctoGhast1)
  1501. zxc.MeshType = "FileMesh"
  1502. zxc.Scale = Vector3.new(2,2,2)
  1503. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1504. PointBPOcto1 = Instance.new("BodyPosition",OctoGhast1)
  1505. PointBPOcto1.Position = (target2.CFrame*CFrame.new(20,1,0)).p
  1506. PointBPOcto1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1507. local PointBGOcto1=Instance.new("BodyGyro",OctoGhast1)
  1508. PointBGOcto1.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1509. PointBGOcto1.D=400
  1510. local OctoGhast2 = new("Part",char)
  1511. OctoGhast2.CanCollide = false
  1512. OctoGhast2.Anchored = false
  1513. OctoGhast2.Size = v3(1,1,1)
  1514. OctoGhast2.Material = "Neon"
  1515. OctoGhast2.BrickColor = bc("White")
  1516. OctoGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1517.  
  1518. local zxc = Instance.new("SpecialMesh",OctoGhast2)
  1519. zxc.MeshType = "FileMesh"
  1520. zxc.Scale = Vector3.new(2,2,2)
  1521. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1522. PointBPOcto2 = Instance.new("BodyPosition",OctoGhast2)
  1523. PointBPOcto2.Position = (target2.CFrame*CFrame.new(-20,1,0)).p
  1524. PointBPOcto2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1525. local PointBGOcto2=Instance.new("BodyGyro",OctoGhast2)
  1526. PointBGOcto2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1527. PointBGOcto2.D=400
  1528. local OctoGhast3 = new("Part",char)
  1529. OctoGhast3.CanCollide = false
  1530. OctoGhast3.Anchored = false
  1531. OctoGhast3.Size = v3(1,1,1)
  1532. OctoGhast3.Material = "Neon"
  1533. OctoGhast3.BrickColor = bc("White")
  1534. OctoGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1535.  
  1536.  
  1537. local zxc = Instance.new("SpecialMesh",OctoGhast3)
  1538. zxc.MeshType = "FileMesh"
  1539. zxc.Scale = Vector3.new(2,2,2)
  1540. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1541. PointBPOcto3 = Instance.new("BodyPosition",OctoGhast3)
  1542. PointBPOcto3.Position = (target2.CFrame*CFrame.new(0,1,-20)).p
  1543. PointBPOcto3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1544. local PointBGOcto3=Instance.new("BodyGyro",OctoGhast3)
  1545. PointBGOcto3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1546. PointBGOcto3.D=400
  1547. local OctoGhast4 = new("Part",char)
  1548. OctoGhast4.CanCollide = false
  1549. OctoGhast4.Anchored = false
  1550. OctoGhast4.Size = v3(1,1,1)
  1551. OctoGhast4.Material = "Neon"
  1552. OctoGhast4.BrickColor = bc("White")
  1553. OctoGhast4.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1554.  
  1555.  
  1556. local zxc = Instance.new("SpecialMesh",OctoGhast4)
  1557. zxc.MeshType = "FileMesh"
  1558. zxc.Scale = Vector3.new(2,2,2)
  1559. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1560. PointBPOcto4 = Instance.new("BodyPosition",OctoGhast4)
  1561. PointBPOcto4.Position = (target2.CFrame*CFrame.new(0,1,20)).p
  1562. PointBPOcto4.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1563. local PointBGOcto4=Instance.new("BodyGyro",OctoGhast4)
  1564. PointBGOcto4.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1565. PointBGOcto4.D=400
  1566. local OctoGhast5 = new("Part",char)
  1567. OctoGhast5.CanCollide = false
  1568. OctoGhast5.Anchored = false
  1569. OctoGhast5.Size = v3(1,1,1)
  1570. OctoGhast5.Material = "Neon"
  1571. OctoGhast5.BrickColor = bc("White")
  1572. OctoGhast5.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1573.  
  1574.  
  1575. local zxc = Instance.new("SpecialMesh",OctoGhast5)
  1576. zxc.MeshType = "FileMesh"
  1577. zxc.Scale = Vector3.new(2,2,2)
  1578. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1579. PointBPOcto5 = Instance.new("BodyPosition",OctoGhast5)
  1580. PointBPOcto5.Position = (target2.CFrame*CFrame.new(15,1,-20)).p
  1581. PointBPOcto5.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1582. local PointBGOcto5=Instance.new("BodyGyro",OctoGhast5)
  1583. PointBGOcto5.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1584. PointBGOcto5.D=400
  1585. local OctoGhast6 = new("Part",char)
  1586. OctoGhast6.CanCollide = false
  1587. OctoGhast6.Anchored = false
  1588. OctoGhast6.Size = v3(1,1,1)
  1589. OctoGhast6.Material = "Neon"
  1590. OctoGhast6.BrickColor = bc("White")
  1591. OctoGhast6.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1592.  
  1593.  
  1594. local zxc = Instance.new("SpecialMesh",OctoGhast6)
  1595. zxc.MeshType = "FileMesh"
  1596. zxc.Scale = Vector3.new(2,2,2)
  1597. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1598. PointBPOcto6 = Instance.new("BodyPosition",OctoGhast6)
  1599. PointBPOcto6.Position = (target2.CFrame*CFrame.new(-15,1,20)).p
  1600. PointBPOcto6.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1601. local PointBGOcto6=Instance.new("BodyGyro",OctoGhast6)
  1602. PointBGOcto6.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1603. PointBGOcto6.D=400
  1604. local OctoGhast7 = new("Part",char)
  1605. OctoGhast7.CanCollide = false
  1606. OctoGhast7.Anchored = false
  1607. OctoGhast7.Size = v3(1,1,1)
  1608. OctoGhast7.Material = "Neon"
  1609. OctoGhast7.BrickColor = bc("White")
  1610. OctoGhast7.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1611.  
  1612.  
  1613. local zxc = Instance.new("SpecialMesh",OctoGhast7)
  1614. zxc.MeshType = "FileMesh"
  1615. zxc.Scale = Vector3.new(2,2,2)
  1616. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1617. PointBPOcto7 = Instance.new("BodyPosition",OctoGhast7)
  1618. PointBPOcto7.Position = (target2.CFrame*CFrame.new(15,1,15)).p
  1619. PointBPOcto7.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1620. local PointBGOcto7=Instance.new("BodyGyro",OctoGhast7)
  1621. PointBGOcto7.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1622. PointBGOcto7.D=400
  1623. local OctoGhast8 = new("Part",char)
  1624. OctoGhast8.CanCollide = false
  1625. OctoGhast8.Anchored = false
  1626. OctoGhast8.Size = v3(1,1,1)
  1627. OctoGhast8.Material = "Neon"
  1628. OctoGhast8.BrickColor = bc("White")
  1629. OctoGhast8.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1630.  
  1631.  
  1632. local zxc = Instance.new("SpecialMesh",OctoGhast8)
  1633. zxc.MeshType = "FileMesh"
  1634. zxc.Scale = Vector3.new(2,2,2)
  1635. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1636. PointBPOcto8 = Instance.new("BodyPosition",OctoGhast8)
  1637. PointBPOcto8.Position = (target2.CFrame*CFrame.new(-15,1,-15)).p
  1638. PointBPOcto8.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1639. local PointBGOcto8=Instance.new("BodyGyro",OctoGhast8)
  1640. PointBGOcto8.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1641. PointBGOcto8.D=400
  1642. for i = 1,50 do
  1643. PointBGOcto5.CFrame=CFrame.new(OctoGhast5.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1644. PointBGOcto4.CFrame=CFrame.new(OctoGhast4.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1645. PointBGOcto1.CFrame=CFrame.new(OctoGhast1.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1646. PointBGOcto2.CFrame=CFrame.new(OctoGhast2.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1647. PointBGOcto3.CFrame=CFrame.new(OctoGhast3.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1648. PointBGOcto6.CFrame=CFrame.new(OctoGhast6.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1649. PointBGOcto7.CFrame=CFrame.new(OctoGhast7.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1650. PointBGOcto8.CFrame=CFrame.new(OctoGhast8.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1651. wait()
  1652. end
  1653. shootsnd:Play()
  1654. local GhastShotaA = new("Part",OctoGhast1)
  1655. GhastShotaA.Shape = "Cylinder"
  1656. GhastShotaA.Size = v3(100,5,5)
  1657. GhastShotaA.BrickColor = bc("Cyan")
  1658. GhastShotaA.Material = "Neon"
  1659. GhastShotaA.CanCollide = false
  1660. GhastShotaA.Anchored = true
  1661. GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1662. local GhastShotaB = new("Part",OctoGhast2)
  1663. GhastShotaB.Shape = "Cylinder"
  1664. GhastShotaB.Size = v3(100,5,5)
  1665. GhastShotaB.BrickColor = bc("Cyan")
  1666. GhastShotaB.Material = "Neon"
  1667. GhastShotaB.CanCollide = false
  1668. GhastShotaB.Anchored = true
  1669. GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1670. local GhastShotaC = new("Part",OctoGhast3)
  1671. GhastShotaC.Shape = "Cylinder"
  1672. GhastShotaC.Size = v3(100,5,5)
  1673. GhastShotaC.BrickColor = bc("Cyan")
  1674. GhastShotaC.Material = "Neon"
  1675. GhastShotaC.CanCollide = false
  1676. GhastShotaC.Anchored = true
  1677. GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1678. local GhastShotaD = new("Part",OctoGhast4)
  1679. GhastShotaD.Shape = "Cylinder"
  1680. GhastShotaD.Size = v3(100,5,5)
  1681. GhastShotaD.BrickColor = bc("Cyan")
  1682. GhastShotaD.Material = "Neon"
  1683. GhastShotaD.CanCollide = false
  1684. GhastShotaD.Anchored = true
  1685. GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1686. local GhastShotaE = new("Part",OctoGhast5)
  1687. GhastShotaE.Shape = "Cylinder"
  1688. GhastShotaE.Size = v3(100,5,5)
  1689. GhastShotaE.BrickColor = bc("Cyan")
  1690. GhastShotaE.Material = "Neon"
  1691. GhastShotaE.CanCollide = false
  1692. GhastShotaE.Anchored = true
  1693. GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1694. local GhastShotaF = new("Part",OctoGhast6)
  1695. GhastShotaF.Shape = "Cylinder"
  1696. GhastShotaF.Size = v3(100,5,5)
  1697. GhastShotaF.BrickColor = bc("Cyan")
  1698. GhastShotaF.Material = "Neon"
  1699. GhastShotaF.CanCollide = false
  1700. GhastShotaF.Anchored = true
  1701. GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1702. local GhastShotaG = new("Part",OctoGhast7)
  1703. GhastShotaG.Shape = "Cylinder"
  1704. GhastShotaG.Size = v3(100,5,5)
  1705. GhastShotaG.BrickColor = bc("Cyan")
  1706. GhastShotaG.Material = "Neon"
  1707. GhastShotaG.CanCollide = false
  1708. GhastShotaG.Anchored = true
  1709. GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1710. local GhastShotaH = new("Part",OctoGhast8)
  1711. GhastShotaH.Shape = "Cylinder"
  1712. GhastShotaH.Size = v3(100,5,5)
  1713. GhastShotaH.BrickColor = bc("Cyan")
  1714. GhastShotaH.Material = "Neon"
  1715. GhastShotaH.CanCollide = false
  1716. GhastShotaH.Anchored = true
  1717. GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1718. GhastShotaA.Touched:connect(function(hit)
  1719.  
  1720.  
  1721. if hit.Parent == char then return end
  1722. if hit.Parent == workspace.Base then return end
  1723. for i,v in pairs(hit.Parent:GetChildren()) do
  1724. if v:IsA("Humanoid") then
  1725. if hdebounce == true then
  1726. hdebounce = false
  1727.  
  1728. for i = 1,20 do
  1729. v.Health = v.Health-2
  1730. wait(0.01)
  1731. end
  1732. local hitnumb = math.random(1,2)
  1733.  
  1734. if hitnumb == 1 then
  1735. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1736. end
  1737. if hitnumb == 2 then
  1738. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1739. end
  1740. wait(0.9)
  1741. hdebounce = true
  1742. end
  1743.  
  1744.  
  1745. end
  1746. end
  1747.  
  1748. end)
  1749. GhastShotaB.Touched:connect(function(hit)
  1750. if hit.Parent == workspace.Base then return end
  1751.  
  1752. if hit.Parent == char then return end
  1753.  
  1754. for i,v in pairs(hit.Parent:GetChildren()) do
  1755. if v:IsA("Humanoid") then
  1756. if hdebounce == true then
  1757. hdebounce = false
  1758.  
  1759. for i = 1,20 do
  1760. v.Health = v.Health-2
  1761. wait(0.01)
  1762. end
  1763. local hitnumb = math.random(1,2)
  1764.  
  1765. if hitnumb == 1 then
  1766. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1767. end
  1768. if hitnumb == 2 then
  1769. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1770. end
  1771. wait(0.9)
  1772. hdebounce = true
  1773. end
  1774.  
  1775.  
  1776. end
  1777. end
  1778.  
  1779. end)
  1780. GhastShotaC.Touched:connect(function(hit)
  1781.  
  1782. if hit.Parent == workspace.Base then return end
  1783. if hit.Parent == char then return end
  1784.  
  1785. for i,v in pairs(hit.Parent:GetChildren()) do
  1786. if v:IsA("Humanoid") then
  1787. if hdebounce == true then
  1788. hdebounce = false
  1789.  
  1790. for i = 1,20 do
  1791. v.Health = v.Health-2
  1792. wait(0.01)
  1793. end
  1794. local hitnumb = math.random(1,2)
  1795.  
  1796. if hitnumb == 1 then
  1797. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1798. end
  1799. if hitnumb == 2 then
  1800. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1801. end
  1802. wait(0.9)
  1803. hdebounce = true
  1804. end
  1805.  
  1806.  
  1807. end
  1808. end
  1809.  
  1810. end)
  1811. GhastShotaD.Touched:connect(function(hit)
  1812. if hit.Parent == workspace.Base then return end
  1813.  
  1814. if hit.Parent == char then return end
  1815.  
  1816. for i,v in pairs(hit.Parent:GetChildren()) do
  1817. if v:IsA("Humanoid") then
  1818. if hdebounce == true then
  1819. hdebounce = false
  1820.  
  1821. for i = 1,20 do
  1822. v.Health = v.Health-2
  1823. wait(0.01)
  1824. end
  1825. local hitnumb = math.random(1,2)
  1826.  
  1827. if hitnumb == 1 then
  1828. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1829. end
  1830. if hitnumb == 2 then
  1831. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1832. end
  1833. wait(0.9)
  1834. hdebounce = true
  1835. end
  1836.  
  1837.  
  1838. end
  1839. end
  1840.  
  1841. end)
  1842. GhastShotaE.Touched:connect(function(hit)
  1843. if hit.Parent == workspace.Base then return end
  1844.  
  1845. if hit.Parent == char then return end
  1846.  
  1847. for i,v in pairs(hit.Parent:GetChildren()) do
  1848. if v:IsA("Humanoid") then
  1849. if hdebounce == true then
  1850. hdebounce = false
  1851.  
  1852. for i = 1,20 do
  1853. v.Health = v.Health-2
  1854. wait(0.01)
  1855. end
  1856. local hitnumb = math.random(1,2)
  1857.  
  1858. if hitnumb == 1 then
  1859. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1860. end
  1861. if hitnumb == 2 then
  1862. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1863. end
  1864. wait(0.9)
  1865. hdebounce = true
  1866. end
  1867.  
  1868.  
  1869. end
  1870. end
  1871.  
  1872. end)
  1873. GhastShotaF.Touched:connect(function(hit)
  1874.  
  1875. if hit.Parent == workspace.Base then return end
  1876. if hit.Parent == char then return end
  1877.  
  1878. for i,v in pairs(hit.Parent:GetChildren()) do
  1879. if v:IsA("Humanoid") then
  1880. if hdebounce == true then
  1881. hdebounce = false
  1882.  
  1883. for i = 1,20 do
  1884. v.Health = v.Health-2
  1885. wait(0.01)
  1886. end
  1887. local hitnumb = math.random(1,2)
  1888.  
  1889. if hitnumb == 1 then
  1890. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1891. end
  1892. if hitnumb == 2 then
  1893. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1894. end
  1895. wait(0.9)
  1896.  
  1897. hdebounce = true
  1898. end
  1899.  
  1900.  
  1901. end
  1902. end
  1903.  
  1904. end)
  1905. GhastShotaG.Touched:connect(function(hit)
  1906.  
  1907. if hit.Parent == workspace.Base then return end
  1908. if hit.Parent == char then return end
  1909.  
  1910. for i,v in pairs(hit.Parent:GetChildren()) do
  1911. if v:IsA("Humanoid") then
  1912. if hdebounce == true then
  1913. hdebounce = false
  1914.  
  1915. for i = 1,20 do
  1916. v.Health = v.Health-2
  1917. wait(0.01)
  1918. end
  1919. local hitnumb = math.random(1,2)
  1920.  
  1921. if hitnumb == 1 then
  1922. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1923. end
  1924. if hitnumb == 2 then
  1925. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1926. end
  1927. wait(0.9)
  1928. hdebounce = true
  1929. end
  1930.  
  1931.  
  1932. end
  1933. end
  1934.  
  1935. end)
  1936. GhastShotaH.Touched:connect(function(hit)
  1937. if hit.Parent == workspace.Base then return end
  1938.  
  1939. if hit.Parent == char then return end
  1940.  
  1941. for i,v in pairs(hit.Parent:GetChildren()) do
  1942. if v:IsA("Humanoid") then
  1943. if hdebounce == true then
  1944. hdebounce = false
  1945. for i = 1,20 do
  1946. v.Health = v.Health-2
  1947. wait(0.01)
  1948. end
  1949. local hitnumb = math.random(1,2)
  1950.  
  1951. if hitnumb == 1 then
  1952. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  1953. end
  1954. if hitnumb == 2 then
  1955. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  1956. end
  1957. wait(0.9)
  1958. hdebounce = true
  1959. end
  1960.  
  1961.  
  1962. end
  1963. end
  1964.  
  1965. end)
  1966. wait(0.2)
  1967. for i = 1,20 do
  1968. GhastShotaA.Size = GhastShotaA.Size+v3(0,-1,-1)
  1969. GhastShotaB.Size = GhastShotaB.Size+v3(0,-1,-1)
  1970. GhastShotaC.Size = GhastShotaC.Size+v3(0,-1,-1)
  1971. GhastShotaD.Size = GhastShotaD.Size+v3(0,-1,-1)
  1972. GhastShotaE.Size = GhastShotaE.Size+v3(0,-1,-1)
  1973. GhastShotaF.Size = GhastShotaF.Size+v3(0,-1,-1)
  1974. GhastShotaG.Size = GhastShotaG.Size+v3(0,-1,-1)
  1975. GhastShotaH.Size = GhastShotaH.Size+v3(0,-1,-1)
  1976. GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1977. GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1978. GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1979. GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1980. GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1981. GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1982. GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1983. GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  1984. GhastShotaA.Transparency = GhastShotaA.Transparency+0.1
  1985. GhastShotaB.Transparency = GhastShotaB.Transparency+0.1
  1986. GhastShotaC.Transparency = GhastShotaC.Transparency+0.1
  1987. GhastShotaD.Transparency = GhastShotaD.Transparency+0.1
  1988. GhastShotaE.Transparency = GhastShotaE.Transparency+0.1
  1989. GhastShotaF.Transparency = GhastShotaF.Transparency+0.1
  1990. GhastShotaG.Transparency = GhastShotaG.Transparency+0.1
  1991. GhastShotaH.Transparency = GhastShotaH.Transparency+0.1
  1992. wait()
  1993. end
  1994. wait(0.1)
  1995. debounce = true
  1996. for i = 1,20 do
  1997. OctoGhast1.Transparency = OctoGhast1.Transparency+0.1
  1998. OctoGhast2.Transparency = OctoGhast2.Transparency+0.1
  1999. OctoGhast3.Transparency = OctoGhast3.Transparency+0.1
  2000. OctoGhast4.Transparency = OctoGhast4.Transparency+0.1
  2001. OctoGhast5.Transparency = OctoGhast5.Transparency+0.1
  2002. OctoGhast6.Transparency = OctoGhast6.Transparency+0.1
  2003. OctoGhast7.Transparency = OctoGhast7.Transparency+0.1
  2004. OctoGhast8.Transparency = OctoGhast8.Transparency+0.1
  2005. wait()
  2006. end
  2007. OctoGhast1:destroy()
  2008. OctoGhast2:destroy()
  2009. OctoGhast3:destroy()
  2010. OctoGhast4:destroy()
  2011. OctoGhast5:destroy()
  2012. OctoGhast6:destroy()
  2013. OctoGhast7:destroy()
  2014. OctoGhast8:destroy()
  2015. end
  2016. end
  2017. end
  2018. local bonehit2nd = new("Sound",char)
  2019. bonehit2nd.SoundId = "rbxassetid://401680588"
  2020. bonehit2nd.Volume = 5
  2021.  
  2022. local bonehit3nd = new("Sound",char)
  2023. bonehit3nd.SoundId = "rbxassetid://306247749"
  2024. bonehit3nd.Volume = 5
  2025.  
  2026. function Bones()
  2027. if RootPart.Velocity.y < 1 and hitfloor==nil then
  2028. if debounce == true then
  2029. debounce = false
  2030.  
  2031. bonehit2nd:Play()
  2032. for i = 1,30 do
  2033. local bone = new("Part",char)
  2034. bone.Touched:connect(function(hit)
  2035.  
  2036.  
  2037. if hit.Parent == char then return end
  2038.  
  2039. for i,v in pairs(hit.Parent:GetChildren()) do
  2040. if v:IsA("Humanoid") then
  2041. padebounce = true
  2042. if padebounce == true then
  2043. padebounce = false
  2044.  
  2045. for i = 1,20 do
  2046. v.Health = v.Health-2
  2047. wait(1)
  2048. end
  2049. wait(0.9)
  2050. padebounce = true
  2051. end
  2052.  
  2053.  
  2054. end
  2055. end
  2056.  
  2057. end)
  2058. bone.CFrame = char.HumanoidRootPart.CFrame
  2059. bone.CanCollide = false
  2060. bone.Material = "SmoothPlastic"
  2061. bone.BrickColor = bc("White")
  2062. bone.Anchored = true
  2063. bone.CFrame = (char.HumanoidRootPart.CFrame + Vector3.new(math.random(-50,50),-7,math.random(-50,50))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(0)),math.random(0,math.rad(0)),math.random(0,math.rad(0)))
  2064. local zxc = Instance.new("SpecialMesh",bone)
  2065. zxc.MeshType = "FileMesh"
  2066. zxc.Scale = Vector3.new(0.03, 0.03, 0.03)
  2067. zxc.MeshId = "http://www.roblox.com/asset/?id=921085633"
  2068. wait()
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074. local gdisp = coroutine.wrap(function()
  2075. bonehit3nd:Play()
  2076. for i = 1,5 do
  2077. bone.CFrame = bone.CFrame*CFrame.new(0,1,0)
  2078. wait()
  2079. end
  2080. wait(1)
  2081. for i = 1, 9 do
  2082. wait(.1)
  2083. bone.Transparency = bone.Transparency + .3
  2084. end
  2085. bone:Destroy()
  2086. end)
  2087. gdisp()
  2088. end
  2089. end
  2090. wait(1)
  2091. debounce = true
  2092. end
  2093. end
  2094. AheadShotsdebounce = true
  2095. function AheadShots()
  2096. if equiped == true then
  2097. if AheadShotsdebounce == true then
  2098. AheadShotsdebounce = false
  2099. local targetahead = new("Part",char)
  2100. targetahead.Shape = "Ball"
  2101. targetahead.Anchored = true
  2102. targetahead.CanCollide = false
  2103. targetahead.BrickColor = bc("Toothpaste")
  2104. targetahead.Material = "Neon"
  2105. targetahead.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)
  2106. targetahead.Transparency = 1
  2107.  
  2108. local targetahead2 = new("Part",char)
  2109. targetahead2.Shape = "Ball"
  2110. targetahead2.CanCollide = false
  2111. targetahead2.Anchored = true
  2112. targetahead2.BrickColor = bc("Toothpaste")
  2113. targetahead2.Material = "Neon"
  2114. targetahead2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-30)
  2115. targetahead2.Transparency = 1
  2116.  
  2117. local targetahead3 = new("Part",char)
  2118. targetahead3.Shape = "Ball"
  2119. targetahead3.Anchored = true
  2120. targetahead3.CanCollide = false
  2121. targetahead3.BrickColor = bc("Toothpaste")
  2122. targetahead3.Material = "Neon"
  2123. targetahead3.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-50)
  2124. targetahead3.Transparency = 1
  2125.  
  2126. local Blasta1 = new("Part",char)
  2127. Blasta1.Size = v3(1,1,1)
  2128. Blasta1.CanCollide = false
  2129. Blasta1.Name = "Blasta1"
  2130. Blasta1.Material = "Neon"
  2131. Blasta1.BrickColor = bc("White")
  2132. Blasta1.Shape = "Ball"
  2133. Blasta1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2134. Blasta1.Anchored = false
  2135.  
  2136.  
  2137.  
  2138. local zxc = Instance.new("SpecialMesh",Blasta1)
  2139. zxc.MeshType = "FileMesh"
  2140. zxc.Scale = Vector3.new(2,2,2)
  2141. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2142.  
  2143. local blasta1bg=Instance.new("BodyGyro",Blasta1)
  2144. blasta1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2145. blasta1bg.D=400
  2146.  
  2147. blasta1bp = Instance.new("BodyPosition", Blasta1)
  2148. local Blasta2 = new("Part",char)
  2149. Blasta2.Size = v3(1,1,1)
  2150. Blasta2.CanCollide = false
  2151. Blasta2.Name = "Blasta2"
  2152. Blasta2.Material = "Neon"
  2153. Blasta2.BrickColor = bc("White")
  2154. Blasta2.Shape = "Ball"
  2155. Blasta2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2156. Blasta2.Anchored = false
  2157.  
  2158.  
  2159.  
  2160. local zxc = Instance.new("SpecialMesh",Blasta2)
  2161. zxc.MeshType = "FileMesh"
  2162. zxc.Scale = Vector3.new(2,2,2)
  2163. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2164.  
  2165. local Blasta2bg=Instance.new("BodyGyro",Blasta2)
  2166. Blasta2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2167. Blasta2bg.D=400
  2168.  
  2169. Blasta2bp = Instance.new("BodyPosition", Blasta2)
  2170. local Blasta3 = new("Part",char)
  2171. Blasta3.Size = v3(1,1,1)
  2172. Blasta3.CanCollide = false
  2173. Blasta3.Name = "Blasta3"
  2174. Blasta3.Material = "Neon"
  2175. Blasta3.BrickColor = bc("White")
  2176. Blasta3.Shape = "Ball"
  2177. Blasta3.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2178. Blasta3.Anchored = false
  2179.  
  2180.  
  2181.  
  2182. local zxc = Instance.new("SpecialMesh",Blasta3)
  2183. zxc.MeshType = "FileMesh"
  2184. zxc.Scale = Vector3.new(2,2,2)
  2185. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2186.  
  2187. local Blasta3bg=Instance.new("BodyGyro",Blasta3)
  2188. Blasta3bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2189. Blasta3bg.D=400
  2190.  
  2191. Blasta3bp = Instance.new("BodyPosition", Blasta3)
  2192. local Blasta4 = new("Part",char)
  2193. Blasta4.Size = v3(1,1,1)
  2194. Blasta4.CanCollide = false
  2195. Blasta4.Name = "Blasta4"
  2196. Blasta4.Material = "Neon"
  2197. Blasta4.BrickColor = bc("White")
  2198. Blasta4.Shape = "Ball"
  2199. Blasta4.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2200. Blasta4.Anchored = false
  2201.  
  2202.  
  2203.  
  2204. local zxc = Instance.new("SpecialMesh",Blasta4)
  2205. zxc.MeshType = "FileMesh"
  2206. zxc.Scale = Vector3.new(2,2,2)
  2207. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2208.  
  2209. local Blasta4bg=Instance.new("BodyGyro",Blasta4)
  2210. Blasta4bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2211. Blasta4bg.D=400
  2212.  
  2213. Blasta4bp = Instance.new("BodyPosition", Blasta4)
  2214. local Blasta5 = new("Part",char)
  2215. Blasta5.Size = v3(1,1,1)
  2216. Blasta5.CanCollide = false
  2217. Blasta5.Name = "Blasta5"
  2218. Blasta5.Material = "Neon"
  2219. Blasta5.BrickColor = bc("White")
  2220. Blasta5.Shape = "Ball"
  2221. Blasta5.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2222. Blasta5.Anchored = false
  2223.  
  2224.  
  2225.  
  2226. local zxc = Instance.new("SpecialMesh",Blasta5)
  2227. zxc.MeshType = "FileMesh"
  2228. zxc.Scale = Vector3.new(2,2,2)
  2229. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2230.  
  2231. local Blasta5bg=Instance.new("BodyGyro",Blasta5)
  2232. Blasta5bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2233. Blasta5bg.D=400
  2234.  
  2235. Blasta5bp = Instance.new("BodyPosition", Blasta5)
  2236.  
  2237. local Blasta6 = new("Part",char)
  2238. Blasta6.Size = v3(1,1,1)
  2239. Blasta6.CanCollide = false
  2240. Blasta6.Name = "Blasta6"
  2241. Blasta6.Material = "Neon"
  2242. Blasta6.BrickColor = bc("White")
  2243. Blasta6.Shape = "Ball"
  2244. Blasta6.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2245. Blasta6.Anchored = false
  2246.  
  2247.  
  2248.  
  2249. local zxc = Instance.new("SpecialMesh",Blasta6)
  2250. zxc.MeshType = "FileMesh"
  2251. zxc.Scale = Vector3.new(2,2,2)
  2252. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2253.  
  2254. local Blasta6bg=Instance.new("BodyGyro",Blasta6)
  2255. Blasta6bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2256. Blasta6bg.D=400
  2257.  
  2258. Blasta6bp = Instance.new("BodyPosition", Blasta6)
  2259.  
  2260. for i = 1,50 do
  2261. blasta1bp.Position=(targetahead.CFrame*CFrame.new(20,2,0)).p
  2262. blasta1bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
  2263. Blasta2bp.Position=(targetahead2.CFrame*CFrame.new(20,2,0)).p
  2264. Blasta2bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
  2265.  
  2266. Blasta3bp.Position=(targetahead3.CFrame*CFrame.new(20,2,0)).p
  2267. Blasta3bg.CFrame=CFrame.new(Blasta3.Position,targetahead3.Position)
  2268.  
  2269. Blasta4bp.Position=(targetahead.CFrame*CFrame.new(-20,2,0)).p
  2270. Blasta4bg.CFrame=CFrame.new(Blasta4.Position,targetahead.Position)
  2271.  
  2272. Blasta5bp.Position=(targetahead2.CFrame*CFrame.new(-20,2,0)).p
  2273. Blasta5bg.CFrame=CFrame.new(Blasta5.Position,targetahead2.Position)
  2274.  
  2275. Blasta6bp.Position=(targetahead3.CFrame*CFrame.new(-20,2,0)).p
  2276. Blasta6bg.CFrame=CFrame.new(Blasta6.Position,targetahead3.Position)
  2277.  
  2278. wait()
  2279. end
  2280. shootsnd:Play()
  2281. local GhastAcrossShot1 = new("Part",Blasta1)
  2282. GhastAcrossShot1.Shape = "Cylinder"
  2283. GhastAcrossShot1.Size = v3(100,5,5)
  2284. GhastAcrossShot1.BrickColor = bc("Cyan")
  2285. GhastAcrossShot1.Material = "Neon"
  2286. GhastAcrossShot1.CanCollide = false
  2287. GhastAcrossShot1.Anchored = true
  2288. GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2289. local GhastAcrossShot2 = new("Part",Blasta2)
  2290. GhastAcrossShot2.Shape = "Cylinder"
  2291. GhastAcrossShot2.Size = v3(100,5,5)
  2292. GhastAcrossShot2.BrickColor = bc("Cyan")
  2293. GhastAcrossShot2.Material = "Neon"
  2294. GhastAcrossShot2.CanCollide = false
  2295. GhastAcrossShot2.Anchored = true
  2296. GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2297. local GhastAcrossShot3 = new("Part",Blasta2)
  2298. GhastAcrossShot3.Shape = "Cylinder"
  2299. GhastAcrossShot3.Size = v3(100,5,5)
  2300. GhastAcrossShot3.BrickColor = bc("Cyan")
  2301. GhastAcrossShot3.Material = "Neon"
  2302. GhastAcrossShot3.CanCollide = false
  2303. GhastAcrossShot3.Anchored = true
  2304. GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2305. local GhastAcrossShot4 = new("Part",Blasta4)
  2306. GhastAcrossShot4.Shape = "Cylinder"
  2307. GhastAcrossShot4.Size = v3(100,5,5)
  2308. GhastAcrossShot4.BrickColor = bc("Cyan")
  2309. GhastAcrossShot4.Material = "Neon"
  2310. GhastAcrossShot4.CanCollide = false
  2311. GhastAcrossShot4.Anchored = true
  2312. GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2313. local GhastAcrossShot5 = new("Part",Blasta5)
  2314. GhastAcrossShot5.Shape = "Cylinder"
  2315. GhastAcrossShot5.Size = v3(100,5,5)
  2316. GhastAcrossShot5.BrickColor = bc("Cyan")
  2317. GhastAcrossShot5.Material = "Neon"
  2318. GhastAcrossShot5.CanCollide = false
  2319. GhastAcrossShot5.Anchored = true
  2320. GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2321. local GhastAcrossShot6 = new("Part",Blasta5)
  2322. GhastAcrossShot6.Shape = "Cylinder"
  2323. GhastAcrossShot6.Size = v3(100,5,5)
  2324. GhastAcrossShot6.BrickColor = bc("Cyan")
  2325. GhastAcrossShot6.Material = "Neon"
  2326. GhastAcrossShot6.CanCollide = false
  2327. GhastAcrossShot6.Anchored = true
  2328. GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2329. GhastAcrossShot1.Touched:connect(function(hit)
  2330. if hit.Parent == workspace.Base then return end
  2331.  
  2332. if hit.Parent == char then return end
  2333.  
  2334. for i,v in pairs(hit.Parent:GetChildren()) do
  2335. if v:IsA("Humanoid") then
  2336. if hdebounce == true then
  2337. hdebounce = false
  2338. for i = 1,20 do
  2339. v.Health = v.Health-2
  2340. wait(0.01)
  2341. end
  2342. local hitnumb = math.random(1,2)
  2343.  
  2344. if hitnumb == 1 then
  2345. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2346. end
  2347. if hitnumb == 2 then
  2348. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2349. end
  2350. wait(0.9)
  2351. hdebounce = true
  2352. end
  2353.  
  2354.  
  2355. end
  2356. end
  2357.  
  2358. end)
  2359. GhastAcrossShot2.Touched:connect(function(hit)
  2360. if hit.Parent == workspace.Base then return end
  2361.  
  2362. if hit.Parent == char then return end
  2363.  
  2364. for i,v in pairs(hit.Parent:GetChildren()) do
  2365. if v:IsA("Humanoid") then
  2366. if hdebounce == true then
  2367. hdebounce = false
  2368. for i = 1,20 do
  2369. v.Health = v.Health-2
  2370. wait(0.01)
  2371. end
  2372. local hitnumb = math.random(1,2)
  2373.  
  2374. if hitnumb == 1 then
  2375. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2376. end
  2377. if hitnumb == 2 then
  2378. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2379. end
  2380. wait(0.9)
  2381. hdebounce = true
  2382. end
  2383.  
  2384.  
  2385. end
  2386. end
  2387.  
  2388. end)
  2389.  
  2390. GhastAcrossShot3.Touched:connect(function(hit)
  2391. if hit.Parent == workspace.Base then return end
  2392.  
  2393. if hit.Parent == char then return end
  2394.  
  2395. for i,v in pairs(hit.Parent:GetChildren()) do
  2396. if v:IsA("Humanoid") then
  2397. if hdebounce == true then
  2398. hdebounce = false
  2399. for i = 1,20 do
  2400. v.Health = v.Health-2
  2401. wait(0.01)
  2402. end
  2403. local hitnumb = math.random(1,2)
  2404.  
  2405. if hitnumb == 1 then
  2406. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2407. end
  2408. if hitnumb == 2 then
  2409. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2410. end
  2411. wait(0.9)
  2412. hdebounce = true
  2413. end
  2414.  
  2415.  
  2416. end
  2417. end
  2418.  
  2419. end)
  2420. GhastAcrossShot4.Touched:connect(function(hit)
  2421. if hit.Parent == workspace.Base then return end
  2422.  
  2423. if hit.Parent == char then return end
  2424.  
  2425. for i,v in pairs(hit.Parent:GetChildren()) do
  2426. if v:IsA("Humanoid") then
  2427. if hdebounce == true then
  2428. hdebounce = false
  2429. for i = 1,20 do
  2430. v.Health = v.Health-2
  2431. wait(0.01)
  2432. end
  2433. local hitnumb = math.random(1,2)
  2434.  
  2435. if hitnumb == 1 then
  2436. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2437. end
  2438. if hitnumb == 2 then
  2439. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2440. end
  2441. wait(0.9)
  2442. hdebounce = true
  2443. end
  2444.  
  2445.  
  2446. end
  2447. end
  2448.  
  2449. end)
  2450. GhastAcrossShot5.Touched:connect(function(hit)
  2451. if hit.Parent == workspace.Base then return end
  2452.  
  2453. if hit.Parent == char then return end
  2454.  
  2455. for i,v in pairs(hit.Parent:GetChildren()) do
  2456. if v:IsA("Humanoid") then
  2457. if hdebounce == true then
  2458. hdebounce = false
  2459. for i = 1,20 do
  2460. v.Health = v.Health-2
  2461. wait(0.01)
  2462. end
  2463. local hitnumb = math.random(1,2)
  2464.  
  2465. if hitnumb == 1 then
  2466. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2467. end
  2468. if hitnumb == 2 then
  2469. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2470. end
  2471. wait(0.9)
  2472. hdebounce = true
  2473. end
  2474.  
  2475.  
  2476. end
  2477. end
  2478.  
  2479. end)
  2480. GhastAcrossShot6.Touched:connect(function(hit)
  2481. if hit.Parent == workspace.Base then return end
  2482.  
  2483. if hit.Parent == char then return end
  2484.  
  2485. for i,v in pairs(hit.Parent:GetChildren()) do
  2486. if v:IsA("Humanoid") then
  2487. if hdebounce == true then
  2488. hdebounce = false
  2489. for i = 1,20 do
  2490. v.Health = v.Health-2
  2491. wait(0.01)
  2492. end
  2493. local hitnumb = math.random(1,2)
  2494.  
  2495. if hitnumb == 1 then
  2496. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2497. end
  2498. if hitnumb == 2 then
  2499. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2500. end
  2501. wait(0.9)
  2502. hdebounce = true
  2503. end
  2504.  
  2505.  
  2506. end
  2507. end
  2508.  
  2509. end)
  2510. wait(0.5)
  2511. for i = 1,20 do
  2512. GhastAcrossShot1.Size = GhastAcrossShot1.Size+v3(0,-1,-1)
  2513. GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2514. GhastAcrossShot1.Transparency = GhastAcrossShot1.Transparency+0.1
  2515. GhastAcrossShot2.Size = GhastAcrossShot2.Size+v3(0,-1,-1)
  2516. GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2517. GhastAcrossShot2.Transparency = GhastAcrossShot2.Transparency+0.1
  2518. GhastAcrossShot3.Size = GhastAcrossShot3.Size+v3(0,-1,-1)
  2519. GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2520. GhastAcrossShot3.Transparency = GhastAcrossShot3.Transparency+0.1
  2521. GhastAcrossShot4.Size = GhastAcrossShot4.Size+v3(0,-1,-1)
  2522. GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2523. GhastAcrossShot4.Transparency = GhastAcrossShot4.Transparency+0.1
  2524.  
  2525. GhastAcrossShot5.Size = GhastAcrossShot5.Size+v3(0,-1,-1)
  2526. GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2527. GhastAcrossShot5.Transparency = GhastAcrossShot5.Transparency+0.1
  2528. GhastAcrossShot6.Size = GhastAcrossShot6.Size+v3(0,-1,-1)
  2529. GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2530. GhastAcrossShot6.Transparency = GhastAcrossShot6.Transparency+0.1
  2531. wait()
  2532. end
  2533. GhastAcrossShot1:Destroy()
  2534. GhastAcrossShot2:Destroy()
  2535. GhastAcrossShot3:Destroy()
  2536. GhastAcrossShot4:Destroy()
  2537. GhastAcrossShot5:Destroy()
  2538. GhastAcrossShot6:Destroy()
  2539. for i = 1,20 do
  2540. Blasta1.Transparency = Blasta1.Transparency+0.1
  2541. Blasta2.Transparency = Blasta2.Transparency+0.1
  2542. Blasta3.Transparency = Blasta3.Transparency+0.1
  2543. Blasta4.Transparency = Blasta4.Transparency+0.1
  2544. Blasta5.Transparency = Blasta5.Transparency+0.1
  2545. Blasta6.Transparency = Blasta6.Transparency+0.1
  2546. wait()
  2547. end
  2548. Blasta1:Destroy()
  2549. Blasta2:Destroy()
  2550. Blasta3:Destroy()
  2551. Blasta4:Destroy()
  2552. Blasta5:Destroy()
  2553. Blasta6:Destroy()
  2554. wait(0.5)
  2555. AheadShotsdebounce = true
  2556. end
  2557. end
  2558. end
  2559. local BlasterRaindebounce = true
  2560.  
  2561. function BlasterRain()
  2562. if equiped == true then
  2563. if BlasterRaindebounce == true then
  2564. BlasterRaindebounce = false
  2565. local RainTarget1 = new("Part",char)
  2566. RainTarget1.BrickColor = bc("White")
  2567. RainTarget1.Shape = "Ball"
  2568. RainTarget1.Material = "Neon"
  2569. RainTarget1.Anchored = true
  2570. RainTarget1.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-20)
  2571. RainTarget1.Transparency = 1
  2572. local RainTarget2 = new("Part",char)
  2573. RainTarget2.BrickColor = bc("White")
  2574. RainTarget2.Shape = "Ball"
  2575. RainTarget2.Material = "Neon"
  2576. RainTarget2.Anchored = true
  2577. RainTarget2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-40)
  2578. RainTarget2.Transparency = 1
  2579. local RainTarget3 = new("Part",char)
  2580. RainTarget3.BrickColor = bc("White")
  2581. RainTarget3.Shape = "Ball"
  2582. RainTarget3.Material = "Neon"
  2583. RainTarget3.Anchored = true
  2584. RainTarget3.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-60)
  2585. RainTarget3.Transparency = 1
  2586. local RainBlaster1 = new("Part",char)
  2587. RainBlaster1.Size = v3(1,1,1)
  2588. RainBlaster1.CanCollide = false
  2589. RainBlaster1.Name = "RainBlaster1"
  2590. RainBlaster1.Material = "Neon"
  2591. RainBlaster1.BrickColor = bc("White")
  2592. RainBlaster1.Shape = "Ball"
  2593. RainBlaster1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2594. RainBlaster1.Anchored = false
  2595.  
  2596.  
  2597.  
  2598. local zxc = Instance.new("SpecialMesh",RainBlaster1)
  2599. zxc.MeshType = "FileMesh"
  2600. zxc.Scale = Vector3.new(2,2,2)
  2601. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2602. local RainBlaster3 = new("Part",char)
  2603. RainBlaster3.Size = v3(1,1,1)
  2604. RainBlaster3.CanCollide = false
  2605. RainBlaster3.Name = "RainBlaster3"
  2606. RainBlaster3.Material = "Neon"
  2607. RainBlaster3.BrickColor = bc("White")
  2608. RainBlaster3.Shape = "Ball"
  2609. RainBlaster3.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2610. RainBlaster3.Anchored = false
  2611. local RainBlaster3bg=Instance.new("BodyGyro",RainBlaster3)
  2612. RainBlaster3bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2613. RainBlaster3bg.D=400
  2614.  
  2615. RainBlaster3bp = Instance.new("BodyPosition", RainBlaster3)
  2616.  
  2617.  
  2618. local zxc = Instance.new("SpecialMesh",RainBlaster3)
  2619. zxc.MeshType = "FileMesh"
  2620. zxc.Scale = Vector3.new(2,2,2)
  2621. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2622. local RainBlaster1bg=Instance.new("BodyGyro",RainBlaster1)
  2623. RainBlaster1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2624. RainBlaster1bg.D=400
  2625.  
  2626. RainBlaster1bp = Instance.new("BodyPosition", RainBlaster1)
  2627.  
  2628. local RainBlaster2 = new("Part",char)
  2629. RainBlaster2.Size = v3(1,1,1)
  2630. RainBlaster2.CanCollide = false
  2631. RainBlaster2.Name = "RainBlaster1"
  2632. RainBlaster2.Material = "Neon"
  2633. RainBlaster2.BrickColor = bc("White")
  2634. RainBlaster2.Shape = "Ball"
  2635. RainBlaster2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2636. RainBlaster2.Anchored = false
  2637.  
  2638.  
  2639.  
  2640. local zxc = Instance.new("SpecialMesh",RainBlaster2)
  2641. zxc.MeshType = "FileMesh"
  2642. zxc.Scale = Vector3.new(2,2,2)
  2643. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2644.  
  2645. local RainBlaster2bg=Instance.new("BodyGyro",RainBlaster2)
  2646. RainBlaster2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2647. RainBlaster2bg.D=400
  2648.  
  2649. RainBlaster2bp = Instance.new("BodyPosition", RainBlaster2)
  2650.  
  2651.  
  2652. for i = 1,60 do
  2653. RainBlaster1bp.Position=(RainTarget1.CFrame*CFrame.new(0,20,0)).p
  2654. RainBlaster1bg.CFrame=CFrame.new(RainBlaster1.Position,RainTarget1.Position)
  2655.  
  2656. RainBlaster3bp.Position=(RainTarget3.CFrame*CFrame.new(0,20,0)).p
  2657. RainBlaster3bg.CFrame=CFrame.new(RainBlaster3.Position,RainTarget3.Position)
  2658.  
  2659. RainBlaster2bp.Position=(RainTarget2.CFrame*CFrame.new(0,20,0)).p
  2660. RainBlaster2bg.CFrame=CFrame.new(RainBlaster2.Position,RainTarget2.Position)
  2661. wait()
  2662. end
  2663. shootsnd:Play()
  2664. local RainBlasterShot1 = new("Part",RainBlaster1)
  2665. RainBlasterShot1.Shape = "Cylinder"
  2666. RainBlasterShot1.Size = v3(100,5,5)
  2667. RainBlasterShot1.BrickColor = bc("Cyan")
  2668. RainBlasterShot1.Material = "Neon"
  2669. RainBlasterShot1.CanCollide = false
  2670. RainBlasterShot1.Anchored = true
  2671. RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2672.  
  2673. local RainBlasterShot2 = new("Part",RainBlaster2)
  2674. RainBlasterShot2.Shape = "Cylinder"
  2675. RainBlasterShot2.Size = v3(100,5,5)
  2676. RainBlasterShot2.BrickColor = bc("Cyan")
  2677. RainBlasterShot2.Material = "Neon"
  2678. RainBlasterShot2.CanCollide = false
  2679. RainBlasterShot2.Anchored = true
  2680. RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2681. local RainBlasterShot3 = new("Part",RainBlaster2)
  2682. RainBlasterShot3.Shape = "Cylinder"
  2683. RainBlasterShot3.Size = v3(100,5,5)
  2684. RainBlasterShot3.BrickColor = bc("Cyan")
  2685. RainBlasterShot3.Material = "Neon"
  2686. RainBlasterShot3.CanCollide = false
  2687. RainBlasterShot3.Anchored = true
  2688. RainBlasterShot3.CFrame = RainBlaster3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2689. RainBlasterShot1.Touched:connect(function(hit)
  2690. if hit.Parent == workspace.Base then return end
  2691.  
  2692. if hit.Parent == char then return end
  2693.  
  2694. for i,v in pairs(hit.Parent:GetChildren()) do
  2695. if v:IsA("Humanoid") then
  2696. if hdebounce == true then
  2697. hdebounce = false
  2698. for i = 1,20 do
  2699. v.Health = v.Health-2
  2700. wait(0.01)
  2701. end
  2702. local hitnumb = math.random(1,2)
  2703.  
  2704. if hitnumb == 1 then
  2705. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2706. end
  2707. if hitnumb == 2 then
  2708. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2709. end
  2710. wait(0.9)
  2711. hdebounce = true
  2712. end
  2713.  
  2714.  
  2715. end
  2716. end
  2717.  
  2718. end)
  2719. RainBlasterShot2.Touched:connect(function(hit)
  2720. if hit.Parent == workspace.Base then return end
  2721.  
  2722. if hit.Parent == char then return end
  2723.  
  2724. for i,v in pairs(hit.Parent:GetChildren()) do
  2725. if v:IsA("Humanoid") then
  2726. if hdebounce == true then
  2727. hdebounce = false
  2728. for i = 1,20 do
  2729. v.Health = v.Health-2
  2730. wait(0.01)
  2731. end
  2732. local hitnumb = math.random(1,2)
  2733.  
  2734. if hitnumb == 1 then
  2735. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2736. end
  2737. if hitnumb == 2 then
  2738. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2739. end
  2740. wait(0.9)
  2741. hdebounce = true
  2742. end
  2743.  
  2744.  
  2745. end
  2746. end
  2747.  
  2748. end)
  2749.  
  2750. wait(0.5)
  2751. for i = 1,20 do
  2752. wait()
  2753. RainBlasterShot1.Size = RainBlasterShot1.Size+v3(0,-1,-1)
  2754. RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2755. RainBlasterShot1.Transparency = RainBlasterShot1.Transparency+0.1
  2756.  
  2757. RainBlasterShot2.Size = RainBlasterShot2.Size+v3(0,-1,-1)
  2758. RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2759. RainBlasterShot2.Transparency = RainBlasterShot2.Transparency+0.1
  2760.  
  2761. RainBlasterShot3.Size = RainBlasterShot3.Size+v3(0,-1,-1)
  2762. RainBlasterShot3.CFrame = RainBlaster3.CFrame*CFrame.new(0,0,-50)*CFrame.Angles(0,rad(90),0)
  2763. RainBlasterShot3.Transparency = RainBlasterShot3.Transparency+0.1
  2764.  
  2765. end
  2766. for i = 1,20 do
  2767. RainBlaster1.Transparency = RainBlaster1.Transparency+0.1
  2768. RainBlaster2.Transparency = RainBlaster2.Transparency+0.1
  2769. RainBlaster3.Transparency = RainBlaster3.Transparency+0.1
  2770. wait()
  2771. end
  2772. RainBlaster1:Destroy()
  2773. RainBlaster2:Destroy()
  2774. RainBlaster3:Destroy()
  2775. RainBlasterShot1:Destroy()
  2776. RainBlasterShot2:Destroy()
  2777. wait(0.5)
  2778. BlasterRaindebounce = true
  2779. end
  2780. end
  2781. end
  2782. local grabing = false
  2783.  
  2784. function grab()
  2785.  
  2786.  
  2787. local hit = mouse.Target
  2788. if hit.Parent == char then return end
  2789. for i,v in pairs(hit.Parent:GetChildren()) do
  2790. if v:IsA("Humanoid") then
  2791. v.Health = v.Health-50
  2792. local bodyp=Instance.new("BodyPosition",hit.Parent.HumanoidRootPart)
  2793. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2794. bodyp.Position=(hit.Parent.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
  2795. wait(0.6)
  2796. bodyp:destroy()
  2797. end
  2798. end
  2799.  
  2800.  
  2801.  
  2802.  
  2803. end
  2804. function GiantBlast3r()
  2805. if equiped == true then
  2806. if debounce == true then
  2807. debounce = false
  2808. local GiantBlaster = new("Part",char)
  2809. GiantBlaster.Name = "GiantBlaster"
  2810. GiantBlaster.CanCollide = false
  2811. GiantBlaster.Anchored = false
  2812. GiantBlaster.BrickColor = bc("White")
  2813. GiantBlaster.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(10,0,0)
  2814. GiantBlaster.Transparency = 1
  2815. local zxc = Instance.new("SpecialMesh",GiantBlaster)
  2816. zxc.MeshType = "FileMesh"
  2817. zxc.Scale = Vector3.new(6,6,6)
  2818. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2819. local GiantBlasterbg=Instance.new("BodyGyro",GiantBlaster)
  2820. GiantBlasterbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2821. GiantBlasterbg.D=400
  2822.  
  2823. GiantBlasterbp = Instance.new("BodyPosition", GiantBlaster)
  2824. for i = 1,50 do
  2825. GiantBlasterbg.CFrame=CFrame.new(GiantBlaster.Position,mouse.Hit.p)
  2826. GiantBlasterbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(0,30,0)).p
  2827. GiantBlaster.Transparency = GiantBlaster.Transparency -0.1
  2828. wait()
  2829. end
  2830. local GhastShot1 = new("Part",GiantBlaster)
  2831. GhastShot1.Shape = "Cylinder"
  2832. GhastShot1.Size = v3(400,10,10)
  2833. GhastShot1.BrickColor = bc("Cyan")
  2834. GhastShot1.Material = "Neon"
  2835. GhastShot1.CanCollide = false
  2836. GhastShot1.Anchored = true
  2837. GhastShot1.CFrame = GiantBlaster.CFrame*CFrame.new(0,0,-200)*CFrame.Angles(0,rad(90),0)
  2838. GhastShot1.Touched:connect(function(hit)
  2839.  
  2840.  
  2841. if hit.Parent == char then return end
  2842. if hit.Parent == workspace.Base then return end
  2843. for i,v in pairs(hit.Parent:GetChildren()) do
  2844. if v:IsA("Humanoid") then
  2845. if hdebounce == true then
  2846. hdebounce = false
  2847. local hitnumb2 = math.random(1,2)
  2848. for i = 1,20 do
  2849. v.Health = v.Health-2
  2850. wait(0.01)
  2851. end
  2852. if hitnumb == 1 then
  2853. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -10, 1.5, BrickColor.new("Toothpaste").Color)
  2854. end
  2855. if hitnumb == 2 then
  2856. ShowDamage((hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -20, 1.5, BrickColor.new("Toothpaste").Color)
  2857. end
  2858. wait(0.9)
  2859. hdebounce = true
  2860. end
  2861.  
  2862.  
  2863. end
  2864. end
  2865.  
  2866. end)
  2867. shootsnd:Play()
  2868. wait(0.5)
  2869.  
  2870. for i = 1,10 do
  2871. GhastShot1.Size = GhastShot1.Size+v3(0,-1,-1)
  2872. GhastShot1.CFrame = GiantBlaster.CFrame*CFrame.new(0,0,-200)*CFrame.Angles(0,rad(90),0)
  2873. GhastShot1.Transparency = GhastShot1.Transparency+0.1
  2874. wait()
  2875. end
  2876. GhastShot1:Destroy()
  2877. debounce = true
  2878.  
  2879. for i = 1,50 do
  2880. GiantBlaster.Transparency = GiantBlaster.Transparency+0.1
  2881. wait()
  2882. end
  2883.  
  2884. GiantBlaster:Destroy()
  2885. end
  2886. end
  2887. end
  2888. mouse.KeyDown:connect(function(k)
  2889. if k == "h" then
  2890. GiantBlast3r()
  2891. end
  2892. end)
  2893. mouse.KeyDown:connect(function(k)
  2894. if k == "e" then
  2895. AheadShots()
  2896. end
  2897. end)
  2898. mouse.KeyDown:connect(function(k)
  2899. if k == "y" then
  2900. grab()
  2901. end
  2902. end)
  2903. mouse.KeyDown:connect(function(k)
  2904. if k == "g" then
  2905. BlasterRain()
  2906. end
  2907. end)
  2908. mouse.KeyDown:connect(function(k)
  2909. if k == "t" then
  2910. Bones()
  2911. end
  2912. end)
  2913. mouse.KeyDown:connect(function(k)
  2914. if k == "z" then
  2915. DodgeLeft()
  2916. end
  2917. end)
  2918. mouse.KeyDown:connect(function(k)
  2919. if k == "q" then
  2920. octo()
  2921. end
  2922. end)
  2923. mouse.KeyDown:connect(function(k)
  2924. if k == "x" then
  2925. RightDodge()
  2926. end
  2927. end)
  2928.  
  2929. mouse.KeyDown:connect(function(k)
  2930. if k == "c" then
  2931. equip()
  2932. end
  2933. end)
  2934. mouse.KeyDown:connect(function(k)
  2935. if k == "f" then
  2936. mount()
  2937. end
  2938. end)
  2939. mouse.KeyDown:connect(function(k)
  2940. if k == "r" then
  2941. cross()
  2942. end
  2943. end)
  2944. p.Character.Humanoid.Died:connect(function()
  2945. local jkl = Instance.new("Sound",Workspace)
  2946. jkl.SoundId = "rbxassetid://427025525"
  2947. jkl.Volume = 10
  2948. jkl:Play()
  2949.  
  2950. for _, V in pairs(char:getChildren()) do
  2951. if V:isA("BasePart") then
  2952. V.Transparency = 1
  2953. elseif V:IsA("Accessory") and V:FindFirstChild("Handle") then
  2954. V.Handle.Transparency = 1
  2955. end
  2956. end
  2957. char.Head.face:destroy()
  2958. for i = 1,50 do
  2959. RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
  2960. LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
  2961.  
  2962. dust = Instance.new("Part")
  2963. dust.Locked = true
  2964. dust.Size = Vector3.new(0.1,0.1,0.1)
  2965. dust.BrickColor = BrickColor.new("Cyan")
  2966. dust.Transparency = 0
  2967. dust.TopSurface = "Smooth"
  2968. dust.BottomSurface = "Smooth"
  2969. dust.CFrame = char.HumanoidRootPart.CFrame
  2970. dust.CanCollide = true
  2971. dust.Reflectance = 0.1
  2972. dust.Material = "Neon"
  2973. dust.Parent = char
  2974. dust.Anchored = false
  2975. end
  2976. end)
  2977.  
  2978.  
  2979.  
  2980.  
  2981. DayNightCycle = true --[1] Cycles through day and night.
  2982.  
  2983. DynamicLighting = true --[2] Give your game a dynamic look?
  2984. SimulatedShadows = true --[3] Make the shadows stand out. (Enable [2] for this to work)
  2985.  
  2986. DarkAmbient = true --[4] Gives your game darkness, great for zombie games.
  2987. AmbientBrightness = 55 --[5] Number Must between 0 to 255. (Enable [2] and [4] for this to work)
  2988.  
  2989. Fog = true --[6] Give your game foggy look.
  2990. FogDistance = 1500 --[7] How far will the fog be away from you. (Enable [6] for this to work)
  2991. ---------------------------------------------------------------------------------------------------------------
  2992.  
  2993. if Fog then
  2994. game:GetService("Lighting").FogEnd = FogDistance
  2995. end
  2996.  
  2997. if DarkAmbient and DynamicLighting then
  2998. game:GetService("Lighting").OutdoorAmbient = Color3.new(AmbientBrightness/255, AmbientBrightness/255, AmbientBrightness/255)
  2999. end
  3000.  
  3001. if DynamicLighting then
  3002. game:GetService("Lighting").GlobalShadows = true
  3003. if SimulatedShadows then
  3004. game:GetService("Lighting").Brightness = 1.5
  3005. game:GetService("Lighting").Ambient = Color3.new(0/255, 0/255, 0/255)
  3006. game:GetService("Lighting").ShadowColor = Color3.new(61/255, 61/255, 61/255)
  3007. end
  3008. end
  3009. --[[
  3010. [Head/Waist Follow Mouse/Camera Script.]
  3011. [Works with both R6 and R15, lets you turn your character's head and waist towards your mouse/camera.]
  3012. [Scripted by (Unknown), upgraded by OhHeyItsCory.]
  3013. [I'm not sure who made the original script and the person I found it from definitely didn't make it.]
  3014. [If you find the original creator, please let me know so I can properly credit them <3]
  3015. [Anyways, here's a list of what I've added.]
  3016. [Waist rotation. (Previously, only the head turned.)]
  3017. [Tweening. (Basically, animating the rotation instead of instantly turning.)]
  3018. [Full body rotation. (If set to true, rotates the entire body towards the mouse.)]
  3019. [Specific rotation limits. (The original script used one variable to set the limits of both horizontal and vertical rotation, now there's variables for both limits!)]
  3020. --]]
  3021.  
  3022. wait()
  3023.  
  3024. --[Pre-Funcs]:
  3025.  
  3026. local Ang = CFrame.Angles --[Storing these as variables so I dont have to type them out.]
  3027. local aSin = math.asin
  3028. local aTan = math.atan
  3029.  
  3030. --[Constants]:
  3031.  
  3032. local Cam = game.Workspace.CurrentCamera
  3033.  
  3034. local Plr = game.Players.LocalPlayer
  3035. local Mouse = Plr:GetMouse()
  3036. local Body = Plr.Character or Plr.CharacterAdded:wait()
  3037. local Head = Body:WaitForChild("Head")
  3038. local Hum = Body:WaitForChild("Humanoid")
  3039. local Core = Body:WaitForChild("HumanoidRootPart")
  3040. local IsR6 = (Hum.RigType.Value==0) --[Checking if the player is using R15 or R6.]
  3041. local Trso = (IsR6 and Body:WaitForChild("Torso")) or Body:WaitForChild("UpperTorso")
  3042. local Neck = (IsR6 and Trso:WaitForChild("Neck")) or Head:WaitForChild("Neck") --[Once we know the Rig, we know what to find.]
  3043. local Waist = (not IsR6 and Trso:WaitForChild("Waist")) --[R6 doesn't have a waist joint, unfortunately.]
  3044.  
  3045. --[[
  3046. [Whether rotation follows the camera or the mouse.]
  3047. [Useful with tools if true, but camera tracking runs smoother.]
  3048. --]]
  3049. local MseGuide = false
  3050. --[[
  3051. [Whether the whole character turns to face the mouse.]
  3052. [If set to true, MseGuide will be set to true and both HeadHorFactor and BodyHorFactor will be set to 0]
  3053. --]]
  3054. local TurnCharacterToMouse = false
  3055. --[[
  3056. [Horizontal and Vertical limits for head and body tracking.]
  3057. [Setting to 0 negates tracking, setting to 1 is normal tracking, and setting to anything higher than 1 goes past real life head/body rotation capabilities.]
  3058. --]]
  3059. local HeadHorFactor = 1
  3060. local HeadVertFactor = 0.6
  3061. local BodyHorFactor = 0.5
  3062. local BodyVertFactor = 0.4
  3063.  
  3064. --[[
  3065. [How fast the body rotates.]
  3066. [Setting to 0 negates tracking, and setting to 1 is instant rotation. 0.5 is a nice in-between that works with MseGuide on or off.]
  3067. [Setting this any higher than 1 causes weird glitchy shaking occasionally.]
  3068. --]]
  3069. local UpdateSpeed = 0.5
  3070.  
  3071. local NeckOrgnC0 = Neck.C0 --[Get the base C0 to manipulate off of.]
  3072. local WaistOrgnC0 = (not IsR6 and Waist.C0) --[Get the base C0 to manipulate off of.]
  3073.  
  3074. --[Setup]:
  3075.  
  3076. Neck.MaxVelocity = 1/3
  3077.  
  3078. -- Activation]:
  3079. if TurnCharacterToMouse == true then
  3080. MseGuide = true
  3081. HeadHorFactor = 0
  3082. BodyHorFactor = 0
  3083. end
  3084.  
  3085. game:GetService("RunService").RenderStepped:Connect(function()
  3086. local CamCF = Cam.CoordinateFrame
  3087. if ((IsR6 and Body["Torso"]) or Body["UpperTorso"])~=nil and Body["Head"]~=nil then --[Check for the Torso and Head...]
  3088. local TrsoLV = Trso.CFrame.lookVector
  3089. local HdPos = Head.CFrame.p
  3090. if IsR6 and Neck or Neck and Waist then --[Make sure the Neck still exists.]
  3091. if Cam.CameraSubject:IsDescendantOf(Body) or Cam.CameraSubject:IsDescendantOf(Plr) then
  3092. local Dist = nil;
  3093. local Diff = nil;
  3094. if not MseGuide then --[If not tracking the Mouse then get the Camera.]
  3095. Dist = (Head.CFrame.p-CamCF.p).magnitude
  3096. Diff = Head.CFrame.Y-CamCF.Y
  3097. if not IsR6 then --[R6 and R15 Neck rotation C0s are different; R15: X axis inverted and Z is now the Y.]
  3098. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang((aSin(Diff/Dist)*HeadVertFactor), -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*HeadHorFactor, 0), UpdateSpeed/2)
  3099. Waist.C0 = Waist.C0:lerp(WaistOrgnC0*Ang((aSin(Diff/Dist)*BodyVertFactor), -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*BodyHorFactor, 0), UpdateSpeed/2)
  3100. else --[R15s actually have the properly oriented Neck CFrame.]
  3101. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang(-(aSin(Diff/Dist)*HeadVertFactor), 0, -(((HdPos-CamCF.p).Unit):Cross(TrsoLV)).Y*HeadHorFactor),UpdateSpeed/2)
  3102. end
  3103. else
  3104. local Point = Mouse.Hit.p
  3105. Dist = (Head.CFrame.p-Point).magnitude
  3106. Diff = Head.CFrame.Y-Point.Y
  3107. if not IsR6 then
  3108. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang(-(aTan(Diff/Dist)*HeadVertFactor), (((HdPos-Point).Unit):Cross(TrsoLV)).Y*HeadHorFactor, 0), UpdateSpeed/2)
  3109. Waist.C0 = Waist.C0:lerp(WaistOrgnC0*Ang(-(aTan(Diff/Dist)*BodyVertFactor), (((HdPos-Point).Unit):Cross(TrsoLV)).Y*BodyHorFactor, 0), UpdateSpeed/2)
  3110. else
  3111. Neck.C0 = Neck.C0:lerp(NeckOrgnC0*Ang((aTan(Diff/Dist)*HeadVertFactor), 0, (((HdPos-Point).Unit):Cross(TrsoLV)).Y*HeadHorFactor), UpdateSpeed/2)
  3112. end
  3113. end
  3114. end
  3115. end
  3116. end
  3117. if TurnCharacterToMouse == true then
  3118. Hum.AutoRotate = false
  3119. Core.CFrame = Core.CFrame:lerp(CFrame.new(Core.Position, Vector3.new(Mouse.Hit.p.x, Core.Position.Y, Mouse.Hit.p.z)), UpdateSpeed / 2)
  3120. else
  3121. Hum.AutoRotate = true
  3122. end
  3123. local Body1 = BodyParts[math.random(#BodyParts)]
  3124. local Body2 = BodyParts[math.random(#BodyParts)]
  3125. local Pos1 = Vector3.new(
  3126. math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
  3127. math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
  3128. math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
  3129. )
  3130. local Pos2 = Vector3.new(
  3131. math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
  3132. math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
  3133. math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
  3134. )
  3135. local SPos1 = Body1.Position + Pos1
  3136. local SPos2 = Body2.Position + Pos2
  3137. if op == true then
  3138. Lightning(SPos1, SPos2, 10, 3, "Cyan", .000001, 0)
  3139. elseif op == false then
  3140. Lightning(SPos1, SPos2, 10, 3, "Cyan", .000001, 1)
  3141. end
  3142. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement