Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 98.67 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145.  
  146. ---GhasterBlasters by xXVipergamerXx1-----
  147. ---MUST BE R15 TO USE!!!----
  148. local num = 0
  149. local p = game:GetService("Players").LocalPlayer
  150. local char = p.Character
  151. local rad = math.rad
  152. local hum = char.Humanoid
  153. ---------------------------------------------------
  154. local LeftUpperArm = char.LeftUpperArm
  155. local LeftShoulder = char.LeftUpperArm.LeftShoulder
  156. local LeftLowerArm = char.LeftLowerArm
  157. local LeftElbow = char.LeftLowerArm.LeftElbow
  158. --------------------------------------------------------
  159. local LeftUpperLeg = char.LeftUpperLeg
  160. local LeftHip = char.LeftUpperLeg.LeftHip
  161. local LeftLowerLeg = char.LeftLowerLeg
  162. local LeftKnee = char.LeftLowerLeg.LeftKnee
  163. ----------------------------------------------------------
  164. local RightUpperArm = char.RightUpperArm
  165. local RightShoulder = char.RightUpperArm.RightShoulder
  166. local RightLowerArm = char.RightLowerArm
  167. local RightElbow = char.RightLowerArm.RightElbow
  168. ----------------------------------------------------------
  169. local RightUpperLeg = char.RightUpperLeg
  170. local RightHip = char.RightUpperLeg.RightHip
  171. local RightLowerLeg = char.RightLowerLeg
  172. local RightKnee = char.RightLowerLeg.RightKnee
  173. ----------------------------------------------------------
  174.  
  175. local UpperTorso = char.UpperTorso
  176. local LowerTorso = char.LowerTorso
  177. local Root = char.LowerTorso.Root
  178. --------------------------------------------
  179. local Head = char.Head
  180. local Neck = char.Head.Neck
  181. local RootPart = char.HumanoidRootPart
  182. local LeftHand = char.LeftHand
  183. local RightHand = char.RightHand
  184. local LeftFoot = char.LeftFoot
  185. local RightFoot = char.RightFoot
  186. ---------------------------------------------
  187.  
  188. hum:SetStateEnabled("Dead",true)
  189. hum:SetStateEnabled(Enum.HumanoidStateType.Dead, true)
  190. local v3 = Vector3.new
  191. local idle = true
  192. local walk = true
  193. local walk1 = true
  194. local walkon = true
  195. local ns = NumberSequence.new
  196. local new = Instance.new
  197. local nr = NumberRange.new
  198. local bc =BrickColor.new
  199. local UpperTorso = char.UpperTorso
  200. local Waist = char.UpperTorso.Waist
  201. local mouse = p:GetMouse()
  202. local Blasters = true
  203. local debounce = true
  204. hum.MaxHealth = 100000
  205. hum.Health = hum.MaxHealth
  206. local equiped = false
  207. new("ForceField",char).Visible = false
  208. local Create = LoadLibrary("RbxUtility").Create
  209. function RemoveOutlines(part)
  210. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  211. end
  212. CFuncs = {
  213. ["Part"] = {
  214. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  215. local Part = Create("Part"){
  216. Parent = Parent,
  217. Reflectance = Reflectance,
  218. Transparency = Transparency,
  219. CanCollide = false,
  220. Locked = true,
  221. BrickColor = BrickColor.new(tostring(BColor)),
  222. Name = Name,
  223. Size = Size,
  224. Material = Material,
  225. }
  226. RemoveOutlines(Part)
  227. return Part
  228. end;
  229. };
  230.  
  231. ["Mesh"] = {
  232. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  233. local Msh = Create(Mesh){
  234. Parent = Part,
  235. Offset = OffSet,
  236. Scale = Scale,
  237. }
  238. if Mesh == "SpecialMesh" then
  239. Msh.MeshType = MeshType
  240. Msh.MeshId = MeshId
  241. end
  242. return Msh
  243. end;
  244. };
  245.  
  246. ["Mesh"] = {
  247. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  248. local Msh = Create(Mesh){
  249. Parent = Part,
  250. Offset = OffSet,
  251. Scale = Scale,
  252. }
  253. if Mesh == "SpecialMesh" then
  254. Msh.MeshType = MeshType
  255. Msh.MeshId = MeshId
  256. end
  257. return Msh
  258. end;
  259. };
  260.  
  261. ["Weld"] = {
  262. Create = function(Parent, Part0, Part1, C0, C1)
  263. local Weld = Create("Weld"){
  264. Parent = Parent,
  265. Part0 = Part0,
  266. Part1 = Part1,
  267. C0 = C0,
  268. C1 = C1,
  269. }
  270. return Weld
  271. end;
  272. };
  273.  
  274. ["Sound"] = {
  275. Create = function(id, par, vol, pit)
  276. coroutine.resume(coroutine.create(function()
  277. local S = Create("Sound"){
  278. Volume = vol,
  279. Pitch = pit or 1,
  280. SoundId = id,
  281. Parent = par or workspace,
  282. }
  283. wait()
  284. S:play()
  285. game:GetService("Debris"):AddItem(S, 6)
  286. end))
  287. end;
  288. };
  289.  
  290. ["ParticleEmitter"] = {
  291. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  292. local fp = Create("ParticleEmitter"){
  293. Parent = Parent,
  294. Color = ColorSequence.new(Color1, Color2),
  295. LightEmission = LightEmission,
  296. Size = Size,
  297. Texture = Texture,
  298. Transparency = Transparency,
  299. ZOffset = ZOffset,
  300. Acceleration = Accel,
  301. Drag = Drag,
  302. LockedToPart = LockedToPart,
  303. VelocityInheritance = VelocityInheritance,
  304. EmissionDirection = EmissionDirection,
  305. Enabled = Enabled,
  306. Lifetime = LifeTime,
  307. Rate = Rate,
  308. Rotation = Rotation,
  309. RotSpeed = RotSpeed,
  310. Speed = Speed,
  311. VelocitySpread = VelocitySpread,
  312. }
  313. return fp
  314. end;
  315. };
  316.  
  317. CreateTemplate = {
  318.  
  319. };
  320. }
  321. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  322. if hit.Parent == nil then
  323. return
  324. end
  325. local h = hit.Parent:FindFirstChild("Humanoid")
  326. for _, v in pairs(hit.Parent:children()) do
  327. if v:IsA("Humanoid") then
  328. h = v
  329. end
  330. end
  331. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  332. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  333. if hit.Parent.DebounceHit.Value == true then
  334. return
  335. end
  336. end
  337. local c = Create("ObjectValue"){
  338. Name = "creator",
  339. Value = game:service("Players").LocalPlayer,
  340. Parent = h,
  341. }
  342. game:GetService("Debris"):AddItem(c, .5)
  343. if HitSound ~= nil and HitPitch ~= nil then
  344. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  345. end
  346. local Damage = math.random(minim, maxim)
  347. local blocked = false
  348. local block = hit.Parent:findFirstChild("Block")
  349. if block ~= nil then
  350. if block.className == "IntValue" then
  351. if block.Value > 0 then
  352. blocked = true
  353. block.Value = block.Value - 1
  354. print(block.Value)
  355. end
  356. end
  357. end
  358. if blocked == false then
  359. h.Health = h.Health - Damage
  360. 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)
  361. else
  362. h.Health = h.Health - (Damage / 2)
  363. 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)
  364. end
  365. if Type == "Knockdown" then
  366. local hum = hit.Parent.Humanoid
  367. hum.PlatformStand = true
  368. coroutine.resume(coroutine.create(function(HHumanoid)
  369. swait(1)
  370. HHumanoid.PlatformStand = false
  371. end), hum)
  372. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  373. local bodvol = Create("BodyVelocity"){
  374. velocity = angle * knockback,
  375. P = 5000,
  376. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  377. Parent = hit,
  378. }
  379. local rl = Create("BodyAngularVelocity"){
  380. P = 3000,
  381. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  382. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  383. Parent = hit,
  384. }
  385. game:GetService("Debris"):AddItem(bodvol, .5)
  386. game:GetService("Debris"):AddItem(rl, .5)
  387. elseif Type == "Normal" then
  388. local vp = Create("BodyVelocity"){
  389. P = 500,
  390. maxForce = Vector3.new(math.huge, 0, math.huge),
  391. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  392. }
  393. if knockback > 0 then
  394. vp.Parent = hit.Parent.Torso
  395. end
  396. game:GetService("Debris"):AddItem(vp, .5)
  397. elseif Type == "Up" then
  398. local bodyVelocity = Create("BodyVelocity"){
  399. velocity = Vector3.new(0, 20, 0),
  400. P = 5000,
  401. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  402. Parent = hit,
  403. }
  404. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  405. elseif Type == "DarkUp" then
  406. coroutine.resume(coroutine.create(function()
  407. for i = 0, 1, 0.1 do
  408. swait()
  409. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  410. end
  411. end))
  412. local bodyVelocity = Create("BodyVelocity"){
  413. velocity = Vector3.new(0, 20, 0),
  414. P = 5000,
  415. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  416. Parent = hit,
  417. }
  418. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  419. elseif Type == "Snare" then
  420. local bp = Create("BodyPosition"){
  421. P = 2000,
  422. D = 100,
  423. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  424. position = hit.Parent.Torso.Position,
  425. Parent = hit.Parent.Torso,
  426. }
  427. game:GetService("Debris"):AddItem(bp, 1)
  428. elseif Type == "Freeze" then
  429. local BodPos = Create("BodyPosition"){
  430. P = 50000,
  431. D = 1000,
  432. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  433. position = hit.Parent.Torso.Position,
  434. Parent = hit.Parent.Torso,
  435. }
  436. local BodGy = Create("BodyGyro") {
  437. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  438. P = 20e+003,
  439. Parent = hit.Parent.Torso,
  440. cframe = hit.Parent.Torso.CFrame,
  441. }
  442. hit.Parent.Torso.Anchored = true
  443. coroutine.resume(coroutine.create(function(Part)
  444. swait(1.5)
  445. Part.Anchored = false
  446. end), hit.Parent.Torso)
  447. game:GetService("Debris"):AddItem(BodPos, 3)
  448. game:GetService("Debris"):AddItem(BodGy, 3)
  449. end
  450. local debounce = Create("BoolValue"){
  451. Name = "DebounceHit",
  452. Parent = hit.Parent,
  453. Value = true,
  454. }
  455. game:GetService("Debris"):AddItem(debounce, Delay)
  456. c = Create("ObjectValue"){
  457. Name = "creator",
  458. Value = Player,
  459. Parent = h,
  460. }
  461. game:GetService("Debris"):AddItem(c, .5)
  462. end
  463. end
  464.  
  465. function ShowDamage(Pos, Text, Time, Color)
  466. local Rate = (1 / 30)
  467. local Pos = (Pos or Vector3.new(0, 0, 0))
  468. local Text = (Text or "")
  469. local Time = (Time or 2)
  470. local Color = (Color or Color3.new(1, 0, 1))
  471. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  472. EffectPart.Anchored = true
  473. local BillboardGui = Create("BillboardGui"){
  474. Size = UDim2.new(3, 0, 3, 0),
  475. Adornee = EffectPart,
  476. Parent = EffectPart,
  477. }
  478. local TextLabel = Create("TextLabel"){
  479. BackgroundTransparency = 1,
  480. Size = UDim2.new(1, 0, 1, 0),
  481. Text = Text,
  482. Font = "SciFi",
  483. TextColor3 = Color,
  484. TextScaled = true,
  485. Parent = BillboardGui,
  486. }
  487. game.Debris:AddItem(EffectPart, (Time))
  488. EffectPart.Parent = game:GetService("Workspace")
  489. delay(0, function()
  490. local Frames = (Time / Rate)
  491. for Frame = 1, Frames do
  492. wait(Rate)
  493. local Percent = (Frame / Frames)
  494. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  495. TextLabel.TextTransparency = Percent
  496. end
  497. if EffectPart and EffectPart.Parent then
  498. EffectPart:Destroy()
  499. end
  500. end)
  501. end
  502.  
  503. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  504. for _, c in pairs(workspace:children()) do
  505. local hum = c:findFirstChild("Humanoid")
  506. if hum ~= nil then
  507. local head = c:findFirstChild("Torso")
  508. if head ~= nil then
  509. local targ = head.Position - Part.Position
  510. local mag = targ.magnitude
  511. if mag <= Magnitude and c.Name ~= Player.Name then
  512. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  513. end
  514. end
  515. end
  516. end
  517. end
  518.  
  519. EffectModel = Create("Model"){
  520. Parent = Character,
  521. Name = "Effects",
  522. }
  523.  
  524. local Megalo = new("Sound",game.workspace.Camera)
  525. local effectaa = new("ChorusSoundEffect",Megalo)
  526. effectaa.Depth = 0.1
  527. effectaa.Mix = 0.2
  528. Megalo.SoundId = "rbxassetid://3745550364"
  529. Megalo.Volume = 5
  530. Megalo.Pitch = 1
  531. Megalo.Looped = true
  532. Megalo.TimePosition = 0
  533. Megalo:Play()
  534.  
  535. local shootsnd = new("Sound",char)
  536. shootsnd.SoundId = "rbxassetid://340722848"
  537. shootsnd.Volume = 10
  538. shootsnd.Pitch = 1
  539.  
  540.  
  541. local hdebounce = true
  542.  
  543.  
  544. local RGhasterBlaster = new("Part",char)
  545. RGhasterBlaster.Size = v3(1,1,1)
  546. RGhasterBlaster.Name = "RGhasterBlaster"
  547. RGhasterBlaster.CanCollide = false
  548. RGhasterBlaster.Material = "Neon"
  549. RGhasterBlaster.Shape = "Ball"
  550. RGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame
  551. RGhasterBlaster.Anchored = false
  552. RGhasterBlaster.BrickColor = bc("White")
  553. RGhasterBlaster.Transparency = 1
  554.  
  555. local LGhasterBlaster = new("Part",char)
  556. LGhasterBlaster.Size = v3(1,1,1)
  557. LGhasterBlaster.CanCollide = false
  558. LGhasterBlaster.Name = "LGhasterBlaster"
  559. LGhasterBlaster.Material = "Neon"
  560. LGhasterBlaster.BrickColor = bc("White")
  561. LGhasterBlaster.Shape = "Ball"
  562. LGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  563. LGhasterBlaster.Anchored = false
  564. LGhasterBlaster.Transparency = 1
  565.  
  566.  
  567. local zxc = Instance.new("SpecialMesh",LGhasterBlaster)
  568. zxc.MeshType = "FileMesh"
  569. zxc.Scale = Vector3.new(2,2,2)
  570. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  571. local zxc = Instance.new("SpecialMesh",RGhasterBlaster)
  572. zxc.MeshType = "FileMesh"
  573. zxc.Scale = Vector3.new(2,2,2)
  574. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  575. local lgbbg=Instance.new("BodyGyro",LGhasterBlaster)
  576. lgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  577. lgbbg.D=400
  578.  
  579. lgbbp = Instance.new("BodyPosition", LGhasterBlaster)
  580.  
  581. local rgbbg=Instance.new("BodyGyro",RGhasterBlaster)
  582. rgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  583. rgbbg.D=400
  584.  
  585. rgbbp = Instance.new("BodyPosition", RGhasterBlaster)
  586.  
  587. spawn(function()
  588. while Blasters == true do
  589. rgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(10,5,0)).p
  590. lgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-10,5,0)).p
  591. rgbbg.CFrame=CFrame.new(RGhasterBlaster.Position,mouse.Hit.p)
  592. lgbbg.CFrame=CFrame.new(LGhasterBlaster.Position,mouse.Hit.p)
  593.  
  594. wait()
  595. end
  596. end)
  597.  
  598. function equip()
  599. if equiped == false then
  600. equiped = true
  601. hum.WalkSpeed = 0
  602. hum.JumpPower = 0
  603. for i = 1,20 do
  604. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(math.rad(26.299), math.rad(-0.229), math.rad(-90.413)),.3) --LeftUpperArm
  605. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(5.386), 0, math.rad(88.293)),.3)--RightUpperArm
  606. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(19.137),rad(0),rad(0)),.3)--LeftLowerArm
  607. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(31.971),rad(0),rad(0)),.3)--RightLowerArm
  608. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(math.rad(6.704), math.rad(-2.12), math.rad(-17.418)),.3)--LeftUpperLeg
  609. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(math.rad(12.605), math.rad(3.953), math.rad(17.074)),.3)--RightUpperLeg
  610. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-10.886),rad(0),rad(0)),.3)--LeftLowerLeg
  611. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-12.49),rad(0),rad(0)),.3)--RightUpperLeg
  612. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Torso
  613. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
  614. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
  615. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
  616. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
  617. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
  618. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(21.658),rad(0),rad(0)),.3)--Head
  619. wait()
  620. end
  621. for i = 1,20 do
  622. LGhasterBlaster.Transparency = LGhasterBlaster.Transparency-0.1
  623. RGhasterBlaster.Transparency = RGhasterBlaster.Transparency-0.1
  624. wait()
  625. end
  626. hum.WalkSpeed = 15
  627. hum.JumpPower = 50
  628. ParticleEmitter0 = Instance.new("ParticleEmitter")
  629. ParticleEmitter0 = Instance.new("ParticleEmitter")
  630. ParticleEmitter0.Name = "Fire"
  631. ParticleEmitter0.Parent = char.RightHand
  632. ParticleEmitter0.Transparency = NumberSequence.new(0,0,0,0,1,0)
  633. ParticleEmitter0.Rotation = NumberRange.new(-90, 90)
  634. ParticleEmitter0.Archivable = false
  635. ParticleEmitter0.Size = NumberSequence.new(0.75,0)
  636. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.0980392, 0.956863, 1),Color3.new(0.0980392, 0.956863, 1))
  637. ParticleEmitter0.LightEmission = 1
  638. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=258126401"
  639. ParticleEmitter0.ZOffset = 1
  640. ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.5)
  641. ParticleEmitter0.Rate = 100
  642. ParticleEmitter0.RotSpeed = NumberRange.new(-90, 90)
  643. ParticleEmitter0.Speed = NumberRange.new(0.10000000149012, 0.10000000149012)
  644. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.0980392, 0.956863, 1),Color3.new(0.0980392, 0.956863, 1))
  645. for i = 1,20 do
  646. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
  647. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
  648. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
  649. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
  650. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
  651. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  652. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
  653. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  654. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
  655. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  656. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  657. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  658. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  659. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  660. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  661. wait()
  662. end
  663. else
  664. equiped = false
  665. hum.WalkSpeed = 0
  666. hum.JumpPower = 0
  667. for i = 1,20 do
  668. 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
  669. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(44.576), math.rad(80.787), 0),.1)--RightUpperArm
  670. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(92.934),rad(0),rad(0)),.1)--LeftLowerArm
  671. 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
  672. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(59.588),rad(0),rad(0)),.1)--LeftUpperLeg
  673. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(1.089),rad(0),rad(0)),.1)--RightUpperLeg
  674. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-38.044),rad(0),rad(0)),.1)--LeftLowerLeg
  675. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-17.704),rad(0),rad(0)),.1)--RightUpperLeg
  676. Root.C0 = Root.C0:lerp(CFrame.new(0, -0.206, 0.078)*CFrame.Angles(rad(-20.856),rad(0),rad(0)),.1)--Torso
  677. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(18.564),rad(0),rad(0)),.1)--Head
  678. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  679. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  680. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  681. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  682. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  683. wait()
  684. end
  685.  
  686. ParticleEmitter0:Destroy()
  687. for i = 1,20 do
  688. LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
  689. RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
  690. wait()
  691. end
  692. for i = 1,20 do
  693. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
  694. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
  695. LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
  696. RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
  697. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
  698. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  699. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
  700. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
  701. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
  702. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  703. RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  704. LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  705. RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  706. LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  707. Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
  708. wait()
  709. end
  710. hum.WalkSpeed = 15
  711. hum.JumpPower = 50
  712. end
  713. end
  714. function beam()
  715. if debounce == true then
  716. if equiped == true then
  717. debounce = false
  718. local finalflash = false
  719. local finalgo = 0
  720. local finalgo1 = 6
  721. game:GetService("RunService").RenderStepped:connect(function()
  722. if finalflash == true then
  723. finalgo = finalgo + 1
  724. finalgo1 = finalgo1 + 2
  725. char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
  726. char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
  727. char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  728.  
  729. char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  730.  
  731. end
  732. end)
  733.  
  734. shootsnd:Play()
  735.  
  736. local RayThing = Instance.new("Part",char)
  737. RayThing.Size = Vector3.new(5,1,1)
  738. RayThing.Shape = "Cylinder"
  739. RayThing.Name = "FinalFlash"
  740. RayThing.CanCollide = false
  741. RayThing.Transparency = 0
  742. RayThing.Anchored = true
  743. RayThing.Material = "Neon"
  744. RayThing.BrickColor = BrickColor.new("White")
  745.  
  746. local inRayThing = Instance.new("Part",char)
  747. inRayThing.Size = Vector3.new(5,1,1)
  748. inRayThing.Transparency = 1
  749. inRayThing.Shape = "Cylinder"
  750. inRayThing.Name = "inFinalFlash"
  751. inRayThing.CanCollide = false
  752. inRayThing.Anchored = true
  753. inRayThing.Material = "Neon"
  754. inRayThing.BrickColor = BrickColor.new("White")
  755. inRayThing.Touched:connect(function(hit)
  756.  
  757.  
  758. if hit.Parent == char then return end
  759. if hit.Parent == workspace.Base then return end
  760. for i,v in pairs(hit.Parent:GetChildren()) do
  761. if v:IsA("Humanoid") then
  762. if hdebounce == true then
  763. hdebounce = false
  764. 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)
  765. v.Health = v.Health - 30
  766. wait(1)
  767. hdebounce = true
  768. end
  769.  
  770.  
  771. end
  772. end
  773.  
  774. end)
  775. finalflash = true
  776.  
  777. wait(0.5)
  778.  
  779. finalflash = false
  780. for i = 1,10 do
  781. char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
  782. char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
  783. char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  784.  
  785. char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
  786. wait()
  787. end
  788. inRayThing:Destroy()
  789. RayThing:Destroy()
  790. finalgo = 0
  791. finalgo1 = 6
  792. debounce = true
  793. end
  794. end
  795. end
  796. function beam2()
  797. if equiped == true then
  798. if debounce == true then
  799. debounce = false
  800. local finalflash = false
  801. local finalgo = 0
  802. local finalgo1 = 6
  803. game:GetService("RunService").RenderStepped:connect(function()
  804. if finalflash == true then
  805. finalgo = finalgo + 1
  806. finalgo1 = finalgo1 + 2
  807.  
  808. char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
  809. char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
  810. char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  811. char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  812.  
  813.  
  814. end
  815. end)
  816.  
  817. shootsnd:Play()
  818. local RayThing = Instance.new("Part",char)
  819. RayThing.Size = Vector3.new(5,1,1)
  820. RayThing.Shape = "Cylinder"
  821. RayThing.Name = "FinalFlash"
  822. RayThing.CanCollide = false
  823. RayThing.Transparency = 0
  824. RayThing.Anchored = true
  825. RayThing.Material = "Neon"
  826. RayThing.BrickColor = BrickColor.new("White")
  827.  
  828. local inRayThing = Instance.new("Part",char)
  829. inRayThing.Size = Vector3.new(10,1,1)
  830. inRayThing.Transparency = 1
  831. inRayThing.Shape = "Cylinder"
  832. inRayThing.Name = "inFinalFlash"
  833. inRayThing.CanCollide = false
  834. inRayThing.Anchored = true
  835. inRayThing.Material = "Neon"
  836. inRayThing.BrickColor = BrickColor.new("White")
  837.  
  838. RayThing.Touched:connect(function(hit)
  839.  
  840.  
  841. if hit.Parent == char then return end
  842. if hit.Parent == workspace.Base then return end
  843. for i,v in pairs(hit.Parent:GetChildren()) do
  844. if v:IsA("Humanoid") then
  845. if hdebounce == true then
  846. hdebounce = false
  847. local hitnumb = math.random(1,2)
  848. v.Health = v.Health - math.random(10,20)
  849. if hitnumb == 1 then
  850. 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)
  851. end
  852. if hitnumb == 2 then
  853. 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)
  854. end
  855. wait(1)
  856. hdebounce = true
  857. end
  858.  
  859.  
  860. end
  861. end
  862.  
  863. end)
  864. finalflash = true
  865.  
  866. wait(0.5)
  867.  
  868. finalflash = false
  869. for i = 1,10 do
  870. char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
  871. char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
  872. char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  873. char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
  874. wait()
  875. end
  876.  
  877. inRayThing:Destroy()
  878. RayThing:Destroy()
  879. finalgo = 0
  880. finalgo1 = 6
  881. debounce = true
  882. end
  883. end
  884. end
  885. mounted = false
  886. function mount()
  887. if equiped == true then
  888. if mounted == false then
  889. mounted = true
  890. char.Humanoid.PlatformStand = true
  891. local mountw = new("Weld",RGhasterBlaster)
  892. mountw.Part0 = char.HumanoidRootPart
  893. mountw.Part1 = RGhasterBlaster
  894. mountw.Name = "mountw"
  895. mountw.C1 = CFrame.new(0,3,0)
  896. for i = 1,5 do
  897. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5) --LeftUpperArm
  898. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperArm
  899. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(70),rad(0),rad(0)),.5)--Head
  900. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--LeftUpperLeg
  901. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperLeg
  902. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--LeftLowerLeg
  903. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--RightUpperLeg
  904. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(-170),rad(0),rad(0)),.1)--Torso
  905. wait()
  906. end
  907.  
  908. elseif mounted == true then
  909. mounted = false
  910. for i = 1,5 do
  911. LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5) --LeftUpperArm
  912. RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperArm
  913. Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Head
  914. LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftUpperLeg
  915. RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
  916. LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftLowerLeg
  917. RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
  918. Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Torso
  919. wait()
  920. end
  921. char.Humanoid.PlatformStand = false
  922. RGhasterBlaster.mountw:destroy()
  923. RGhasterBlaster.CFrame = char.LeftHand.CFrame
  924. end
  925. end
  926. end
  927. local srot = 0
  928. mouse.Button1Down:connect(function()
  929. ral = math.random(1,2)
  930. if ral == 1 then
  931. beam()
  932. end
  933. if ral == 2 then
  934. beam2()
  935. end
  936.  
  937.  
  938. end)
  939. function cross()
  940. if equiped == true then
  941. if debounce == true then
  942. debounce = false
  943. local targeta = new("Part",char)
  944. targeta.Position = mouse.Hit.p
  945. targeta.Anchored = true
  946. targeta.CanCollide = false
  947. targeta.Transparency = 1
  948.  
  949. local CrossGhast1 = new("Part",char)
  950. CrossGhast1.CanCollide = false
  951. CrossGhast1.Anchored = false
  952. CrossGhast1.Size = v3(1,1,1)
  953. CrossGhast1.Material = "Neon"
  954. CrossGhast1.BrickColor = bc("White")
  955. CrossGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  956.  
  957.  
  958. local zxc = Instance.new("SpecialMesh",CrossGhast1)
  959. zxc.MeshType = "FileMesh"
  960. zxc.Scale = Vector3.new(2,2,2)
  961. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  962. PointBP = Instance.new("BodyPosition",CrossGhast1)
  963. PointBP.Position = (targeta.CFrame*CFrame.new(20,1,0)).p
  964. PointBP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  965. local PointBG=Instance.new("BodyGyro",CrossGhast1)
  966. PointBG.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  967. PointBG.D=400
  968. local CrossGhast2 = new("Part",char)
  969. CrossGhast2.CanCollide = false
  970. CrossGhast2.Anchored = false
  971. CrossGhast2.Size = v3(1,1,1)
  972. CrossGhast2.Material = "Neon"
  973. CrossGhast2.BrickColor = bc("White")
  974. CrossGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  975.  
  976. local zxc = Instance.new("SpecialMesh",CrossGhast2)
  977. zxc.MeshType = "FileMesh"
  978. zxc.Scale = Vector3.new(2,2,2)
  979. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  980. PointBP2 = Instance.new("BodyPosition",CrossGhast2)
  981. PointBP2.Position = (targeta.CFrame*CFrame.new(-20,1,0)).p
  982. PointBP2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  983. local PointBG2=Instance.new("BodyGyro",CrossGhast2)
  984. PointBG2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  985. PointBG2.D=400
  986. local CrossGhast3 = new("Part",char)
  987. CrossGhast3.CanCollide = false
  988. CrossGhast3.Anchored = false
  989. CrossGhast3.Size = v3(1,1,1)
  990. CrossGhast3.Material = "Neon"
  991. CrossGhast3.BrickColor = bc("White")
  992. CrossGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  993.  
  994. local zxc = Instance.new("SpecialMesh",CrossGhast3)
  995. zxc.MeshType = "FileMesh"
  996. zxc.Scale = Vector3.new(2,2,2)
  997. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  998. PointBP3 = Instance.new("BodyPosition",CrossGhast3)
  999. PointBP3.Position = (targeta.CFrame*CFrame.new(0,1,-20)).p
  1000. PointBP3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1001. local PointBG3=Instance.new("BodyGyro",CrossGhast3)
  1002. PointBG3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1003. PointBG3.D=400
  1004. local CrossGhasta = new("Part",char)
  1005. CrossGhasta.CanCollide = false
  1006. CrossGhasta.Anchored = false
  1007. CrossGhasta.Size = v3(1,1,1)
  1008. CrossGhasta.Material = "Neon"
  1009. CrossGhasta.BrickColor = bc("White")
  1010. CrossGhasta.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1011.  
  1012. local zxc = Instance.new("SpecialMesh",CrossGhasta)
  1013. zxc.MeshType = "FileMesh"
  1014. zxc.Scale = Vector3.new(2,2,2)
  1015. zxc.MeshId = "http://www.roblox.csdom/asset/?id=920580395"
  1016. PointBPa = Instance.new("BodyPosition",CrossGhasta)
  1017. PointBPa.Position = (targeta.CFrame*CFrame.new(0,1,20)).p
  1018. PointBPa.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1019. local PointBGa=Instance.new("BodyGyro",CrossGhasta)
  1020. PointBGa.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1021. PointBGa.D=400
  1022. for i = 1,50 do
  1023. PointBG.CFrame=CFrame.new(CrossGhast1.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1024. PointBG2.CFrame=CFrame.new(CrossGhast2.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1025. PointBG3.CFrame=CFrame.new(CrossGhast3.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1026. PointBGa.CFrame=CFrame.new(CrossGhasta.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
  1027.  
  1028. wait()
  1029. end
  1030. shootsnd:Play()
  1031. local GhastShot1 = new("Part",CrossGhast1)
  1032. GhastShot1.Shape = "Cylinder"
  1033. GhastShot1.Size = v3(100,5,5)
  1034. GhastShot1.BrickColor = bc("White")
  1035. GhastShot1.Material = "Neon"
  1036. GhastShot1.CanCollide = false
  1037. GhastShot1.Anchored = true
  1038. GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1039. local GhastShot2 = new("Part",CrossGhast1)
  1040. GhastShot2.Shape = "Cylinder"
  1041. GhastShot2.Size = v3(100,5,5)
  1042. GhastShot2.BrickColor = bc("White")
  1043. GhastShot2.Material = "Neon"
  1044. GhastShot2.CanCollide = false
  1045. GhastShot2.Anchored = true
  1046. GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1047. local GhastShot3 = new("Part",CrossGhast1)
  1048. GhastShot3.Shape = "Cylinder"
  1049. GhastShot3.Size = v3(100,5,5)
  1050. GhastShot3.BrickColor = bc("White")
  1051. GhastShot3.Material = "Neon"
  1052. GhastShot3.CanCollide = false
  1053. GhastShot3.Anchored = true
  1054. GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1055. local GhastShota = new("Part",CrossGhast1)
  1056. GhastShota.Shape = "Cylinder"
  1057. GhastShota.Size = v3(100,5,5)
  1058. GhastShota.BrickColor = bc("White")
  1059. GhastShota.Material = "Neon"
  1060. GhastShota.CanCollide = false
  1061. GhastShota.Anchored = true
  1062. GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1063. GhastShota.Touched:connect(function(hit)
  1064.  
  1065.  
  1066. if hit.Parent == char then return end
  1067. if hit.Parent == workspace.Base then return end
  1068. for i,v in pairs(hit.Parent:GetChildren()) do
  1069. if v:IsA("Humanoid") then
  1070. if hdebounce == true then
  1071. hdebounce = false
  1072. local hitnumb2 = math.random(1,2)
  1073. for i = 1,20 do
  1074. v.Health = v.Health-2
  1075. wait(0.01)
  1076. end
  1077. if hitnumb == 1 then
  1078. 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)
  1079. end
  1080. if hitnumb == 2 then
  1081. 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)
  1082. end
  1083. wait(0.9)
  1084. hdebounce = true
  1085. end
  1086.  
  1087.  
  1088. end
  1089. end
  1090.  
  1091. end)
  1092. GhastShot1.Touched:connect(function(hit)
  1093.  
  1094. if hit.Parent == char then return end
  1095. if hit.Parent == workspace.Base then return end
  1096. for i,v in pairs(hit.Parent:GetChildren()) do
  1097. if v:IsA("Humanoid") then
  1098. if hdebounce == true then
  1099. hdebounce = false
  1100. local hitnumb2 = math.random(1,2)
  1101. for i = 1,20 do
  1102. v.Health = v.Health-2
  1103. wait(0.01)
  1104. end
  1105. if hitnumb == 1 then
  1106. 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)
  1107. end
  1108. if hitnumb == 2 then
  1109. 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)
  1110. end
  1111. wait(0.9)
  1112. hdebounce = true
  1113. end
  1114.  
  1115.  
  1116. end
  1117. end
  1118.  
  1119. end)
  1120. GhastShot2.Touched:connect(function(hit)
  1121. if hit.Parent == workspace.Base then return end
  1122.  
  1123. if hit.Parent == char then return end
  1124.  
  1125. for i,v in pairs(hit.Parent:GetChildren()) do
  1126. if v:IsA("Humanoid") then
  1127. if hdebounce == true then
  1128. hdebounce = false
  1129. local hitnumb2 = math.random(1,2)
  1130. for i = 1,20 do
  1131. v.Health = v.Health-2
  1132. wait(0.01)
  1133. end
  1134. if hitnumb == 1 then
  1135. 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)
  1136. end
  1137. if hitnumb == 2 then
  1138. 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)
  1139. end
  1140. wait(0.9)
  1141. hdebounce = true
  1142. end
  1143.  
  1144.  
  1145. end
  1146. end
  1147.  
  1148. end)
  1149. GhastShot3.Touched:connect(function(hit)
  1150. if hit.Parent == workspace.Base then return end
  1151. if hit.Parent == char then return end
  1152.  
  1153. for i,v in pairs(hit.Parent:GetChildren()) do
  1154. if v:IsA("Humanoid") then
  1155. if hdebounce == true then
  1156. hdebounce = false
  1157. local hitnumb2 = math.random(1,2)
  1158. for i = 1,20 do
  1159. v.Health = v.Health-2
  1160. wait(0.01)
  1161. end
  1162. if hitnumb == 1 then
  1163. 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)
  1164. end
  1165. if hitnumb == 2 then
  1166. 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)
  1167. end
  1168. wait(0.9)
  1169. hdebounce = true
  1170. end
  1171.  
  1172.  
  1173. end
  1174. end
  1175.  
  1176. end)
  1177. wait(0.2)
  1178. for i = 1,10 do
  1179. GhastShot1.Size = GhastShot1.Size+v3(0,-1,-1)
  1180. GhastShot2.Size = GhastShot2.Size+v3(0,-1,-1)
  1181. GhastShot3.Size = GhastShot3.Size+v3(0,-1,-1)
  1182. GhastShota.Size = GhastShota.Size+v3(0,-1,-1)
  1183. GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1184. GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1185. GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1186. GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1187. GhastShot1.Transparency = GhastShot1.Transparency+0.1
  1188. GhastShot2.Transparency = GhastShot2.Transparency+0.1
  1189. GhastShot3.Transparency = GhastShot3.Transparency+0.1
  1190. GhastShota.Transparency = GhastShota.Transparency+0.1
  1191.  
  1192. wait()
  1193. end
  1194. wait(1)
  1195. for i = 1,10 do
  1196. CrossGhast2.Transparency = CrossGhast2.Transparency+0.1
  1197. CrossGhast1.Transparency = CrossGhast1.Transparency+0.1
  1198. CrossGhasta.Transparency = CrossGhasta.Transparency+0.1
  1199. CrossGhast3.Transparency = CrossGhast3.Transparency+0.1
  1200. wait()
  1201. end
  1202. CrossGhast1:destroy()
  1203. CrossGhast2:destroy()
  1204. CrossGhast3:destroy()
  1205. CrossGhasta:destroy()
  1206. wait(1)
  1207. debounce = true
  1208. end
  1209. end
  1210. end
  1211. local dodgedebounce = true
  1212. function DodgeLeft()
  1213. if dodgedebounce == true then
  1214. dodgedebounce = false
  1215. local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
  1216. local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
  1217. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1218. bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
  1219. wait(0.8)
  1220. bodyp.Position=currentpos
  1221. wait(0.5)
  1222. bodyp:Destroy()
  1223. wait(1)
  1224. dodgedebounce = true
  1225. end
  1226. end
  1227. function RightDodge()
  1228. if dodgedebounce == true then
  1229. dodgedebounce = false
  1230. local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
  1231. local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
  1232. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  1233. bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(15,0,0)).p
  1234. wait(0.8)
  1235. bodyp.Position=currentpos
  1236. wait(0.5)
  1237. bodyp:Destroy()
  1238. wait(1)
  1239. dodgedebounce = true
  1240. end
  1241. end
  1242. function octo()
  1243. if equiped == true then
  1244. if debounce == true then
  1245. debounce = false
  1246. local target2 = new("Part",char)
  1247. target2.Position = mouse.Hit.p
  1248. target2.Anchored = true
  1249. target2.CanCollide = false
  1250. target2.Transparency = 1
  1251. local OctoGhast1 = new("Part",char)
  1252. OctoGhast1.CanCollide = false
  1253. OctoGhast1.Anchored = false
  1254. OctoGhast1.Size = v3(1,1,1)
  1255. OctoGhast1.Material = "Neon"
  1256. OctoGhast1.BrickColor = bc("White")
  1257. OctoGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1258.  
  1259.  
  1260. local zxc = Instance.new("SpecialMesh",OctoGhast1)
  1261. zxc.MeshType = "FileMesh"
  1262. zxc.Scale = Vector3.new(2,2,2)
  1263. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1264. PointBPOcto1 = Instance.new("BodyPosition",OctoGhast1)
  1265. PointBPOcto1.Position = (target2.CFrame*CFrame.new(20,1,0)).p
  1266. PointBPOcto1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1267. local PointBGOcto1=Instance.new("BodyGyro",OctoGhast1)
  1268. PointBGOcto1.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1269. PointBGOcto1.D=400
  1270. local OctoGhast2 = new("Part",char)
  1271. OctoGhast2.CanCollide = false
  1272. OctoGhast2.Anchored = false
  1273. OctoGhast2.Size = v3(1,1,1)
  1274. OctoGhast2.Material = "Neon"
  1275. OctoGhast2.BrickColor = bc("White")
  1276. OctoGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1277.  
  1278. local zxc = Instance.new("SpecialMesh",OctoGhast2)
  1279. zxc.MeshType = "FileMesh"
  1280. zxc.Scale = Vector3.new(2,2,2)
  1281. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1282. PointBPOcto2 = Instance.new("BodyPosition",OctoGhast2)
  1283. PointBPOcto2.Position = (target2.CFrame*CFrame.new(-20,1,0)).p
  1284. PointBPOcto2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1285. local PointBGOcto2=Instance.new("BodyGyro",OctoGhast2)
  1286. PointBGOcto2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1287. PointBGOcto2.D=400
  1288. local OctoGhast3 = new("Part",char)
  1289. OctoGhast3.CanCollide = false
  1290. OctoGhast3.Anchored = false
  1291. OctoGhast3.Size = v3(1,1,1)
  1292. OctoGhast3.Material = "Neon"
  1293. OctoGhast3.BrickColor = bc("White")
  1294. OctoGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1295.  
  1296.  
  1297. local zxc = Instance.new("SpecialMesh",OctoGhast3)
  1298. zxc.MeshType = "FileMesh"
  1299. zxc.Scale = Vector3.new(2,2,2)
  1300. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1301. PointBPOcto3 = Instance.new("BodyPosition",OctoGhast3)
  1302. PointBPOcto3.Position = (target2.CFrame*CFrame.new(0,1,-20)).p
  1303. PointBPOcto3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1304. local PointBGOcto3=Instance.new("BodyGyro",OctoGhast3)
  1305. PointBGOcto3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1306. PointBGOcto3.D=400
  1307. local OctoGhast4 = new("Part",char)
  1308. OctoGhast4.CanCollide = false
  1309. OctoGhast4.Anchored = false
  1310. OctoGhast4.Size = v3(1,1,1)
  1311. OctoGhast4.Material = "Neon"
  1312. OctoGhast4.BrickColor = bc("White")
  1313. OctoGhast4.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1314.  
  1315.  
  1316. local zxc = Instance.new("SpecialMesh",OctoGhast4)
  1317. zxc.MeshType = "FileMesh"
  1318. zxc.Scale = Vector3.new(2,2,2)
  1319. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1320. PointBPOcto4 = Instance.new("BodyPosition",OctoGhast4)
  1321. PointBPOcto4.Position = (target2.CFrame*CFrame.new(0,1,20)).p
  1322. PointBPOcto4.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1323. local PointBGOcto4=Instance.new("BodyGyro",OctoGhast4)
  1324. PointBGOcto4.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1325. PointBGOcto4.D=400
  1326. local OctoGhast5 = new("Part",char)
  1327. OctoGhast5.CanCollide = false
  1328. OctoGhast5.Anchored = false
  1329. OctoGhast5.Size = v3(1,1,1)
  1330. OctoGhast5.Material = "Neon"
  1331. OctoGhast5.BrickColor = bc("White")
  1332. OctoGhast5.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1333.  
  1334.  
  1335. local zxc = Instance.new("SpecialMesh",OctoGhast5)
  1336. zxc.MeshType = "FileMesh"
  1337. zxc.Scale = Vector3.new(2,2,2)
  1338. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1339. PointBPOcto5 = Instance.new("BodyPosition",OctoGhast5)
  1340. PointBPOcto5.Position = (target2.CFrame*CFrame.new(15,1,-20)).p
  1341. PointBPOcto5.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1342. local PointBGOcto5=Instance.new("BodyGyro",OctoGhast5)
  1343. PointBGOcto5.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1344. PointBGOcto5.D=400
  1345. local OctoGhast6 = new("Part",char)
  1346. OctoGhast6.CanCollide = false
  1347. OctoGhast6.Anchored = false
  1348. OctoGhast6.Size = v3(1,1,1)
  1349. OctoGhast6.Material = "Neon"
  1350. OctoGhast6.BrickColor = bc("White")
  1351. OctoGhast6.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1352.  
  1353.  
  1354. local zxc = Instance.new("SpecialMesh",OctoGhast6)
  1355. zxc.MeshType = "FileMesh"
  1356. zxc.Scale = Vector3.new(2,2,2)
  1357. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1358. PointBPOcto6 = Instance.new("BodyPosition",OctoGhast6)
  1359. PointBPOcto6.Position = (target2.CFrame*CFrame.new(-15,1,20)).p
  1360. PointBPOcto6.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1361. local PointBGOcto6=Instance.new("BodyGyro",OctoGhast6)
  1362. PointBGOcto6.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1363. PointBGOcto6.D=400
  1364. local OctoGhast7 = new("Part",char)
  1365. OctoGhast7.CanCollide = false
  1366. OctoGhast7.Anchored = false
  1367. OctoGhast7.Size = v3(1,1,1)
  1368. OctoGhast7.Material = "Neon"
  1369. OctoGhast7.BrickColor = bc("White")
  1370. OctoGhast7.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1371.  
  1372.  
  1373. local zxc = Instance.new("SpecialMesh",OctoGhast7)
  1374. zxc.MeshType = "FileMesh"
  1375. zxc.Scale = Vector3.new(2,2,2)
  1376. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1377. PointBPOcto7 = Instance.new("BodyPosition",OctoGhast7)
  1378. PointBPOcto7.Position = (target2.CFrame*CFrame.new(15,1,15)).p
  1379. PointBPOcto7.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1380. local PointBGOcto7=Instance.new("BodyGyro",OctoGhast7)
  1381. PointBGOcto7.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1382. PointBGOcto7.D=400
  1383. local OctoGhast8 = new("Part",char)
  1384. OctoGhast8.CanCollide = false
  1385. OctoGhast8.Anchored = false
  1386. OctoGhast8.Size = v3(1,1,1)
  1387. OctoGhast8.Material = "Neon"
  1388. OctoGhast8.BrickColor = bc("White")
  1389. OctoGhast8.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
  1390.  
  1391.  
  1392. local zxc = Instance.new("SpecialMesh",OctoGhast8)
  1393. zxc.MeshType = "FileMesh"
  1394. zxc.Scale = Vector3.new(2,2,2)
  1395. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1396. PointBPOcto8 = Instance.new("BodyPosition",OctoGhast8)
  1397. PointBPOcto8.Position = (target2.CFrame*CFrame.new(-15,1,-15)).p
  1398. PointBPOcto8.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1399. local PointBGOcto8=Instance.new("BodyGyro",OctoGhast8)
  1400. PointBGOcto8.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1401. PointBGOcto8.D=400
  1402. for i = 1,50 do
  1403. PointBGOcto5.CFrame=CFrame.new(OctoGhast5.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1404. PointBGOcto4.CFrame=CFrame.new(OctoGhast4.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1405. PointBGOcto1.CFrame=CFrame.new(OctoGhast1.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1406. PointBGOcto2.CFrame=CFrame.new(OctoGhast2.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1407. PointBGOcto3.CFrame=CFrame.new(OctoGhast3.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1408. PointBGOcto6.CFrame=CFrame.new(OctoGhast6.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1409. PointBGOcto7.CFrame=CFrame.new(OctoGhast7.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1410. PointBGOcto8.CFrame=CFrame.new(OctoGhast8.Position,target2.Position)*CFrame.Angles(0.1,0,0)
  1411. wait()
  1412. end
  1413. shootsnd:Play()
  1414. local GhastShotaA = new("Part",OctoGhast1)
  1415. GhastShotaA.Shape = "Cylinder"
  1416. GhastShotaA.Size = v3(100,5,5)
  1417. GhastShotaA.BrickColor = bc("White")
  1418. GhastShotaA.Material = "Neon"
  1419. GhastShotaA.CanCollide = false
  1420. GhastShotaA.Anchored = true
  1421. GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1422. local GhastShotaB = new("Part",OctoGhast2)
  1423. GhastShotaB.Shape = "Cylinder"
  1424. GhastShotaB.Size = v3(100,5,5)
  1425. GhastShotaB.BrickColor = bc("White")
  1426. GhastShotaB.Material = "Neon"
  1427. GhastShotaB.CanCollide = false
  1428. GhastShotaB.Anchored = true
  1429. GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1430. local GhastShotaC = new("Part",OctoGhast3)
  1431. GhastShotaC.Shape = "Cylinder"
  1432. GhastShotaC.Size = v3(100,5,5)
  1433. GhastShotaC.BrickColor = bc("White")
  1434. GhastShotaC.Material = "Neon"
  1435. GhastShotaC.CanCollide = false
  1436. GhastShotaC.Anchored = true
  1437. GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1438. local GhastShotaD = new("Part",OctoGhast4)
  1439. GhastShotaD.Shape = "Cylinder"
  1440. GhastShotaD.Size = v3(100,5,5)
  1441. GhastShotaD.BrickColor = bc("White")
  1442. GhastShotaD.Material = "Neon"
  1443. GhastShotaD.CanCollide = false
  1444. GhastShotaD.Anchored = true
  1445. GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1446. local GhastShotaE = new("Part",OctoGhast5)
  1447. GhastShotaE.Shape = "Cylinder"
  1448. GhastShotaE.Size = v3(100,5,5)
  1449. GhastShotaE.BrickColor = bc("White")
  1450. GhastShotaE.Material = "Neon"
  1451. GhastShotaE.CanCollide = false
  1452. GhastShotaE.Anchored = true
  1453. GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1454. local GhastShotaF = new("Part",OctoGhast6)
  1455. GhastShotaF.Shape = "Cylinder"
  1456. GhastShotaF.Size = v3(100,5,5)
  1457. GhastShotaF.BrickColor = bc("White")
  1458. GhastShotaF.Material = "Neon"
  1459. GhastShotaF.CanCollide = false
  1460. GhastShotaF.Anchored = true
  1461. GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1462. local GhastShotaG = new("Part",OctoGhast7)
  1463. GhastShotaG.Shape = "Cylinder"
  1464. GhastShotaG.Size = v3(100,5,5)
  1465. GhastShotaG.BrickColor = bc("White")
  1466. GhastShotaG.Material = "Neon"
  1467. GhastShotaG.CanCollide = false
  1468. GhastShotaG.Anchored = true
  1469. GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1470. local GhastShotaH = new("Part",OctoGhast8)
  1471. GhastShotaH.Shape = "Cylinder"
  1472. GhastShotaH.Size = v3(100,5,5)
  1473. GhastShotaH.BrickColor = bc("White")
  1474. GhastShotaH.Material = "Neon"
  1475. GhastShotaH.CanCollide = false
  1476. GhastShotaH.Anchored = true
  1477. GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1478. GhastShotaA.Touched:connect(function(hit)
  1479.  
  1480.  
  1481. if hit.Parent == char then return end
  1482. if hit.Parent == workspace.Base then return end
  1483. for i,v in pairs(hit.Parent:GetChildren()) do
  1484. if v:IsA("Humanoid") then
  1485. if hdebounce == true then
  1486. hdebounce = false
  1487.  
  1488. for i = 1,20 do
  1489. v.Health = v.Health-2
  1490. wait(0.01)
  1491. end
  1492. local hitnumb = math.random(1,2)
  1493.  
  1494. if hitnumb == 1 then
  1495. 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)
  1496. end
  1497. if hitnumb == 2 then
  1498. 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)
  1499. end
  1500. wait(0.9)
  1501. hdebounce = true
  1502. end
  1503.  
  1504.  
  1505. end
  1506. end
  1507.  
  1508. end)
  1509. GhastShotaB.Touched:connect(function(hit)
  1510. if hit.Parent == workspace.Base then return end
  1511.  
  1512. if hit.Parent == char then return end
  1513.  
  1514. for i,v in pairs(hit.Parent:GetChildren()) do
  1515. if v:IsA("Humanoid") then
  1516. if hdebounce == true then
  1517. hdebounce = false
  1518.  
  1519. for i = 1,20 do
  1520. v.Health = v.Health-2
  1521. wait(0.01)
  1522. end
  1523. local hitnumb = math.random(1,2)
  1524.  
  1525. if hitnumb == 1 then
  1526. 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)
  1527. end
  1528. if hitnumb == 2 then
  1529. 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)
  1530. end
  1531. wait(0.9)
  1532. hdebounce = true
  1533. end
  1534.  
  1535.  
  1536. end
  1537. end
  1538.  
  1539. end)
  1540. GhastShotaC.Touched:connect(function(hit)
  1541.  
  1542. if hit.Parent == workspace.Base then return end
  1543. if hit.Parent == char then return end
  1544.  
  1545. for i,v in pairs(hit.Parent:GetChildren()) do
  1546. if v:IsA("Humanoid") then
  1547. if hdebounce == true then
  1548. hdebounce = false
  1549.  
  1550. for i = 1,20 do
  1551. v.Health = v.Health-2
  1552. wait(0.01)
  1553. end
  1554. local hitnumb = math.random(1,2)
  1555.  
  1556. if hitnumb == 1 then
  1557. 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)
  1558. end
  1559. if hitnumb == 2 then
  1560. 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)
  1561. end
  1562. wait(0.9)
  1563. hdebounce = true
  1564. end
  1565.  
  1566.  
  1567. end
  1568. end
  1569.  
  1570. end)
  1571. GhastShotaD.Touched:connect(function(hit)
  1572. if hit.Parent == workspace.Base then return end
  1573.  
  1574. if hit.Parent == char then return end
  1575.  
  1576. for i,v in pairs(hit.Parent:GetChildren()) do
  1577. if v:IsA("Humanoid") then
  1578. if hdebounce == true then
  1579. hdebounce = false
  1580.  
  1581. for i = 1,20 do
  1582. v.Health = v.Health-2
  1583. wait(0.01)
  1584. end
  1585. local hitnumb = math.random(1,2)
  1586.  
  1587. if hitnumb == 1 then
  1588. 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)
  1589. end
  1590. if hitnumb == 2 then
  1591. 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)
  1592. end
  1593. wait(0.9)
  1594. hdebounce = true
  1595. end
  1596.  
  1597.  
  1598. end
  1599. end
  1600.  
  1601. end)
  1602. GhastShotaE.Touched:connect(function(hit)
  1603. if hit.Parent == workspace.Base then return end
  1604.  
  1605. if hit.Parent == char then return end
  1606.  
  1607. for i,v in pairs(hit.Parent:GetChildren()) do
  1608. if v:IsA("Humanoid") then
  1609. if hdebounce == true then
  1610. hdebounce = false
  1611.  
  1612. for i = 1,20 do
  1613. v.Health = v.Health-2
  1614. wait(0.01)
  1615. end
  1616. local hitnumb = math.random(1,2)
  1617.  
  1618. if hitnumb == 1 then
  1619. 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)
  1620. end
  1621. if hitnumb == 2 then
  1622. 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)
  1623. end
  1624. wait(0.9)
  1625. hdebounce = true
  1626. end
  1627.  
  1628.  
  1629. end
  1630. end
  1631.  
  1632. end)
  1633. GhastShotaF.Touched:connect(function(hit)
  1634.  
  1635. if hit.Parent == workspace.Base then return end
  1636. if hit.Parent == char then return end
  1637.  
  1638. for i,v in pairs(hit.Parent:GetChildren()) do
  1639. if v:IsA("Humanoid") then
  1640. if hdebounce == true then
  1641. hdebounce = false
  1642.  
  1643. for i = 1,20 do
  1644. v.Health = v.Health-2
  1645. wait(0.01)
  1646. end
  1647. local hitnumb = math.random(1,2)
  1648.  
  1649. if hitnumb == 1 then
  1650. 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)
  1651. end
  1652. if hitnumb == 2 then
  1653. 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)
  1654. end
  1655. wait(0.9)
  1656.  
  1657. hdebounce = true
  1658. end
  1659.  
  1660.  
  1661. end
  1662. end
  1663.  
  1664. end)
  1665. GhastShotaG.Touched:connect(function(hit)
  1666.  
  1667. if hit.Parent == workspace.Base then return end
  1668. if hit.Parent == char then return end
  1669.  
  1670. for i,v in pairs(hit.Parent:GetChildren()) do
  1671. if v:IsA("Humanoid") then
  1672. if hdebounce == true then
  1673. hdebounce = false
  1674.  
  1675. for i = 1,20 do
  1676. v.Health = v.Health-2
  1677. wait(0.01)
  1678. end
  1679. local hitnumb = math.random(1,2)
  1680.  
  1681. if hitnumb == 1 then
  1682. 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)
  1683. end
  1684. if hitnumb == 2 then
  1685. 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)
  1686. end
  1687. wait(0.9)
  1688. hdebounce = true
  1689. end
  1690.  
  1691.  
  1692. end
  1693. end
  1694.  
  1695. end)
  1696. GhastShotaH.Touched:connect(function(hit)
  1697. if hit.Parent == workspace.Base then return end
  1698.  
  1699. if hit.Parent == char then return end
  1700.  
  1701. for i,v in pairs(hit.Parent:GetChildren()) do
  1702. if v:IsA("Humanoid") then
  1703. if hdebounce == true then
  1704. hdebounce = false
  1705. for i = 1,20 do
  1706. v.Health = v.Health-2
  1707. wait(0.01)
  1708. end
  1709. local hitnumb = math.random(1,2)
  1710.  
  1711. if hitnumb == 1 then
  1712. 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)
  1713. end
  1714. if hitnumb == 2 then
  1715. 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)
  1716. end
  1717. wait(0.9)
  1718. hdebounce = true
  1719. end
  1720.  
  1721.  
  1722. end
  1723. end
  1724.  
  1725. end)
  1726. wait(0.2)
  1727. for i = 1,20 do
  1728. GhastShotaA.Size = GhastShotaA.Size+v3(0,-1,-1)
  1729. GhastShotaB.Size = GhastShotaB.Size+v3(0,-1,-1)
  1730. GhastShotaC.Size = GhastShotaC.Size+v3(0,-1,-1)
  1731. GhastShotaD.Size = GhastShotaD.Size+v3(0,-1,-1)
  1732. GhastShotaE.Size = GhastShotaE.Size+v3(0,-1,-1)
  1733. GhastShotaF.Size = GhastShotaF.Size+v3(0,-1,-1)
  1734. GhastShotaG.Size = GhastShotaG.Size+v3(0,-1,-1)
  1735. GhastShotaH.Size = GhastShotaH.Size+v3(0,-1,-1)
  1736. GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1737. GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1738. GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1739. GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1740. GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1741. GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1742. GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1743. GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  1744. GhastShotaA.Transparency = GhastShotaA.Transparency+0.1
  1745. GhastShotaB.Transparency = GhastShotaB.Transparency+0.1
  1746. GhastShotaC.Transparency = GhastShotaC.Transparency+0.1
  1747. GhastShotaD.Transparency = GhastShotaD.Transparency+0.1
  1748. GhastShotaE.Transparency = GhastShotaE.Transparency+0.1
  1749. GhastShotaF.Transparency = GhastShotaF.Transparency+0.1
  1750. GhastShotaG.Transparency = GhastShotaG.Transparency+0.1
  1751. GhastShotaH.Transparency = GhastShotaH.Transparency+0.1
  1752. wait()
  1753. end
  1754. wait(0.1)
  1755. debounce = true
  1756. for i = 1,20 do
  1757. OctoGhast1.Transparency = OctoGhast1.Transparency+0.1
  1758. OctoGhast2.Transparency = OctoGhast2.Transparency+0.1
  1759. OctoGhast3.Transparency = OctoGhast3.Transparency+0.1
  1760. OctoGhast4.Transparency = OctoGhast4.Transparency+0.1
  1761. OctoGhast5.Transparency = OctoGhast5.Transparency+0.1
  1762. OctoGhast6.Transparency = OctoGhast6.Transparency+0.1
  1763. OctoGhast7.Transparency = OctoGhast7.Transparency+0.1
  1764. OctoGhast8.Transparency = OctoGhast8.Transparency+0.1
  1765. wait()
  1766. end
  1767. OctoGhast1:destroy()
  1768. OctoGhast2:destroy()
  1769. OctoGhast3:destroy()
  1770. OctoGhast4:destroy()
  1771. OctoGhast5:destroy()
  1772. OctoGhast6:destroy()
  1773. OctoGhast7:destroy()
  1774. OctoGhast8:destroy()
  1775. end
  1776. end
  1777. end
  1778. local bonehit2nd = new("Sound",char)
  1779. bonehit2nd.SoundId = "rbxassetid://401680588"
  1780. bonehit2nd.Volume = 5
  1781.  
  1782. local bonehit3nd = new("Sound",char)
  1783. bonehit3nd.SoundId = "rbxassetid://306247749"
  1784. bonehit3nd.Volume = 5
  1785.  
  1786. function Bones()
  1787. if RootPart.Velocity.y < 1 and hitfloor==nil then
  1788. if debounce == true then
  1789. debounce = false
  1790.  
  1791. bonehit2nd:Play()
  1792. for i = 1,30 do
  1793. local bone = new("Part",char)
  1794. bone.Touched:connect(function(hit)
  1795.  
  1796.  
  1797. if hit.Parent == char then return end
  1798.  
  1799. for i,v in pairs(hit.Parent:GetChildren()) do
  1800. if v:IsA("Humanoid") then
  1801. padebounce = true
  1802. if padebounce == true then
  1803. padebounce = false
  1804.  
  1805. for i = 1,20 do
  1806. v.Health = v.Health-2
  1807. wait(1)
  1808. end
  1809. wait(0.9)
  1810. padebounce = true
  1811. end
  1812.  
  1813.  
  1814. end
  1815. end
  1816.  
  1817. end)
  1818. bone.CFrame = char.HumanoidRootPart.CFrame
  1819. bone.CanCollide = false
  1820. bone.Material = "SmoothPlastic"
  1821. bone.BrickColor = bc("White")
  1822. bone.Anchored = true
  1823. 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)))
  1824. local zxc = Instance.new("SpecialMesh",bone)
  1825. zxc.MeshType = "FileMesh"
  1826. zxc.Scale = Vector3.new(0.03, 0.03, 0.03)
  1827. zxc.MeshId = "http://www.roblox.com/asset/?id=921085633"
  1828. wait()
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834. local gdisp = coroutine.wrap(function()
  1835. bonehit3nd:Play()
  1836. for i = 1,5 do
  1837. bone.CFrame = bone.CFrame*CFrame.new(0,1,0)
  1838. wait()
  1839. end
  1840. wait(1)
  1841. for i = 1, 9 do
  1842. wait(.1)
  1843. bone.Transparency = bone.Transparency + .3
  1844. end
  1845. bone:Destroy()
  1846. end)
  1847. gdisp()
  1848. end
  1849. end
  1850. wait(1)
  1851. debounce = true
  1852. end
  1853. end
  1854. AheadShotsdebounce = true
  1855. function AheadShots()
  1856. if equiped == true then
  1857. if AheadShotsdebounce == true then
  1858. AheadShotsdebounce = false
  1859. local targetahead = new("Part",char)
  1860. targetahead.Shape = "Ball"
  1861. targetahead.Anchored = true
  1862. targetahead.CanCollide = false
  1863. targetahead.BrickColor = bc("Toothpaste")
  1864. targetahead.Material = "Neon"
  1865. targetahead.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)
  1866. targetahead.Transparency = 1
  1867.  
  1868. local targetahead2 = new("Part",char)
  1869. targetahead2.Shape = "Ball"
  1870. targetahead2.CanCollide = false
  1871. targetahead2.Anchored = true
  1872. targetahead2.BrickColor = bc("Toothpaste")
  1873. targetahead2.Material = "Neon"
  1874. targetahead2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-30)
  1875. targetahead2.Transparency = 1
  1876.  
  1877. local targetahead3 = new("Part",char)
  1878. targetahead3.Shape = "Ball"
  1879. targetahead3.Anchored = true
  1880. targetahead3.CanCollide = false
  1881. targetahead3.BrickColor = bc("Toothpaste")
  1882. targetahead3.Material = "Neon"
  1883. targetahead3.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-50)
  1884. targetahead3.Transparency = 1
  1885.  
  1886. local Blasta1 = new("Part",char)
  1887. Blasta1.Size = v3(1,1,1)
  1888. Blasta1.CanCollide = false
  1889. Blasta1.Name = "Blasta1"
  1890. Blasta1.Material = "Neon"
  1891. Blasta1.BrickColor = bc("White")
  1892. Blasta1.Shape = "Ball"
  1893. Blasta1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  1894. Blasta1.Anchored = false
  1895.  
  1896.  
  1897.  
  1898. local zxc = Instance.new("SpecialMesh",Blasta1)
  1899. zxc.MeshType = "FileMesh"
  1900. zxc.Scale = Vector3.new(2,2,2)
  1901. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1902.  
  1903. local blasta1bg=Instance.new("BodyGyro",Blasta1)
  1904. blasta1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1905. blasta1bg.D=400
  1906.  
  1907. blasta1bp = Instance.new("BodyPosition", Blasta1)
  1908. local Blasta2 = new("Part",char)
  1909. Blasta2.Size = v3(1,1,1)
  1910. Blasta2.CanCollide = false
  1911. Blasta2.Name = "Blasta2"
  1912. Blasta2.Material = "Neon"
  1913. Blasta2.BrickColor = bc("White")
  1914. Blasta2.Shape = "Ball"
  1915. Blasta2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  1916. Blasta2.Anchored = false
  1917.  
  1918.  
  1919.  
  1920. local zxc = Instance.new("SpecialMesh",Blasta2)
  1921. zxc.MeshType = "FileMesh"
  1922. zxc.Scale = Vector3.new(2,2,2)
  1923. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1924.  
  1925. local Blasta2bg=Instance.new("BodyGyro",Blasta2)
  1926. Blasta2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1927. Blasta2bg.D=400
  1928.  
  1929. Blasta2bp = Instance.new("BodyPosition", Blasta2)
  1930. local Blasta3 = new("Part",char)
  1931. Blasta3.Size = v3(1,1,1)
  1932. Blasta3.CanCollide = false
  1933. Blasta3.Name = "Blasta3"
  1934. Blasta3.Material = "Neon"
  1935. Blasta3.BrickColor = bc("White")
  1936. Blasta3.Shape = "Ball"
  1937. Blasta3.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  1938. Blasta3.Anchored = false
  1939.  
  1940.  
  1941.  
  1942. local zxc = Instance.new("SpecialMesh",Blasta3)
  1943. zxc.MeshType = "FileMesh"
  1944. zxc.Scale = Vector3.new(2,2,2)
  1945. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1946.  
  1947. local Blasta3bg=Instance.new("BodyGyro",Blasta3)
  1948. Blasta3bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1949. Blasta3bg.D=400
  1950.  
  1951. Blasta3bp = Instance.new("BodyPosition", Blasta3)
  1952. local Blasta4 = new("Part",char)
  1953. Blasta4.Size = v3(1,1,1)
  1954. Blasta4.CanCollide = false
  1955. Blasta4.Name = "Blasta4"
  1956. Blasta4.Material = "Neon"
  1957. Blasta4.BrickColor = bc("White")
  1958. Blasta4.Shape = "Ball"
  1959. Blasta4.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  1960. Blasta4.Anchored = false
  1961.  
  1962.  
  1963.  
  1964. local zxc = Instance.new("SpecialMesh",Blasta4)
  1965. zxc.MeshType = "FileMesh"
  1966. zxc.Scale = Vector3.new(2,2,2)
  1967. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1968.  
  1969. local Blasta4bg=Instance.new("BodyGyro",Blasta4)
  1970. Blasta4bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1971. Blasta4bg.D=400
  1972.  
  1973. Blasta4bp = Instance.new("BodyPosition", Blasta4)
  1974. local Blasta5 = new("Part",char)
  1975. Blasta5.Size = v3(1,1,1)
  1976. Blasta5.CanCollide = false
  1977. Blasta5.Name = "Blasta5"
  1978. Blasta5.Material = "Neon"
  1979. Blasta5.BrickColor = bc("White")
  1980. Blasta5.Shape = "Ball"
  1981. Blasta5.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  1982. Blasta5.Anchored = false
  1983.  
  1984.  
  1985.  
  1986. local zxc = Instance.new("SpecialMesh",Blasta5)
  1987. zxc.MeshType = "FileMesh"
  1988. zxc.Scale = Vector3.new(2,2,2)
  1989. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  1990.  
  1991. local Blasta5bg=Instance.new("BodyGyro",Blasta5)
  1992. Blasta5bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  1993. Blasta5bg.D=400
  1994.  
  1995. Blasta5bp = Instance.new("BodyPosition", Blasta5)
  1996.  
  1997. local Blasta6 = new("Part",char)
  1998. Blasta6.Size = v3(1,1,1)
  1999. Blasta6.CanCollide = false
  2000. Blasta6.Name = "Blasta6"
  2001. Blasta6.Material = "Neon"
  2002. Blasta6.BrickColor = bc("White")
  2003. Blasta6.Shape = "Ball"
  2004. Blasta6.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2005. Blasta6.Anchored = false
  2006.  
  2007.  
  2008.  
  2009. local zxc = Instance.new("SpecialMesh",Blasta6)
  2010. zxc.MeshType = "FileMesh"
  2011. zxc.Scale = Vector3.new(2,2,2)
  2012. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2013.  
  2014. local Blasta6bg=Instance.new("BodyGyro",Blasta6)
  2015. Blasta6bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2016. Blasta6bg.D=400
  2017.  
  2018. Blasta6bp = Instance.new("BodyPosition", Blasta6)
  2019.  
  2020. for i = 1,50 do
  2021. blasta1bp.Position=(targetahead.CFrame*CFrame.new(20,2,0)).p
  2022. blasta1bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
  2023. Blasta2bp.Position=(targetahead2.CFrame*CFrame.new(20,2,0)).p
  2024. Blasta2bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
  2025.  
  2026. Blasta3bp.Position=(targetahead3.CFrame*CFrame.new(20,2,0)).p
  2027. Blasta3bg.CFrame=CFrame.new(Blasta3.Position,targetahead3.Position)
  2028.  
  2029. Blasta4bp.Position=(targetahead.CFrame*CFrame.new(-20,2,0)).p
  2030. Blasta4bg.CFrame=CFrame.new(Blasta4.Position,targetahead.Position)
  2031.  
  2032. Blasta5bp.Position=(targetahead2.CFrame*CFrame.new(-20,2,0)).p
  2033. Blasta5bg.CFrame=CFrame.new(Blasta5.Position,targetahead2.Position)
  2034.  
  2035. Blasta6bp.Position=(targetahead3.CFrame*CFrame.new(-20,2,0)).p
  2036. Blasta6bg.CFrame=CFrame.new(Blasta6.Position,targetahead3.Position)
  2037.  
  2038. wait()
  2039. end
  2040. shootsnd:Play()
  2041. local GhastAcrossShot1 = new("Part",Blasta1)
  2042. GhastAcrossShot1.Shape = "Cylinder"
  2043. GhastAcrossShot1.Size = v3(100,5,5)
  2044. GhastAcrossShot1.BrickColor = bc("White")
  2045. GhastAcrossShot1.Material = "Neon"
  2046. GhastAcrossShot1.CanCollide = false
  2047. GhastAcrossShot1.Anchored = true
  2048. GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2049. local GhastAcrossShot2 = new("Part",Blasta2)
  2050. GhastAcrossShot2.Shape = "Cylinder"
  2051. GhastAcrossShot2.Size = v3(100,5,5)
  2052. GhastAcrossShot2.BrickColor = bc("White")
  2053. GhastAcrossShot2.Material = "Neon"
  2054. GhastAcrossShot2.CanCollide = false
  2055. GhastAcrossShot2.Anchored = true
  2056. GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2057. local GhastAcrossShot3 = new("Part",Blasta2)
  2058. GhastAcrossShot3.Shape = "Cylinder"
  2059. GhastAcrossShot3.Size = v3(100,5,5)
  2060. GhastAcrossShot3.BrickColor = bc("White")
  2061. GhastAcrossShot3.Material = "Neon"
  2062. GhastAcrossShot3.CanCollide = false
  2063. GhastAcrossShot3.Anchored = true
  2064. GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2065. local GhastAcrossShot4 = new("Part",Blasta4)
  2066. GhastAcrossShot4.Shape = "Cylinder"
  2067. GhastAcrossShot4.Size = v3(100,5,5)
  2068. GhastAcrossShot4.BrickColor = bc("White")
  2069. GhastAcrossShot4.Material = "Neon"
  2070. GhastAcrossShot4.CanCollide = false
  2071. GhastAcrossShot4.Anchored = true
  2072. GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2073. local GhastAcrossShot5 = new("Part",Blasta5)
  2074. GhastAcrossShot5.Shape = "Cylinder"
  2075. GhastAcrossShot5.Size = v3(100,5,5)
  2076. GhastAcrossShot5.BrickColor = bc("White")
  2077. GhastAcrossShot5.Material = "Neon"
  2078. GhastAcrossShot5.CanCollide = false
  2079. GhastAcrossShot5.Anchored = true
  2080. GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2081. local GhastAcrossShot6 = new("Part",Blasta5)
  2082. GhastAcrossShot6.Shape = "Cylinder"
  2083. GhastAcrossShot6.Size = v3(100,5,5)
  2084. GhastAcrossShot6.BrickColor = bc("White")
  2085. GhastAcrossShot6.Material = "Neon"
  2086. GhastAcrossShot6.CanCollide = false
  2087. GhastAcrossShot6.Anchored = true
  2088. GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2089. GhastAcrossShot1.Touched:connect(function(hit)
  2090. if hit.Parent == workspace.Base then return end
  2091.  
  2092. if hit.Parent == char then return end
  2093.  
  2094. for i,v in pairs(hit.Parent:GetChildren()) do
  2095. if v:IsA("Humanoid") then
  2096. if hdebounce == true then
  2097. hdebounce = false
  2098. for i = 1,20 do
  2099. v.Health = v.Health-2
  2100. wait(0.01)
  2101. end
  2102. local hitnumb = math.random(1,2)
  2103.  
  2104. if hitnumb == 1 then
  2105. 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)
  2106. end
  2107. if hitnumb == 2 then
  2108. 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)
  2109. end
  2110. wait(0.9)
  2111. hdebounce = true
  2112. end
  2113.  
  2114.  
  2115. end
  2116. end
  2117.  
  2118. end)
  2119. GhastAcrossShot2.Touched:connect(function(hit)
  2120. if hit.Parent == workspace.Base then return end
  2121.  
  2122. if hit.Parent == char then return end
  2123.  
  2124. for i,v in pairs(hit.Parent:GetChildren()) do
  2125. if v:IsA("Humanoid") then
  2126. if hdebounce == true then
  2127. hdebounce = false
  2128. for i = 1,20 do
  2129. v.Health = v.Health-2
  2130. wait(0.01)
  2131. end
  2132. local hitnumb = math.random(1,2)
  2133.  
  2134. if hitnumb == 1 then
  2135. 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)
  2136. end
  2137. if hitnumb == 2 then
  2138. 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)
  2139. end
  2140. wait(0.9)
  2141. hdebounce = true
  2142. end
  2143.  
  2144.  
  2145. end
  2146. end
  2147.  
  2148. end)
  2149.  
  2150. GhastAcrossShot3.Touched:connect(function(hit)
  2151. if hit.Parent == workspace.Base then return end
  2152.  
  2153. if hit.Parent == char then return end
  2154.  
  2155. for i,v in pairs(hit.Parent:GetChildren()) do
  2156. if v:IsA("Humanoid") then
  2157. if hdebounce == true then
  2158. hdebounce = false
  2159. for i = 1,20 do
  2160. v.Health = v.Health-2
  2161. wait(0.01)
  2162. end
  2163. local hitnumb = math.random(1,2)
  2164.  
  2165. if hitnumb == 1 then
  2166. 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)
  2167. end
  2168. if hitnumb == 2 then
  2169. 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)
  2170. end
  2171. wait(0.9)
  2172. hdebounce = true
  2173. end
  2174.  
  2175.  
  2176. end
  2177. end
  2178.  
  2179. end)
  2180. GhastAcrossShot4.Touched:connect(function(hit)
  2181. if hit.Parent == workspace.Base then return end
  2182.  
  2183. if hit.Parent == char then return end
  2184.  
  2185. for i,v in pairs(hit.Parent:GetChildren()) do
  2186. if v:IsA("Humanoid") then
  2187. if hdebounce == true then
  2188. hdebounce = false
  2189. for i = 1,20 do
  2190. v.Health = v.Health-2
  2191. wait(0.01)
  2192. end
  2193. local hitnumb = math.random(1,2)
  2194.  
  2195. if hitnumb == 1 then
  2196. 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)
  2197. end
  2198. if hitnumb == 2 then
  2199. 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)
  2200. end
  2201. wait(0.9)
  2202. hdebounce = true
  2203. end
  2204.  
  2205.  
  2206. end
  2207. end
  2208.  
  2209. end)
  2210. GhastAcrossShot5.Touched:connect(function(hit)
  2211. if hit.Parent == workspace.Base then return end
  2212.  
  2213. if hit.Parent == char then return end
  2214.  
  2215. for i,v in pairs(hit.Parent:GetChildren()) do
  2216. if v:IsA("Humanoid") then
  2217. if hdebounce == true then
  2218. hdebounce = false
  2219. for i = 1,20 do
  2220. v.Health = v.Health-2
  2221. wait(0.01)
  2222. end
  2223. local hitnumb = math.random(1,2)
  2224.  
  2225. if hitnumb == 1 then
  2226. 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)
  2227. end
  2228. if hitnumb == 2 then
  2229. 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)
  2230. end
  2231. wait(0.9)
  2232. hdebounce = true
  2233. end
  2234.  
  2235.  
  2236. end
  2237. end
  2238.  
  2239. end)
  2240. GhastAcrossShot6.Touched:connect(function(hit)
  2241. if hit.Parent == workspace.Base then return end
  2242.  
  2243. if hit.Parent == char then return end
  2244.  
  2245. for i,v in pairs(hit.Parent:GetChildren()) do
  2246. if v:IsA("Humanoid") then
  2247. if hdebounce == true then
  2248. hdebounce = false
  2249. for i = 1,20 do
  2250. v.Health = v.Health-2
  2251. wait(0.01)
  2252. end
  2253. local hitnumb = math.random(1,2)
  2254.  
  2255. if hitnumb == 1 then
  2256. 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)
  2257. end
  2258. if hitnumb == 2 then
  2259. 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)
  2260. end
  2261. wait(0.9)
  2262. hdebounce = true
  2263. end
  2264.  
  2265.  
  2266. end
  2267. end
  2268.  
  2269. end)
  2270. wait(0.5)
  2271. for i = 1,20 do
  2272. GhastAcrossShot1.Size = GhastAcrossShot1.Size+v3(0,-1,-1)
  2273. GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2274. GhastAcrossShot1.Transparency = GhastAcrossShot1.Transparency+0.1
  2275. GhastAcrossShot2.Size = GhastAcrossShot2.Size+v3(0,-1,-1)
  2276. GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2277. GhastAcrossShot2.Transparency = GhastAcrossShot2.Transparency+0.1
  2278. GhastAcrossShot3.Size = GhastAcrossShot3.Size+v3(0,-1,-1)
  2279. GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2280. GhastAcrossShot3.Transparency = GhastAcrossShot3.Transparency+0.1
  2281. GhastAcrossShot4.Size = GhastAcrossShot4.Size+v3(0,-1,-1)
  2282. GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2283. GhastAcrossShot4.Transparency = GhastAcrossShot4.Transparency+0.1
  2284.  
  2285. GhastAcrossShot5.Size = GhastAcrossShot5.Size+v3(0,-1,-1)
  2286. GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2287. GhastAcrossShot5.Transparency = GhastAcrossShot5.Transparency+0.1
  2288. GhastAcrossShot6.Size = GhastAcrossShot6.Size+v3(0,-1,-1)
  2289. GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2290. GhastAcrossShot6.Transparency = GhastAcrossShot6.Transparency+0.1
  2291. wait()
  2292. end
  2293. GhastAcrossShot1:Destroy()
  2294. GhastAcrossShot2:Destroy()
  2295. GhastAcrossShot3:Destroy()
  2296. GhastAcrossShot4:Destroy()
  2297. GhastAcrossShot5:Destroy()
  2298. GhastAcrossShot6:Destroy()
  2299. for i = 1,20 do
  2300. Blasta1.Transparency = Blasta1.Transparency+0.1
  2301. Blasta2.Transparency = Blasta2.Transparency+0.1
  2302. Blasta3.Transparency = Blasta3.Transparency+0.1
  2303. Blasta4.Transparency = Blasta4.Transparency+0.1
  2304. Blasta5.Transparency = Blasta5.Transparency+0.1
  2305. Blasta6.Transparency = Blasta6.Transparency+0.1
  2306. wait()
  2307. end
  2308. Blasta1:Destroy()
  2309. Blasta2:Destroy()
  2310. Blasta3:Destroy()
  2311. Blasta4:Destroy()
  2312. Blasta5:Destroy()
  2313. Blasta6:Destroy()
  2314. wait(0.5)
  2315. AheadShotsdebounce = true
  2316. end
  2317. end
  2318. end
  2319. local BlasterRaindebounce = true
  2320.  
  2321. function BlasterRain()
  2322. if equiped == true then
  2323. if BlasterRaindebounce == true then
  2324. BlasterRaindebounce = false
  2325. local RainTarget1 = new("Part",char)
  2326. RainTarget1.BrickColor = bc("Really red")
  2327. RainTarget1.Shape = "Ball"
  2328. RainTarget1.Material = "Neon"
  2329. RainTarget1.Anchored = true
  2330. RainTarget1.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-20)
  2331. RainTarget1.Transparency = 1
  2332. local RainTarget2 = new("Part",char)
  2333. RainTarget2.BrickColor = bc("Really red")
  2334. RainTarget2.Shape = "Ball"
  2335. RainTarget2.Material = "Neon"
  2336. RainTarget2.Anchored = true
  2337. RainTarget2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-40)
  2338. RainTarget2.Transparency = 1
  2339. local RainBlaster1 = new("Part",char)
  2340. RainBlaster1.Size = v3(1,1,1)
  2341. RainBlaster1.CanCollide = false
  2342. RainBlaster1.Name = "RainBlaster1"
  2343. RainBlaster1.Material = "Neon"
  2344. RainBlaster1.BrickColor = bc("White")
  2345. RainBlaster1.Shape = "Ball"
  2346. RainBlaster1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2347. RainBlaster1.Anchored = false
  2348.  
  2349.  
  2350.  
  2351. local zxc = Instance.new("SpecialMesh",RainBlaster1)
  2352. zxc.MeshType = "FileMesh"
  2353. zxc.Scale = Vector3.new(2,2,2)
  2354. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2355.  
  2356. local RainBlaster1bg=Instance.new("BodyGyro",RainBlaster1)
  2357. RainBlaster1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2358. RainBlaster1bg.D=400
  2359.  
  2360. RainBlaster1bp = Instance.new("BodyPosition", RainBlaster1)
  2361.  
  2362. local RainBlaster2 = new("Part",char)
  2363. RainBlaster2.Size = v3(1,1,1)
  2364. RainBlaster2.CanCollide = false
  2365. RainBlaster2.Name = "RainBlaster1"
  2366. RainBlaster2.Material = "Neon"
  2367. RainBlaster2.BrickColor = bc("White")
  2368. RainBlaster2.Shape = "Ball"
  2369. RainBlaster2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
  2370. RainBlaster2.Anchored = false
  2371.  
  2372.  
  2373.  
  2374. local zxc = Instance.new("SpecialMesh",RainBlaster2)
  2375. zxc.MeshType = "FileMesh"
  2376. zxc.Scale = Vector3.new(2,2,2)
  2377. zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
  2378.  
  2379. local RainBlaster2bg=Instance.new("BodyGyro",RainBlaster2)
  2380. RainBlaster2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  2381. RainBlaster2bg.D=400
  2382.  
  2383. RainBlaster2bp = Instance.new("BodyPosition", RainBlaster2)
  2384.  
  2385.  
  2386. for i = 1,50 do
  2387. RainBlaster1bp.Position=(RainTarget1.CFrame*CFrame.new(0,20,0)).p
  2388. RainBlaster1bg.CFrame=CFrame.new(RainBlaster1.Position,RainTarget1.Position)
  2389.  
  2390. RainBlaster2bp.Position=(RainTarget2.CFrame*CFrame.new(0,20,0)).p
  2391. RainBlaster2bg.CFrame=CFrame.new(RainBlaster2.Position,RainTarget2.Position)
  2392. wait()
  2393. end
  2394. shootsnd:Play()
  2395. local RainBlasterShot1 = new("Part",RainBlaster1)
  2396. RainBlasterShot1.Shape = "Cylinder"
  2397. RainBlasterShot1.Size = v3(100,5,5)
  2398. RainBlasterShot1.BrickColor = bc("White")
  2399. RainBlasterShot1.Material = "Neon"
  2400. RainBlasterShot1.CanCollide = false
  2401. RainBlasterShot1.Anchored = true
  2402. RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2403.  
  2404. local RainBlasterShot2 = new("Part",RainBlaster2)
  2405. RainBlasterShot2.Shape = "Cylinder"
  2406. RainBlasterShot2.Size = v3(100,5,5)
  2407. RainBlasterShot2.BrickColor = bc("White")
  2408. RainBlasterShot2.Material = "Neon"
  2409. RainBlasterShot2.CanCollide = false
  2410. RainBlasterShot2.Anchored = true
  2411. RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2412. RainBlasterShot1.Touched:connect(function(hit)
  2413. if hit.Parent == workspace.Base then return end
  2414.  
  2415. if hit.Parent == char then return end
  2416.  
  2417. for i,v in pairs(hit.Parent:GetChildren()) do
  2418. if v:IsA("Humanoid") then
  2419. if hdebounce == true then
  2420. hdebounce = false
  2421. for i = 1,20 do
  2422. v.Health = v.Health-2
  2423. wait(0.01)
  2424. end
  2425. local hitnumb = math.random(1,2)
  2426.  
  2427. if hitnumb == 1 then
  2428. 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)
  2429. end
  2430. if hitnumb == 2 then
  2431. 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)
  2432. end
  2433. wait(0.9)
  2434. hdebounce = true
  2435. end
  2436.  
  2437.  
  2438. end
  2439. end
  2440.  
  2441. end)
  2442. RainBlasterShot2.Touched:connect(function(hit)
  2443. if hit.Parent == workspace.Base then return end
  2444.  
  2445. if hit.Parent == char then return end
  2446.  
  2447. for i,v in pairs(hit.Parent:GetChildren()) do
  2448. if v:IsA("Humanoid") then
  2449. if hdebounce == true then
  2450. hdebounce = false
  2451. for i = 1,20 do
  2452. v.Health = v.Health-2
  2453. wait(0.01)
  2454. end
  2455. local hitnumb = math.random(1,2)
  2456.  
  2457. if hitnumb == 1 then
  2458. 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)
  2459. end
  2460. if hitnumb == 2 then
  2461. 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)
  2462. end
  2463. wait(0.9)
  2464. hdebounce = true
  2465. end
  2466.  
  2467.  
  2468. end
  2469. end
  2470.  
  2471. end)
  2472.  
  2473. wait(0.5)
  2474. for i = 1,20 do
  2475. wait()
  2476. RainBlasterShot1.Size = RainBlasterShot1.Size+v3(0,-1,-1)
  2477. RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2478. RainBlasterShot1.Transparency = RainBlasterShot1.Transparency+0.1
  2479.  
  2480. RainBlasterShot2.Size = RainBlasterShot2.Size+v3(0,-1,-1)
  2481. RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
  2482. RainBlasterShot2.Transparency = RainBlasterShot2.Transparency+0.1
  2483.  
  2484. end
  2485. for i = 1,20 do
  2486. RainBlaster1.Transparency = RainBlaster1.Transparency+0.1
  2487. RainBlaster2.Transparency = RainBlaster2.Transparency+0.1
  2488. wait()
  2489. end
  2490. RainBlaster1:Destroy()
  2491. RainBlaster2:Destroy()
  2492. RainBlasterShot1:Destroy()
  2493. RainBlasterShot2:Destroy()
  2494. wait(0.5)
  2495. BlasterRaindebounce = true
  2496. end
  2497. end
  2498. end
  2499. local grabing = false
  2500.  
  2501. function grab()
  2502.  
  2503.  
  2504. local hit = mouse.Target
  2505. if hit.Parent == char then return end
  2506. for i,v in pairs(hit.Parent:GetChildren()) do
  2507. if v:IsA("Humanoid") then
  2508. v.Health = v.Health-50
  2509. local bodyp=Instance.new("BodyPosition",hit.Parent.HumanoidRootPart)
  2510. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  2511. bodyp.Position=(hit.Parent.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
  2512. wait(0.6)
  2513. bodyp:destroy()
  2514. end
  2515. end
  2516.  
  2517.  
  2518.  
  2519.  
  2520. end
  2521. mouse.KeyDown:connect(function(k)
  2522. if k == "e" then
  2523. AheadShots()
  2524. end
  2525. end)
  2526. mouse.KeyDown:connect(function(k)
  2527. if k == "y" then
  2528. grab()
  2529. end
  2530. end)
  2531. mouse.KeyDown:connect(function(k)
  2532. if k == "g" then
  2533. BlasterRain()
  2534. end
  2535. end)
  2536. mouse.KeyDown:connect(function(k)
  2537. if k == "t" then
  2538. Bones()
  2539. end
  2540. end)
  2541. mouse.KeyDown:connect(function(k)
  2542. if k == "z" then
  2543. DodgeLeft()
  2544. end
  2545. end)
  2546. mouse.KeyDown:connect(function(k)
  2547. if k == "q" then
  2548. octo()
  2549. end
  2550. end)
  2551. mouse.KeyDown:connect(function(k)
  2552. if k == "x" then
  2553. RightDodge()
  2554. end
  2555. end)
  2556. mouse.KeyDown:connect(function(k)
  2557. if k == "1" then
  2558. hum.Health = 100
  2559. end
  2560. end)
  2561. mouse.KeyDown:connect(function(k)
  2562. if k == "c" then
  2563. equip()
  2564. end
  2565. end)
  2566. mouse.KeyDown:connect(function(k)
  2567. if k == "f" then
  2568. mount()
  2569. end
  2570. end)
  2571. mouse.KeyDown:connect(function(k)
  2572. if k == "r" then
  2573. cross()
  2574. end
  2575. end)
  2576. p.Character.Humanoid.Died:connect(function()
  2577. local jkl = Instance.new("Sound",Workspace)
  2578. jkl.SoundId = "rbxassetid://427025525"
  2579. jkl.Volume = 10
  2580. jkl:Play()
  2581.  
  2582. for _, V in pairs(char:getChildren()) do
  2583. if V:isA("BasePart") then
  2584. V.Transparency = 1
  2585. elseif V:IsA("Accessory") and V:FindFirstChild("Handle") then
  2586. V.Handle.Transparency = 1
  2587. end
  2588. end
  2589. char.Head.face:destroy()
  2590. for i = 1,50 do
  2591. RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
  2592. LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
  2593.  
  2594. dust = Instance.new("Part")
  2595. dust.Locked = true
  2596. dust.Size = Vector3.new(0.1,0.1,0.1)
  2597. dust.BrickColor = BrickColor.new("White")
  2598. dust.Transparency = 0
  2599. dust.TopSurface = "Smooth"
  2600. dust.BottomSurface = "Smooth"
  2601. dust.CFrame = char.HumanoidRootPart.CFrame
  2602. dust.CanCollide = true
  2603. dust.Reflectance = 0.1
  2604. dust.Material = "Neon"
  2605. dust.Parent = char
  2606. dust.Anchored = false
  2607. end
  2608. end)
  2609.  
  2610.  
  2611.  
  2612.  
  2613. DayNightCycle = true --[1] Cycles through day and night.
  2614.  
  2615. DynamicLighting = true --[2] Give your game a dynamic look?
  2616. SimulatedShadows = true --[3] Make the shadows stand out. (Enable [2] for this to work)
  2617.  
  2618. DarkAmbient = true --[4] Gives your game darkness, great for zombie games.
  2619. AmbientBrightness = 55 --[5] Number Must between 0 to 255. (Enable [2] and [4] for this to work)
  2620.  
  2621. Fog = true --[6] Give your game foggy look.
  2622. FogDistance = 1500 --[7] How far will the fog be away from you. (Enable [6] for this to work)
  2623. ---------------------------------------------------------------------------------------------------------------
  2624.  
  2625. if Fog then
  2626. game:GetService("Lighting").FogEnd = FogDistance
  2627. end
  2628.  
  2629. if DarkAmbient and DynamicLighting then
  2630. game:GetService("Lighting").OutdoorAmbient = Color3.new(AmbientBrightness/255, AmbientBrightness/255, AmbientBrightness/255)
  2631. end
  2632.  
  2633. if DynamicLighting then
  2634. game:GetService("Lighting").GlobalShadows = true
  2635. if SimulatedShadows then
  2636. game:GetService("Lighting").Brightness = 1.5
  2637. game:GetService("Lighting").Ambient = Color3.new(0/255, 0/255, 0/255)
  2638. game:GetService("Lighting").ShadowColor = Color3.new(61/255, 61/255, 61/255)
  2639. end
  2640. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement