Hello I am very new to scripting, and I mostly edit scripts. This is because I can never really find what I need to know on the wiki or other places. Or the script's no longer work.
I have this walking npc script that I edited quite a bit
model = script.Parent.Parent
hum = script.Parent.Humanoid
torso = script.Parent.Torso
while true do
if model.PointA ~= nil then
a = model.PointA
hum:MoveTo(a.Position, a)
wait(10)
wait(0.1)
until (a.Position - torso.Position).magnitude <= 5
else
print("Error 404 Point A not found.")
end
wait(0.1)
if model.PointB ~= nil then
b = model.PointB
hum:MoveTo(b.Position, b)
wait(1.5)
wait(0.1)
until (b.Position - torso.Position).magnitude <= 5
else
print("Error 404 Point B not found.")
end
end
I'd like to make a separate script that has debounce and triggers that script to be enabled, wait a few seconds, than becomes disabled again in just enough time for the npc to make its run.
Any help would be greatly appreciated! Thanks :)

1 comment
Thanks so much