The lines inside 'if workspace.gen1.toolbox.walkto.Touched == true' won't work. The output doesn't give me anything to work with. Does anyone know why this isn't working?
clickDetector.MouseClick:Connect(function()
local clicked = true
humanoid.WalkToPoint = workspace.gen1.toolbox.walkto.Position
if clicked == true then
if workspace.gen1.toolbox.walkto.Touched == true then
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
local animTrack = humanoid:LoadAnimation(animation)
animTrack:Play()
end
end
end)

1 comment
Thank you :)