while true do
game.Players.LocalPlayer.leaderstats.Parts.value = game.Players.LocalPlayer.leaderstats.Parts.value + game.Players.LocalPlayer.leaderstats.PPS.value
wait(1)
end
How can i make this add the PPS value to the Parts value?
while true do
game.Players.LocalPlayer.leaderstats.Parts.value = game.Players.LocalPlayer.leaderstats.Parts.value + game.Players.LocalPlayer.leaderstats.PPS.value
wait(1)
end
How can i make this add the PPS value to the Parts value?
Capitalize your V in value
game.Players.LocalPlayer.leaderstats.Parts.Value game.Players.LocalPlayer.leaderstats.Parts.Value + game.Players.LocalPlayer.leaderstats.PPS.Value
while true do
game.Players.LocalPlayer.leaderstats.Parts.Value = game.Players.LocalPlayer.leaderstats.Parts.Value + game.Players.LocalPlayer.leaderstats.PPS.Value
wait(1)
end
I've capitalized the V, still doesn't add the value.
please modify your question or comment on the answer, rather than posting an answer as a responce
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Note that increasing the value on the client like you have here (you use LocalPlayer) will not replicate for the server to see. Basically meaning the server wont know that a leaderstat value was changed. You'll need to change this if you decide to use something like DataStore service.
I found out i need to use RemoteEvents.
That seems to be why my DataStore tests weren't working.