Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---GhasterBlasters by xXVipergamerXx1-----
- ---MUST BE R15 TO USE!!!----
- local num = 0
- local p = game:GetService("Players").LocalPlayer
- local char = p.Character
- local rad = math.rad
- local hum = char.Humanoid
- ---------------------------------------------------
- local LeftUpperArm = char.LeftUpperArm
- local LeftShoulder = char.LeftUpperArm.LeftShoulder
- local LeftLowerArm = char.LeftLowerArm
- local LeftElbow = char.LeftLowerArm.LeftElbow
- --------------------------------------------------------
- local LeftUpperLeg = char.LeftUpperLeg
- local LeftHip = char.LeftUpperLeg.LeftHip
- local LeftLowerLeg = char.LeftLowerLeg
- local LeftKnee = char.LeftLowerLeg.LeftKnee
- ----------------------------------------------------------
- local RightUpperArm = char.RightUpperArm
- local RightShoulder = char.RightUpperArm.RightShoulder
- local RightLowerArm = char.RightLowerArm
- local RightElbow = char.RightLowerArm.RightElbow
- ----------------------------------------------------------
- local RightUpperLeg = char.RightUpperLeg
- local RightHip = char.RightUpperLeg.RightHip
- local RightLowerLeg = char.RightLowerLeg
- local RightKnee = char.RightLowerLeg.RightKnee
- ----------------------------------------------------------
- local UpperTorso = char.UpperTorso
- local LowerTorso = char.LowerTorso
- local Root = char.LowerTorso.Root
- --------------------------------------------
- local Head = char.Head
- local Neck = char.Head.Neck
- local RootPart = char.HumanoidRootPart
- local LeftHand = char.LeftHand
- local RightHand = char.RightHand
- local LeftFoot = char.LeftFoot
- local RightFoot = char.RightFoot
- ---------------------------------------------
- hum:SetStateEnabled("Dead",true)
- hum:SetStateEnabled(Enum.HumanoidStateType.Dead, true)
- local v3 = Vector3.new
- local idle = true
- local walk = true
- local walk1 = true
- local walkon = true
- local ns = NumberSequence.new
- local new = Instance.new
- local nr = NumberRange.new
- local bc =BrickColor.new
- local UpperTorso = char.UpperTorso
- local Waist = char.UpperTorso.Waist
- local mouse = p:GetMouse()
- local Blasters = true
- local debounce = true
- hum.MaxHealth = 100000
- hum.Health = hum.MaxHealth
- local equiped = false
- new("ForceField",char).Visible = false
- local Create = LoadLibrary("RbxUtility").Create
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChild("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- if blocked == false then
- h.Health = h.Health - Damage
- 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)
- else
- h.Health = h.Health - (Damage / 2)
- 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)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "DarkUp" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- swait()
- Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
- end
- end))
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Create("ObjectValue"){
- Name = "creator",
- Value = Player,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "SciFi",
- TextColor3 = Color,
- TextScaled = true,
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= Player.Name then
- Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
- end
- end
- end
- end
- end
- EffectModel = Create("Model"){
- Parent = Character,
- Name = "Effects",
- }
- local Megalo = new("Sound",game.workspace.Camera)
- local effectaa = new("ChorusSoundEffect",Megalo)
- effectaa.Depth = 0.1
- effectaa.Mix = 0.2
- Megalo.SoundId = "rbxassetid://1101519222"
- Megalo.Volume = 4
- Megalo.Pitch = 1.2
- Megalo.Looped = true
- Megalo.TimePosition = 0
- Megalo:Play()
- local shootsnd = new("Sound",char)
- shootsnd.SoundId = "rbxassetid://340722848"
- shootsnd.Volume = 10
- shootsnd.Pitch = 1
- local hdebounce = true
- local RGhasterBlaster = new("Part",char)
- RGhasterBlaster.Size = v3(1,1,1)
- RGhasterBlaster.Name = "RGhasterBlaster"
- RGhasterBlaster.CanCollide = false
- RGhasterBlaster.Material = "Neon"
- RGhasterBlaster.Shape = "Ball"
- RGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame
- RGhasterBlaster.Anchored = false
- RGhasterBlaster.BrickColor = bc("White")
- RGhasterBlaster.Transparency = 1
- local LGhasterBlaster = new("Part",char)
- LGhasterBlaster.Size = v3(1,1,1)
- LGhasterBlaster.CanCollide = false
- LGhasterBlaster.Name = "LGhasterBlaster"
- LGhasterBlaster.Material = "Neon"
- LGhasterBlaster.BrickColor = bc("White")
- LGhasterBlaster.Shape = "Ball"
- LGhasterBlaster.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- LGhasterBlaster.Anchored = false
- LGhasterBlaster.Transparency = 1
- local zxc = Instance.new("SpecialMesh",LGhasterBlaster)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local zxc = Instance.new("SpecialMesh",RGhasterBlaster)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local lgbbg=Instance.new("BodyGyro",LGhasterBlaster)
- lgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- lgbbg.D=400
- lgbbp = Instance.new("BodyPosition", LGhasterBlaster)
- local rgbbg=Instance.new("BodyGyro",RGhasterBlaster)
- rgbbg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- rgbbg.D=400
- rgbbp = Instance.new("BodyPosition", RGhasterBlaster)
- spawn(function()
- while Blasters == true do
- rgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(10,5,0)).p
- lgbbp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-10,5,0)).p
- rgbbg.CFrame=CFrame.new(RGhasterBlaster.Position,mouse.Hit.p)
- lgbbg.CFrame=CFrame.new(LGhasterBlaster.Position,mouse.Hit.p)
- wait()
- end
- end)
- function equip()
- if equiped == false then
- equiped = true
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- for i = 1,20 do
- 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
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(5.386), 0, math.rad(88.293)),.3)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(19.137),rad(0),rad(0)),.3)--LeftLowerArm
- RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(31.971),rad(0),rad(0)),.3)--RightLowerArm
- 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
- 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
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-10.886),rad(0),rad(0)),.3)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-12.49),rad(0),rad(0)),.3)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.3)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(21.658),rad(0),rad(0)),.3)--Head
- wait()
- end
- for i = 1,20 do
- LGhasterBlaster.Transparency = LGhasterBlaster.Transparency-0.1
- RGhasterBlaster.Transparency = RGhasterBlaster.Transparency-0.1
- wait()
- end
- hum.WalkSpeed = 15
- hum.JumpPower = 50
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0 = Instance.new("ParticleEmitter")
- ParticleEmitter0.Name = "Fire"
- ParticleEmitter0.Parent = char.RightHand
- ParticleEmitter0.Transparency = NumberSequence.new(0,0,0,0,1,0)
- ParticleEmitter0.Rotation = NumberRange.new(-90, 90)
- ParticleEmitter0.Archivable = false
- ParticleEmitter0.Size = NumberSequence.new(0.75,0)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.0980392, 0.956863, 1),Color3.new(0.0980392, 0.956863, 1))
- ParticleEmitter0.LightEmission = 1
- ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=258126401"
- ParticleEmitter0.ZOffset = 1
- ParticleEmitter0.Lifetime = NumberRange.new(0.5, 0.5)
- ParticleEmitter0.Rate = 100
- ParticleEmitter0.RotSpeed = NumberRange.new(-90, 90)
- ParticleEmitter0.Speed = NumberRange.new(0.10000000149012, 0.10000000149012)
- ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.0980392, 0.956863, 1),Color3.new(0.0980392, 0.956863, 1))
- for i = 1,20 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
- RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- wait()
- end
- else
- equiped = false
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- for i = 1,20 do
- 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
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(math.rad(44.576), math.rad(80.787), 0),.1)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(92.934),rad(0),rad(0)),.1)--LeftLowerArm
- 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
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(59.588),rad(0),rad(0)),.1)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(1.089),rad(0),rad(0)),.1)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-38.044),rad(0),rad(0)),.1)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-17.704),rad(0),rad(0)),.1)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0, -0.206, 0.078)*CFrame.Angles(rad(-20.856),rad(0),rad(0)),.1)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(18.564),rad(0),rad(0)),.1)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- wait()
- end
- ParticleEmitter0:Destroy()
- for i = 1,20 do
- LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
- RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
- wait()
- end
- for i = 1,20 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperArm
- LeftElbow.C0 = LeftElbow.C0:lerp(CFrame.new(LeftElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerArm
- RightElbow.C0 = RightElbow.C0:lerp(CFrame.new(RightElbow.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightLowerArm
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Torso
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightFoot.RightAnkle.C0 = RightFoot.RightAnkle.C0:lerp(CFrame.new( RightFoot.RightAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftFoot.LeftAnkle.C0 = LeftFoot.LeftAnkle.C0:lerp(CFrame.new( LeftFoot.LeftAnkle.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- RightHand.RightWrist.C0 = RightHand.RightWrist.C0:lerp(CFrame.new( RightHand.RightWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- LeftHand.LeftWrist.C0 = LeftHand.LeftWrist.C0:lerp(CFrame.new( LeftHand.LeftWrist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- Waist.C0 = Waist.C0:lerp(CFrame.new( Waist.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.1)--Head
- wait()
- end
- hum.WalkSpeed = 15
- hum.JumpPower = 50
- end
- end
- function beam()
- if debounce == true then
- if equiped == true then
- debounce = false
- local finalflash = false
- local finalgo = 0
- local finalgo1 = 6
- game:GetService("RunService").RenderStepped:connect(function()
- if finalflash == true then
- finalgo = finalgo + 1
- finalgo1 = finalgo1 + 2
- char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- end
- end)
- shootsnd:Play()
- local RayThing = Instance.new("Part",char)
- RayThing.Size = Vector3.new(5,1,1)
- RayThing.Shape = "Cylinder"
- RayThing.Name = "FinalFlash"
- RayThing.CanCollide = false
- RayThing.Transparency = 0
- RayThing.Anchored = true
- RayThing.Material = "Neon"
- RayThing.BrickColor = BrickColor.new("White")
- local inRayThing = Instance.new("Part",char)
- inRayThing.Size = Vector3.new(5,1,1)
- inRayThing.Transparency = 1
- inRayThing.Shape = "Cylinder"
- inRayThing.Name = "inFinalFlash"
- inRayThing.CanCollide = false
- inRayThing.Anchored = true
- inRayThing.Material = "Neon"
- inRayThing.BrickColor = BrickColor.new("White")
- inRayThing.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- 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)
- v.Health = v.Health - 30
- wait(1)
- hdebounce = true
- end
- end
- end
- end)
- finalflash = true
- wait(0.5)
- finalflash = false
- for i = 1,10 do
- char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
- char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
- char.FinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- char.inFinalFlash.CFrame = RGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + RGhasterBlaster.CFrame.lookVector * finalgo
- wait()
- end
- inRayThing:Destroy()
- RayThing:Destroy()
- finalgo = 0
- finalgo1 = 6
- debounce = true
- end
- end
- end
- function beam2()
- if equiped == true then
- if debounce == true then
- debounce = false
- local finalflash = false
- local finalgo = 0
- local finalgo1 = 6
- game:GetService("RunService").RenderStepped:connect(function()
- if finalflash == true then
- finalgo = finalgo + 1
- finalgo1 = finalgo1 + 2
- char.FinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.inFinalFlash.Size = Vector3.new(finalgo1,2,2)
- char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- end
- end)
- shootsnd:Play()
- local RayThing = Instance.new("Part",char)
- RayThing.Size = Vector3.new(5,1,1)
- RayThing.Shape = "Cylinder"
- RayThing.Name = "FinalFlash"
- RayThing.CanCollide = false
- RayThing.Transparency = 0
- RayThing.Anchored = true
- RayThing.Material = "Neon"
- RayThing.BrickColor = BrickColor.new("White")
- local inRayThing = Instance.new("Part",char)
- inRayThing.Size = Vector3.new(10,1,1)
- inRayThing.Transparency = 1
- inRayThing.Shape = "Cylinder"
- inRayThing.Name = "inFinalFlash"
- inRayThing.CanCollide = false
- inRayThing.Anchored = true
- inRayThing.Material = "Neon"
- inRayThing.BrickColor = BrickColor.new("White")
- RayThing.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb = math.random(1,2)
- v.Health = v.Health - math.random(10,20)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(1)
- hdebounce = true
- end
- end
- end
- end)
- finalflash = true
- wait(0.5)
- finalflash = false
- for i = 1,10 do
- char.FinalFlash.Size = char.FinalFlash.Size+Vector3.new(0,-1,0)
- char.FinalFlash.Transparency = char.FinalFlash.Transparency+0.05
- char.inFinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- char.FinalFlash.CFrame = LGhasterBlaster.CFrame * CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(90),0) + LGhasterBlaster.CFrame.lookVector * finalgo
- wait()
- end
- inRayThing:Destroy()
- RayThing:Destroy()
- finalgo = 0
- finalgo1 = 6
- debounce = true
- end
- end
- end
- mounted = false
- function mount()
- if equiped == true then
- if mounted == false then
- mounted = true
- char.Humanoid.PlatformStand = true
- local mountw = new("Weld",RGhasterBlaster)
- mountw.Part0 = char.HumanoidRootPart
- mountw.Part1 = RGhasterBlaster
- mountw.Name = "mountw"
- mountw.C1 = CFrame.new(0,3,0)
- for i = 1,5 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperArm
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(70),rad(0),rad(0)),.5)--Head
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(90),rad(0),rad(0)),.5)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(-90),rad(0),rad(0)),.5)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(-170),rad(0),rad(0)),.1)--Torso
- wait()
- end
- elseif mounted == true then
- mounted = false
- for i = 1,5 do
- LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5) --LeftUpperArm
- RightShoulder.C0 = RightShoulder.C0:lerp(CFrame.new(RightShoulder.C0 .p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperArm
- Neck.C0 = Neck.C0:lerp(CFrame.new( Neck.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Head
- LeftHip.C0 = LeftHip.C0:lerp(CFrame.new(LeftHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftUpperLeg
- RightHip.C0 = RightHip.C0:lerp(CFrame.new(RightHip.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
- LeftKnee.C0 = LeftKnee.C0:lerp(CFrame.new( LeftKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--LeftLowerLeg
- RightKnee.C0 = RightKnee.C0:lerp(CFrame.new(RightKnee.C0.p)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--RightUpperLeg
- Root.C0 = Root.C0:lerp(CFrame.new(0,0,0)*CFrame.Angles(rad(0),rad(0),rad(0)),.5)--Torso
- wait()
- end
- char.Humanoid.PlatformStand = false
- RGhasterBlaster.mountw:destroy()
- RGhasterBlaster.CFrame = char.LeftHand.CFrame
- end
- end
- end
- local srot = 0
- mouse.Button1Down:connect(function()
- ral = math.random(1,2)
- if ral == 1 then
- beam()
- end
- if ral == 2 then
- beam2()
- end
- end)
- function cross()
- if equiped == true then
- if debounce == true then
- debounce = false
- local targeta = new("Part",char)
- targeta.Position = mouse.Hit.p
- targeta.Anchored = true
- targeta.CanCollide = false
- targeta.Transparency = 1
- local CrossGhast1 = new("Part",char)
- CrossGhast1.CanCollide = false
- CrossGhast1.Anchored = false
- CrossGhast1.Size = v3(1,1,1)
- CrossGhast1.Material = "Neon"
- CrossGhast1.BrickColor = bc("White")
- CrossGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhast1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBP = Instance.new("BodyPosition",CrossGhast1)
- PointBP.Position = (targeta.CFrame*CFrame.new(20,1,0)).p
- PointBP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBG=Instance.new("BodyGyro",CrossGhast1)
- PointBG.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBG.D=400
- local CrossGhast2 = new("Part",char)
- CrossGhast2.CanCollide = false
- CrossGhast2.Anchored = false
- CrossGhast2.Size = v3(1,1,1)
- CrossGhast2.Material = "Neon"
- CrossGhast2.BrickColor = bc("White")
- CrossGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhast2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBP2 = Instance.new("BodyPosition",CrossGhast2)
- PointBP2.Position = (targeta.CFrame*CFrame.new(-20,1,0)).p
- PointBP2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBG2=Instance.new("BodyGyro",CrossGhast2)
- PointBG2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBG2.D=400
- local CrossGhast3 = new("Part",char)
- CrossGhast3.CanCollide = false
- CrossGhast3.Anchored = false
- CrossGhast3.Size = v3(1,1,1)
- CrossGhast3.Material = "Neon"
- CrossGhast3.BrickColor = bc("White")
- CrossGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhast3)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBP3 = Instance.new("BodyPosition",CrossGhast3)
- PointBP3.Position = (targeta.CFrame*CFrame.new(0,1,-20)).p
- PointBP3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBG3=Instance.new("BodyGyro",CrossGhast3)
- PointBG3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBG3.D=400
- local CrossGhasta = new("Part",char)
- CrossGhasta.CanCollide = false
- CrossGhasta.Anchored = false
- CrossGhasta.Size = v3(1,1,1)
- CrossGhasta.Material = "Neon"
- CrossGhasta.BrickColor = bc("White")
- CrossGhasta.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",CrossGhasta)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.csdom/asset/?id=920580395"
- PointBPa = Instance.new("BodyPosition",CrossGhasta)
- PointBPa.Position = (targeta.CFrame*CFrame.new(0,1,20)).p
- PointBPa.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGa=Instance.new("BodyGyro",CrossGhasta)
- PointBGa.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGa.D=400
- for i = 1,50 do
- PointBG.CFrame=CFrame.new(CrossGhast1.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- PointBG2.CFrame=CFrame.new(CrossGhast2.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- PointBG3.CFrame=CFrame.new(CrossGhast3.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- PointBGa.CFrame=CFrame.new(CrossGhasta.Position,targeta.Position)*CFrame.Angles(0.1,0,0)
- wait()
- end
- shootsnd:Play()
- local GhastShot1 = new("Part",CrossGhast1)
- GhastShot1.Shape = "Cylinder"
- GhastShot1.Size = v3(100,5,5)
- GhastShot1.BrickColor = bc("White")
- GhastShot1.Material = "Neon"
- GhastShot1.CanCollide = false
- GhastShot1.Anchored = true
- GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShot2 = new("Part",CrossGhast1)
- GhastShot2.Shape = "Cylinder"
- GhastShot2.Size = v3(100,5,5)
- GhastShot2.BrickColor = bc("White")
- GhastShot2.Material = "Neon"
- GhastShot2.CanCollide = false
- GhastShot2.Anchored = true
- GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShot3 = new("Part",CrossGhast1)
- GhastShot3.Shape = "Cylinder"
- GhastShot3.Size = v3(100,5,5)
- GhastShot3.BrickColor = bc("White")
- GhastShot3.Material = "Neon"
- GhastShot3.CanCollide = false
- GhastShot3.Anchored = true
- GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShota = new("Part",CrossGhast1)
- GhastShota.Shape = "Cylinder"
- GhastShota.Size = v3(100,5,5)
- GhastShota.BrickColor = bc("White")
- GhastShota.Material = "Neon"
- GhastShota.CanCollide = false
- GhastShota.Anchored = true
- GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShota.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShot1.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShot2.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShot3.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- local hitnumb2 = math.random(1,2)
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.2)
- for i = 1,10 do
- GhastShot1.Size = GhastShot1.Size+v3(0,-1,-1)
- GhastShot2.Size = GhastShot2.Size+v3(0,-1,-1)
- GhastShot3.Size = GhastShot3.Size+v3(0,-1,-1)
- GhastShota.Size = GhastShota.Size+v3(0,-1,-1)
- GhastShot1.CFrame = CrossGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShot2.CFrame = CrossGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShot3.CFrame = CrossGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShota.CFrame = CrossGhasta.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShot1.Transparency = GhastShot1.Transparency+0.1
- GhastShot2.Transparency = GhastShot2.Transparency+0.1
- GhastShot3.Transparency = GhastShot3.Transparency+0.1
- GhastShota.Transparency = GhastShota.Transparency+0.1
- wait()
- end
- wait(1)
- for i = 1,10 do
- CrossGhast2.Transparency = CrossGhast2.Transparency+0.1
- CrossGhast1.Transparency = CrossGhast1.Transparency+0.1
- CrossGhasta.Transparency = CrossGhasta.Transparency+0.1
- CrossGhast3.Transparency = CrossGhast3.Transparency+0.1
- wait()
- end
- CrossGhast1:destroy()
- CrossGhast2:destroy()
- CrossGhast3:destroy()
- CrossGhasta:destroy()
- wait(1)
- debounce = true
- end
- end
- end
- local dodgedebounce = true
- function DodgeLeft()
- if dodgedebounce == true then
- dodgedebounce = false
- local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
- local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
- wait(0.8)
- bodyp.Position=currentpos
- wait(0.5)
- bodyp:Destroy()
- wait(1)
- dodgedebounce = true
- end
- end
- function RightDodge()
- if dodgedebounce == true then
- dodgedebounce = false
- local currentpos=Vector3.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z)
- local bodyp=Instance.new("BodyPosition",char.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(char.HumanoidRootPart.CFrame*CFrame.new(15,0,0)).p
- wait(0.8)
- bodyp.Position=currentpos
- wait(0.5)
- bodyp:Destroy()
- wait(1)
- dodgedebounce = true
- end
- end
- function octo()
- if equiped == true then
- if debounce == true then
- debounce = false
- local target2 = new("Part",char)
- target2.Position = mouse.Hit.p
- target2.Anchored = true
- target2.CanCollide = false
- target2.Transparency = 1
- local OctoGhast1 = new("Part",char)
- OctoGhast1.CanCollide = false
- OctoGhast1.Anchored = false
- OctoGhast1.Size = v3(1,1,1)
- OctoGhast1.Material = "Neon"
- OctoGhast1.BrickColor = bc("White")
- OctoGhast1.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto1 = Instance.new("BodyPosition",OctoGhast1)
- PointBPOcto1.Position = (target2.CFrame*CFrame.new(20,1,0)).p
- PointBPOcto1.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto1=Instance.new("BodyGyro",OctoGhast1)
- PointBGOcto1.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto1.D=400
- local OctoGhast2 = new("Part",char)
- OctoGhast2.CanCollide = false
- OctoGhast2.Anchored = false
- OctoGhast2.Size = v3(1,1,1)
- OctoGhast2.Material = "Neon"
- OctoGhast2.BrickColor = bc("White")
- OctoGhast2.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto2 = Instance.new("BodyPosition",OctoGhast2)
- PointBPOcto2.Position = (target2.CFrame*CFrame.new(-20,1,0)).p
- PointBPOcto2.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto2=Instance.new("BodyGyro",OctoGhast2)
- PointBGOcto2.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto2.D=400
- local OctoGhast3 = new("Part",char)
- OctoGhast3.CanCollide = false
- OctoGhast3.Anchored = false
- OctoGhast3.Size = v3(1,1,1)
- OctoGhast3.Material = "Neon"
- OctoGhast3.BrickColor = bc("White")
- OctoGhast3.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast3)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto3 = Instance.new("BodyPosition",OctoGhast3)
- PointBPOcto3.Position = (target2.CFrame*CFrame.new(0,1,-20)).p
- PointBPOcto3.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto3=Instance.new("BodyGyro",OctoGhast3)
- PointBGOcto3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto3.D=400
- local OctoGhast4 = new("Part",char)
- OctoGhast4.CanCollide = false
- OctoGhast4.Anchored = false
- OctoGhast4.Size = v3(1,1,1)
- OctoGhast4.Material = "Neon"
- OctoGhast4.BrickColor = bc("White")
- OctoGhast4.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast4)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto4 = Instance.new("BodyPosition",OctoGhast4)
- PointBPOcto4.Position = (target2.CFrame*CFrame.new(0,1,20)).p
- PointBPOcto4.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto4=Instance.new("BodyGyro",OctoGhast4)
- PointBGOcto4.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto4.D=400
- local OctoGhast5 = new("Part",char)
- OctoGhast5.CanCollide = false
- OctoGhast5.Anchored = false
- OctoGhast5.Size = v3(1,1,1)
- OctoGhast5.Material = "Neon"
- OctoGhast5.BrickColor = bc("White")
- OctoGhast5.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast5)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto5 = Instance.new("BodyPosition",OctoGhast5)
- PointBPOcto5.Position = (target2.CFrame*CFrame.new(15,1,-20)).p
- PointBPOcto5.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto5=Instance.new("BodyGyro",OctoGhast5)
- PointBGOcto5.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto5.D=400
- local OctoGhast6 = new("Part",char)
- OctoGhast6.CanCollide = false
- OctoGhast6.Anchored = false
- OctoGhast6.Size = v3(1,1,1)
- OctoGhast6.Material = "Neon"
- OctoGhast6.BrickColor = bc("White")
- OctoGhast6.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast6)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto6 = Instance.new("BodyPosition",OctoGhast6)
- PointBPOcto6.Position = (target2.CFrame*CFrame.new(-15,1,20)).p
- PointBPOcto6.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto6=Instance.new("BodyGyro",OctoGhast6)
- PointBGOcto6.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto6.D=400
- local OctoGhast7 = new("Part",char)
- OctoGhast7.CanCollide = false
- OctoGhast7.Anchored = false
- OctoGhast7.Size = v3(1,1,1)
- OctoGhast7.Material = "Neon"
- OctoGhast7.BrickColor = bc("White")
- OctoGhast7.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast7)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto7 = Instance.new("BodyPosition",OctoGhast7)
- PointBPOcto7.Position = (target2.CFrame*CFrame.new(15,1,15)).p
- PointBPOcto7.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto7=Instance.new("BodyGyro",OctoGhast7)
- PointBGOcto7.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto7.D=400
- local OctoGhast8 = new("Part",char)
- OctoGhast8.CanCollide = false
- OctoGhast8.Anchored = false
- OctoGhast8.Size = v3(1,1,1)
- OctoGhast8.Material = "Neon"
- OctoGhast8.BrickColor = bc("White")
- OctoGhast8.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,10,0)
- local zxc = Instance.new("SpecialMesh",OctoGhast8)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- PointBPOcto8 = Instance.new("BodyPosition",OctoGhast8)
- PointBPOcto8.Position = (target2.CFrame*CFrame.new(-15,1,-15)).p
- PointBPOcto8.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- local PointBGOcto8=Instance.new("BodyGyro",OctoGhast8)
- PointBGOcto8.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- PointBGOcto8.D=400
- for i = 1,50 do
- PointBGOcto5.CFrame=CFrame.new(OctoGhast5.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto4.CFrame=CFrame.new(OctoGhast4.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto1.CFrame=CFrame.new(OctoGhast1.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto2.CFrame=CFrame.new(OctoGhast2.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto3.CFrame=CFrame.new(OctoGhast3.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto6.CFrame=CFrame.new(OctoGhast6.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto7.CFrame=CFrame.new(OctoGhast7.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- PointBGOcto8.CFrame=CFrame.new(OctoGhast8.Position,target2.Position)*CFrame.Angles(0.1,0,0)
- wait()
- end
- shootsnd:Play()
- local GhastShotaA = new("Part",OctoGhast1)
- GhastShotaA.Shape = "Cylinder"
- GhastShotaA.Size = v3(100,5,5)
- GhastShotaA.BrickColor = bc("White")
- GhastShotaA.Material = "Neon"
- GhastShotaA.CanCollide = false
- GhastShotaA.Anchored = true
- GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShotaB = new("Part",OctoGhast2)
- GhastShotaB.Shape = "Cylinder"
- GhastShotaB.Size = v3(100,5,5)
- GhastShotaB.BrickColor = bc("White")
- GhastShotaB.Material = "Neon"
- GhastShotaB.CanCollide = false
- GhastShotaB.Anchored = true
- GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShotaC = new("Part",OctoGhast3)
- GhastShotaC.Shape = "Cylinder"
- GhastShotaC.Size = v3(100,5,5)
- GhastShotaC.BrickColor = bc("White")
- GhastShotaC.Material = "Neon"
- GhastShotaC.CanCollide = false
- GhastShotaC.Anchored = true
- GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShotaD = new("Part",OctoGhast4)
- GhastShotaD.Shape = "Cylinder"
- GhastShotaD.Size = v3(100,5,5)
- GhastShotaD.BrickColor = bc("White")
- GhastShotaD.Material = "Neon"
- GhastShotaD.CanCollide = false
- GhastShotaD.Anchored = true
- GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShotaE = new("Part",OctoGhast5)
- GhastShotaE.Shape = "Cylinder"
- GhastShotaE.Size = v3(100,5,5)
- GhastShotaE.BrickColor = bc("White")
- GhastShotaE.Material = "Neon"
- GhastShotaE.CanCollide = false
- GhastShotaE.Anchored = true
- GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShotaF = new("Part",OctoGhast6)
- GhastShotaF.Shape = "Cylinder"
- GhastShotaF.Size = v3(100,5,5)
- GhastShotaF.BrickColor = bc("White")
- GhastShotaF.Material = "Neon"
- GhastShotaF.CanCollide = false
- GhastShotaF.Anchored = true
- GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShotaG = new("Part",OctoGhast7)
- GhastShotaG.Shape = "Cylinder"
- GhastShotaG.Size = v3(100,5,5)
- GhastShotaG.BrickColor = bc("White")
- GhastShotaG.Material = "Neon"
- GhastShotaG.CanCollide = false
- GhastShotaG.Anchored = true
- GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastShotaH = new("Part",OctoGhast8)
- GhastShotaH.Shape = "Cylinder"
- GhastShotaH.Size = v3(100,5,5)
- GhastShotaH.BrickColor = bc("White")
- GhastShotaH.Material = "Neon"
- GhastShotaH.CanCollide = false
- GhastShotaH.Anchored = true
- GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaA.Touched:connect(function(hit)
- if hit.Parent == char then return end
- if hit.Parent == workspace.Base then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaB.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaC.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaD.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaE.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaF.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaG.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastShotaH.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.2)
- for i = 1,20 do
- GhastShotaA.Size = GhastShotaA.Size+v3(0,-1,-1)
- GhastShotaB.Size = GhastShotaB.Size+v3(0,-1,-1)
- GhastShotaC.Size = GhastShotaC.Size+v3(0,-1,-1)
- GhastShotaD.Size = GhastShotaD.Size+v3(0,-1,-1)
- GhastShotaE.Size = GhastShotaE.Size+v3(0,-1,-1)
- GhastShotaF.Size = GhastShotaF.Size+v3(0,-1,-1)
- GhastShotaG.Size = GhastShotaG.Size+v3(0,-1,-1)
- GhastShotaH.Size = GhastShotaH.Size+v3(0,-1,-1)
- GhastShotaA.CFrame = OctoGhast1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaB.CFrame = OctoGhast2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaC.CFrame = OctoGhast3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaD.CFrame = OctoGhast4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaE.CFrame = OctoGhast5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaF.CFrame = OctoGhast6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaG.CFrame = OctoGhast7.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaH.CFrame = OctoGhast8.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastShotaA.Transparency = GhastShotaA.Transparency+0.1
- GhastShotaB.Transparency = GhastShotaB.Transparency+0.1
- GhastShotaC.Transparency = GhastShotaC.Transparency+0.1
- GhastShotaD.Transparency = GhastShotaD.Transparency+0.1
- GhastShotaE.Transparency = GhastShotaE.Transparency+0.1
- GhastShotaF.Transparency = GhastShotaF.Transparency+0.1
- GhastShotaG.Transparency = GhastShotaG.Transparency+0.1
- GhastShotaH.Transparency = GhastShotaH.Transparency+0.1
- wait()
- end
- wait(0.1)
- debounce = true
- for i = 1,20 do
- OctoGhast1.Transparency = OctoGhast1.Transparency+0.1
- OctoGhast2.Transparency = OctoGhast2.Transparency+0.1
- OctoGhast3.Transparency = OctoGhast3.Transparency+0.1
- OctoGhast4.Transparency = OctoGhast4.Transparency+0.1
- OctoGhast5.Transparency = OctoGhast5.Transparency+0.1
- OctoGhast6.Transparency = OctoGhast6.Transparency+0.1
- OctoGhast7.Transparency = OctoGhast7.Transparency+0.1
- OctoGhast8.Transparency = OctoGhast8.Transparency+0.1
- wait()
- end
- OctoGhast1:destroy()
- OctoGhast2:destroy()
- OctoGhast3:destroy()
- OctoGhast4:destroy()
- OctoGhast5:destroy()
- OctoGhast6:destroy()
- OctoGhast7:destroy()
- OctoGhast8:destroy()
- end
- end
- end
- local bonehit2nd = new("Sound",char)
- bonehit2nd.SoundId = "rbxassetid://401680588"
- bonehit2nd.Volume = 5
- local bonehit3nd = new("Sound",char)
- bonehit3nd.SoundId = "rbxassetid://306247749"
- bonehit3nd.Volume = 5
- function Bones()
- if RootPart.Velocity.y < 1 and hitfloor==nil then
- if debounce == true then
- debounce = false
- bonehit2nd:Play()
- for i = 1,30 do
- local bone = new("Part",char)
- bone.Touched:connect(function(hit)
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- padebounce = true
- if padebounce == true then
- padebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(1)
- end
- wait(0.9)
- padebounce = true
- end
- end
- end
- end)
- bone.CFrame = char.HumanoidRootPart.CFrame
- bone.CanCollide = false
- bone.Material = "SmoothPlastic"
- bone.BrickColor = bc("White")
- bone.Anchored = true
- 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)))
- local zxc = Instance.new("SpecialMesh",bone)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(0.03, 0.03, 0.03)
- zxc.MeshId = "http://www.roblox.com/asset/?id=921085633"
- wait()
- local gdisp = coroutine.wrap(function()
- bonehit3nd:Play()
- for i = 1,5 do
- bone.CFrame = bone.CFrame*CFrame.new(0,1,0)
- wait()
- end
- wait(1)
- for i = 1, 9 do
- wait(.1)
- bone.Transparency = bone.Transparency + .3
- end
- bone:Destroy()
- end)
- gdisp()
- end
- end
- wait(1)
- debounce = true
- end
- end
- AheadShotsdebounce = true
- function AheadShots()
- if equiped == true then
- if AheadShotsdebounce == true then
- AheadShotsdebounce = false
- local targetahead = new("Part",char)
- targetahead.Shape = "Ball"
- targetahead.Anchored = true
- targetahead.CanCollide = false
- targetahead.BrickColor = bc("Toothpaste")
- targetahead.Material = "Neon"
- targetahead.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)
- targetahead.Transparency = 1
- local targetahead2 = new("Part",char)
- targetahead2.Shape = "Ball"
- targetahead2.CanCollide = false
- targetahead2.Anchored = true
- targetahead2.BrickColor = bc("Toothpaste")
- targetahead2.Material = "Neon"
- targetahead2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-30)
- targetahead2.Transparency = 1
- local targetahead3 = new("Part",char)
- targetahead3.Shape = "Ball"
- targetahead3.Anchored = true
- targetahead3.CanCollide = false
- targetahead3.BrickColor = bc("Toothpaste")
- targetahead3.Material = "Neon"
- targetahead3.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-50)
- targetahead3.Transparency = 1
- local Blasta1 = new("Part",char)
- Blasta1.Size = v3(1,1,1)
- Blasta1.CanCollide = false
- Blasta1.Name = "Blasta1"
- Blasta1.Material = "Neon"
- Blasta1.BrickColor = bc("White")
- Blasta1.Shape = "Ball"
- Blasta1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta1.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local blasta1bg=Instance.new("BodyGyro",Blasta1)
- blasta1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- blasta1bg.D=400
- blasta1bp = Instance.new("BodyPosition", Blasta1)
- local Blasta2 = new("Part",char)
- Blasta2.Size = v3(1,1,1)
- Blasta2.CanCollide = false
- Blasta2.Name = "Blasta2"
- Blasta2.Material = "Neon"
- Blasta2.BrickColor = bc("White")
- Blasta2.Shape = "Ball"
- Blasta2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta2.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta2bg=Instance.new("BodyGyro",Blasta2)
- Blasta2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta2bg.D=400
- Blasta2bp = Instance.new("BodyPosition", Blasta2)
- local Blasta3 = new("Part",char)
- Blasta3.Size = v3(1,1,1)
- Blasta3.CanCollide = false
- Blasta3.Name = "Blasta3"
- Blasta3.Material = "Neon"
- Blasta3.BrickColor = bc("White")
- Blasta3.Shape = "Ball"
- Blasta3.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta3.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta3)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta3bg=Instance.new("BodyGyro",Blasta3)
- Blasta3bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta3bg.D=400
- Blasta3bp = Instance.new("BodyPosition", Blasta3)
- local Blasta4 = new("Part",char)
- Blasta4.Size = v3(1,1,1)
- Blasta4.CanCollide = false
- Blasta4.Name = "Blasta4"
- Blasta4.Material = "Neon"
- Blasta4.BrickColor = bc("White")
- Blasta4.Shape = "Ball"
- Blasta4.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta4.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta4)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta4bg=Instance.new("BodyGyro",Blasta4)
- Blasta4bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta4bg.D=400
- Blasta4bp = Instance.new("BodyPosition", Blasta4)
- local Blasta5 = new("Part",char)
- Blasta5.Size = v3(1,1,1)
- Blasta5.CanCollide = false
- Blasta5.Name = "Blasta5"
- Blasta5.Material = "Neon"
- Blasta5.BrickColor = bc("White")
- Blasta5.Shape = "Ball"
- Blasta5.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta5.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta5)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta5bg=Instance.new("BodyGyro",Blasta5)
- Blasta5bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta5bg.D=400
- Blasta5bp = Instance.new("BodyPosition", Blasta5)
- local Blasta6 = new("Part",char)
- Blasta6.Size = v3(1,1,1)
- Blasta6.CanCollide = false
- Blasta6.Name = "Blasta6"
- Blasta6.Material = "Neon"
- Blasta6.BrickColor = bc("White")
- Blasta6.Shape = "Ball"
- Blasta6.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- Blasta6.Anchored = false
- local zxc = Instance.new("SpecialMesh",Blasta6)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local Blasta6bg=Instance.new("BodyGyro",Blasta6)
- Blasta6bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- Blasta6bg.D=400
- Blasta6bp = Instance.new("BodyPosition", Blasta6)
- for i = 1,50 do
- blasta1bp.Position=(targetahead.CFrame*CFrame.new(20,2,0)).p
- blasta1bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
- Blasta2bp.Position=(targetahead2.CFrame*CFrame.new(20,2,0)).p
- Blasta2bg.CFrame=CFrame.new(Blasta2.Position,targetahead2.Position)
- Blasta3bp.Position=(targetahead3.CFrame*CFrame.new(20,2,0)).p
- Blasta3bg.CFrame=CFrame.new(Blasta3.Position,targetahead3.Position)
- Blasta4bp.Position=(targetahead.CFrame*CFrame.new(-20,2,0)).p
- Blasta4bg.CFrame=CFrame.new(Blasta4.Position,targetahead.Position)
- Blasta5bp.Position=(targetahead2.CFrame*CFrame.new(-20,2,0)).p
- Blasta5bg.CFrame=CFrame.new(Blasta5.Position,targetahead2.Position)
- Blasta6bp.Position=(targetahead3.CFrame*CFrame.new(-20,2,0)).p
- Blasta6bg.CFrame=CFrame.new(Blasta6.Position,targetahead3.Position)
- wait()
- end
- shootsnd:Play()
- local GhastAcrossShot1 = new("Part",Blasta1)
- GhastAcrossShot1.Shape = "Cylinder"
- GhastAcrossShot1.Size = v3(100,5,5)
- GhastAcrossShot1.BrickColor = bc("White")
- GhastAcrossShot1.Material = "Neon"
- GhastAcrossShot1.CanCollide = false
- GhastAcrossShot1.Anchored = true
- GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot2 = new("Part",Blasta2)
- GhastAcrossShot2.Shape = "Cylinder"
- GhastAcrossShot2.Size = v3(100,5,5)
- GhastAcrossShot2.BrickColor = bc("White")
- GhastAcrossShot2.Material = "Neon"
- GhastAcrossShot2.CanCollide = false
- GhastAcrossShot2.Anchored = true
- GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot3 = new("Part",Blasta2)
- GhastAcrossShot3.Shape = "Cylinder"
- GhastAcrossShot3.Size = v3(100,5,5)
- GhastAcrossShot3.BrickColor = bc("White")
- GhastAcrossShot3.Material = "Neon"
- GhastAcrossShot3.CanCollide = false
- GhastAcrossShot3.Anchored = true
- GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot4 = new("Part",Blasta4)
- GhastAcrossShot4.Shape = "Cylinder"
- GhastAcrossShot4.Size = v3(100,5,5)
- GhastAcrossShot4.BrickColor = bc("White")
- GhastAcrossShot4.Material = "Neon"
- GhastAcrossShot4.CanCollide = false
- GhastAcrossShot4.Anchored = true
- GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot5 = new("Part",Blasta5)
- GhastAcrossShot5.Shape = "Cylinder"
- GhastAcrossShot5.Size = v3(100,5,5)
- GhastAcrossShot5.BrickColor = bc("White")
- GhastAcrossShot5.Material = "Neon"
- GhastAcrossShot5.CanCollide = false
- GhastAcrossShot5.Anchored = true
- GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local GhastAcrossShot6 = new("Part",Blasta5)
- GhastAcrossShot6.Shape = "Cylinder"
- GhastAcrossShot6.Size = v3(100,5,5)
- GhastAcrossShot6.BrickColor = bc("White")
- GhastAcrossShot6.Material = "Neon"
- GhastAcrossShot6.CanCollide = false
- GhastAcrossShot6.Anchored = true
- GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot1.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot2.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot3.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot4.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot5.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- GhastAcrossShot6.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.5)
- for i = 1,20 do
- GhastAcrossShot1.Size = GhastAcrossShot1.Size+v3(0,-1,-1)
- GhastAcrossShot1.CFrame = Blasta1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot1.Transparency = GhastAcrossShot1.Transparency+0.1
- GhastAcrossShot2.Size = GhastAcrossShot2.Size+v3(0,-1,-1)
- GhastAcrossShot2.CFrame = Blasta2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot2.Transparency = GhastAcrossShot2.Transparency+0.1
- GhastAcrossShot3.Size = GhastAcrossShot3.Size+v3(0,-1,-1)
- GhastAcrossShot3.CFrame = Blasta3.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot3.Transparency = GhastAcrossShot3.Transparency+0.1
- GhastAcrossShot4.Size = GhastAcrossShot4.Size+v3(0,-1,-1)
- GhastAcrossShot4.CFrame = Blasta4.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot4.Transparency = GhastAcrossShot4.Transparency+0.1
- GhastAcrossShot5.Size = GhastAcrossShot5.Size+v3(0,-1,-1)
- GhastAcrossShot5.CFrame = Blasta5.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot5.Transparency = GhastAcrossShot5.Transparency+0.1
- GhastAcrossShot6.Size = GhastAcrossShot6.Size+v3(0,-1,-1)
- GhastAcrossShot6.CFrame = Blasta6.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- GhastAcrossShot6.Transparency = GhastAcrossShot6.Transparency+0.1
- wait()
- end
- GhastAcrossShot1:Destroy()
- GhastAcrossShot2:Destroy()
- GhastAcrossShot3:Destroy()
- GhastAcrossShot4:Destroy()
- GhastAcrossShot5:Destroy()
- GhastAcrossShot6:Destroy()
- for i = 1,20 do
- Blasta1.Transparency = Blasta1.Transparency+0.1
- Blasta2.Transparency = Blasta2.Transparency+0.1
- Blasta3.Transparency = Blasta3.Transparency+0.1
- Blasta4.Transparency = Blasta4.Transparency+0.1
- Blasta5.Transparency = Blasta5.Transparency+0.1
- Blasta6.Transparency = Blasta6.Transparency+0.1
- wait()
- end
- Blasta1:Destroy()
- Blasta2:Destroy()
- Blasta3:Destroy()
- Blasta4:Destroy()
- Blasta5:Destroy()
- Blasta6:Destroy()
- wait(0.5)
- AheadShotsdebounce = true
- end
- end
- end
- local BlasterRaindebounce = true
- function BlasterRain()
- if equiped == true then
- if BlasterRaindebounce == true then
- BlasterRaindebounce = false
- local RainTarget1 = new("Part",char)
- RainTarget1.BrickColor = bc("Really red")
- RainTarget1.Shape = "Ball"
- RainTarget1.Material = "Neon"
- RainTarget1.Anchored = true
- RainTarget1.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-20)
- RainTarget1.Transparency = 1
- local RainTarget2 = new("Part",char)
- RainTarget2.BrickColor = bc("Really red")
- RainTarget2.Shape = "Ball"
- RainTarget2.Material = "Neon"
- RainTarget2.Anchored = true
- RainTarget2.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,0,-40)
- RainTarget2.Transparency = 1
- local RainBlaster1 = new("Part",char)
- RainBlaster1.Size = v3(1,1,1)
- RainBlaster1.CanCollide = false
- RainBlaster1.Name = "RainBlaster1"
- RainBlaster1.Material = "Neon"
- RainBlaster1.BrickColor = bc("White")
- RainBlaster1.Shape = "Ball"
- RainBlaster1.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- RainBlaster1.Anchored = false
- local zxc = Instance.new("SpecialMesh",RainBlaster1)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local RainBlaster1bg=Instance.new("BodyGyro",RainBlaster1)
- RainBlaster1bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- RainBlaster1bg.D=400
- RainBlaster1bp = Instance.new("BodyPosition", RainBlaster1)
- local RainBlaster2 = new("Part",char)
- RainBlaster2.Size = v3(1,1,1)
- RainBlaster2.CanCollide = false
- RainBlaster2.Name = "RainBlaster1"
- RainBlaster2.Material = "Neon"
- RainBlaster2.BrickColor = bc("White")
- RainBlaster2.Shape = "Ball"
- RainBlaster2.CFrame = char.HumanoidRootPart.CFrame*CFrame.Angles(0,rad(180),0)
- RainBlaster2.Anchored = false
- local zxc = Instance.new("SpecialMesh",RainBlaster2)
- zxc.MeshType = "FileMesh"
- zxc.Scale = Vector3.new(2,2,2)
- zxc.MeshId = "http://www.roblox.com/asset/?id=920580395"
- local RainBlaster2bg=Instance.new("BodyGyro",RainBlaster2)
- RainBlaster2bg.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
- RainBlaster2bg.D=400
- RainBlaster2bp = Instance.new("BodyPosition", RainBlaster2)
- for i = 1,50 do
- RainBlaster1bp.Position=(RainTarget1.CFrame*CFrame.new(0,20,0)).p
- RainBlaster1bg.CFrame=CFrame.new(RainBlaster1.Position,RainTarget1.Position)
- RainBlaster2bp.Position=(RainTarget2.CFrame*CFrame.new(0,20,0)).p
- RainBlaster2bg.CFrame=CFrame.new(RainBlaster2.Position,RainTarget2.Position)
- wait()
- end
- shootsnd:Play()
- local RainBlasterShot1 = new("Part",RainBlaster1)
- RainBlasterShot1.Shape = "Cylinder"
- RainBlasterShot1.Size = v3(100,5,5)
- RainBlasterShot1.BrickColor = bc("White")
- RainBlasterShot1.Material = "Neon"
- RainBlasterShot1.CanCollide = false
- RainBlasterShot1.Anchored = true
- RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- local RainBlasterShot2 = new("Part",RainBlaster2)
- RainBlasterShot2.Shape = "Cylinder"
- RainBlasterShot2.Size = v3(100,5,5)
- RainBlasterShot2.BrickColor = bc("White")
- RainBlasterShot2.Material = "Neon"
- RainBlasterShot2.CanCollide = false
- RainBlasterShot2.Anchored = true
- RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- RainBlasterShot1.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- RainBlasterShot2.Touched:connect(function(hit)
- if hit.Parent == workspace.Base then return end
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- if hdebounce == true then
- hdebounce = false
- for i = 1,20 do
- v.Health = v.Health-2
- wait(0.01)
- end
- local hitnumb = math.random(1,2)
- if hitnumb == 1 then
- 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)
- end
- if hitnumb == 2 then
- 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)
- end
- wait(0.9)
- hdebounce = true
- end
- end
- end
- end)
- wait(0.5)
- for i = 1,20 do
- wait()
- RainBlasterShot1.Size = RainBlasterShot1.Size+v3(0,-1,-1)
- RainBlasterShot1.CFrame = RainBlaster1.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- RainBlasterShot1.Transparency = RainBlasterShot1.Transparency+0.1
- RainBlasterShot2.Size = RainBlasterShot2.Size+v3(0,-1,-1)
- RainBlasterShot2.CFrame = RainBlaster2.CFrame*CFrame.new(0,0,15)*CFrame.Angles(0,rad(90),0)
- RainBlasterShot2.Transparency = RainBlasterShot2.Transparency+0.1
- end
- for i = 1,20 do
- RainBlaster1.Transparency = RainBlaster1.Transparency+0.1
- RainBlaster2.Transparency = RainBlaster2.Transparency+0.1
- wait()
- end
- RainBlaster1:Destroy()
- RainBlaster2:Destroy()
- RainBlasterShot1:Destroy()
- RainBlasterShot2:Destroy()
- wait(0.5)
- BlasterRaindebounce = true
- end
- end
- end
- local grabing = false
- function grab()
- local hit = mouse.Target
- if hit.Parent == char then return end
- for i,v in pairs(hit.Parent:GetChildren()) do
- if v:IsA("Humanoid") then
- v.Health = v.Health-50
- local bodyp=Instance.new("BodyPosition",hit.Parent.HumanoidRootPart)
- bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
- bodyp.Position=(hit.Parent.HumanoidRootPart.CFrame*CFrame.new(-15,0,0)).p
- wait(0.6)
- bodyp:destroy()
- end
- end
- end
- mouse.KeyDown:connect(function(k)
- if k == "e" then
- AheadShots()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "y" then
- grab()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "g" then
- BlasterRain()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "t" then
- Bones()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "z" then
- DodgeLeft()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "q" then
- octo()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "x" then
- RightDodge()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "1" then
- hum.Health = 100
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "c" then
- equip()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "f" then
- mount()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "r" then
- cross()
- end
- end)
- p.Character.Humanoid.Died:connect(function()
- local jkl = Instance.new("Sound",Workspace)
- jkl.SoundId = "rbxassetid://427025525"
- jkl.Volume = 10
- jkl:Play()
- for _, V in pairs(char:getChildren()) do
- if V:isA("BasePart") then
- V.Transparency = 1
- elseif V:IsA("Accessory") and V:FindFirstChild("Handle") then
- V.Handle.Transparency = 1
- end
- end
- char.Head.face:destroy()
- for i = 1,50 do
- RGhasterBlaster.Transparency = RGhasterBlaster.Transparency+0.1
- LGhasterBlaster.Transparency = LGhasterBlaster.Transparency+0.1
- dust = Instance.new("Part")
- dust.Locked = true
- dust.Size = Vector3.new(0.1,0.1,0.1)
- dust.BrickColor = BrickColor.new("White")
- dust.Transparency = 0
- dust.TopSurface = "Smooth"
- dust.BottomSurface = "Smooth"
- dust.CFrame = char.HumanoidRootPart.CFrame
- dust.CanCollide = true
- dust.Reflectance = 0.1
- dust.Material = "Neon"
- dust.Parent = char
- dust.Anchored = false
- end
- end)
- DayNightCycle = true --[1] Cycles through day and night.
- DynamicLighting = true --[2] Give your game a dynamic look?
- SimulatedShadows = true --[3] Make the shadows stand out. (Enable [2] for this to work)
- DarkAmbient = true --[4] Gives your game darkness, great for zombie games.
- AmbientBrightness = 55 --[5] Number Must between 0 to 255. (Enable [2] and [4] for this to work)
- Fog = true --[6] Give your game foggy look.
- FogDistance = 1500 --[7] How far will the fog be away from you. (Enable [6] for this to work)
- ---------------------------------------------------------------------------------------------------------------
- if Fog then
- game:GetService("Lighting").FogEnd = FogDistance
- end
- if DarkAmbient and DynamicLighting then
- game:GetService("Lighting").OutdoorAmbient = Color3.new(AmbientBrightness/255, AmbientBrightness/255, AmbientBrightness/255)
- end
- if DynamicLighting then
- game:GetService("Lighting").GlobalShadows = true
- if SimulatedShadows then
- game:GetService("Lighting").Brightness = 1.5
- game:GetService("Lighting").Ambient = Color3.new(0/255, 0/255, 0/255)
- game:GetService("Lighting").ShadowColor = Color3.new(61/255, 61/255, 61/255)
- end
- end
Add Comment
Please, Sign In to add comment