this script will not make my enemy follow me at all so I didn't ever finish the dmg part cause the follow script was broken any one know the error? the script is in workspace btw EDITED ok so I realized I cant have a string for the enemy because of the script itself so I change the script and still doesn't work but I got a differnent out put too
script
wait(1)
follow = false
while true do
if game.Players.Player1.Character.Torso ~= nil then
if game.Players.Player1.Character.Torso.Position - game.Workspace.PotatoMan.Torso.Position.X <= 10 then
follow = true
end
end
if follow then
game.Workspace.PotatoMan.Humanoid.WalkToPoint = game.Players.Player1.Character.Torso.Position.X
end
wait(0.5)
end
output
20:49:12.265 - Client(1) Server(0) 20:49:16.108 - Workspace.Script:6: bad argument #2 to '?' (Vector3 expected, got number) 20:49:16.109 - Stack Begin 20:49:16.111 - Script 'Workspace.Script', Line 6 20:49:16.112 - Stack End

3 comments
Is there any errors in the output?
i dont see any errors but you may the output was 20:33:17.751 - Client(1) Server(0) 20:33:22.397 - Enemy is not a valid member of Workspace 20:33:22.399 - Stack Begin 20:33:22.401 - Script 'Workspace.Script', Line 7 20:33:22.402 - Stack End
BlueTaslem you made me just notice the error but it still didnt fix the script for some reason