local player = game.Players.LocalPlayer
local char = player.Character
if not char or not char.Parent then
char = player.CharacterAdded:wait()
end
local zeffTorso = game.Workspace:WaitForChild('Weirdo'):WaitForChild'LowerTorso'
local ready = script:WaitForChild('Ready')
local ready2 = script:WaitForChild('Ready2')
local dist = 5
while wait() do
local distance = player:DistanceFromCharacter(zeffTorso.Position)
if distance <= dist and ready2.Value ~= true then
print("yes")
elseif distance >= dist then
print("no")
end
end
Nothing's wrong with th code, its just that the yes and no's fire endlessly when i only want it to fire once

2 comments
In your logic, if distance is == to ready2.Value, yes and no will both be printed.
@JasonTheOwner trust me, the script runs fine