game.Players.PlayerAdded:Connect(function(player)
local playerinfo = player:WaitForChild("Info")
local playerleaderstats = player:WaitForChild("leaderstats")
local playerstrengthh = playerinfo:WaitForChild("Strength").Value
local playerstrength = playerinfo:WaitForChild("Strength")
local playerquest = playerinfo:WaitForChild("Quest")
local playerprogress = playerinfo:WaitForChild("QuestProgress")
playerinfo:WaitForChild("Strength").Changed:Connect(function(value)
if playerinfo:WaitForChild("Strength").Value < 0 then
playerinfo:WaitForChild("Strength").Value = 0
else
return
end
wait()
local StrengthAdded = value - playerinfo:WaitForChild("Strength").Value
print(StrengthAdded)
if StrengthAdded > 0 then
if playerquest.Value == "MayorC" then
playerprogress.Value += StrengthAdded
end
end
wait()
playerinfo:WaitForChild("Strength").Value = value
end)
end)
Somehow it just wont work
plis help
