Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer warn'Blaster script by youngmacka123, original by JJK83';if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- mouse = plr:GetMouse()
- script.Parent = workspace
- NLS([[
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- cam = workspace.CurrentCamera
- mouse = plr:GetMouse()
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- function wtom(m)
- local w = ezweld(char, m.Part0, m.Part1, m.C0)
- w.C1 = m.C1
- return w
- end
- local fake = Instance.new("Model", script)
- fake.Name = "FakeArm"
- local hum = Instance.new("Humanoid", fake)
- local te = char.Torso:Clone()
- te.Transparency = 1
- te.Name = "aimor"
- te:ClearAllChildren()
- te.Parent = script
- te.CanCollide = false
- local arm = la:Clone()
- arm.Parent = fake
- arm.Name = "Left Arm"
- arm.Material = "SmoothPlastic"
- arm:ClearAllChildren()
- local rs = char.Torso["Left Shoulder"]
- rsnor = rs.C0
- local tors2 = char.Torso:Clone()
- tors2.Transparency = 1
- tors2.Name = "aim"
- tors2:ClearAllChildren()
- tors2.Parent = fake
- local poop = ezweld(fake, tors2, te, CFrame.new())
- local raw = ezweld(fake, tors2, arm, rsnor)
- raw.C1 = rs.C1
- raw.Part0 = tors2
- raw.Part1 = arm
- raw.C0 = rsnor * CFrame.Angles(math.rad(-6), math.rad(-15), math.rad(100))
- sine = 0
- local b = Instance.new("Part", fake)
- b.Name = "Blaster"
- b.BrickColor = BrickColor.new("Toothpaste")
- b.CanCollide = false
- b.Material = "SmoothPlastic"
- b.Size = Vector3.new(0.99, 3, 1)
- local w = ezweld(fake, b, arm, CFrame.new(0, 2.1, -0.75))
- local Torso = b
- local PointLight = Instance.new("PointLight",Torso)
- PointLight.Range = 14
- PointLight.Shadows = true
- PointLight.Brightness = 1
- local SpotLight = Instance.new("SpotLight",Torso)
- SpotLight.Range = 60
- SpotLight.Shadows = true
- SpotLight.Brightness = 1
- local SoundA = Instance.new("Sound",Torso)
- SoundA.SoundId = "rbxasset://sounds/Launching rocket.wav"
- SoundA.Volume = 1.2
- local A = Instance.new("Attachment",Torso)
- A.Position = Vector3.new(0,0,-1.5)
- local BA0 = Instance.new("Attachment",Torso)
- BA0.Position = Vector3.new(0,-0.5,0)
- local BA1 = Instance.new("Attachment",Torso)
- BA1.Position = Vector3.new(0,0.5,0)
- local ShipTrail = Instance.new("Trail",script)
- ShipTrail.Color = ColorSequence.new(Torso.Color)
- ShipTrail.Transparency = NumberSequence.new(0,1)
- ShipTrail.MinLength = 0.02
- ShipTrail.Lifetime = 0.3
- ShipTrail.FaceCamera = true
- ShipTrail.Attachment0 = BA0
- ShipTrail.Attachment1 = BA1
- local Beam = Instance.new("Beam",script)
- Beam.Attachment0 = A
- Beam.FaceCamera = true
- for i,v in pairs (char:children()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("CharacterMesh") then
- v:Clone().Parent = fake
- end
- end
- for i,v in pairs (la:children()) do
- if v:IsA("BlockMesh") then
- v:Clone().Parent = fake
- end
- end
- Tool = fake
- Fire = 3
- local HP = owner.Character:FindFirstChildWhichIsA("Humanoid")
- coroutine.wrap(function()
- while Tool do
- Fire = Fire - 1
- Torso.Material = owner.Character:WaitForChild("ScoopaDoopBlasta").Material
- Torso.Color = owner.Character:WaitForChild("ScoopaDoopBlasta").Color
- --Tool.ToolTip = "H = "..math.ceil(HP.Health)
- if Torso and owner.Neutral == true then
- if HP.Health > 80 then
- Torso.BrickColor = BrickColor.new("Toothpaste")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(0,1,1))
- end
- elseif HP.Health > 60 then
- Torso.BrickColor = BrickColor.new("Lime green")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(0,1,0))
- end
- elseif HP.Health > 40 then
- Torso.BrickColor = BrickColor.new("New Yeller")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(1,1,0))
- end
- elseif HP.Health > 20 then
- Torso.BrickColor = BrickColor.new("Hot pink")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(1,0,1))
- end
- else
- Torso.BrickColor = BrickColor.new("Really red")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(1,0,0))
- end
- end
- end
- if owner and owner.Parent and owner.Neutral == false then
- local TeamColor = owner.TeamColor
- Torso.BrickColor = TeamColor
- ShipTrail.Color = ColorSequence.new(Torso.Color)
- end
- if Torso and PointLight then
- PointLight.Color = Torso.Color
- end
- if Torso and SpotLight then
- if HP.Health <= 40 then
- if SpotLight.Brightness == 5 then
- SpotLight.Brightness = 3.5
- elseif SpotLight.Brightness == 3.5 then
- SpotLight.Brightness = 1.5
- elseif SpotLight.Brightness == 1.5 then
- SpotLight.Brightness = 1
- elseif SpotLight.Brightness == 1 then
- SpotLight.Brightness = 2.5
- elseif SpotLight.Brightness == 2.5 then
- SpotLight.Brightness = 4.5
- elseif SpotLight.Brightness == 4.5 then
- SpotLight.Brightness = 5
- end
- else
- SpotLight.Brightness = 5
- end
- end
- wait(0.04)
- end
- end)()
- local selected = Instance.new("SelectionBox", char)
- selected.Adornee = nil
- selected.LineThickness = 0.005
- selected.Color3 = Color3.new(0, 0, 0)
- hold = false
- attack = false
- Cam = workspace.CurrentCamera
- game:GetService("RunService").RenderStepped:Connect(function()
- for i,v in pairs (fake:children()) do
- if v:IsA("Part") and v ~= tors2 then
- v.LocalTransparencyModifier = v.Transparency
- end
- end
- if mouse.Target then
- selected.Adornee = nil
- else
- selected.Adornee = nil
- end
- if (Cam.focus.p - Cam.CoordinateFrame.p).magnitude <= 1 then
- fake.Parent = char
- else
- fake.Parent = nil
- end
- sine = sine + 1
- arm.CanCollide = false
- tors2.CanCollide = false
- local TORSOVELOCITY = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
- if TORSOVELOCITY < 1 then
- if attack == false then
- raw.C0 = raw.C0:Lerp(rsnor * CFrame.Angles(math.rad(-6), math.rad(-15), math.rad(100)), 0.3)
- te.CFrame = cam.CFrame * CFrame.new(0, -1.65, -1.25) * CFrame.Angles(0, math.rad(180), 0)
- poop.C0 = poop.C0:Lerp(CFrame.new(0, 0.05 * math.sin(sine / 31), 0), 0.3)
- end
- elseif TORSOVELOCITY > 1 then
- if attack == false then
- raw.C0 = raw.C0:Lerp(rsnor * CFrame.Angles(math.rad(-6), math.rad(-15), math.rad(100)), 0.3)
- te.CFrame = cam.CFrame * CFrame.new(0 - 0.045 * math.sin(sine / 8), -1.65 - 0.045 * math.sin(sine / 4), -1.25) * CFrame.Angles(0, math.rad(180), 0)
- poop.C0 = poop.C0:Lerp(CFrame.new(0 - 0.045 * math.sin(sine / 8), 0.045 * math.sin(sine / 4), 0) * CFrame.Angles(math.rad(3 * math.sin(sine / 8)), math.rad(0), 0), 0.3)
- end
- end
- end)
- ]],char)
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- anim = "Idle"
- attack = false
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- fake = char
- arm = ra
- local SA = Instance.new("Sound",script)
- SA.SoundId = "rbxasset://sounds/bass.mp3"
- SA.Volume = 0.35
- local PartB = Instance.new("Part")
- local SB = Instance.new("Sound",PartB)
- SB.SoundId = "rbxasset://sounds/impact_explosion_03.mp3"
- SB.Volume = 1.4
- SB.PlayOnRemove = true
- local PartC = Instance.new("Part")
- local SC = Instance.new("Sound",PartC)
- SC.SoundId = "rbxasset://sounds/collide.wav"
- SC.Volume = 1.4
- SC.PlayOnRemove = true
- local PartD = Instance.new("Part")
- local SD = Instance.new("Sound",PartD)
- SD.SoundId = "rbxasset://sounds/Rocket shot.wav"
- SD.Volume = 1.4
- SD.PlayOnRemove = true
- PartB.Anchored = true
- PartC.Anchored = true
- PartD.Anchored = true
- function HitSound(pos)
- local random = math.random(1,3)
- if random == 1 then
- if SB and SB.Parent then
- SB.PlaybackSpeed = math.random(240,360) / 100
- end
- if PartB then
- PartB.Position = pos
- PartB.Parent = script
- PartB.Parent = nil
- end
- elseif random == 2 then
- if SC then
- SC.PlaybackSpeed = math.random(140,360) / 100
- end
- if PartC then
- PartC.Position = pos
- PartC.Parent = script
- PartC.Parent = nil
- end
- elseif random == 3 then
- if SD then
- SD.PlaybackSpeed = math.random(1600,2000) / 100
- end
- if PartD then
- PartD.Position = pos
- PartD.Parent = script
- PartD.Parent = nil
- end
- end
- end
- function Kaboom(pos)
- local random = math.random(1,3)
- if random == 1 then
- if SB and SB.Parent then
- SB.PlaybackSpeed = math.random(80,160) / 100
- end
- if PartB then
- PartB.Position = pos
- PartB.Parent = script
- PartB.Parent = nil
- end
- elseif random == 2 then
- if SC then
- SC.PlaybackSpeed = math.random(60,120) / 100
- end
- if PartC then
- PartC.Position = pos
- PartC.Parent = script
- PartC.Parent = nil
- end
- elseif random == 3 then
- if SD then
- SD.PlaybackSpeed = math.random(120,240) / 100
- end
- if PartD then
- PartD.Position = pos
- PartD.Parent = script
- PartD.Parent = nil
- end
- end
- end
- local b = Instance.new("Part", fake)
- b.Name = "Blaster"
- b.BrickColor = BrickColor.new("Toothpaste")
- b.CanCollide = false
- b.Material = "SmoothPlastic"
- b.Size = Vector3.new(0.99, 3, 1)
- b.Name = "ScoopaDoopBlasta"
- local w = ezweld(fake, b, arm, CFrame.new(0, 2.1, 0.75))
- local Torso = b
- local PointLight = Instance.new("PointLight",Torso)
- PointLight.Range = 14
- PointLight.Shadows = true
- PointLight.Brightness = 5
- local SpotLight = Instance.new("SpotLight",Torso)
- SpotLight.Range = 60
- SpotLight.Shadows = true
- SpotLight.Brightness = 5
- local SoundA = Instance.new("Sound",Torso)
- SoundA.SoundId = "rbxasset://sounds/Launching rocket.wav"
- SoundA.Volume = 1.2
- local A = Instance.new("Attachment",Torso)
- A.Position = Vector3.new(0,0,-1.5)
- local BA0 = Instance.new("Attachment",Torso)
- BA0.Position = Vector3.new(0,-0.5,0)
- local BA1 = Instance.new("Attachment",Torso)
- BA1.Position = Vector3.new(0,0.5,0)
- local ShipTrail = Instance.new("Trail",script)
- ShipTrail.Color = ColorSequence.new(Torso.Color)
- ShipTrail.Transparency = NumberSequence.new(0,1)
- ShipTrail.MinLength = 0.02
- ShipTrail.Lifetime = 0.3
- ShipTrail.FaceCamera = true
- ShipTrail.Attachment0 = BA0
- ShipTrail.Attachment1 = BA1
- local Beam = Instance.new("Beam",script)
- Beam.Attachment0 = A
- Beam.FaceCamera = true
- local wld1 = ezweld(char, tors, ra, RS.C0)
- wld1.C1 = RS.C1 * CFrame.Angles(0, 0, Rad(-90))
- Tool = fake
- Fire = 3
- local HP = owner.Character:FindFirstChildWhichIsA("Humanoid")
- function Shoot(C,bc,f,s,b,o)
- local P = Instance.new("Part",script)
- P.Name = "Laser"
- P.Anchored = true
- P.Locked = true
- P.Size = Vector3.new(1,1,10)
- P.Material = Enum.Material.Neon
- P.CFrame = C
- local At = Instance.new("Attachment",P)
- At.Position = Vector3.new(0,0,5)
- local A0 = Instance.new("Attachment",P)
- A0.Position = Vector3.new(-0.5,0,5)
- local A1 = Instance.new("Attachment",P)
- A1.Position = Vector3.new(0.5,0,5)
- local Trail = Instance.new("Trail",script)
- Trail.Color = ColorSequence.new(bc.Color)
- Trail.Transparency = NumberSequence.new(0,1)
- Trail.MinLength = 0.02
- Trail.Lifetime = 0.6
- Trail.FaceCamera = true
- Trail.Attachment0 = A0
- Trail.Attachment1 = A1
- if b then
- b.Color = ColorSequence.new(bc.Color)
- b.Attachment1 = At
- delay(0.12,function()
- if b then
- b.Attachment1 = nil
- Fire = 5
- end
- end)
- end
- delay(10,function()
- if Trail and Trail.Parent then
- Trail:Destroy()
- end
- end)
- if f == true and s == true then
- --P.CFrame = P.CFrame * CFrame.new(0,0,0,-0.25,0,0,1)
- end
- P.BrickColor = bc
- P.Velocity = P.CFrame.lookVector * 80
- local Alternate = false
- local LaserHit = false
- local TouchConnection = P.Touched:Connect(function(hit)
- if hit == nil or (hit and hit.CanCollide) then
- LaserHit = true
- if hit and hit.Parent then
- local Humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
- if Humanoid and not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
- Humanoid:TakeDamage(35)
- if f == true then
- Humanoid:TakeDamage(2013)
- end
- local creator = Instance.new("ObjectValue",Humanoid)
- creator.Name = "creator"
- if o and o.Parent then
- creator.Value = o
- end
- game:GetService("Debris"):AddItem(creator,0.2)
- delay(0,function()
- HitSound(P.Position)
- end)
- end
- local Tag2 = hit.Parent:FindFirstChild("FakeHumanoid")
- if Tag2 and o and o.Parent then
- Tag2.Value = o.Name
- end
- end
- end
- end)
- for i = 1,32 do
- if P and P.Parent then
- if Alternate == true and f == true then
- P.BrickColor = BrickColor.new("Institutional white")
- else
- P.BrickColor = bc
- end
- Alternate = not Alternate
- for i = 1,40 do
- if LaserHit == false then
- P.CFrame = P.CFrame * CFrame.new(0,0,-2)
- local T = P:GetTouchingParts()
- for i = 1,#T do
- if T[i] and T[i].Parent then
- if T[i].CanCollide or T[i].Parent:FindFirstChildWhichIsA("Humanoid") then
- LaserHit = true
- local Humanoid = T[i].Parent:FindFirstChildWhichIsA("Humanoid")
- if Humanoid and not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
- Humanoid:TakeDamage(35)
- if f == true then
- Humanoid:TakeDamage(2013)
- end
- local creator = Instance.new("ObjectValue",Humanoid)
- creator.Name = "creator"
- if o and o.Parent then
- creator.Value = o
- end
- game:GetService("Debris"):AddItem(creator,0.2)
- delay(0,function()
- HitSound(P.Position)
- end)
- end
- local Tag2 = T[i].Parent:FindFirstChild("FakeHumanoid")
- if Tag2 and o and o.Parent then
- Tag2.Value = o.Name
- end
- end
- end
- end
- end
- end
- wait(0.02)
- if LaserHit == true then
- break
- end
- end
- end
- TouchConnection:Disconnect()
- if P and P.Parent then
- P.CFrame = P.CFrame * CFrame.new(0,0,-5)
- P.Shape = Enum.PartType.Ball
- if f == true then
- P.BrickColor = bc
- P.Size = Vector3.new(42,42,42)
- local Attachment = Instance.new("Attachment",P)
- local Particles = Instance.new("ParticleEmitter",Attachment)
- Particles.LightEmission = 1
- Particles.LightInfluence = 0.2
- Particles.Drag = 5
- Particles.Enabled = false
- Particles.Lifetime = NumberRange.new(0.5,1)
- Particles.Rate = 100
- Particles.Rotation = NumberRange.new(-360,360)
- Particles.SpreadAngle = Vector2.new(-360,360)
- Particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)})
- Particles.Color = ColorSequence.new(bc.Color)
- Particles.Texture = "rbxasset://textures/particles/smoke_main.dds"
- Particles.Speed = NumberRange.new(70,70)
- Particles.Size = NumberSequence.new(7,7)
- Particles:Emit(500)
- local Explosion = Instance.new("Explosion")
- Explosion.Position = P.Position
- Explosion.BlastRadius = 21
- Explosion.BlastPressure = 1000000
- Explosion.Visible = false
- Explosion.Parent = game.Workspace
- local f = Instance.new("ForceField", char)
- f.Visible = false
- Debris:AddItem(f, 0.3)
- local function Hit(part)
- if part and part.Parent:FindFirstChildWhichIsA("Humanoid") then
- part.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(2048)
- local creator = Instance.new("ObjectValue",part.Parent:FindFirstChildWhichIsA("Humanoid"))
- creator.Name = "creator"
- if o and o.Parent then
- creator.Value = o
- end
- game:GetService("Debris"):AddItem(creator,0.2)
- elseif part and part.Parent:FindFirstChild("FakeHumanoid") and part.Parent.FakeHumanoid:IsA("StringValue") and o and o.Parent then
- part.Parent.FakeHumanoid.Value = o.Name
- end
- end
- Explosion.Hit:Connect(Hit)
- delay(0,function()
- Kaboom(P.Position)
- end)
- else
- P.Size = Vector3.new(4,4,4)
- end
- for i = 1,2 do
- local Part = Instance.new("Part",script)
- Part.Name = "Debris"
- Part.BrickColor = bc
- Part.Material = Enum.Material.Neon
- Part.Locked = true
- Part.Size = Vector3.new(0.5,0.5,0.5)
- Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
- Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
- local A0 = Instance.new("Attachment",Part)
- A0.Position = Vector3.new(-0.25,0,0)
- local A1 = Instance.new("Attachment",Part)
- A1.Position = Vector3.new(0.25,0,0)
- local Trail = Instance.new("Trail",script)
- Trail.Color = ColorSequence.new(bc.Color)
- Trail.Transparency = NumberSequence.new(0,1)
- Trail.MinLength = 0.02
- Trail.Lifetime = 0.3
- Trail.FaceCamera = true
- Trail.Attachment0 = A0
- Trail.Attachment1 = A1
- game:GetService("Debris"):AddItem(Part,5)
- end
- if f == true then
- for i = 1,7 do
- local Part = Instance.new("Part",script)
- Part.Name = "Debris"
- Part.BrickColor = P.BrickColor
- Part.Material = Enum.Material.Neon
- Part.Locked = true
- Part.Size = Vector3.new(0.5,0.5,0.5)
- Part.CFrame = P.CFrame + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
- Part.Velocity = Vector3.new(math.random(-24,24),math.random(-24,24),math.random(-24,24))
- local A0 = Instance.new("Attachment",Part)
- A0.Position = Vector3.new(-0.25,0,0)
- local A1 = Instance.new("Attachment",Part)
- A1.Position = Vector3.new(0.25,0,0)
- local Trail = Instance.new("Trail",script)
- Trail.Color = ColorSequence.new(bc.Color)
- Trail.Transparency = NumberSequence.new(0,1)
- Trail.MinLength = 0.02
- Trail.Lifetime = 0.3
- Trail.FaceCamera = true
- Trail.Attachment0 = A0
- Trail.Attachment1 = A1
- game:GetService("Debris"):AddItem(Part,5)
- end
- end
- local T = P:GetTouchingParts()
- for i = 1,#T do
- if T[i] and T[i].Parent and T[i].Parent:FindFirstChildWhichIsA("Humanoid") then
- local Humanoid = T[i].Parent:FindFirstChildWhichIsA("Humanoid")
- if not (Humanoid:FindFirstChild("creator") and Humanoid:FindFirstChild("creator"):IsA("ObjectValue") and Humanoid.creator.Value == o) then
- Humanoid:TakeDamage(35)
- if f == true then
- Humanoid:TakeDamage(2013)
- end
- local creator = Instance.new("ObjectValue",Humanoid)
- creator.Name = "creator"
- if o and o.Parent then
- creator.Value = o
- end
- game:GetService("Debris"):AddItem(creator,0.2)
- delay(0,function()
- HitSound(P.Position)
- end)
- end
- local Tag2 = T[i].Parent:FindFirstChild("FakeHumanoid")
- if Tag2 and o and o.Parent then
- Tag2.Value = o.Name
- end
- end
- end
- if f == true then
- P.Transparency = 0.5
- for i = 1,10 do
- if P and P.Parent then
- P.Transparency = P.Transparency + 0.05
- end
- wait(0.12)
- end
- if P and P.Parent then
- P:Destroy()
- end
- else
- wait(0.08)
- if P and P.Parent then
- P:Destroy()
- end
- end
- end
- end
- coroutine.wrap(function()
- while Tool and Tool:FindFirstAncestorWhichIsA("DataModel") do
- Fire = Fire - 1
- if Fire == 0 then
- end
- if Torso and (Fire <= -75 or Fire > 0) then
- Torso.Material = Enum.Material.Neon
- elseif Torso then
- Torso.Material = Enum.Material.Metal
- end
- --Tool.ToolTip = "H = "..math.ceil(HP.Health)
- if Torso and owner.Neutral == true then
- if HP.Health > 80 then
- Torso.BrickColor = BrickColor.new("Toothpaste")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(0,1,1))
- end
- elseif HP.Health > 60 then
- Torso.BrickColor = BrickColor.new("Lime green")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(0,1,0))
- end
- elseif HP.Health > 40 then
- Torso.BrickColor = BrickColor.new("New Yeller")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(1,1,0))
- end
- elseif HP.Health > 20 then
- Torso.BrickColor = BrickColor.new("Hot pink")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(1,0,1))
- end
- else
- Torso.BrickColor = BrickColor.new("Really red")
- if ShipTrail then
- ShipTrail.Color = ColorSequence.new(Color3.new(1,0,0))
- end
- end
- end
- if owner and owner.Parent and owner.Neutral == false then
- local TeamColor = owner.TeamColor
- Torso.BrickColor = TeamColor
- ShipTrail.Color = ColorSequence.new(Torso.Color)
- end
- if Torso and PointLight then
- PointLight.Color = Torso.Color
- end
- if Torso and SpotLight then
- if HP.Health <= 40 then
- if SpotLight.Brightness == 5 then
- SpotLight.Brightness = 3.5
- elseif SpotLight.Brightness == 3.5 then
- SpotLight.Brightness = 1.5
- elseif SpotLight.Brightness == 1.5 then
- SpotLight.Brightness = 1
- elseif SpotLight.Brightness == 1 then
- SpotLight.Brightness = 2.5
- elseif SpotLight.Brightness == 2.5 then
- SpotLight.Brightness = 4.5
- elseif SpotLight.Brightness == 4.5 then
- SpotLight.Brightness = 5
- end
- else
- SpotLight.Brightness = 5
- end
- end
- wait(0.04)
- end
- end)()
- mouse.Button1Down:connect(function()
- if attack == false then
- local ExplodingShot = (Fire <= -75)
- if SoundA then
- SoundA.PlaybackSpeed = 3.6
- SoundA:Play()
- end
- delay(0,function()
- Shoot(((Torso.CFrame * CFrame.Angles(math.rad(-90), 0, 0)) * CFrame.new(0,-1,-6)),Torso.BrickColor,ExplodingShot,false,Beam,Player)
- end)
- end
- end)
- while true do
- Swait()
- if attack == false then
- dir = root.CFrame:toObjectSpace(mouse.Hit).lookVector
- tframe = char.Torso.CFrame
- taim = mouse.Hit.p -( tframe.p )
- wld1.C0 = wld1.C0:lerp((CFrame.new(Vector3.new(),tframe:vectorToObjectSpace(taim))*CFrame.Angles(0,math.pi/2,0))+Vector3.new( 1, 0.5, 0 ), 0.5)
- clerp(neck, necknor * CFrame.new(0, 0, 0) * CFrame.Angles(-math.asin(dir.y/1.25), 0, -math.asin(dir.x/1.25)), 0.3)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement