-
What do you want to achieve? Keep it simple and clear!
So i’m currently making an van going to player base position using waypoint parts, and i need to make multiple align position, so it go by roads not by entire map -
What is the issue? Include screenshots / videos if possible! I have no idea how to do that. And also quick question how to make align position stop perfectly on waypoint.
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub? Yes i tryed to check dev forum, but didn’t understand.
My code:
local Roof = script.Parent
local AlignPosition = Instance.new("AlignPosition")
local Attachment0 = Instance.new("Attachment")
local Attachment1 = Instance.new("Attachment")
local Waypoints = workspace.VanWaypoints
local FstWaypoint = Waypoints:FindFirstChild("1")
local SndWaypoint = Waypoints:FindFirstChild("2")
local TrdWaypoint = Waypoints:FindFirstChild("3")
Attachment0.Name = "Attachment0"
Attachment1.Name = "Attachment1"
AlignPosition.Parent = Roof
Attachment0.Parent = Roof
Attachment1.Parent = FstWaypoint
AlignPosition.Attachment0 = Attachment0
AlignPosition.Attachment1 = Attachment1
AlignPosition.MaxVelocity = 75
AlignPosition.ApplyAtCenterOfMass = true
AlignPosition.ReactionForceEnabled = true
AlignPosition.Responsiveness = 0