I'm making a script for my upcoming game Papa John's 2. And the idea is to have an algorithm determine if you are papa bless and this problem is persistent thru the entire loop and idk why?
local blessrange = 100
local leader = 'ScriptGuider'
local secretsauce = math.random(1,blessrange)
function papabless(player)
if player:IsA('Object') then
print(player.Name..(' Has Been Blessed By Papa John's
end
End
function makeapizza(secretsauce)
for i,v in pairs(game.Workspace:GetChildren()) do
if i <= blessrange and i > secretsauce then
print('A click of the mouse and papas in the house's)
if game.Players:FindFirstChild(v.Name) ~= nil then
v.Humanoid.Health = secretsauce/blessrange
if secretsauce/blessrange >= 69 then
papabless(v)
end
end
end
end
end
makeapizza(secretsauce)
