Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
- --What's Added To M2S with Dittoide's Edit?
- --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
- --/ Removed Gui In Bottom-Left for when you are making guis.
- --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
- --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
- --Errors: Camera,Terrain
- local runDummyScript = function(f,scri)
- if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
- local Dummy_CoRoutine = coroutine.create(function()
- getfenv().script = scri
- ypcall(function() f() end)
- end)
- table.insert(cors,Dummy_CoRoutine);
- coroutine.resume(Dummy_CoRoutine);
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "M2S_Model"
- o3 = Instance.new("Model")
- o4 = Instance.new("Part")
- o5 = Instance.new("Script")
- o6 = Instance.new("ManualWeld")
- o7 = Instance.new("Model")
- o8 = Instance.new("Model")
- o9 = Instance.new("Model")
- o10 = Instance.new("Part")
- o11 = Instance.new("Script")
- o12 = Instance.new("ClickDetector")
- o13 = Instance.new("Script")
- o14 = Instance.new("Sound")
- o15 = Instance.new("Model")
- o16 = Instance.new("Part")
- o17 = Instance.new("Model")
- o18 = Instance.new("Part")
- o19 = Instance.new("Part")
- o20 = Instance.new("Part")
- o21 = Instance.new("Part")
- o22 = Instance.new("Part")
- o23 = Instance.new("Part")
- o24 = Instance.new("Model")
- o25 = Instance.new("Part")
- o26 = Instance.new("Part")
- o27 = Instance.new("Model")
- o28 = Instance.new("Part")
- o29 = Instance.new("Part")
- o30 = Instance.new("Part")
- o31 = Instance.new("Part")
- o32 = Instance.new("Model")
- o33 = Instance.new("Part")
- o34 = Instance.new("ClickDetector")
- o35 = Instance.new("Sound")
- o36 = Instance.new("Script")
- o37 = Instance.new("Script")
- o38 = Instance.new("Humanoid")
- o39 = Instance.new("Model")
- o40 = Instance.new("Part")
- o41 = Instance.new("Part")
- o42 = Instance.new("Model")
- o43 = Instance.new("Part")
- o44 = Instance.new("Part")
- o45 = Instance.new("Part")
- o46 = Instance.new("Part")
- o47 = Instance.new("Model")
- o48 = Instance.new("Part")
- o49 = Instance.new("ClickDetector")
- o50 = Instance.new("Sound")
- o51 = Instance.new("Script")
- o52 = Instance.new("Script")
- o53 = Instance.new("Humanoid")
- o54 = Instance.new("Model")
- o55 = Instance.new("Model")
- o56 = Instance.new("Part")
- o57 = Instance.new("Script")
- o58 = Instance.new("ClickDetector")
- o59 = Instance.new("Script")
- o60 = Instance.new("Sound")
- o61 = Instance.new("Model")
- o62 = Instance.new("Part")
- o63 = Instance.new("Model")
- o64 = Instance.new("Part")
- o65 = Instance.new("Part")
- o66 = Instance.new("Part")
- o67 = Instance.new("Part")
- o68 = Instance.new("Part")
- o69 = Instance.new("Part")
- o70 = Instance.new("Part")
- o71 = Instance.new("Part")
- o72 = Instance.new("Part")
- o73 = Instance.new("Part")
- o74 = Instance.new("Part")
- o75 = Instance.new("ManualWeld")
- o76 = Instance.new("Part")
- o77 = Instance.new("Part")
- o78 = Instance.new("Part")
- o79 = Instance.new("ManualWeld")
- o80 = Instance.new("Part")
- o81 = Instance.new("ManualWeld")
- o82 = Instance.new("Part")
- o83 = Instance.new("ManualWeld")
- o84 = Instance.new("Part")
- o85 = Instance.new("ClickDetector")
- o86 = Instance.new("Script")
- o87 = Instance.new("ManualWeld")
- o88 = Instance.new("ManualWeld")
- o89 = Instance.new("Part")
- o90 = Instance.new("Part")
- o91 = Instance.new("ManualWeld")
- o92 = Instance.new("Part")
- o93 = Instance.new("Part")
- o94 = Instance.new("Part")
- o95 = Instance.new("ManualWeld")
- o96 = Instance.new("ManualWeld")
- o97 = Instance.new("ManualWeld")
- o98 = Instance.new("Part")
- o99 = Instance.new("VehicleSeat")
- o100 = Instance.new("Script")
- o101 = Instance.new("BodyAngularVelocity")
- o102 = Instance.new("Script")
- o103 = Instance.new("StringValue")
- o104 = Instance.new("BodyVelocity")
- o105 = Instance.new("Script")
- o106 = Instance.new("HopperBin")
- o107 = Instance.new("Script")
- o108 = Instance.new("Script")
- o109 = Instance.new("ObjectValue")
- o110 = Instance.new("Script")
- o111 = Instance.new("Script")
- o112 = Instance.new("Sound")
- o113 = Instance.new("Sound")
- o114 = Instance.new("WedgePart")
- o115 = Instance.new("ManualWeld")
- o116 = Instance.new("WedgePart")
- o117 = Instance.new("WedgePart")
- o118 = Instance.new("ManualWeld")
- o119 = Instance.new("WedgePart")
- o3.Name = "mech "
- o3.Parent = mas
- o4.Name = "Regen Button"
- o4.Parent = o3
- o4.BrickColor = BrickColor.new("Really red")
- o4.Position = Vector3.new(-24.9000015, 0.600033998, -96.3000793)
- o4.Anchored = true
- o4.Size = Vector3.new(3, 1.20000005, 3)
- o4.CFrame = CFrame.new(-24.9000015, 0.600033998, -96.3000793, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o4.BottomSurface = Enum.SurfaceType.Smooth
- o4.TopSurface = Enum.SurfaceType.Smooth
- o4.Color = Color3.new(1, 0, 0)
- o4.Position = Vector3.new(-24.9000015, 0.600033998, -96.3000793)
- o5.Name = "Regen"
- o5.Parent = o4
- runDummyScript(function()
- --Made by JR9989
- --Do not change anything besides the lines mentioned below.
- model = script.Parent.Parent--Indicates that the script interacts with the model the button is grouped with.
- messageText = "Regenerating"--If you want a message to appear upon pressing, type it here.
- message = Instance.new("Message")
- message.Text = messageText
- backup = model:clone()
- enabled = true
- function regenerate()
- message.Parent = game.Workspace
- wait(2)
- model = backup:clone()
- model.Parent = game.Workspace
- model:makeJoints()
- message.Parent = nil
- script.Disabled = true
- script.Parent.BrickColor = BrickColor.new(26)--Black
- wait(10)--
- script.Parent.BrickColor = BrickColor.new(104)--Purple
- script.Disabled = false
- end
- function onHit(hit)
- if (hit.Parent:FindFirstChild("Humanoid") ~= nil) and enabled then
- regenerate()
- end
- end
- script.Parent.Touched:connect(onHit)
- end,o5)
- o6.Name = "Regen Button Terrain Joint"
- o6.Parent = o4
- o6.Part1 = o4
- o7.Parent = o3
- o8.Name = "Gun"
- o8.Parent = o7
- o9.Name = "Cannon"
- o9.Parent = o8
- o10.Name = "Switch"
- o10.Parent = o9
- o10.Position = Vector3.new(-26.4405251, 8.91952324, -80.7238922)
- o10.Rotation = Vector3.new(0, 0.00999999978, 0.00999999978)
- o10.FormFactor = Enum.FormFactor.Plate
- o10.Size = Vector3.new(1, 1.20000005, 3)
- o10.CFrame = CFrame.new(-26.4405251, 8.91952324, -80.7238922, 1.00000644, -0.000106459978, 0.000145881058, 0.00010646951, 1, -6.9869915e-05, -0.000145873259, 6.98858785e-05, 1.00000644)
- o10.BackSurface = Enum.SurfaceType.Weld
- o10.BottomSurface = Enum.SurfaceType.Weld
- o10.LeftSurface = Enum.SurfaceType.Weld
- o10.RightSurface = Enum.SurfaceType.Weld
- o10.TopSurface = Enum.SurfaceType.Smooth
- o10.Position = Vector3.new(-26.4405251, 8.91952324, -80.7238922)
- o11.Name = "CannonBall"
- o11.Parent = o10
- o11.Disabled = true
- runDummyScript(function()
- ball = script.Parent
- damage = 100
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- tagHumanoid(humanoid)
- humanoid.Health = humanoid.Health - damage
- wait(0.00000001)
- untagHumanoid(humanoid)
- connection:disconnect()
- else
- damage = damage / 2
- if damage < 2 then
- connection:disconnect()
- ball.Parent = nil
- end
- end
- if math.random(1,1) == 1 then
- explosion = Instance.new("Explosion")
- explosion.BlastRadius = 15
- explosion.BlastPressure = 600000 -- these are really wussy units
- explosion.Position = script.Parent.Position
- explosion.Parent = game.Workspace
- connection:disconnect()
- ball.Parent = nil
- cancollide = true
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- r = game:service("RunService")
- t, s = r.Stepped:wait()
- d = t + 5.0 - s
- while t < d do
- t = r.Stepped:wait()
- end
- ball.Parent = nil
- end,o11)
- o12.Parent = o10
- o12.MaxActivationDistance = 10
- o13.Name = "FireGun"
- o13.Parent = o10
- runDummyScript(function()
- local switch = script.Parent
- local gunBarrelOne = script.Parent.Parent.GunBarrel.One
- local debounce = false
- local gunOne = true
- local cannonBall = Instance.new("Part")
- cannonBall.Size = Vector3.new(1,1,1)
- cannonBall.BrickColor = BrickColor.new(1) -- medium blue
- cannonBall.Shape = 0
- cannonBall.BottomSurface = 0
- cannonBall.TopSurface = 0
- cannonBall.Name = "Cannon Shot"
- cannonBall.Elasticity = .1
- cannonBall.Reflectance = 0
- cannonBall.Friction = 0
- function fire(player)
- local sound = script.Parent:findFirstChild("GunSound")
- if sound == nil then
- sound = Instance.new("Sound")
- sound.Name = "GunSound"
- sound.SoundId = "http://www.roblox.com/asset?id=2101148"
- sound.Volume = 1
- sound.Parent = script.Parent
- end
- sound:play()
- local missile = Instance.new("Part")
- local barrel
- if gunOne == true then
- barrel = gunBarrelOne
- gunOne = true
- end
- local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
- local dx = math.random(50,50)
- local dy = math.random(0,0)
- local dz = math.random(0,0)
- local mag = math.random(750,750)
- local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
- local missile = cannonBall:clone()
- missile.Position = spawnPos
- missile.Velocity = v
- local new_script = script.Parent.CannonBall:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.Parent = game.Workspace
- end
- function onClicked()
- if debounce == false then
- debounce = true
- switch.BrickColor = BrickColor.new(21)
- -- let slip the dogs of war
- fire(player)
- wait(.5)
- wait(1)
- debounce = false
- switch.BrickColor = BrickColor.new(37)
- end
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- end,o13)
- o14.Name = "GunSound"
- o14.Parent = o10
- o14.SoundId = "http://www.roblox.com/asset/?id=12222084"
- o14.Volume = 1
- o15.Name = "GunBarrel"
- o15.Parent = o9
- o16.Name = "One"
- o16.Parent = o15
- o16.Position = Vector3.new(-28.4090462, 10.049696, -72.7842255)
- o16.Rotation = Vector3.new(0, -90, 0)
- o16.FormFactor = Enum.FormFactor.Symmetric
- o16.Shape = Enum.PartType.Cylinder
- o16.Size = Vector3.new(1, 1, 1)
- o16.CFrame = CFrame.new(-28.4090462, 10.049696, -72.7842255, -2.39949003e-08, -0.000106289917, -1.00000656, -9.75861781e-07, 1, -0.000106289277, 1.00000656, 9.75834837e-07, -2.44570657e-08)
- o16.BottomSurface = Enum.SurfaceType.Smooth
- o16.LeftSurface = Enum.SurfaceType.Weld
- o16.RightSurface = Enum.SurfaceType.Weld
- o16.TopSurface = Enum.SurfaceType.Smooth
- o16.Position = Vector3.new(-28.4090462, 10.049696, -72.7842255)
- o17.Parent = o8
- o18.Parent = o17
- o18.Position = Vector3.new(-28.4488297, 9.52983761, -79.7854385)
- o18.Rotation = Vector3.new(-180, 0.0899999961, 179.98999)
- o18.Size = Vector3.new(3, 2.4000001, 3)
- o18.CFrame = CFrame.new(-28.4488297, 9.52983761, -79.7854385, -1.00000525, -0.000106320556, 0.00156845222, -0.000106318221, 1, 1.15487637e-06, -0.00156845269, 9.88096872e-07, -1.00000525)
- o18.BackSurface = Enum.SurfaceType.Weld
- o18.BottomSurface = Enum.SurfaceType.Weld
- o18.TopSurface = Enum.SurfaceType.Weld
- o18.Position = Vector3.new(-28.4488297, 9.52983761, -79.7854385)
- o19.Parent = o17
- o19.Position = Vector3.new(-28.4507103, 10.0297909, -74.7849731)
- o19.Rotation = Vector3.new(0, -90, 0)
- o19.FormFactor = Enum.FormFactor.Symmetric
- o19.Shape = Enum.PartType.Cylinder
- o19.Size = Vector3.new(1, 1, 1)
- o19.CFrame = CFrame.new(-28.4507103, 10.0297909, -74.7849731, -1.94396989e-07, -0.000106287502, -1.00000656, -9.756493e-07, 1, -0.000106286861, 1.00000656, 9.7560428e-07, -1.94859155e-07)
- o19.BottomSurface = Enum.SurfaceType.Smooth
- o19.LeftSurface = Enum.SurfaceType.Weld
- o19.RightSurface = Enum.SurfaceType.Weld
- o19.TopSurface = Enum.SurfaceType.Smooth
- o19.Position = Vector3.new(-28.4507103, 10.0297909, -74.7849731)
- o20.Parent = o17
- o20.Position = Vector3.new(-28.4506264, 10.0298214, -73.7846832)
- o20.Rotation = Vector3.new(0, -90, 0)
- o20.FormFactor = Enum.FormFactor.Symmetric
- o20.Shape = Enum.PartType.Cylinder
- o20.Size = Vector3.new(1, 1, 1)
- o20.CFrame = CFrame.new(-28.4506264, 10.0298214, -73.7846832, -1.40744746e-07, -0.000106293701, -1.00000656, -9.91590696e-07, 1, -0.000106293061, 1.00000656, 9.91551474e-07, -1.41208602e-07)
- o20.BottomSurface = Enum.SurfaceType.Smooth
- o20.LeftSurface = Enum.SurfaceType.Weld
- o20.RightSurface = Enum.SurfaceType.Weld
- o20.TopSurface = Enum.SurfaceType.Smooth
- o20.Position = Vector3.new(-28.4506264, 10.0298214, -73.7846832)
- o21.Parent = o17
- o21.Position = Vector3.new(-28.4507103, 10.0298052, -76.7853088)
- o21.Rotation = Vector3.new(0, -90, 0)
- o21.FormFactor = Enum.FormFactor.Symmetric
- o21.Shape = Enum.PartType.Cylinder
- o21.Size = Vector3.new(1, 1, 1)
- o21.CFrame = CFrame.new(-28.4507103, 10.0298052, -76.7853088, -2.00461315e-07, -0.000106273386, -1.00000656, -9.74857585e-07, 1, -0.000106272746, 1.00000656, 9.74811883e-07, -2.00923395e-07)
- o21.BottomSurface = Enum.SurfaceType.Smooth
- o21.LeftSurface = Enum.SurfaceType.Weld
- o21.RightSurface = Enum.SurfaceType.Weld
- o21.TopSurface = Enum.SurfaceType.Smooth
- o21.Position = Vector3.new(-28.4507103, 10.0298052, -76.7853088)
- o22.Parent = o17
- o22.Position = Vector3.new(-28.4506588, 10.0298519, -77.7855301)
- o22.Rotation = Vector3.new(0, -90, 0)
- o22.FormFactor = Enum.FormFactor.Symmetric
- o22.Shape = Enum.PartType.Cylinder
- o22.Size = Vector3.new(1, 1, 1)
- o22.CFrame = CFrame.new(-28.4506588, 10.0298519, -77.7855301, -7.68341124e-08, -0.000106285406, -1.00000656, -1.00842294e-06, 1, -0.000106284766, 1.00000656, 1.00839065e-06, -7.72997737e-08)
- o22.BottomSurface = Enum.SurfaceType.Smooth
- o22.LeftSurface = Enum.SurfaceType.Weld
- o22.RightSurface = Enum.SurfaceType.Weld
- o22.TopSurface = Enum.SurfaceType.Smooth
- o22.Position = Vector3.new(-28.4506588, 10.0298519, -77.7855301)
- o23.Parent = o17
- o23.Position = Vector3.new(-28.450634, 10.0297985, -75.7855759)
- o23.Rotation = Vector3.new(0, -90, 0)
- o23.FormFactor = Enum.FormFactor.Symmetric
- o23.Shape = Enum.PartType.Cylinder
- o23.Size = Vector3.new(1, 1, 1)
- o23.CFrame = CFrame.new(-28.450634, 10.0297985, -75.7855759, -8.70835919e-08, -0.000106299885, -1.00000656, -1.00751731e-06, 1, -0.000106299245, 1.00000656, 1.00748389e-06, -8.7549175e-08)
- o23.BottomSurface = Enum.SurfaceType.Smooth
- o23.LeftSurface = Enum.SurfaceType.Weld
- o23.RightSurface = Enum.SurfaceType.Weld
- o23.TopSurface = Enum.SurfaceType.Smooth
- o23.Position = Vector3.new(-28.450634, 10.0297985, -75.7855759)
- o24.Parent = o7
- o25.Parent = o24
- o25.BrickColor = BrickColor.new("Black")
- o25.Position = Vector3.new(-28.6486168, 16.0199127, -81.0150452)
- o25.Rotation = Vector3.new(0, -90, 0)
- o25.FormFactor = Enum.FormFactor.Symmetric
- o25.Size = Vector3.new(3, 2, 1)
- o25.CFrame = CFrame.new(-28.6486168, 16.0199127, -81.0150452, 0.000792632112, -2.36951619e-05, -1.0000062, 2.00704653e-06, 1, -2.36934538e-05, 1.00000608, -1.98828525e-06, 0.000792631414)
- o25.BottomSurface = Enum.SurfaceType.Weld
- o25.TopSurface = Enum.SurfaceType.Smooth
- o25.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o25.Position = Vector3.new(-28.6486168, 16.0199127, -81.0150452)
- o26.Name = "Base"
- o26.Parent = o24
- o26.BrickColor = BrickColor.new("Black")
- o26.Position = Vector3.new(-28.6481991, 17.520546, -81.5146103)
- o26.Rotation = Vector3.new(0, -90, 0)
- o26.FormFactor = Enum.FormFactor.Symmetric
- o26.Size = Vector3.new(4, 1, 1)
- o26.CFrame = CFrame.new(-28.6481991, 17.520546, -81.5146103, 8.28818884e-07, -2.36581327e-05, -1.00000656, -7.21582921e-07, 1, -2.36580108e-05, 1.00000644, 7.21600713e-07, 8.28120392e-07)
- o26.BottomSurface = Enum.SurfaceType.Weld
- o26.RightSurface = Enum.SurfaceType.Motor
- o26.TopSurface = Enum.SurfaceType.Smooth
- o26.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o26.Position = Vector3.new(-28.6481991, 17.520546, -81.5146103)
- o27.Name = "GunBarrel"
- o27.Parent = o24
- o28.Name = "One"
- o28.Parent = o27
- o28.BrickColor = BrickColor.new("Black")
- o28.Position = Vector3.new(-28.6441574, 17.520277, -78.0145645)
- o28.Rotation = Vector3.new(-90, -87.4599991, -90)
- o28.FormFactor = Enum.FormFactor.Symmetric
- o28.Size = Vector3.new(1, 1, 1)
- o28.CFrame = CFrame.new(-28.6441574, 17.520277, -78.0145645, -2.67907171e-06, 0.0444317684, -0.999014258, -4.60980971e-07, 0.999012411, 0.0444318429, 1, 5.7956197e-07, -2.6559344e-06)
- o28.BottomSurface = Enum.SurfaceType.Smooth
- o28.LeftSurface = Enum.SurfaceType.Weld
- o28.TopSurface = Enum.SurfaceType.Smooth
- o28.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o28.Position = Vector3.new(-28.6441574, 17.520277, -78.0145645)
- o29.Name = "Four"
- o29.Parent = o27
- o29.BrickColor = BrickColor.new("Black")
- o29.Position = Vector3.new(-28.6442947, 17.5203018, -79.0145798)
- o29.Rotation = Vector3.new(-90, -87.4499969, -90)
- o29.FormFactor = Enum.FormFactor.Symmetric
- o29.Size = Vector3.new(1, 1, 1)
- o29.CFrame = CFrame.new(-28.6442947, 17.5203018, -79.0145798, 1.01642888e-06, 0.0444415212, -0.999012053, -5.82180803e-07, 0.999011993, 0.0444415249, 1, 5.36433959e-07, 1.04129776e-06)
- o29.BottomSurface = Enum.SurfaceType.Smooth
- o29.LeftSurface = Enum.SurfaceType.Weld
- o29.TopSurface = Enum.SurfaceType.Smooth
- o29.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o29.Position = Vector3.new(-28.6442947, 17.5203018, -79.0145798)
- o30.Name = "Three"
- o30.Parent = o27
- o30.BrickColor = BrickColor.new("Black")
- o30.Position = Vector3.new(-28.6444454, 17.5202389, -77.0145645)
- o30.Rotation = Vector3.new(-89.9899979, -87.4599991, -89.9899979)
- o30.FormFactor = Enum.FormFactor.Symmetric
- o30.Size = Vector3.new(1, 1, 1)
- o30.CFrame = CFrame.new(-28.6444454, 17.5202389, -77.0145645, 4.80128529e-06, 0.0444511101, -0.999020338, -6.45468617e-07, 0.999011576, 0.0444514714, 1, 4.31409944e-07, 4.82521136e-06)
- o30.BottomSurface = Enum.SurfaceType.Smooth
- o30.LeftSurface = Enum.SurfaceType.Weld
- o30.TopSurface = Enum.SurfaceType.Smooth
- o30.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o30.Position = Vector3.new(-28.6444454, 17.5202389, -77.0145645)
- o31.Name = "Two"
- o31.Parent = o27
- o31.BrickColor = BrickColor.new("Black")
- o31.Position = Vector3.new(-28.6442261, 17.5202885, -76.0145645)
- o31.Rotation = Vector3.new(90.0099945, 87.4799957, 89.9899979)
- o31.FormFactor = Enum.FormFactor.Symmetric
- o31.Size = Vector3.new(1, 1, 1)
- o31.CFrame = CFrame.new(-28.6442261, 17.5202885, -76.0145645, 4.56342696e-06, -0.0444511846, 0.99902916, -7.03348292e-07, -0.999011576, -0.044451911, 1, -4.99806902e-07, -4.59014564e-06)
- o31.BottomSurface = Enum.SurfaceType.Smooth
- o31.LeftSurface = Enum.SurfaceType.Weld
- o31.TopSurface = Enum.SurfaceType.Smooth
- o31.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o31.Position = Vector3.new(-28.6442261, 17.5202885, -76.0145645)
- o32.Name = "Stopped"
- o32.Parent = o24
- o33.Name = "Head"
- o33.Parent = o32
- o33.BrickColor = BrickColor.new("Bright red")
- o33.Reflectance = 0.40000000596046
- o33.Position = Vector3.new(-28.6481514, 17.5209122, -83.7145844)
- o33.Rotation = Vector3.new(-90, -90, 0)
- o33.FormFactor = Enum.FormFactor.Plate
- o33.Size = Vector3.new(1, 0.400000006, 1)
- o33.CFrame = CFrame.new(-28.6481514, 17.5209122, -83.7145844, -2.3656994e-05, -9.14649092e-07, -1.00001347, 1, 6.98235567e-07, -2.36568012e-05, 6.98223118e-07, -1.00001335, 9.13444353e-07)
- o33.BottomSurface = Enum.SurfaceType.Weld
- o33.TopSurface = Enum.SurfaceType.Smooth
- o33.Color = Color3.new(0.768628, 0.156863, 0.109804)
- o33.Position = Vector3.new(-28.6481514, 17.5209122, -83.7145844)
- o34.Parent = o33
- o34.MaxActivationDistance = 16
- o35.Name = "GunSound"
- o35.Parent = o33
- o35.SoundId = "rbxasset://sounds/Rocket shot.wav"
- o35.Volume = 1
- o36.Name = "CannonBall"
- o36.Parent = o33
- o36.Disabled = true
- runDummyScript(function()
- ball = script.Parent
- damage = 25
- function onTouched(hit)
- hit:BreakJoints()
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- tagHumanoid(humanoid)
- humanoid.Health = humanoid.Health - damage
- wait(2)
- untagHumanoid(humanoid)
- connection:disconnect()
- else
- damage = damage / 2
- if damage < 2 then
- connection:disconnect()
- ball.Parent = nil
- end
- end
- if math.random(1,3) == 2 then
- explosion = Instance.new("Explosion")
- explosion.BlastRadius = 1
- explosion.BlastPressure = 1000000 -- these are really wussy units
- explosion.Position = script.Parent.Position
- explosion.Parent = game.Workspace
- connection:disconnect()
- ball.Parent = nil
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- r = game:service("RunService")
- t, s = r.Stepped:wait()
- d = t + 5.0 - s
- while t < d do
- t = r.Stepped:wait()
- end
- ball.Parent = nil
- end,o36)
- o37.Name = "FireGun"
- o37.Parent = o33
- runDummyScript(function()
- local switch = script.Parent
- local gunBarrelOne = script.Parent.Parent.Parent.GunBarrel.One
- local gunBarrelTwo = script.Parent.Parent.Parent.GunBarrel.Two
- local gunBarrelThree = script.Parent.Parent.Parent.GunBarrel.Three
- local gunBarrelFour = script.Parent.Parent.Parent.GunBarrel.Four
- local debounce = false
- local gunOne = true
- local cannonBall = Instance.new("Part")
- cannonBall.Size = Vector3.new(1,1,1)
- cannonBall.BrickColor = BrickColor.new(21) -- red
- cannonBall.Shape = 0
- cannonBall.FormFactor = 0
- cannonBall.BottomSurface = 0
- cannonBall.TopSurface = 0
- cannonBall.Name = "Cannon Shot"
- cannonBall.Elasticity = 1
- cannonBall.Reflectance = .2
- cannonBall.Friction = 1
- function getPlayer(humanoid)
- -- find the owning player of a humanoid.
- local players = game.Players:children()
- for i = 1, #players do
- if players[i].Character ~= nil then
- if players[i].Character.Humanoid == humanoid then return players[i] end
- end
- end
- return nil
- end
- function fire(player)
- local sound = script.Parent:findFirstChild("GunSound")
- if sound == nil then
- sound = Instance.new("Sound")
- sound.Name = "GunSound"
- sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
- sound.Volume = 1
- sound.Parent = script.Parent
- end
- sound:play()
- local missile = Instance.new("Part")
- local barrel
- if gunOne == true then
- barrel = gunBarrelOne
- gunOne = true -- false
- else
- barrel = gunBarrelTwo
- if gunTwo == true then
- barrel = gunBarrelTwo
- gunOne = true -- false
- gunTwo = true -- false
- else
- barrel = gunBarrelThree
- if gunThree == true then
- barrel = gunBarrelThree
- gunOne = true -- false
- gunTwo = true -- false
- gunThree = false
- else
- barrel = gunBarrelFour
- if gunFour == true then
- barrel = gunBarrelFour
- gunOne = true
- gunTwo = true
- gunThree = true
- gunFour = true
- end
- end
- end
- end
- --[[ if gunOne == true then
- barrel = gunBarrelOne
- gunOne = false
- else
- barrel = gunBarrelTwo
- -- gunOne = true
- end
- gunTwo = false
- else
- barrel = gunBarrelThree
- gunThree = false
- else
- barrel = gunBarrelFour
- gunFour = true
- end ]]--
- if (barrel.Position - switch.Parent.Parent.Base.Position).magnitude > 22 then return end -- Blown up guns don't shoot. Usually.
- local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
- local dx = math.random(-10,25)--10
- local dy = math.random(-10,25)--10
- local dz = math.random(-10,25)--10
- local mag = math.random(180,260)
- local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
- local missile = cannonBall:clone()
- missile.Position = spawnPos
- missile.Velocity = v
- local new_script = script.Parent.CannonBall:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.Parent = game.Workspace
- end
- local isOn = true
- button = script.Parent
- function on()
- isOn = true
- button.BrickColor = BrickColor.Green()
- script.Parent.Parent.Name = "Firing"
- script.Parent.Parent.Parent.Base.RightSurfaceInput = 12 --constant
- while isOn do
- wait(0.1)
- fire(player)
- end
- end
- function off()
- isOn = false
- button.BrickColor = BrickColor.Red()
- script.Parent.Parent.Name = "Stopped"
- script.Parent.Parent.Parent.Base.RightSurfaceInput = 0
- end
- function onClicked()
- if isOn == true then off() else on() end
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- --[[ p = script.Parent.Parent.Parent.door:GetChildren()
- for i= 1, #p do
- p[i].Transparency = 0
- p[i].CanCollide = true
- end]]--
- end,o37)
- o38.Parent = o32
- o38.Health = 0
- o38.MaxHealth = 0
- o39.Parent = o7
- o40.Parent = o39
- o40.BrickColor = BrickColor.new("Black")
- o40.Position = Vector3.new(-19.042448, 16.0200214, -81.0094604)
- o40.Rotation = Vector3.new(0, -90, 0)
- o40.FormFactor = Enum.FormFactor.Symmetric
- o40.Size = Vector3.new(3, 2, 1)
- o40.CFrame = CFrame.new(-19.042448, 16.0200214, -81.0094604, 0.00118761975, -2.36967408e-05, -1.00000584, 3.36120638e-06, 1, -2.36926408e-05, 1.00000572, -3.3330939e-06, 0.00118761905)
- o40.BottomSurface = Enum.SurfaceType.Weld
- o40.TopSurface = Enum.SurfaceType.Smooth
- o40.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o40.Position = Vector3.new(-19.042448, 16.0200214, -81.0094604)
- o41.Name = "Base"
- o41.Parent = o39
- o41.BrickColor = BrickColor.new("Black")
- o41.Position = Vector3.new(-19.0462074, 17.5206146, -81.5146561)
- o41.Rotation = Vector3.new(0, -90, 0)
- o41.FormFactor = Enum.FormFactor.Symmetric
- o41.Size = Vector3.new(4, 1, 1)
- o41.CFrame = CFrame.new(-19.0462074, 17.5206146, -81.5146561, 8.38539563e-07, -2.36580836e-05, -1.00000656, -7.21516813e-07, 1, -2.36579599e-05, 1.00000644, 7.21535173e-07, 8.37841071e-07)
- o41.BottomSurface = Enum.SurfaceType.Weld
- o41.RightSurface = Enum.SurfaceType.Motor
- o41.TopSurface = Enum.SurfaceType.Smooth
- o41.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o41.Position = Vector3.new(-19.0462074, 17.5206146, -81.5146561)
- o42.Name = "GunBarrel"
- o42.Parent = o39
- o43.Name = "One"
- o43.Parent = o42
- o43.BrickColor = BrickColor.new("Black")
- o43.Position = Vector3.new(-19.0444336, 17.5202866, -78.0145645)
- o43.Rotation = Vector3.new(-90, -87.4599991, -90)
- o43.FormFactor = Enum.FormFactor.Symmetric
- o43.Size = Vector3.new(1, 1, 1)
- o43.CFrame = CFrame.new(-19.0444336, 17.5202866, -78.0145645, -2.67907171e-06, 0.0444317684, -0.999014258, -4.60980971e-07, 0.999012411, 0.0444318429, 1, 5.7956197e-07, -2.6559344e-06)
- o43.BottomSurface = Enum.SurfaceType.Smooth
- o43.LeftSurface = Enum.SurfaceType.Weld
- o43.TopSurface = Enum.SurfaceType.Smooth
- o43.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o43.Position = Vector3.new(-19.0444336, 17.5202866, -78.0145645)
- o44.Name = "Four"
- o44.Parent = o42
- o44.BrickColor = BrickColor.new("Black")
- o44.Position = Vector3.new(-19.0444336, 17.5203018, -79.0145798)
- o44.Rotation = Vector3.new(-90, -87.4499969, -90)
- o44.FormFactor = Enum.FormFactor.Symmetric
- o44.Size = Vector3.new(1, 1, 1)
- o44.CFrame = CFrame.new(-19.0444336, 17.5203018, -79.0145798, 1.01642888e-06, 0.0444415212, -0.999012053, -5.82180803e-07, 0.999011993, 0.0444415249, 1, 5.36433959e-07, 1.04129776e-06)
- o44.BottomSurface = Enum.SurfaceType.Smooth
- o44.LeftSurface = Enum.SurfaceType.Weld
- o44.TopSurface = Enum.SurfaceType.Smooth
- o44.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o44.Position = Vector3.new(-19.0444336, 17.5203018, -79.0145798)
- o45.Name = "Three"
- o45.Parent = o42
- o45.BrickColor = BrickColor.new("Black")
- o45.Position = Vector3.new(-19.0444393, 17.5202484, -77.0145645)
- o45.Rotation = Vector3.new(-89.9899979, -87.4599991, -89.9899979)
- o45.FormFactor = Enum.FormFactor.Symmetric
- o45.Size = Vector3.new(1, 1, 1)
- o45.CFrame = CFrame.new(-19.0444393, 17.5202484, -77.0145645, 4.80128529e-06, 0.0444511101, -0.999020338, -6.45468617e-07, 0.999011576, 0.0444514714, 1, 4.31409944e-07, 4.82521136e-06)
- o45.BottomSurface = Enum.SurfaceType.Smooth
- o45.LeftSurface = Enum.SurfaceType.Weld
- o45.TopSurface = Enum.SurfaceType.Smooth
- o45.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o45.Position = Vector3.new(-19.0444393, 17.5202484, -77.0145645)
- o46.Name = "Two"
- o46.Parent = o42
- o46.BrickColor = BrickColor.new("Black")
- o46.Position = Vector3.new(-19.0444241, 17.5203419, -76.0145645)
- o46.Rotation = Vector3.new(90.0099945, 87.4799957, 89.9899979)
- o46.FormFactor = Enum.FormFactor.Symmetric
- o46.Size = Vector3.new(1, 1, 1)
- o46.CFrame = CFrame.new(-19.0444241, 17.5203419, -76.0145645, 4.56342696e-06, -0.0444511846, 0.99902916, -7.03348292e-07, -0.999011576, -0.044451911, 1, -4.99806902e-07, -4.59014564e-06)
- o46.BottomSurface = Enum.SurfaceType.Smooth
- o46.LeftSurface = Enum.SurfaceType.Weld
- o46.TopSurface = Enum.SurfaceType.Smooth
- o46.Color = Color3.new(0.105882, 0.164706, 0.207843)
- o46.Position = Vector3.new(-19.0444241, 17.5203419, -76.0145645)
- o47.Name = "Stopped"
- o47.Parent = o39
- o48.Name = "Head"
- o48.Parent = o47
- o48.BrickColor = BrickColor.new("Bright red")
- o48.Reflectance = 0.40000000596046
- o48.Position = Vector3.new(-19.0468426, 17.5209122, -83.714592)
- o48.Rotation = Vector3.new(-90, -90, 0)
- o48.FormFactor = Enum.FormFactor.Plate
- o48.Size = Vector3.new(1, 0.400000006, 1)
- o48.CFrame = CFrame.new(-19.0468426, 17.5209122, -83.714592, -2.36568776e-05, -9.15404826e-07, -1.00001347, 1, 6.98236249e-07, -2.36566812e-05, 6.98224312e-07, -1.00001335, 9.14025463e-07)
- o48.BottomSurface = Enum.SurfaceType.Weld
- o48.TopSurface = Enum.SurfaceType.Smooth
- o48.Color = Color3.new(0.768628, 0.156863, 0.109804)
- o48.Position = Vector3.new(-19.0468426, 17.5209122, -83.714592)
- o49.Parent = o48
- o49.MaxActivationDistance = 16
- o50.Name = "GunSound"
- o50.Parent = o48
- o50.SoundId = "rbxasset://sounds/Rocket shot.wav"
- o50.Volume = 1
- o51.Name = "CannonBall"
- o51.Parent = o48
- o51.Disabled = true
- runDummyScript(function()
- ball = script.Parent
- damage = 25
- function onTouched(hit)
- hit:BreakJoints()
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- tagHumanoid(humanoid)
- humanoid.Health = humanoid.Health - damage
- wait(2)
- untagHumanoid(humanoid)
- connection:disconnect()
- else
- damage = damage / 2
- if damage < 2 then
- connection:disconnect()
- ball.Parent = nil
- end
- end
- if math.random(1,3) == 2 then
- explosion = Instance.new("Explosion")
- explosion.BlastRadius = 1
- explosion.BlastPressure = 1000000 -- these are really wussy units
- explosion.Position = script.Parent.Position
- explosion.Parent = game.Workspace
- connection:disconnect()
- ball.Parent = nil
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- r = game:service("RunService")
- t, s = r.Stepped:wait()
- d = t + 5.0 - s
- while t < d do
- t = r.Stepped:wait()
- end
- ball.Parent = nil
- end,o51)
- o52.Name = "FireGun"
- o52.Parent = o48
- runDummyScript(function()
- local switch = script.Parent
- local gunBarrelOne = script.Parent.Parent.Parent.GunBarrel.One
- local gunBarrelTwo = script.Parent.Parent.Parent.GunBarrel.Two
- local gunBarrelThree = script.Parent.Parent.Parent.GunBarrel.Three
- local gunBarrelFour = script.Parent.Parent.Parent.GunBarrel.Four
- local debounce = false
- local gunOne = true
- local cannonBall = Instance.new("Part")
- cannonBall.Size = Vector3.new(1,1,1)
- cannonBall.BrickColor = BrickColor.new(21) -- red
- cannonBall.Shape = 0
- cannonBall.FormFactor = 0
- cannonBall.BottomSurface = 0
- cannonBall.TopSurface = 0
- cannonBall.Name = "Cannon Shot"
- cannonBall.Elasticity = 1
- cannonBall.Reflectance = .2
- cannonBall.Friction = 1
- function getPlayer(humanoid)
- -- find the owning player of a humanoid.
- local players = game.Players:children()
- for i = 1, #players do
- if players[i].Character ~= nil then
- if players[i].Character.Humanoid == humanoid then return players[i] end
- end
- end
- return nil
- end
- function fire(player)
- local sound = script.Parent:findFirstChild("GunSound")
- if sound == nil then
- sound = Instance.new("Sound")
- sound.Name = "GunSound"
- sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
- sound.Volume = 1
- sound.Parent = script.Parent
- end
- sound:play()
- local missile = Instance.new("Part")
- local barrel
- if gunOne == true then
- barrel = gunBarrelOne
- gunOne = true -- false
- else
- barrel = gunBarrelTwo
- if gunTwo == true then
- barrel = gunBarrelTwo
- gunOne = true -- false
- gunTwo = true -- false
- else
- barrel = gunBarrelThree
- if gunThree == true then
- barrel = gunBarrelThree
- gunOne = true -- false
- gunTwo = true -- false
- gunThree = false
- else
- barrel = gunBarrelFour
- if gunFour == true then
- barrel = gunBarrelFour
- gunOne = true
- gunTwo = true
- gunThree = true
- gunFour = true
- end
- end
- end
- end
- --[[ if gunOne == true then
- barrel = gunBarrelOne
- gunOne = false
- else
- barrel = gunBarrelTwo
- -- gunOne = true
- end
- gunTwo = false
- else
- barrel = gunBarrelThree
- gunThree = false
- else
- barrel = gunBarrelFour
- gunFour = true
- end ]]--
- if (barrel.Position - switch.Parent.Parent.Base.Position).magnitude > 22 then return end -- Blown up guns don't shoot. Usually.
- local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
- local dx = math.random(-10,25)--10
- local dy = math.random(-10,25)--10
- local dz = math.random(-10,25)--10
- local mag = math.random(180,260)
- local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
- local missile = cannonBall:clone()
- missile.Position = spawnPos
- missile.Velocity = v
- local new_script = script.Parent.CannonBall:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.Parent = game.Workspace
- end
- local isOn = true
- button = script.Parent
- function on()
- isOn = true
- button.BrickColor = BrickColor.Green()
- script.Parent.Parent.Name = "Firing"
- script.Parent.Parent.Parent.Base.RightSurfaceInput = 12 --constant
- while isOn do
- wait(0.1)
- fire(player)
- end
- end
- function off()
- isOn = false
- button.BrickColor = BrickColor.Red()
- script.Parent.Parent.Name = "Stopped"
- script.Parent.Parent.Parent.Base.RightSurfaceInput = 0
- end
- function onClicked()
- if isOn == true then off() else on() end
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- --[[ p = script.Parent.Parent.Parent.door:GetChildren()
- for i= 1, #p do
- p[i].Transparency = 0
- p[i].CanCollide = true
- end]]--
- end,o52)
- o53.Parent = o47
- o53.Health = 0
- o53.MaxHealth = 0
- o54.Name = "Gun"
- o54.Parent = o7
- o55.Name = "Cannon"
- o55.Parent = o54
- o56.Name = "Switch"
- o56.Parent = o55
- o56.Position = Vector3.new(-20.9097805, 8.62950039, -80.684166)
- o56.Rotation = Vector3.new(0, 0.00999999978, 0.00999999978)
- o56.FormFactor = Enum.FormFactor.Plate
- o56.Size = Vector3.new(1, 1.20000005, 3)
- o56.CFrame = CFrame.new(-20.9097805, 8.62950039, -80.684166, 1.00000679, -0.000106465588, 0.000146138482, 0.00010647517, 1, -6.99682496e-05, -0.000146130566, 6.99842421e-05, 1.00000668)
- o56.BackSurface = Enum.SurfaceType.Weld
- o56.BottomSurface = Enum.SurfaceType.Weld
- o56.LeftSurface = Enum.SurfaceType.Weld
- o56.RightSurface = Enum.SurfaceType.Weld
- o56.TopSurface = Enum.SurfaceType.Smooth
- o56.Position = Vector3.new(-20.9097805, 8.62950039, -80.684166)
- o57.Name = "CannonBall"
- o57.Parent = o56
- o57.Disabled = true
- runDummyScript(function()
- ball = script.Parent
- damage = 100
- function onTouched(hit)
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid~=nil then
- tagHumanoid(humanoid)
- humanoid.Health = humanoid.Health - damage
- wait(0.00000001)
- untagHumanoid(humanoid)
- connection:disconnect()
- else
- damage = damage / 2
- if damage < 2 then
- connection:disconnect()
- ball.Parent = nil
- end
- end
- if math.random(1,1) == 1 then
- explosion = Instance.new("Explosion")
- explosion.BlastRadius = 15
- explosion.BlastPressure = 600000 -- these are really wussy units
- explosion.Position = script.Parent.Position
- explosion.Parent = game.Workspace
- connection:disconnect()
- ball.Parent = nil
- cancollide = true
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- r = game:service("RunService")
- t, s = r.Stepped:wait()
- d = t + 5.0 - s
- while t < d do
- t = r.Stepped:wait()
- end
- ball.Parent = nil
- end,o57)
- o58.Parent = o56
- o58.MaxActivationDistance = 10
- o59.Name = "FireGun"
- o59.Parent = o56
- runDummyScript(function()
- local switch = script.Parent
- local gunBarrelOne = script.Parent.Parent.GunBarrel.One
- local debounce = false
- local gunOne = true
- local cannonBall = Instance.new("Part")
- cannonBall.Size = Vector3.new(1,1,1)
- cannonBall.BrickColor = BrickColor.new(1) -- medium blue
- cannonBall.Shape = 0
- cannonBall.BottomSurface = 0
- cannonBall.TopSurface = 0
- cannonBall.Name = "Cannon Shot"
- cannonBall.Elasticity = .1
- cannonBall.Reflectance = 0
- cannonBall.Friction = 0
- function fire(player)
- local sound = script.Parent:findFirstChild("GunSound")
- if sound == nil then
- sound = Instance.new("Sound")
- sound.Name = "GunSound"
- sound.SoundId = "http://www.roblox.com/asset?id=2101148"
- sound.Volume = 1
- sound.Parent = script.Parent
- end
- sound:play()
- local missile = Instance.new("Part")
- local barrel
- if gunOne == true then
- barrel = gunBarrelOne
- gunOne = true
- end
- local spawnPos = barrel.CFrame * Vector3.new(6, 0, 0)
- local dx = math.random(50,50)
- local dy = math.random(0,0)
- local dz = math.random(0,0)
- local mag = math.random(750,750)
- local v = barrel.CFrame:vectorToWorldSpace(Vector3.new(mag + dx,dy,dz))
- local missile = cannonBall:clone()
- missile.Position = spawnPos
- missile.Velocity = v
- local new_script = script.Parent.CannonBall:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.Parent = game.Workspace
- end
- function onClicked()
- if debounce == false then
- debounce = true
- switch.BrickColor = BrickColor.new(21)
- -- let slip the dogs of war
- fire(player)
- wait(.5)
- wait(1)
- debounce = false
- switch.BrickColor = BrickColor.new(37)
- end
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- end,o59)
- o60.Name = "GunSound"
- o60.Parent = o56
- o60.SoundId = "http://www.roblox.com/asset/?id=12222084"
- o60.Volume = 1
- o61.Name = "GunBarrel"
- o61.Parent = o55
- o62.Name = "One"
- o62.Parent = o61
- o62.Position = Vector3.new(-18.8467827, 9.7098093, -72.7852707)
- o62.Rotation = Vector3.new(0, -90, 0)
- o62.FormFactor = Enum.FormFactor.Symmetric
- o62.Shape = Enum.PartType.Cylinder
- o62.Size = Vector3.new(1, 1, 1)
- o62.CFrame = CFrame.new(-18.8467827, 9.7098093, -72.7852707, 3.46582141e-08, -0.000106319145, -1.00000644, -9.65650543e-07, 1, -0.00010631849, 1.00000644, 9.6565384e-07, 3.40795623e-08)
- o62.BottomSurface = Enum.SurfaceType.Smooth
- o62.LeftSurface = Enum.SurfaceType.Weld
- o62.RightSurface = Enum.SurfaceType.Weld
- o62.TopSurface = Enum.SurfaceType.Smooth
- o62.Position = Vector3.new(-18.8467827, 9.7098093, -72.7852707)
- o63.Parent = o54
- o64.Parent = o63
- o64.Position = Vector3.new(-18.8436699, 9.22975159, -79.7864761)
- o64.Rotation = Vector3.new(-180, 0.0899999961, 179.98999)
- o64.Size = Vector3.new(3, 2.4000001, 3)
- o64.CFrame = CFrame.new(-18.8436699, 9.22975159, -79.7864761, -1.00000513, -0.00010634122, 0.00156820449, -0.000106338885, 1, 1.1487034e-06, -0.00156820507, 9.81941866e-07, -1.00000513)
- o64.BackSurface = Enum.SurfaceType.Weld
- o64.BottomSurface = Enum.SurfaceType.Weld
- o64.LeftSurface = Enum.SurfaceType.Weld
- o64.RightSurface = Enum.SurfaceType.Weld
- o64.TopSurface = Enum.SurfaceType.Weld
- o64.Position = Vector3.new(-18.8436699, 9.22975159, -79.7864761)
- o65.Parent = o63
- o65.Position = Vector3.new(-18.8466434, 9.72975063, -74.7852478)
- o65.Rotation = Vector3.new(0, -90, 0)
- o65.FormFactor = Enum.FormFactor.Symmetric
- o65.Shape = Enum.PartType.Cylinder
- o65.Size = Vector3.new(1, 1, 1)
- o65.CFrame = CFrame.new(-18.8466434, 9.72975063, -74.7852478, -1.7720086e-07, -0.000106309708, -1.00000644, -9.65687718e-07, 1, -0.000106309053, 1.00000644, 9.65668505e-07, -1.77779498e-07)
- o65.BottomSurface = Enum.SurfaceType.Smooth
- o65.LeftSurface = Enum.SurfaceType.Weld
- o65.RightSurface = Enum.SurfaceType.Weld
- o65.TopSurface = Enum.SurfaceType.Smooth
- o65.Position = Vector3.new(-18.8466434, 9.72975063, -74.7852478)
- o66.Parent = o63
- o66.Position = Vector3.new(-18.8465691, 9.72980595, -73.7849197)
- o66.Rotation = Vector3.new(0, -90, 0)
- o66.FormFactor = Enum.FormFactor.Symmetric
- o66.Shape = Enum.PartType.Cylinder
- o66.Size = Vector3.new(1, 1, 1)
- o66.CFrame = CFrame.new(-18.8465691, 9.72980595, -73.7849197, -1.27739298e-07, -0.000106314503, -1.00000644, -9.81545099e-07, 1, -0.000106313848, 1.00000644, 9.8153123e-07, -1.28319641e-07)
- o66.BottomSurface = Enum.SurfaceType.Smooth
- o66.LeftSurface = Enum.SurfaceType.Weld
- o66.RightSurface = Enum.SurfaceType.Weld
- o66.TopSurface = Enum.SurfaceType.Smooth
- o66.Position = Vector3.new(-18.8465691, 9.72980595, -73.7849197)
- o67.Parent = o63
- o67.Position = Vector3.new(-18.8466434, 9.7297821, -76.7855682)
- o67.Rotation = Vector3.new(0, -90, 0)
- o67.FormFactor = Enum.FormFactor.Symmetric
- o67.Shape = Enum.PartType.Cylinder
- o67.Size = Vector3.new(1, 1, 1)
- o67.CFrame = CFrame.new(-18.8466434, 9.7297821, -76.7855682, -1.81681401e-07, -0.000106299725, -1.00000644, -9.65332333e-07, 1, -0.00010629907, 1.00000644, 9.65312665e-07, -1.82259981e-07)
- o67.BottomSurface = Enum.SurfaceType.Smooth
- o67.LeftSurface = Enum.SurfaceType.Weld
- o67.RightSurface = Enum.SurfaceType.Weld
- o67.TopSurface = Enum.SurfaceType.Smooth
- o67.Position = Vector3.new(-18.8466434, 9.7297821, -76.7855682)
- o68.Parent = o63
- o68.Position = Vector3.new(-18.8460999, 9.72977638, -77.7861328)
- o68.Rotation = Vector3.new(0, -90, 0)
- o68.FormFactor = Enum.FormFactor.Symmetric
- o68.Shape = Enum.PartType.Cylinder
- o68.Size = Vector3.new(1, 1, 1)
- o68.CFrame = CFrame.new(-18.8460999, 9.72977638, -77.7861328, -6.01867214e-08, -0.000106301348, -1.00000644, -9.98144628e-07, 1, -0.000106300693, 1.00000644, 9.98138148e-07, -6.0768798e-08)
- o68.BottomSurface = Enum.SurfaceType.Smooth
- o68.LeftSurface = Enum.SurfaceType.Weld
- o68.RightSurface = Enum.SurfaceType.Weld
- o68.TopSurface = Enum.SurfaceType.Smooth
- o68.Position = Vector3.new(-18.8460999, 9.72977638, -77.7861328)
- o69.Parent = o63
- o69.Position = Vector3.new(-18.8465691, 9.72978306, -75.78582)
- o69.Rotation = Vector3.new(0, -90, 0)
- o69.FormFactor = Enum.FormFactor.Symmetric
- o69.Shape = Enum.PartType.Cylinder
- o69.Size = Vector3.new(1, 1, 1)
- o69.CFrame = CFrame.new(-18.8465691, 9.72978306, -75.78582, -7.92416373e-08, -0.000106318184, -1.00000644, -9.97394409e-07, 1, -0.00010631753, 1.00000644, 9.97385882e-07, -7.98236499e-08)
- o69.BottomSurface = Enum.SurfaceType.Smooth
- o69.LeftSurface = Enum.SurfaceType.Weld
- o69.RightSurface = Enum.SurfaceType.Weld
- o69.TopSurface = Enum.SurfaceType.Smooth
- o69.Position = Vector3.new(-18.8465691, 9.72978306, -75.78582)
- o70.Parent = o7
- o70.Position = Vector3.new(-28.3009357, 12.369977, -79.2643051)
- o70.Rotation = Vector3.new(0, -0.429999977, 0.00999999978)
- o70.Size = Vector3.new(3.39999986, 3.29999995, 2)
- o70.CFrame = CFrame.new(-28.3009357, 12.369977, -79.2643051, 0.999978364, -0.000105135696, -0.00750152068, 0.000105124273, 1, -1.83084774e-06, 0.00750152115, 1.04218577e-06, 0.999978364)
- o70.Position = Vector3.new(-28.3009357, 12.369977, -79.2643051)
- o71.Parent = o7
- o71.Position = Vector3.new(-23.6717663, 14.5199966, -82.7808609)
- o71.Rotation = Vector3.new(0, -0.199999988, 0)
- o71.Size = Vector3.new(14.6000004, 1, 9.20000076)
- o71.CFrame = CFrame.new(-23.6717663, 14.5199966, -82.7808609, 1.00000012, -2.95352947e-07, -0.00356004084, 2.88593583e-07, 1, -1.90646313e-06, 0.00356004108, 1.90542903e-06, 1)
- o71.Position = Vector3.new(-23.6717663, 14.5199966, -82.7808609)
- o72.Parent = o7
- o72.Position = Vector3.new(-29.0035076, 3.61999941, -82.9008713)
- o72.Rotation = Vector3.new(0, -0.00999999978, 0)
- o72.Size = Vector3.new(4, 4.79999971, 5)
- o72.CFrame = CFrame.new(-29.0035076, 3.61999941, -82.9008713, 1.00000632, -3.6807787e-08, -0.000198817375, 3.66788591e-08, 1, -6.78978154e-07, 0.00019881771, 6.78968718e-07, 1.00000632)
- o72.TopSurface = Enum.SurfaceType.Weld
- o72.Position = Vector3.new(-29.0035076, 3.61999941, -82.9008713)
- o73.Parent = o7
- o73.Position = Vector3.new(-23.6920071, 7.52000332, -78.6761017)
- o73.Rotation = Vector3.new(0, -0.0299999993, 0)
- o73.Size = Vector3.new(12.6000004, 1, 1)
- o73.CFrame = CFrame.new(-23.6920071, 7.52000332, -78.6761017, 1.0000062, -1.79548636e-07, -0.000589012052, 1.80011824e-07, 1, 7.77528726e-07, 0.000589012401, -7.77645994e-07, 1.0000062)
- o73.Position = Vector3.new(-23.6920071, 7.52000332, -78.6761017)
- o74.Parent = o7
- o74.Position = Vector3.new(-30.5010414, 11.0200157, -82.7777939)
- o74.Rotation = Vector3.new(0, -0.0799999982, 0)
- o74.Size = Vector3.new(1, 6, 9.20000076)
- o74.CFrame = CFrame.new(-30.5010414, 11.0200157, -82.7777939, 1.00000525, -1.41484605e-07, -0.00145297009, 1.44508704e-07, 1, 2.07750486e-06, 0.00145297043, -2.07773223e-06, 1.00000525)
- o74.RightSurface = Enum.SurfaceType.Weld
- o74.Position = Vector3.new(-30.5010414, 11.0200157, -82.7777939)
- o75.Name = "Part-to-Door 1 Strong Joint"
- o75.Parent = o74
- o75.C0 = CFrame.new(0.5, -3, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o75.C1 = CFrame.new(8.74342346, -2.49998474, 2.11160278, -0.999999166, -1.33180879e-06, 0.00132872781, -1.46972241e-06, 1, -0.00010379294, -0.0013287277, -0.000103794788, -0.999999166)
- o75.Part0 = o74
- o75.Part1 = o84
- o76.Parent = o7
- o76.Position = Vector3.new(-29.003233, 0.720032692, -82.901947)
- o76.Rotation = Vector3.new(0, -0.00999999978, 0)
- o76.Size = Vector3.new(4, 1, 15)
- o76.CFrame = CFrame.new(-29.003233, 0.720032692, -82.901947, 1.00001395, -4.84239386e-08, -0.00019938573, 4.83016045e-08, 1, -6.79794539e-07, 0.000199386443, 6.7977868e-07, 1.00001395)
- o76.Position = Vector3.new(-29.003233, 0.720032692, -82.901947)
- o77.Parent = o7
- o77.Position = Vector3.new(-19.098341, 12.219923, -79.2664871)
- o77.Rotation = Vector3.new(0, -0.429999977, 0.00999999978)
- o77.Size = Vector3.new(3.39999986, 3.60000014, 2)
- o77.CFrame = CFrame.new(-19.098341, 12.219923, -79.2664871, 0.999978304, -0.000105183441, -0.00750074256, 0.000105172287, 1, -1.79533959e-06, 0.00750074349, 1.00642387e-06, 0.999978304)
- o77.Position = Vector3.new(-19.098341, 12.219923, -79.2664871)
- o78.Parent = o7
- o78.Position = Vector3.new(-19.3946953, 7.52001619, -80.6645813)
- o78.Rotation = Vector3.new(0, -0.00999999978, 0)
- o78.Size = Vector3.new(4.01000023, 1, 2.88999987)
- o78.CFrame = CFrame.new(-19.3946953, 7.52001619, -80.6645813, 1.00001395, -1.62116365e-08, -0.00025324634, 1.60529261e-08, 1, -6.97606652e-07, 0.000253247097, 6.97596533e-07, 1.00001395)
- o78.Position = Vector3.new(-19.3946953, 7.52001619, -80.6645813)
- o79.Name = "Part-to-Part Strong Joint"
- o79.Parent = o78
- o79.C0 = CFrame.new(2.00500011, -0.5, 1.44499993, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o79.C1 = CFrame.new(-0.500907898, -3.49997711, 3.57652283, -0.00135859207, 2.3316268e-07, 1.00000191, -8.00264502e-07, 1, -2.34289558e-07, -1.00000191, -8.00588111e-07, -0.0013585916)
- o79.Part0 = o78
- o79.Part1 = o82
- o80.Parent = o7
- o80.Transparency = 0.40000000596046
- o80.Position = Vector3.new(-23.6281052, 11.0194235, -78.650444)
- o80.Rotation = Vector3.new(-180, 0.429999977, 179.98999)
- o80.Size = Vector3.new(5.64999962, 6, 1.09999967)
- o80.CFrame = CFrame.new(-23.6281052, 11.0194235, -78.650444, -0.999978483, -0.00010539405, 0.00750794774, -0.000105326166, 1, 9.35044955e-06, -0.00750794914, 8.55943654e-06, -0.999978483)
- o80.BackSurface = Enum.SurfaceType.Weld
- o80.Position = Vector3.new(-23.6281052, 11.0194235, -78.650444)
- o81.Name = "Part-to-Part Strong Joint"
- o81.Parent = o80
- o81.C0 = CFrame.new(-2.82499981, -3, -0.549999833, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o81.C1 = CFrame.new(-1.69998169, -4.20002747, 1.19999695, 7.20428807e-06, -1.54011104e-07, 1, 7.55434758e-06, 1, 1.53956677e-07, -1, 7.55434667e-06, 7.20428898e-06)
- o81.Part0 = o80
- o81.Part1 = o77
- o82.Parent = o7
- o82.Position = Vector3.new(-16.8833008, 10.5199966, -82.7948151)
- o82.Rotation = Vector3.new(0, -0.0899999961, 0)
- o82.Size = Vector3.new(1, 7.00000048, 9.20000076)
- o82.CFrame = CFrame.new(-16.8833008, 10.5199966, -82.7948151, 1.00000513, -2.50676948e-07, -0.00161184184, 2.48267185e-07, 1, -1.49819562e-06, 0.00161184219, 1.49779646e-06, 1.00000513)
- o82.Position = Vector3.new(-16.8833008, 10.5199966, -82.7948151)
- o83.Name = "Part-to-Part Strong Joint"
- o83.Parent = o82
- o83.C0 = CFrame.new(-0.5, -3.50000024, -4.60000038, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- o83.C1 = CFrame.new(6.31087494, -0.499992371, -8.72322083, -0.00102283154, -6.65515856e-08, -1.00000572, -2.27569785e-06, 1, -6.42757101e-08, 1.00000608, 2.27556438e-06, -0.0010228327)
- o83.Part0 = o82
- o83.Part1 = o73
- o84.Name = "Door 1"
- o84.Parent = o7
- o84.Position = Vector3.new(-27.8952236, 10.5202217, -86.920372)
- o84.Rotation = Vector3.new(0, -90, 0)
- o84.Size = Vector3.new(1.00000024, 7, 4.19999981)
- o84.CFrame = CFrame.new(-27.8952236, 10.5202217, -86.920372, -0.000124234328, -0.00010393557, -1.00000632, 7.45832835e-07, 1, -0.000103935017, 1.00000632, -7.58756357e-07, -0.00012423459)
- o84.BottomSurface = Enum.SurfaceType.Studs
- o84.TopSurface = Enum.SurfaceType.Smooth
- o84.Position = Vector3.new(-27.8952236, 10.5202217, -86.920372)
- o85.Parent = o84
- o86.Name = "OpenDoorScript"
- o86.Parent = o84
- runDummyScript(function()
- local isOn = true
- function on()
- isOn = true
- script.Parent.Transparency = 0
- script.Parent.CanCollide = true
- end
- function off()
- isOn = false
- script.Parent.Transparency = 0.8
- script.Parent.CanCollide = false
- end
- function onClicked()
- if isOn == true then off() else on() end
- end
- script.Parent.ClickDetector.MouseClick:connect(onClicked)
- on()
- end,o86)
- o87.Name = "Door 1-to-Part Strong Joint"
- o87.Parent = o84
- o87.C0 = CFrame.new(-0.500000119, 3.5, 2.0999999, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- o87.C1 = CFrame.new(-6.34020996, -0.5, -4.61720276, -0.00343578565, -0.999994159, -0.000103648381, -2.65129302e-06, -0.00010363989, 1, -0.999994159, 0.00343578588, -2.2951931e-06)
- o87.Part0 = o84
- o87.Part1 = o71
- o88.Name = "Door 1-to-Part Strong Joint"
- o88.Parent = o84
- o88.C0 = CFrame.new(0.500000119, -3.5, -2.0999999, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- o88.C1 = CFrame.new(-4.19464874, -3.49951935, 0.515686035, -0.0014949895, -0.000103689817, 1.00000107, -1.30703006e-06, 1, 0.000103687686, -1.00000107, -1.15202772e-06, -0.0014949888)
- o88.Part0 = o84
- o88.Part1 = o93
- o89.Parent = o7
- o89.Position = Vector3.new(-23.7005692, 6.52006531, -82.80056)
- o89.Rotation = Vector3.new(0, -0.00999999978, 0)
- o89.Size = Vector3.new(14.6000004, 1, 9.19999981)
- o89.CFrame = CFrame.new(-23.7005692, 6.52006531, -82.80056, 1.00000632, -3.4957818e-08, -0.000198163878, 3.48295046e-08, 1, -6.78188371e-07, 0.000198164213, 6.78179276e-07, 1.00000632)
- o89.TopSurface = Enum.SurfaceType.Weld
- o89.Position = Vector3.new(-23.7005692, 6.52006531, -82.80056)
- o90.Parent = o7
- o90.Position = Vector3.new(-28.0031986, 7.66998529, -80.7068863)
- o90.Rotation = Vector3.new(0, -0.00999999978, 0)
- o90.Size = Vector3.new(4, 1.29999995, 3.07000017)
- o90.CFrame = CFrame.new(-28.0031986, 7.66998529, -80.7068863, 1.00000632, -5.28858912e-09, -0.000252973696, 5.1150435e-09, 1, -7.10800691e-07, 0.000252974045, 7.10797394e-07, 1.00000632)
- o90.Position = Vector3.new(-28.0031986, 7.66998529, -80.7068863)
- o91.Name = "Part-to-Part Strong Joint"
- o91.Parent = o90
- o91.C0 = CFrame.new(-2, -0.649999976, 1.53500009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o91.C1 = CFrame.new(-6.3116684, -0.500015259, -0.492599487, 1.00000453, 1.82027378e-07, 0.000336033932, -1.81432938e-07, 1, -1.49106825e-06, -0.000336033467, 1.49094274e-06, 1.00000489)
- o91.Part0 = o90
- o91.Part1 = o73
- o92.Parent = o7
- o92.Position = Vector3.new(-18.3975811, 0.720001936, -82.7000046)
- o92.Rotation = Vector3.new(0, -0.00999999978, 0)
- o92.Size = Vector3.new(4, 1, 15)
- o92.CFrame = CFrame.new(-18.3975811, 0.720001936, -82.7000046, 1.00000632, -4.08549958e-08, -0.000199493894, 4.07258547e-08, 1, -6.77663934e-07, 0.000199494229, 6.77653588e-07, 1.00000632)
- o92.Position = Vector3.new(-18.3975811, 0.720001936, -82.7000046)
- o93.Parent = o7
- o93.Position = Vector3.new(-21.5993652, 10.5199604, -86.9290619)
- o93.Rotation = Vector3.new(0, -0.0899999961, 0)
- o93.Size = Vector3.new(8.40000057, 7, 1)
- o93.CFrame = CFrame.new(-21.5993652, 10.5199604, -86.9290619, 1.00000513, -2.47383497e-07, -0.00161922863, 2.4647926e-07, 1, -5.61568697e-07, 0.00161922909, 5.61165848e-07, 1.00000513)
- o93.Position = Vector3.new(-21.5993652, 10.5199604, -86.9290619)
- o94.Parent = o7
- o94.Position = Vector3.new(-30.495348, 7.52001238, -82.7998276)
- o94.Rotation = Vector3.new(0, 0.00999999978, 0)
- o94.Size = Vector3.new(1, 1, 9.20000076)
- o94.CFrame = CFrame.new(-30.495348, 7.52001238, -82.7998276, 1.00000644, -5.97297571e-08, 0.000178675429, 5.92309561e-08, 1, 2.82483961e-06, -0.000178675095, -2.82485348e-06, 1.00000644)
- o94.Position = Vector3.new(-30.495348, 7.52001238, -82.7998276)
- o95.Name = "Part-to-Door 1 Strong Joint"
- o95.Parent = o94
- o95.C0 = CFrame.new(0.5, -0.5, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o95.C1 = CFrame.new(8.72068787, -3.49998474, 2.09848022, -1, -2.07899097e-06, -0.000302907632, -2.04752632e-06, 1, -0.000103875551, 0.00030290772, -0.000103874925, -1)
- o95.Part0 = o94
- o95.Part1 = o84
- o96.Name = "Part-to-Part Strong Joint"
- o96.Parent = o94
- o96.C0 = CFrame.new(0.5, -0.5, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o96.C1 = CFrame.new(-1.99198151, -0.64995575, 2.50788879, -0.000431969936, -5.50789991e-08, 0.999999881, -3.53707355e-06, 1, 5.35510942e-08, -0.999999881, -3.53705013e-06, -0.000431969936)
- o96.Part0 = o94
- o96.Part1 = o90
- o97.Name = "Part-to-Part Strong Joint"
- o97.Parent = o94
- o97.C0 = CFrame.new(0.5, -0.5, 4.60000038, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- o97.C1 = CFrame.new(-6.30202484, -0.499977112, 0.480026245, -0.000767684891, 1.1698441e-07, 1.00000441, -2.04725438e-06, 1, -1.18462978e-07, -1.00000477, -2.04742719e-06, -0.0007676846)
- o97.Part0 = o94
- o97.Part1 = o73
- o98.Parent = o7
- o98.Position = Vector3.new(-18.3967533, 3.62000489, -82.8987961)
- o98.Rotation = Vector3.new(0, -0.00999999978, 0)
- o98.Size = Vector3.new(4, 4.79999971, 5)
- o98.CFrame = CFrame.new(-18.3967533, 3.62000489, -82.8987961, 1.00000632, -3.85901444e-08, -0.000199139075, 3.84614687e-08, 1, -6.76581124e-07, 0.000199139409, 6.76571233e-07, 1.00000632)
- o98.TopSurface = Enum.SurfaceType.Weld
- o98.Position = Vector3.new(-18.3967533, 3.62000489, -82.8987961)
- o99.Parent = o7
- o99.BrickColor = BrickColor.new("Brown")
- o99.Position = Vector3.new(-23.5991287, 7.52002001, -82.2001877)
- o99.Rotation = Vector3.new(180, -0.00999999978, 180)
- o99.Size = Vector3.new(2, 1, 4)
- o99.CFrame = CFrame.new(-23.5991287, 7.52002001, -82.2001877, -1.00000119, -1.72356101e-06, -0.000185278768, -1.71905594e-06, 1, -2.43105005e-05, 0.000185278739, -2.43102113e-05, -1.00000119)
- o99.BackSurface = Enum.SurfaceType.Weld
- o99.BottomSurface = Enum.SurfaceType.Weld
- o99.LeftSurface = Enum.SurfaceType.Weld
- o99.RightSurface = Enum.SurfaceType.Weld
- o99.TopSurface = Enum.SurfaceType.Smooth
- o99.HeadsUpDisplay = false
- o99.MaxSpeed = 20
- o99.Torque = 1
- o99.Color = Color3.new(0.486275, 0.360784, 0.27451)
- o99.Position = Vector3.new(-23.5991287, 7.52002001, -82.2001877)
- o100.Name = "FlyScript"
- o100.Parent = o99
- runDummyScript(function()
- MaxSpeed=0 -- changing this does nothing
- function constant(engine)
- engine.BodyVelocity.velocity=engine.CFrame.lookVector*MaxSpeed -- deffinitley leave alone
- end
- function check()
- if (script.Parent.Throttle==1) then
- MaxSpeed=24 -- change for speed
- script.Parent.BodyVelocity.maxForce=Vector3.new(5e+005,0, 5e+005)
- elseif(script.Parent.Throttle==-1) then
- MaxSpeed=-24 -- change for speed in reverse
- script.Parent.BodyVelocity.maxForce=Vector3.new(5e+005, 0, 5e+005)
- elseif(script.Parent.Throttle==0) then
- script.Parent.BodyVelocity.maxForce=Vector3.new(0,0,0)
- end
- if(script.Parent.Throttle== 0) then
- MaxSpeed= 0 -- leave alone
- end
- if (script.Parent.Steer==-1) then
- script.Parent.Turn.angularvelocity=Vector3.new(0,0.4,0) -- leave alone
- elseif (script.Parent.Steer==1) then
- script.Parent.Turn.angularvelocity=Vector3.new(0,-0.4,0) -- leave alone
- elseif (script.Parent.Steer==0) then
- script.Parent.Turn.angularvelocity=Vector3.new(0,0,0) -- leave alone
- end
- end
- while true do
- wait()
- check()
- constant(script.Parent)
- end
- end,o100)
- o101.Name = "Turn"
- o101.Parent = o99
- o101.angularVelocity = Vector3.new(0, 0, 0)
- o101.maxTorque = Vector3.new(0, 10000000, 0)
- o101.P = 1.2500000250511e+20
- o101.MaxTorque = Vector3.new(0, 10000000, 0)
- o102.Name = "OnSeated!"
- o102.Parent = o99
- runDummyScript(function()
- -- made by Weeve. for all of you lamo scripters out there, can you at least leave my name here?
- -- don't edit anything here
- seat = script.Parent
- function onChildAdded(part)
- if (part.className == "Weld") then
- while true do
- welde = seat:FindFirstChild("SeatWeld")
- if (welde ~= nil) then
- sitted = welde.Part1.Parent
- end
- if (sitted.Name ~= script.Parent.Owner.Value) then
- if (script.Parent.Owner.Value == "NoOne") then
- script.Parent.Owner.Value = sitted.Name
- print ("sitted steal")
- else
- print ("stolen!!")
- shipstealer = game.Workspace:FindFirstChild(sitted.Name)
- if (shipstealer ~= nil) then
- shipstealer.Humanoid.Jump=true
- end
- end
- end
- wait(0.2)
- if (welde == nil) then
- print("BreakLoop")
- script.Parent.Owner.Value = "NoOne"
- break end
- end
- end
- end
- --while true do
- -- wait(0.5)
- -- script.Parent.Parent.Name=script.Parent.Owner.Value .. "'s Ship"
- --end
- seat.ChildAdded:connect(onChildAdded)
- --Weeve
- end,o102)
- o103.Name = "Owner"
- o103.Parent = o99
- o103.Value = "NoOne"
- o104.Parent = o99
- o104.Velocity = Vector3.new(0, 0, 0)
- o104.velocity = Vector3.new(0, 0, 0)
- o105.Name = "RecievePOWER"
- o105.Parent = o99
- runDummyScript(function()
- function Seated(theSeated)
- dude = game.Players:playerFromCharacter(theSeated.Part1.Parent)
- if dude ~= nil then
- thing2 = script.Parent.Turret1212:clone()
- thing2.Parent = dude.Backpack
- thing2.Vehicle.Value = script.Parent.Parent
- end
- end
- function UNSeated(theSeated)
- dude = game.Players:playerFromCharacter(theSeated.Part1.Parent)
- if dude ~= nil then
- if dude.Backpack:findFirstChild("Turret1212") ~= nil then
- dude.Backpack:findFirstChild("Turret1212").Active = false
- dude.Backpack:findFirstChild("Turret1212"):remove()
- end
- end
- end
- script.Parent.ChildAdded:connect(Seated)
- script.Parent.ChildRemoved:connect(UNSeated)
- end,o105)
- o106.Name = "Turret1212"
- o106.Parent = o99
- o106.TextureId = "http://www.roblox.com/asset/?id=0"
- o106.Selected = Signal Selected
- o107.Parent = o106
- runDummyScript(function()
- firin = false
- smoken = 0
- function onB1D(mouse)
- firin = true
- smoken = 0
- while firin do
- wait(0.1)
- if mouse.Target.Parent ~= script.Parent.Vehicle.Value and mouse.Target.Parent.Parent ~= script.Parent.Vehicle.Value then
- script.Parent.Vehicle.Value.Barrel.Fire:play()
- script.Parent.Vehicle.Value.Barrel.Transparency = 0.5
- theTar = mouse.Hit.p + Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
- bull = Instance.new("Part")
- bull.Parent = nil
- bull.CFrame = CFrame.new((theTar + script.Parent.Vehicle.Value.Barrel.Position)/2,script.Parent.Vehicle.Value.Barrel.Position)
- bull.CanCollide = false
- bull.BrickColor = BrickColor.new(24)
- bull.Anchored = true
- bull.formFactor = 0
- bull.Name = "Bullet"
- bull.Size = Vector3.new(1,1,1)
- mesher = Instance.new("BlockMesh")
- mesher.Parent = bull
- mesher.Scale = Vector3.new(0.12, 0.12, (mouse.Hit.p - script.Parent.Vehicle.Value.Barrel.Position).magnitude)
- script.Cle:clone().Parent = bull
- every = game.Workspace:GetChildren()
- for thing = 1, #every do
- if every[thing] ~= nil then
- if every[thing].className == "Model" then
- if every[thing]:findFirstChild("Torso") ~= nil then
- if every[thing]:findFirstChild("Torso").className == "Part" then
- if (every[thing]:findFirstChild("Torso").Position - theTar).magnitude < 2 then
- if every[thing]:findFirstChild("Humanoid") ~= nil then
- every[thing].Humanoid.Health = every[thing].Humanoid.Health - math.random(10, 12)
- end
- end
- end
- end
- end
- end
- end
- bull.Parent = game.Workspace
- smoken = smoken + 1
- if smoken > 10 then
- script.Parent.Vehicle.Value.Barrel.Smoke.Enabled = true
- end
- script.Parent.Vehicle.Value.Barrel.Transparency = 0
- end
- end
- end
- function onB1U(mouse)
- firin = false
- smoken = 0
- script.Parent.Vehicle.Value.Barrel.Smoke.Enabled = false
- end
- function onM(mouse)
- if mouse.Target ~= nil then
- if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
- mouse.Icon = "http://www.roblox.com/asset/?id=23805077"
- elseif mouse.Target.Parent:findFirstChild("Humanoid") == nil then
- mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
- end
- elseif mouse.Target == nil then
- mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
- end
- end
- function onI(mouse)
- if mouse.Target ~= nil then
- if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
- mouse.Icon = "http://www.roblox.com/asset/?id=23805077"
- elseif mouse.Target.Parent:findFirstChild("Humanoid") == nil then
- mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
- end
- elseif mouse.Target == nil then
- mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
- end
- end
- function onSele(mouse)
- mouse.Button1Down:connect(function() onB1D(mouse) end)
- mouse.Button1Up:connect(function() onB1U(mouse) end)
- mouse.Move:connect(function() onM(mouse) end)
- mouse.Idle:connect(function() onI(mouse) end)
- mouse.Icon = "http://www.roblox.com/asset/?id=23746854"
- end
- script.Parent.Selected:connect(onSele)
- end,o107)
- o108.Name = "Cle"
- o108.Parent = o107
- runDummyScript(function()
- function ob()
- if script.Parent.className == "Part" then
- wait(0.001)
- script.Parent:remove()
- end
- end
- ob()
- end,o108)
- o109.Name = "Vehicle"
- o109.Parent = o106
- o110.Name = "OnSeated!"
- o110.Parent = o99
- runDummyScript(function()
- -- made by Weeve. for all of you lamo scripters out there, can you at least leave my name here?
- -- don't edit anything here
- seat = script.Parent
- function onChildAdded(part)
- script.Parent.EngineSound:play()
- end
- function onChildRemoved(part)
- script.Parent.EngineSound.Pitch = 0.9
- wait(0.1)
- script.Parent.EngineSound.Pitch = 0.8
- wait(0.1)
- script.Parent.EngineSound.Pitch = 0.7
- wait(0.1)
- script.Parent.EngineSound:stop()
- script.Parent.EngineSound.Pitch = 1
- end
- seat.ChildAdded:connect(onChildAdded)
- seat.ChildRemoved:connect(onChildRemoved)
- --Weeve
- end,o110)
- o111.Name = "EnginesSidewards"
- o111.Parent = o99
- runDummyScript(function()
- wait()
- while true do
- if script.Parent.Throttle == 1 or script.Parent.Throttle == -1 then
- script.Parent.DriveSound:play()
- elseif script.Parent.Steer == 1 or script.Parent.Steer == -1 then
- script.Parent.DriveSound:play()
- elseif script.Parent.Throttle == 0 then
- script.Parent.DriveSound:stop()
- elseif script.Parent.Steer == 0 then
- script.Parent.DriveSound:stop()
- end
- wait(0.01)
- end
- end,o111)
- o112.Name = "EngineSound"
- o112.Parent = o99
- o112.Pitch = 0.89999997615814
- o112.SoundId = "http://www.roblox.com/asset/?id=145147769"
- o112.Looped = true
- o112.PlayOnRemove = true
- o113.Name = "DriveSound"
- o113.Parent = o99
- o113.SoundId = "http://www.roblox.com/asset/?id=133089867"
- o113.Volume = 1
- o113.Looped = true
- o113.PlayOnRemove = true
- o114.Parent = o7
- o114.Position = Vector3.new(-29.0028267, 3.61998606, -87.9034042)
- o114.Rotation = Vector3.new(0, -0.00999999978, 0)
- o114.Size = Vector3.new(4, 4.80000019, 5)
- o114.CFrame = CFrame.new(-29.0028267, 3.61998606, -87.9034042, 1.00000632, -3.64163384e-08, -0.000198804919, 3.62873536e-08, 1, -6.79297159e-07, 0.000198805254, 6.7928778e-07, 1.00000632)
- o114.Position = Vector3.new(-29.0028267, 3.61998606, -87.9034042)
- o115.Name = "Wedge-to-Part Strong Joint"
- o115.Parent = o114
- o115.C0 = CFrame.new(-2, -2.4000001, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o115.C1 = CFrame.new(-2.00031281, -2.40001678, -2.50250244, 1, 3.91511878e-10, 1.2456252e-08, -3.91511878e-10, 1, -3.19005267e-10, -1.2456252e-08, 3.19005267e-10, 1)
- o115.Part0 = o114
- o115.Part1 = o72
- o116.Parent = o7
- o116.Position = Vector3.new(-18.3978329, 3.62000537, -77.7955933)
- o116.Rotation = Vector3.new(-180, 0.00999999978, 180)
- o116.Size = Vector3.new(4, 4.80000019, 5.19999981)
- o116.CFrame = CFrame.new(-18.3978329, 3.62000537, -77.7955933, -1.00000632, -3.74815556e-08, 0.000199097791, -3.73528444e-08, 1, 6.76944069e-07, -0.000199098125, 6.76934405e-07, -1.00000632)
- o116.BackSurface = Enum.SurfaceType.Weld
- o116.Position = Vector3.new(-18.3978329, 3.62000537, -77.7955933)
- o117.Parent = o7
- o117.Position = Vector3.new(-29.0040436, 3.61998701, -77.8991776)
- o117.Rotation = Vector3.new(-180, 0.00999999978, 180)
- o117.Size = Vector3.new(4, 4.80000019, 5)
- o117.CFrame = CFrame.new(-29.0040436, 3.61998701, -77.8991776, -1.00000632, -3.63755071e-08, 0.000198805137, -3.62465364e-08, 1, 6.79243669e-07, -0.000198805472, 6.79234347e-07, -1.00000632)
- o117.Position = Vector3.new(-29.0040436, 3.61998701, -77.8991776)
- o118.Name = "Wedge-to-Part Strong Joint"
- o118.Parent = o117
- o118.C0 = CFrame.new(-2, -2.4000001, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o118.C1 = CFrame.new(2.00045776, -2.40000916, 2.50166321, -1, 4.32329839e-10, -1.2237857e-08, 4.32329839e-10, 1, 2.65515609e-10, 1.2237857e-08, 2.65515609e-10, -1)
- o118.Part0 = o117
- o118.Part1 = o72
- o119.Parent = o7
- o119.Position = Vector3.new(-18.3964367, 3.61992145, -87.8004837)
- o119.Rotation = Vector3.new(0, -0.00999999978, 0)
- o119.Size = Vector3.new(4, 4.80000019, 4.80000019)
- o119.CFrame = CFrame.new(-18.3964367, 3.61992145, -87.8004837, 1.00000632, -3.81191647e-08, -0.000199119255, 3.79904783e-08, 1, -6.7672903e-07, 0.00019911959, 6.76719253e-07, 1.00000632)
- o119.BackSurface = Enum.SurfaceType.Weld
- o119.Position = Vector3.new(-18.3964367, 3.61992145, -87.8004837)
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = script
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- mess_handle.Text = "Resetting"
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- v:LoadCharacter()
- end
- wait(1)
- mess_handle:Remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement