I put two Loops (While true do) in a script, but one of them (the last one) doesn't work ... it doesn't print '' hello ''. I don't know what is happening script:
wait(game.Players.PlayerAdded)
verdade = false
applevalue = game.Workspace.appleintvalue
applevalue.Value = 0
applescripton = true
^while applescripton == true do
..(while true do comand)
while true do
wait()
print('hello')
end

2 comments
but the loop inside the function should be repeating endlessly. Since it is inside a function, will this happen?
They'll both repeat endlessly unless you break out of them with 'break' or if applescripton is no longer true in your case.