Advertisement
Wowtheskyispurple

Untitled

Jan 23rd, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. if game.Players.LocalPlayer.Character.Humanoid.Sit==true then
  2. local YourCar
  3. local name = object.Text
  4. for _, car in pairs (workspace.Vehicles:GetChildren()) do
  5. if car.Seat.PlayerName.Value == game.Players.LocalPlayer.Name then
  6. YourCar = car
  7. car.Model.Body.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  8. if car.Name == "Heli" then
  9. car.Model.TopDisc.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  10. print("HELI VER")
  11. end
  12. if car.Name == "Roadster" then
  13. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  14. print("Tesla VER")
  15. end
  16. if car.Name == "Cybertruck" then
  17. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  18. print("CyberTruck VER")
  19. end
  20. if car.Name == "Bugatti" then
  21. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  22. print("Bug VER")
  23. end
  24. if car.Name == "Porsche" then
  25. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  26. print("Por VER")
  27. end
  28. if car.Name == "Model3" then
  29. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  30. print("Por VER")
  31. end
  32. if car.Name == "Model3" then
  33. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  34. print("Por VER")
  35. end
  36. if car.Name == "Pickup" then
  37. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  38. print("dER")
  39. end
  40. if car.Name == "Classic" then
  41. game.StarterGui:SetCore("SendNotification", {
  42. Title = "ERROR";
  43. Text = "Car not supported for teleporting.";
  44. Icon = "";
  45. Duration = 5;
  46. })
  47. print("Not supported")
  48. end
  49. if car.Name == "Jeep" then
  50. car.Weight.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  51. print("Tesla VER")
  52. end
  53. if car.Name == "Ambulance" then
  54. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  55. print("Bug VER")
  56. end
  57. if car.Name == "Firetruck" then
  58. game.StarterGui:SetCore("SendNotification", {
  59. Title = "ERROR";
  60. Text = "Car not supported for teleporting.";
  61. Icon = "";
  62. Duration = 5;
  63. })
  64. print("Not supported")
  65. end
  66. if car.Name == "Dirtbike" then
  67. game.StarterGui:SetCore("SendNotification", {
  68. Title = "ERROR";
  69. Text = "Car not supported for teleporting.";
  70. Icon = "";
  71. Duration = 5;
  72. })
  73. print("Not supported")
  74. end
  75. if car.Name == "Ferrari" then
  76. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  77. print("CyberTruck VER")
  78. end
  79. if car.Name == "McLaren" then
  80. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  81. print("CyberTruck VER")
  82. end
  83. if car.Name == "Monster" then
  84. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  85. print("CyberTruck VER")
  86. end
  87. if car.Name == "Mustang" then
  88. car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
  89. print("CyberTruck VER")
  90. end
  91. if car.Name == "SUV" then
  92. game.StarterGui:SetCore("SendNotification", {
  93. Title = "ERROR";
  94. Text = "Car not supported for teleporting.";
  95. Icon = "";
  96. Duration = 5;
  97. })
  98. print("Not supported")
  99. end
  100. if car.Name == "Volt" then
  101. game.StarterGui:SetCore("SendNotification", {
  102. Title = "ERROR";
  103. Text = "Car not supported for teleporting.";
  104. Icon = "";
  105. Duration = 5;
  106. })
  107. print("Not supported")
  108. end
  109. end
  110. end
  111. print(YourCar.Name)
  112. else
  113. game.StarterGui:SetCore("SendNotification", {
  114. Title = "GET IN A CAR";
  115. Text = "Please get in a car before teleporting.";
  116. Icon = "";
  117. Duration = 5;
  118. })
  119. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement