I’ve been trying to create my own Car Spawner that when clicked, gets the car from a folder in ServerStorage, uses MakeJoints(), changes its PrimaryPart then uses MoveTo() a specific part’s position…
Well so far it seems pretty fair to me and the script doesn’t draw any errors but nothing really happens… Here’s the code:
script.Parent.ClickDetector.MouseClick:Connect(function()
print("Clicked") -- This does work.
local car = game:GetService("ServerStorage").Formula1:WaitForChild(script.Parent.Parent.Team.Value):Clone() -- Cloning the car. And yes, the value is right as far as I know...
car.PrimaryPart = car:WaitForChild("DriveSeat") -- New PrimaryPart
car:MakeJoints()
car:MoveTo(script.Parent.Parent.SpawnLocation.Position) -- Moving to the Part's Position
car.PrimaryPart = car.Wheels.FR -- Setting the PrimaryPart back to what it should be.
end)
I’d be grateful for any help.