Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by PenguinAnonymous with PenguinAnonymous's model to script converter
- wait()
- local bombs = 3
- local ammo = 300
- local firing = false
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Model")
- o2 = Instance.new("Seat")
- o3 = Instance.new("BodyPosition")
- o4 = Instance.new("BodyGyro")
- o5 = Instance.new("Seat")
- o6 = Instance.new("Seat")
- o7 = Instance.new("Seat")
- o8 = Instance.new("Seat")
- o9 = Instance.new("Seat")
- o10 = Instance.new("Seat")
- o11 = Instance.new("Part")
- o12 = Instance.new("Part")
- o13 = Instance.new("Part")
- o14 = Instance.new("Decal")
- o15 = Instance.new("Part")
- o16 = Instance.new("Decal")
- o17 = Instance.new("Part")
- o18 = Instance.new("Decal")
- o19 = Instance.new("Part")
- o20 = Instance.new("Decal")
- o21 = Instance.new("Part")
- o22 = Instance.new("Decal")
- o23 = Instance.new("Part")
- o24 = Instance.new("Part")
- o25 = Instance.new("Part")
- o26 = Instance.new("Part")
- o27 = Instance.new("Part")
- o1.Parent = mas
- o2.Name = "Heli"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Black")
- o2.Position = Vector3.new(-2, 1.5, 1)
- o2.Size = Vector3.new(2, 1, 2)
- o2.CFrame = CFrame.new(-2, 1.5, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o2.Position = Vector3.new(-2, 1.5, 1)
- o3.Parent = o2
- o3.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- o4.Parent = o2
- o4.maxTorque = Vector3.new(400000, 400000, 400000)
- o4.MaxTorque = Vector3.new(400000, 400000, 400000)
- o5.Parent = o1
- o5.BrickColor = BrickColor.new("Black")
- o5.Position = Vector3.new(-6, 1.5, 21)
- o5.Size = Vector3.new(2, 1, 2)
- o5.CFrame = CFrame.new(-6, 1.5, 21, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o5.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o5.Position = Vector3.new(-6, 1.5, 21)
- o6.Parent = o1
- o6.BrickColor = BrickColor.new("Black")
- o6.Position = Vector3.new(-2, 1.5, 21)
- o6.Size = Vector3.new(2, 1, 2)
- o6.CFrame = CFrame.new(-2, 1.5, 21, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o6.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o6.Position = Vector3.new(-2, 1.5, 21)
- o7.Parent = o1
- o7.BrickColor = BrickColor.new("Black")
- o7.Position = Vector3.new(2, 1.5, 21)
- o7.Size = Vector3.new(2, 1, 2)
- o7.CFrame = CFrame.new(2, 1.5, 21, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o7.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o7.Position = Vector3.new(2, 1.5, 21)
- o8.Parent = o1
- o8.BrickColor = BrickColor.new("Black")
- o8.Position = Vector3.new(-6, 1.5, 17)
- o8.Size = Vector3.new(2, 1, 2)
- o8.CFrame = CFrame.new(-6, 1.5, 17, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o8.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o8.Position = Vector3.new(-6, 1.5, 17)
- o9.Parent = o1
- o9.BrickColor = BrickColor.new("Black")
- o9.Position = Vector3.new(-2, 1.5, 17)
- o9.Size = Vector3.new(2, 1, 2)
- o9.CFrame = CFrame.new(-2, 1.5, 17, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o9.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o9.Position = Vector3.new(-2, 1.5, 17)
- o10.Parent = o1
- o10.BrickColor = BrickColor.new("Black")
- o10.Position = Vector3.new(2, 1.5, 17)
- o10.Size = Vector3.new(2, 1, 2)
- o10.CFrame = CFrame.new(2, 1.5, 17, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o10.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o10.Position = Vector3.new(2, 1.5, 17)
- o11.Parent = o1
- o11.Position = Vector3.new(5.5, 9, 12)
- o11.Rotation = Vector3.new(-180, 0, -180)
- o11.Size = Vector3.new(1, 4, 30)
- o11.CFrame = CFrame.new(5.5, 9, 12, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- o11.Position = Vector3.new(5.5, 9, 12)
- o12.Parent = o1
- o12.Position = Vector3.new(-9.5, 9, 12)
- o12.Rotation = Vector3.new(-0, 90, 0)
- o12.Size = Vector3.new(30, 4, 1)
- o12.CFrame = CFrame.new(-9.5, 9, 12, -0, 0, 1, -0, 1, 0, -1, 0, 0)
- o12.Position = Vector3.new(-9.5, 9, 12)
- o13.Parent = o1
- o13.Position = Vector3.new(5.5, 4, 20.5)
- o13.Rotation = Vector3.new(0, 90, 0)
- o13.Size = Vector3.new(13, 6, 1)
- o13.CFrame = CFrame.new(5.5, 4, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o13.Position = Vector3.new(5.5, 4, 20.5)
- o14.Parent = o13
- o14.Texture = "http://www.roblox.com/asset/?id=250437645"
- o14.Face = Enum.NormalId.Back
- o15.Parent = o1
- o15.Position = Vector3.new(5.5, 4, 2.5)
- o15.Rotation = Vector3.new(0, 90, 0)
- o15.Size = Vector3.new(11, 6, 1)
- o15.CFrame = CFrame.new(5.5, 4, 2.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o15.Position = Vector3.new(5.5, 4, 2.5)
- o16.Parent = o15
- o16.Texture = "http://www.roblox.com/asset/?id=236149250"
- o16.Face = Enum.NormalId.Back
- o17.Parent = o1
- o17.Position = Vector3.new(-2.00000048, 6, 26.5)
- o17.Rotation = Vector3.new(-180, 0, -180)
- o17.Size = Vector3.new(14, 10, 1)
- o17.CFrame = CFrame.new(-2.00000048, 6, 26.5, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- o17.Position = Vector3.new(-2.00000048, 6, 26.5)
- o18.Parent = o17
- o18.Texture = "http://www.roblox.com/asset/?id=117528164"
- o19.Parent = o1
- o19.Position = Vector3.new(-9.5, 4, 20.5)
- o19.Rotation = Vector3.new(0, 90, 0)
- o19.Size = Vector3.new(13, 6, 1)
- o19.CFrame = CFrame.new(-9.5, 4, 20.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o19.Position = Vector3.new(-9.5, 4, 20.5)
- o20.Parent = o19
- o20.Texture = "http://www.roblox.com/asset/?id=250437645"
- o21.Parent = o1
- o21.Position = Vector3.new(-9.5, 4, 2.5)
- o21.Rotation = Vector3.new(0, 90, 0)
- o21.Size = Vector3.new(11, 6, 1)
- o21.CFrame = CFrame.new(-9.5, 4, 2.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- o21.Position = Vector3.new(-9.5, 4, 2.5)
- o22.Parent = o21
- o22.Texture = "http://www.roblox.com/asset/?id=236149250"
- o23.Parent = o1
- o23.Position = Vector3.new(-2, 11.5, 12)
- o23.CanCollide = false
- o23.Size = Vector3.new(16, 1, 30)
- o23.CFrame = CFrame.new(-2, 11.5, 12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o23.Position = Vector3.new(-2, 11.5, 12)
- o24.Parent = o1
- o24.Position = Vector3.new(-2, 10.0000143, -2.5)
- o24.Size = Vector3.new(14, 2, 1)
- o24.CFrame = CFrame.new(-2, 10.0000143, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o24.Position = Vector3.new(-2, 10.0000143, -2.5)
- o25.Parent = o1
- o25.Transparency = 0.5
- o25.Position = Vector3.new(-2, 6.00000381, -2.5)
- o25.Size = Vector3.new(14, 6, 1)
- o25.CFrame = CFrame.new(-2, 6.00000381, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o25.Position = Vector3.new(-2, 6.00000381, -2.5)
- o26.Parent = o1
- o26.Position = Vector3.new(-2, 2, -2.5)
- o26.Size = Vector3.new(14, 2, 1)
- o26.CFrame = CFrame.new(-2, 2, -2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o26.Position = Vector3.new(-2, 2, -2.5)
- o27.Parent = o1
- o27.Position = Vector3.new(-2, 0.5, 12)
- o27.Size = Vector3.new(16, 1, 30)
- o27.CFrame = CFrame.new(-2, 0.5, 12, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o27.BottomSurface = Enum.SurfaceType.Smooth
- o27.Position = Vector3.new(-2, 0.5, 12)
- mas.Parent = game:GetService("Players").LocalPlayer.Character
- mas:MakeJoints()
- bp = o3
- vs = o2
- bg = o4
- o1 = Instance.new("ScreenGui")
- o2 = Instance.new("Frame")
- o3 = Instance.new("TextLabel")
- o4 = Instance.new("TextLabel")
- o1.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- o2.Parent = o1
- o2.Position = UDim2.new(1,-205,1,-200)
- o2.Size = UDim2.new(0,200,0,100)
- o2.Position = UDim2.new(1,-205,1,-200)
- o2.BackgroundColor3 = Color3.new(0.0235294, 0.0235294, 0.0235294)
- o2.BackgroundTransparency = 0.5
- o3.Parent = o2
- o3.Size = UDim2.new(1,0,0.25,0)
- o3.Text = "BomberBus"
- o3.BackgroundColor3 = Color3.new(1, 1, 1)
- o3.BackgroundTransparency = 1
- o3.Font = Enum.Font.SourceSans
- o3.FontSize = Enum.FontSize.Size14
- o3.TextColor3 = Color3.new(1, 0, 0)
- o4.Name = "BombDetail"
- o4.Parent = o2
- o4.Position = UDim2.new(0,0,0.25,0)
- o4.Size = UDim2.new(1,0,0.25,0)
- o4.Text = "Bombs Left:"
- o4.Position = UDim2.new(0,0,0.25,0)
- o4.BackgroundColor3 = Color3.new(1, 1, 1)
- o4.BackgroundTransparency = 1
- o4.Font = Enum.Font.SourceSans
- o4.FontSize = Enum.FontSize.Size24
- o4.TextColor3 = Color3.new(1, 0, 0)
- o4.TextXAlignment = Enum.TextXAlignment.Left
- o5 = o4:Clone()
- o5.Parent = o2
- o5.Position = UDim2.new(0,0,0.5,0)
- o5.Text = "Ammo Left: "
- bombDetail = o4
- ammoDetail = o5
- bombFrame = o2
- rot = 180
- rotAdd = 0
- velx = 0
- vely = 0
- velz = 0
- bp.position = Vector3.new(0,4,0)
- local char = game:GetService("Players").LocalPlayer
- if char~=nil then
- local tor = char:findFirstChild("HumanoidRootPart")
- if tor~=nil then
- char:MoveTo(Vector3.new(vs.Position.X,vs.Position.Y+4,vs.Position.Z))
- end
- end
- game:GetService("RunService").RenderStepped:connect(function()
- if (vs~=nil)and(bp~=nil) then
- bombDetail.Text = "Bombs Left: " .. bombs
- ammoDetail.Text = "Ammo Left: " .. ammo
- local sw = vs:findFirstChild("SeatWeld")
- if sw~=nil then
- if game:GetService("Players"):GetPlayerFromCharacter(sw.Part1.Parent)==game:GetService("Players").LocalPlayer then
- bombFrame.Visible = true
- rot = rot + rotAdd/60
- bp.position = Vector3.new(bp.position.X+(velz*math.sin(rot)),bp.position.Y+vely,bp.position.Z+(velz*math.cos(rot)))
- bg.CFrame = CFrame.new(bp.position) * CFrame.Angles(0,rot,0)
- else
- sw:Destroy()
- end
- else
- bombFrame.Visible = false
- end
- if firing and sw~=nil and ammo>0 then
- local targ = mouse.Target
- local hit = mouse.Hit
- if hit~=nil then
- ammo = ammo - 1
- local startPos = vs.Position
- local hitPos = hit.p
- local size = Vector3.new(0.2,0.2,(startPos - hitPos).magnitude)
- local CFram = CFrame.new((startPos + hitPos)/2,startPos)
- local p = Instance.new("Part",workspace)
- p.Anchored = true
- p.CanCollide = false
- p.Size = size
- p.CFrame = CFram;
- p.BrickColor = BrickColor.Yellow()
- if targ~=nil then
- local hum = targ.Parent:findFirstChild("Humanoid") or targ.Parent.Parent:findFirstChild("Humanoid")
- if hum~=nil then
- hum.Health = hum.Health - (hum.MaxHealth/5)
- else
- pcall(function()
- targ:BreakJoints()
- if string.lower(targ.Name)~="base" and string.lower(targ.Name)~="baseplate" then
- targ.Anchored = false
- end
- end)
- end
- end
- game:GetService("Debris"):AddItem(p,0.1)
- end
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- while wait(20) do
- if bombs<3 then
- bombs = bombs + 1
- end
- if ammo<300 then
- if ammo>200 then
- ammo = 300
- else
- ammo = ammo + 100
- end
- end
- end
- end))
- mouse.Button1Down:connect(function()
- firing = true
- end)
- mouse.Button1Up:connect(function()
- firing = false
- end)
- function DropBomb()
- if bombs>0 then
- bombs = bombs - 1
- local p = Instance.new("Part",workspace)
- local pos = Vector3.new(vs.position.x,vs.position.Y-8,vs.position.Z)
- p.Shape = Enum.PartType.Ball
- p.Size = Vector3.new(1,1,1)
- p.Position = pos
- p.Touched:connect(function(hit)
- local ex = Instance.new("Explosion",workspace)
- ex.Position = p.Position
- ex.BlastRadius = 24
- ex.BlastPressure = 120000
- p:Destroy()
- end)
- end
- end
- uib = game:GetService("UserInputService").InputBegan:connect(function(input,gameProcessed)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- if vs:findFirstChild("SeatWeld") then
- local keyPressed = input.KeyCode
- if keyPressed==Enum.KeyCode.E then
- vely = 20/60
- end
- if keyPressed==Enum.KeyCode.Q then
- vely = -20/60
- end
- if keyPressed==Enum.KeyCode.W then
- velz = -120/60
- end
- if keyPressed == Enum.KeyCode.S then
- velz = 120/60
- end
- if keyPressed == Enum.KeyCode.A then
- rotAdd = 3
- end
- if keyPressed == Enum.KeyCode.D then
- rotAdd = -3
- end
- if keyPressed == Enum.KeyCode.F then
- DropBomb()
- end
- end
- end
- end)
- uie = game:GetService("UserInputService").InputEnded:connect(function(input,gameProcessed)
- if input.UserInputType == Enum.UserInputType.Keyboard then
- local keyPressed = input.KeyCode
- --print(keyPressed)
- if keyPressed==Enum.KeyCode.E then
- vely = 0
- end
- if keyPressed==Enum.KeyCode.Q then
- vely = 0
- end
- if keyPressed==Enum.KeyCode.W then
- velz = 0
- velx = 0
- end
- if keyPressed == Enum.KeyCode.S then
- velz = 0
- end
- if keyPressed == Enum.KeyCode.A then
- rotAdd = 0
- end
- if keyPressed == Enum.KeyCode.D then
- rotAdd = 0
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement