Advertisement
Prozanity

Untitled

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