You can force the character to move using the :MoveTo() function of Humanoids. If you place a part in front of the player, you can force them to continuously move by welding it (the part will be at a fixed offset) and setting the player to move to the part continuously.
Example Script
game:GetService("Players").PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid")
local Root = Character:WaitForChild("HumanoidRootPart")
local part = Instance.new("Part")
part.Name = "FollowMe"
part.Anchored = false
part.CanCollide = false
part.Transparency = 1
part.Parent = Character
local weld = Instance.new("Weld")
weld.Parent = part
weld.Part1 = part
weld.Part0 = Root
weld.C0 = CFrame.new(0, 0, -10)
repeat
Humanoid:MoveTo(part.Position)
wait()
until nil
end)
end)
This however doesn't prevent the player from unbinding the movement themselves, but the loop will prevent them from effectively stopping walking.
1 comment
I want it to move forward forever