I have this script that forces the player to walk forward until it hits a brick, which is SUPPOSED to make the character regain control.
The problem is, I don't know what to put in the vector3 part to make the character walk with controls. Doing 0,0,0 does't work, it just makes the character go to those chords. I have also tried nil and nil,nil,nil but those do the same.
This is the script in the brick that's supposed to change it back to normal
function a(b)
if b.Parent:findFirstChild("Humanoid") ~= nil then
local h = b.Parent:findFirstChild("Humanoid")
if h ~= nil then
while true do
h.WalkToPoint = Vector3.new(32.4, 8.4, 32.8)
wait()
end
end
end
end
script.Parent.Touched:connect(a)

2 comments
Can I see the script that makes the character walk?
remove the wait maybe?