carlosname

Untitled

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