Could you update your post to further describe some of the solutions you’ve tried? ProximityPromt is just a button to activate something, it doesn’t really have a relation to movement. Your question kinda misses the point of what you’re actually asking for.
---ServerScriptService PromptEvents the first is this --
local ProximityPromptService = game:GetService("ProximityPromptService")
local ServerScriptService = game:GetService("ServerScriptService")
local ObjectActions = require(ServerScriptService.ObjectActions)
-- Detect when prompt is triggered
local function onPromptTriggered(promptObject, player)
ObjectActions.promptTriggeredActions(promptObject, player)
end
-- Detect when prompt hold begins
local function onPromptHoldBegan(promptObject, player)
ObjectActions.promptHoldBeganActions(promptObject, player)
end
-- Detect when prompt hold ends
local function onPromptHoldEnded(promptObject, player)
ObjectActions.promptHoldEndedActions(promptObject, player)
end
-- Connect prompt events to handling functions
ProximityPromptService.PromptTriggered:Connect(onPromptTriggered)
ProximityPromptService.PromptButtonHoldBegan:Connect(onPromptHoldBegan)
ProximityPromptService.PromptButtonHoldEnded:Connect(onPromptHoldEnded)
The main script already fires the events & creates a function for each action the proximityprompts does. You just need to make a Tween which is documented on how to use through the link I gave. Try take a look at that.
Wait nvm, looks like a lot of code just for an event to fire. But still try take a look at Tween, as it doesn’t seem you’ve taken a look at that.
If you want the cart to move by equal speed between all points. You can divide the length by a given speed. (Minecart.Position - NextPoint.Position).Magnitude/Speed & use that in your TweenInfo time.