Here is my code.
while true do
wait(0.5)
if script.Parent.Owner.Value == "None" then
return
else
wait(0.5)
local player = game.Players:FindFirstChild(script.Parent.Owner.Value)
if player.leaderstats.Money.Value > script.Parent.Storage.Value then
player.leaderstats.Money.Value = script.Parent.Storage.Value
end
end
end
This code works at the beginning.
while true do
wait(0.5)
if script.Parent.Owner.Value == "None" then
return
But once script.Parent.Owner.Value is a different then "None", it still stays on the first if area. It doesn't go onto the else area.
Any Help would be Nice! Thanks.
