Hello I have a tool that when you click anywhere on the ground, it spawns a model. Problem: The car is spawned, but when I drive it, the wheels do not turn left or right.
Script:
bin = script.Parent
function onButton1Down(mouse)
local model = bin.Car:clone()
model.Parent = game.Workspace
model:MakeJoints()
model:MoveTo(mouse.hit.p)
end
function onSelected(mouse)
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected)
How do I fix it? Thanks!

2 comments
Ok it works, but I have to re-enter the car 3-4 times before the wheels start working. How do I fix this? Thx!
Actually your script does do anything. sorry