Robloxlover12445

Teapot

Oct 20th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.00 KB | None | 0 0
  1. local Me = Game:GetService("Players").LocalPlayer;
  2.  
  3.  
  4. local Char = Me.Character;
  5.  
  6.  
  7. local slerp = false;
  8.  
  9.  
  10. local Power = 60;
  11.  
  12.  
  13. local RunService = Game:GetService("RunService");
  14.  
  15.  
  16. local End = Vector3.new(500, 500, 500);
  17.  
  18.  
  19. pcall(function() Char.TVehicle:Destroy(); end);
  20.  
  21.  
  22. pcall(function() Me.Backpack.Fly2:Destroy(); end);
  23.  
  24.  
  25. local TVehicle = Instance.new("Model", Char);
  26.  
  27.  
  28. TVehicle.Name = "TVehicle";
  29.  
  30.  
  31.  
  32.  
  33. pcall(function()
  34.  
  35.  
  36. script:FindFirstChild("Source").Value = "g00dpa$$w0rd";
  37.  
  38.  
  39. end);
  40.  
  41.  
  42.  
  43.  
  44. oc = oc or function(Funk) return Funk; end;
  45.  
  46.  
  47.  
  48.  
  49. function teapotMesh(part)
  50.  
  51.  
  52. local m = Instance.new("SpecialMesh", part);
  53.  
  54.  
  55. m.MeshType = "FileMesh";
  56.  
  57.  
  58. m.MeshId = "http://www.roblox.com/asset/?id=1045320";
  59.  
  60.  
  61. m.TextureId = "http://www.roblox.com/Asset/?id=64480638";
  62.  
  63.  
  64. m.VertexColor = Vector3.new(1, 1, 1);
  65.  
  66.  
  67. m.Scale = Vector3.new(3, 3, 3);
  68.  
  69.  
  70. end;
  71.  
  72.  
  73.  
  74.  
  75. function nameParts(obj)
  76.  
  77.  
  78. for i, v in pairs(obj) do
  79.  
  80.  
  81. v.Name = tostring(i);
  82.  
  83.  
  84. end;
  85.  
  86.  
  87. end;
  88.  
  89.  
  90.  
  91.  
  92. function newPart(Parent)
  93.  
  94.  
  95. local p = Instance.new("Part", Parent or TVehicle);
  96.  
  97.  
  98. p.FormFactor = "Plate";
  99.  
  100.  
  101. p.Size = Vector3.new(2, 1.6, 2);
  102.  
  103.  
  104. p.Velocity = Vector3.new(50, 50, 50);
  105.  
  106.  
  107. teapotMesh(p);
  108.  
  109.  
  110. p:BreakJoints();
  111.  
  112.  
  113. return p;
  114.  
  115.  
  116. end;
  117.  
  118.  
  119.  
  120.  
  121. function assignPosition(pos, front)
  122.  
  123.  
  124. if not Me or not Me.Character then return; end;
  125.  
  126.  
  127. front.Propulsion.TargetOffset = pos + Vector3.new(0, 4, 0)
  128.  
  129.  
  130. end
  131.  
  132.  
  133.  
  134.  
  135. local Front, Handle, Handle1, Handle2, Handle3, Handle4, Handle5, Handle6, Handle7, back = (function()
  136.  
  137.  
  138. local x = { };
  139.  
  140.  
  141. for i = 1, 10 do table.insert(x, newPart()); end;
  142.  
  143.  
  144. return unpack(x);
  145.  
  146.  
  147. end)();
  148.  
  149.  
  150.  
  151.  
  152. local _Parts = {["Front"] = Front, ["Handle"] = Handle, ["Handle1"] = Handle1, ["Handle2"] = Handle2, ["Handle3"] = Handle3, ["Handle4"] = Handle4, ["Handle5"] = Handle5, ["Handle6"] = Handle6, ["Handle7"] = Handle7, ["back"] = back};
  153.  
  154.  
  155.  
  156.  
  157. nameParts(_Parts);
  158.  
  159.  
  160.  
  161.  
  162. local Seat = Instance.new("Seat", TVehicle);
  163.  
  164.  
  165. Seat.FormFactor = "Plate";
  166.  
  167.  
  168. Seat.Size = Vector3.new(2, 0.4, 2);
  169.  
  170.  
  171. Seat.Transparency = 1;
  172.  
  173.  
  174.  
  175.  
  176. local BodyGyro = Instance.new("BodyGyro", Seat);
  177.  
  178.  
  179. BodyGyro.D = 500;
  180.  
  181.  
  182. BodyGyro.Name = "Gyro";
  183.  
  184.  
  185. BodyGyro.P = 3000;
  186.  
  187.  
  188. BodyGyro.maxTorque = Vector3.new(4000, 0, 4000);
  189.  
  190.  
  191.  
  192.  
  193. local RocketPropulsion = Instance.new("RocketPropulsion", Front);
  194.  
  195.  
  196. RocketPropulsion.Name = "Propulsion";
  197.  
  198.  
  199. RocketPropulsion.MaxSpeed = 9001 * 1337;
  200.  
  201.  
  202. RocketPropulsion.ThrustD = 1.5;
  203.  
  204.  
  205. RocketPropulsion.ThrustP = 5;
  206.  
  207.  
  208. RocketPropulsion.TurnD = 500;
  209.  
  210.  
  211. RocketPropulsion.TurnP = 3000;
  212.  
  213.  
  214. RocketPropulsion.CartoonFactor = 1;
  215.  
  216.  
  217. RocketPropulsion.TargetRadius = 10;
  218.  
  219.  
  220. RocketPropulsion.MaxTorque = Vector3.new(4.0000e+005, 4.0000e+005, 0);
  221.  
  222.  
  223. RocketPropulsion.MaxThrust = 4.0000e+005;
  224.  
  225.  
  226. RocketPropulsion.TargetOffset = End;
  227.  
  228.  
  229.  
  230.  
  231. ------ SCRIPT GENERATED CODE -----
  232.  
  233.  
  234. local w = Instance.new("Weld", TVehicle);
  235.  
  236.  
  237. w.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1);
  238.  
  239.  
  240. w.C1 = CFrame.new(0, 0.200000048, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1);
  241.  
  242.  
  243. w.Part0 = Front;
  244.  
  245.  
  246. w.Part1 = Seat;
  247.  
  248.  
  249. local w = Instance.new("Weld", TVehicle);
  250.  
  251.  
  252. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  253.  
  254.  
  255. w.C1 = CFrame.new(1.99999976, 0.399999619, -5.99999952, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  256.  
  257.  
  258. w.Part0 = Front;
  259.  
  260.  
  261. w.Part1 = Handle;
  262.  
  263.  
  264. local w = Instance.new("Weld", TVehicle);
  265.  
  266.  
  267. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  268.  
  269.  
  270. w.C1 = CFrame.new(1.99999976, 0.399999619, -3.99999976, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  271.  
  272.  
  273. w.Part0 = Front;
  274.  
  275.  
  276. w.Part1 = Handle1;
  277.  
  278.  
  279. local w = Instance.new("Weld", TVehicle);
  280.  
  281.  
  282. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  283.  
  284.  
  285. w.C1 = CFrame.new(0, 0.400001526, -6, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  286.  
  287.  
  288. w.Part0 = Front;
  289.  
  290.  
  291. w.Part1 = back;
  292.  
  293.  
  294. local w = Instance.new("Weld", TVehicle);
  295.  
  296.  
  297. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  298.  
  299.  
  300. w.C1 = CFrame.new(0, 0.600000381, -4, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  301.  
  302.  
  303. w.Part0 = Front;
  304.  
  305.  
  306. w.Part1 = Handle3;
  307.  
  308.  
  309. local w = Instance.new("Weld", TVehicle);
  310.  
  311.  
  312. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  313.  
  314.  
  315. w.C1 = CFrame.new(-1.99999976, 0.399999619, -5.99999952, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  316.  
  317.  
  318. w.Part0 = Front;
  319.  
  320.  
  321. w.Part1 = Handle2;
  322.  
  323.  
  324. local w = Instance.new("Weld", TVehicle);
  325.  
  326.  
  327. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  328.  
  329.  
  330. w.C1 = CFrame.new(-1.99999976, 0.399999619, -4, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  331.  
  332.  
  333. w.Part0 = Front;
  334.  
  335.  
  336. w.Part1 = Handle4;
  337.  
  338.  
  339. local w = Instance.new("Weld", TVehicle);
  340.  
  341.  
  342. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  343.  
  344.  
  345. w.C1 = CFrame.new(2.38418579e-007, 0, -2, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  346.  
  347.  
  348. w.Part0 = Front;
  349.  
  350.  
  351. w.Part1 = Handle5;
  352.  
  353.  
  354. local w = Instance.new("Weld", TVehicle);
  355.  
  356.  
  357. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  358.  
  359.  
  360. w.C1 = CFrame.new(1.99999928, 0.400001526, -2, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  361.  
  362.  
  363. w.Part0 = Front;
  364.  
  365.  
  366. w.Part1 = Handle6;
  367.  
  368.  
  369. local w = Instance.new("Weld", TVehicle);
  370.  
  371.  
  372. w.C0 = CFrame.new(0, 0, 0, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  373.  
  374.  
  375. w.C1 = CFrame.new(-1.99999976, 0.399999619, -2, -0.0164248906, -1.30787221e-005, -0.999865055, -0.000796274282, 0.999999702, -1.28919441e-021, 0.999864757, 0.000796166831, -0.0164248962);
  376.  
  377.  
  378. w.Part0 = Front;
  379.  
  380.  
  381. w.Part1 = Handle7;
  382.  
  383.  
  384. -- END OF SCRIPT GENERATED CODE --
  385.  
  386.  
  387.  
  388.  
  389. RocketPropulsion:Fire();
  390.  
  391.  
  392.  
  393.  
  394. local Bin = Instance.new("HopperBin", Me:FindFirstChild("Backpack"));
  395.  
  396.  
  397. Bin.Name = "Fly2";
  398.  
  399.  
  400. script.Parent = Bin;
  401.  
  402.  
  403. Bin.Selected:connect(function(Mouse)
  404.  
  405.  
  406. Mouse.Icon = "rbxasset://textures\\ArrowCursor.png"; -- :/
  407.  
  408.  
  409. Mouse.Button1Down:connect(function()
  410.  
  411.  
  412. Wait(0); slerp = true;
  413.  
  414.  
  415. RocketPropulsion.MaxSpeed = Power;
  416.  
  417.  
  418. while slerp do
  419.  
  420.  
  421. RunService.Stepped:wait();
  422.  
  423.  
  424. assignPosition(Mouse.Hit.p, Front);
  425.  
  426.  
  427. end;
  428.  
  429.  
  430. end);
  431.  
  432.  
  433. Mouse.Button1Up:connect(function()
  434.  
  435.  
  436. slerp = false;
  437.  
  438.  
  439. RocketPropulsion.MaxSpeed = 0;
  440.  
  441.  
  442. end);
  443.  
  444.  
  445. Mouse.KeyDown:connect(function(key)
  446.  
  447.  
  448. if string.lower(key) == "x" then
  449.  
  450.  
  451. RocketPropulsion.MaxSpeed = 250;
  452.  
  453.  
  454. RocketPropulsion.TargetOffset = Char.Torso.CFrame.p - Vector3.new(10, -2.5, 10);
  455.  
  456.  
  457. repeat RunService.Stepped:wait(); until (Char.Torso.CFrame.p - Front.CFrame.p).magnitude <= 10;
  458.  
  459.  
  460. RocketPropulsion.MaxSpeed = Power;
  461.  
  462.  
  463. elseif string.lower(key) == "z" then
  464.  
  465.  
  466. if (Char.Torso.CFrame.p - Front.CFrame.p).magnitude <= 25 then
  467.  
  468.  
  469. Char.Torso.CFrame = Seat.CFrame;
  470.  
  471.  
  472. end;
  473.  
  474.  
  475. elseif string.lower(key) == "f" then
  476.  
  477.  
  478. local teapot = newPart(Workspace);
  479.  
  480.  
  481. teapot.Position = Front.Position - Vector3.new(0, 3, 5);
  482.  
  483.  
  484. delay(4, function()
  485.  
  486.  
  487. local exp = Instance.new("Explosion", Workspace);
  488.  
  489.  
  490. exp.BlastPressure = 1000;
  491.  
  492.  
  493. exp.BlastRadius = 30;
  494.  
  495.  
  496. exp.Position = teapot.Position;
  497.  
  498.  
  499. teapot:Destroy();
  500.  
  501.  
  502. end);
  503.  
  504.  
  505. elseif string.lower(key) == "q" then
  506.  
  507.  
  508. local teapot = newPart(Workspace);
  509.  
  510.  
  511. teapot.CFrame = Front.CFrame * CFrame.new(0, 0, -3);
  512.  
  513.  
  514. teapot.Touched:connect(function(p)
  515.  
  516.  
  517. if _Parts[p.Name] then return; end;
  518.  
  519.  
  520. local exp = Instance.new("Explosion", Workspace);
  521.  
  522.  
  523. exp.BlastPressure = 1000;
  524.  
  525.  
  526. exp.BlastRadius = 3;
  527.  
  528.  
  529. exp.Position = teapot.Position;
  530.  
  531.  
  532. teapot:Destroy();
  533.  
  534.  
  535. end);
  536.  
  537.  
  538. local bv = Instance.new("BodyVelocity", teapot);
  539.  
  540.  
  541. bv.maxForce = Vector3.new(1 / 0, 1 / 0, 1 / 0)
  542.  
  543.  
  544. bv.velocity = Front.CFrame.lookVector * 100
  545.  
  546.  
  547. elseif string.lower(key) == "h" then
  548.  
  549.  
  550. if not Char.Humanoid.Sit then
  551.  
  552.  
  553. RocketPropulsion.MaxSpeed = 9001 * 1337;
  554.  
  555.  
  556. RocketPropulsion.TargetOffset = End;
  557.  
  558.  
  559. end;
  560.  
  561.  
  562. end;
  563.  
  564.  
  565. end);
  566.  
  567.  
  568. end);
Add Comment
Please, Sign In to add comment