Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created with ttyyuu12345's compiler
- --ttyyuu12345 is not responsible for damages caused to your game
- --This plugin does not remove things
- --ttyyuu12345 cannot be held resonsible for manual deletion for the purpose of testing
- --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
- --Thank you for using my plugin and enjoy :)
- --It is free to use
- --If you use this plugin to create your own, please give me credit
- --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
- --Errors:
- local Create = function(itemClass,tabl)
- local item = Instance.new(itemClass)
- for i,v in pairs(tabl) do
- local a,b = ypcall(function() return item[i] end)
- if a then
- item[i] = tabl[i]
- end
- end
- return item
- end
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Create("Model",{
- ["Name"] = "Set",
- ["Parent"] = mas,
- })
- o2 = Create("Part",{
- ["Name"] = "Regen",
- ["Parent"] = o1,
- ["Position"] = Vector3.new(-25, 0.200014994, 22),
- ["Rotation"] = Vector3.new(-0, 90, 0),
- ["Anchored"] = true,
- ["CFrame"] = CFrame.new(-25, 0.200014994, 22, -0, 0, 1, -0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Plate,
- ["Size"] = Vector3.new(10, 0.400000006, 14),
- })
- o3 = Create("Script",{
- ["Parent"] = o2,
- })
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- local current = script.Parent.Parent:FindFirstChild("Plane")
- local copy = current:Clone()
- function add()
- if current.Parent then
- current.Parent = game.Workspace
- end
- local c = copy:Clone()
- c.Parent = script.Parent.Parent
- c:makeJoints()
- current = c
- end
- while true do
- wait(5)
- if script.Parent.Parent:FindFirstChild(current.Name) == nil
- or (current:FindFirstChild("VehicleSeat")
- and (script.Parent.Position - current.VehicleSeat.Position).magnitude > 20) then
- add()
- end
- end
- end,o3)
- end))
- o4 = Create("Model",{
- ["Name"] = "Plane",
- ["Parent"] = o1,
- })
- o5 = Create("Part",{
- ["Name"] = "Front",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Dark orange"),
- ["Position"] = Vector3.new(-25, 2.10001707, 18.5),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-25, 2.10001707, 18.5, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Symmetric,
- ["Size"] = Vector3.new(1, 2, 4),
- ["Color"] = Color3.new(0.627451, 0.372549, 0.207843),
- })
- o6 = Create("Part",{
- ["Name"] = "Lever",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Really red"),
- ["Position"] = Vector3.new(-25, 3.30001402, 18.5),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-25, 3.30001402, 18.5, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Plate,
- ["Size"] = Vector3.new(1, 0.400000006, 4),
- ["BackSurface"] = Enum.SurfaceType.Weld,
- ["Color"] = Color3.new(1, 0, 0),
- })
- o7 = Create("VehicleSeat",{
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Navy blue"),
- ["Position"] = Vector3.new(-25, 1.60001695, 22),
- ["CFrame"] = CFrame.new(-25, 1.60001695, 22, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- ["Size"] = Vector3.new(2, 1, 2),
- ["MaxSpeed"] = 0,
- ["Torque"] = 0,
- ["TurnSpeed"] = 0,
- ["Color"] = Color3.new(0, 0.12549, 0.376471),
- })
- o8 = Create("Script",{
- ["Name"] = "Main",
- ["Parent"] = o7,
- })
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- Anaminus
- --[[Manual:
- Controls:
- Hop in and click anywhere on the plane to start.
- Click on the plane again to stop.
- Use WASD or arrow keys to pitch and roll.
- W (Up) -> Pitch Down
- S (Down) -> Pitch Up
- A (Left) -> Roll Left
- D (Right) -> Roll Right
- Tip: Roll to the direction you want to go,
- then pitch up to turn in that direction
- Speeds:
- Speed -> How fast the plane will fly
- Pitch -> How fast the plane will move up/down
- Roll -> How fast the plane will move left/right
- No tools required to operate!
- ]]
- wait()
- local engine = script.Parent
- local plane = engine.Parent
- local bottom = plane.Bottom
- local workspace = workspace
- local bg = Instance.new("BodyGyro")
- local bv = Instance.new("BodyVelocity")
- local click = Instance.new("ClickDetector")
- local running = false
- local dead = false
- local vaccant = true
- click_con = nil
- bottom_con = nil
- engine_con = nil
- seat_con = nil
- local addon = Instance.new("ObjectValue")
- addon.Name = "Plane"
- addon.Value = plane
- bg.Parent = engine
- bv.Parent = engine
- bv.maxForce = Vector3.new(0,0,0)
- bg.maxTorque = Vector3.new(0,0,0)
- bg.cframe = engine.CFrame
- click.Parent = plane
- local weld
- if bottom:FindFirstChild("Weld") then
- weld = bottom.Weld
- else
- weld = Instance.new("Weld")
- end
- weld.Part0 = bottom
- weld.Part1 = engine
- weld.C0 = bottom.CFrame:inverse() * CFrame.new(bottom.Position)
- weld.C1 = engine.CFrame:inverse() * CFrame.new(bottom.Position)
- weld.Parent = bottom
- click_con = click.MouseClick:connect(function()
- if vaccant then return end
- running = not running
- if running then
- bv.maxForce = Vector3.new(9e+004, 9e+004, 9e+004)
- bg.maxTorque = Vector3.new(9e+004, 9e+004, 9e+004)
- bg.cframe = engine.CFrame
- if plane:FindFirstChild("Lever") then
- plane.Lever.BrickColor = BrickColor.new("Lime green")
- end
- else
- bv.maxForce = Vector3.new(0,0,0)
- bg.maxTorque = Vector3.new(0,0,0)
- if plane:FindFirstChild("Lever") then
- plane.Lever.BrickColor = BrickColor.new("Really red")
- end
- end
- end)
- engine_con = engine.ChildAdded:connect(function(child)
- if child.Name == "SeatWeld" then
- vaccant = false
- child.C0 = CFrame.new(0,(engine.Size.y/2 + 1.5),0)
- child.C1 = CFrame.new(0,0,0)
- local character = child.Part1.Parent
- addon.Parent = character
- end
- end)
- seat_con = engine.ChildRemoved:connect(function(child)
- if child.Name == "SeatWeld" then
- local character = child.Part1.Parent
- addon.Parent = nil
- vaccant = true
- end
- end)
- bottom_con = bottom.ChildRemoved:connect(function(child)
- if child == weld then
- click_con:disconnect()
- engine_con:disconnect()
- seat_con:disconnect()
- bottom_con:disconnect()
- plane:BreakJoints()
- running = false
- dead = true
- bg:Remove()
- bv:Remove()
- wait(2)
- plane:Remove()
- end
- end)
- while not dead do
- bv.velocity = engine.CFrame.lookVector * script.Speed.Value
- bg.cframe = engine.BodyGyro.cframe * CFrame.fromEulerAnglesXYZ(
- math.rad(script.Pitch.Value * -engine.Throttle),
- 0,
- math.rad(script.Roll.Value * -engine.Steer))
- wait()
- end
- end,o8)
- end))
- o9 = Create("NumberValue",{
- ["Name"] = "Speed",
- ["Parent"] = o8,
- ["Value"] = 50,
- })
- o10 = Create("NumberValue",{
- ["Name"] = "Roll",
- ["Parent"] = o8,
- ["Value"] = 5,
- })
- o11 = Create("NumberValue",{
- ["Name"] = "Pitch",
- ["Parent"] = o8,
- ["Value"] = 3.5,
- })
- o12 = Create("Part",{
- ["Name"] = "Cardboard",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Dark orange"),
- ["Position"] = Vector3.new(-23.5, 2.10001707, 22),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-23.5, 2.10001707, 22, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Symmetric,
- ["Size"] = Vector3.new(6, 2, 1),
- ["Color"] = Color3.new(0.627451, 0.372549, 0.207843),
- })
- o13 = Create("Part",{
- ["Name"] = "Bottom",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Dark orange"),
- ["Position"] = Vector3.new(-25, 0.900020003, 22),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-25, 0.900020003, 22, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Plate,
- ["Size"] = Vector3.new(8, 0.400000006, 4),
- ["BottomSurface"] = Enum.SurfaceType.Smooth,
- ["Color"] = Color3.new(0.627451, 0.372549, 0.207843),
- })
- o14 = Create("Part",{
- ["Name"] = "Cardboard",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Dark orange"),
- ["Position"] = Vector3.new(-26.5, 2.10001612, 22),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-26.5, 2.10001612, 22, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Symmetric,
- ["Size"] = Vector3.new(6, 2, 1),
- ["Color"] = Color3.new(0.627451, 0.372549, 0.207843),
- })
- o15 = Create("Part",{
- ["Name"] = "RWing",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Dark orange"),
- ["Position"] = Vector3.new(-21, 2.30001402, 22),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-21, 2.30001402, 22, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Plate,
- ["Size"] = Vector3.new(2, 0.400000006, 4),
- ["FrontSurface"] = Enum.SurfaceType.Weld,
- ["Color"] = Color3.new(0.627451, 0.372549, 0.207843),
- })
- o16 = Create("Part",{
- ["Name"] = "Cardboard",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Dark orange"),
- ["Position"] = Vector3.new(-25, 2.10001612, 25.5),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-25, 2.10001612, 25.5, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Symmetric,
- ["Size"] = Vector3.new(1, 2, 4),
- ["Color"] = Color3.new(0.627451, 0.372549, 0.207843),
- })
- o17 = Create("Part",{
- ["Name"] = "LWing",
- ["Parent"] = o4,
- ["BrickColor"] = BrickColor.new("Dark orange"),
- ["Position"] = Vector3.new(-29, 2.30001307, 22),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["CFrame"] = CFrame.new(-29, 2.30001307, 22, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Plate,
- ["Size"] = Vector3.new(2, 0.400000006, 4),
- ["BackSurface"] = Enum.SurfaceType.Weld,
- ["Color"] = Color3.new(0.627451, 0.372549, 0.207843),
- })
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement