Ok so as the title says I'm trying to make an AI Car that can Follow a Path and Stop at certain points in that path, but since I'm still somewhat new to the world of scripting (Should of learn how to script 7 years ago... that's how long I been playing this game...) I don't what to put in my function to make it to follow a brick then stop and follow the path again.
local path = game.ReplicatedStorage.Path
local FollowPath = path.Path
local PathStop = path.PathStop
function FollowPath(path)
if FollowPath then
--Don't know what put in here still new to scripting first time scripting a function my self
end
end
while true do
script.Parent.Steer = math.random(0,1)
script.Parent.Throttle = math.random(0,1)
script.Parent.MaxSpeed = math.random(15,30)
script.Parent.Torque = math.random(7,13)
script.Parent.TurnSpeed = math.random(10,25)
wait(math.random(1,12))
end
