Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game.Players.LocalPlayer.Character.Humanoid.Sit==true then
- local YourCar
- local name = object.Text
- for _, car in pairs (workspace.Vehicles:GetChildren()) do
- if car.Seat.PlayerName.Value == game.Players.LocalPlayer.Name then
- YourCar = car
- car.Model.Body.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- if car.Name == "Heli" then
- car.Model.TopDisc.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("HELI VER")
- end
- if car.Name == "Roadster" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("Tesla VER")
- end
- if car.Name == "Cybertruck" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("CyberTruck VER")
- end
- if car.Name == "Bugatti" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("Bug VER")
- end
- if car.Name == "Porsche" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("Por VER")
- end
- if car.Name == "Model3" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("Por VER")
- end
- if car.Name == "Model3" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("Por VER")
- end
- if car.Name == "Pickup" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("dER")
- end
- if car.Name == "Classic" then
- game.StarterGui:SetCore("SendNotification", {
- Title = "ERROR";
- Text = "Car not supported for teleporting.";
- Icon = "";
- Duration = 5;
- })
- print("Not supported")
- end
- if car.Name == "Jeep" then
- car.Weight.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("Tesla VER")
- end
- if car.Name == "Ambulance" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("Bug VER")
- end
- if car.Name == "Firetruck" then
- game.StarterGui:SetCore("SendNotification", {
- Title = "ERROR";
- Text = "Car not supported for teleporting.";
- Icon = "";
- Duration = 5;
- })
- print("Not supported")
- end
- if car.Name == "Dirtbike" then
- game.StarterGui:SetCore("SendNotification", {
- Title = "ERROR";
- Text = "Car not supported for teleporting.";
- Icon = "";
- Duration = 5;
- })
- print("Not supported")
- end
- if car.Name == "Ferrari" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("CyberTruck VER")
- end
- if car.Name == "McLaren" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("CyberTruck VER")
- end
- if car.Name == "Monster" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("CyberTruck VER")
- end
- if car.Name == "Mustang" then
- car.BoundingBox.CFrame = game.Players[name].Character.HumanoidRootPart.CFrame
- print("CyberTruck VER")
- end
- if car.Name == "SUV" then
- game.StarterGui:SetCore("SendNotification", {
- Title = "ERROR";
- Text = "Car not supported for teleporting.";
- Icon = "";
- Duration = 5;
- })
- print("Not supported")
- end
- if car.Name == "Volt" then
- game.StarterGui:SetCore("SendNotification", {
- Title = "ERROR";
- Text = "Car not supported for teleporting.";
- Icon = "";
- Duration = 5;
- })
- print("Not supported")
- end
- end
- end
- print(YourCar.Name)
- else
- game.StarterGui:SetCore("SendNotification", {
- Title = "GET IN A CAR";
- Text = "Please get in a car before teleporting.";
- Icon = "";
- Duration = 5;
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement