Leaderstat changing help

It’s 3 times as much and not 3 times as less.

1 Like

I don’t know if he wants to to be multiplied, or he is saying it is multiplied by the number or people, and he wants to to not be.

1 Like

You can access PlayerGui from the server, you can’t access other clients’ PlayerGui from a LocalScript.

“That works but it would add to the size how much people are in the server,so for example if there are 3 people in the server it will add to the size 3 times as much

Hey,thanks for everyone trying to help :smile:
Giggio450BR yours would multiply the number of players and I needed it to divide since it would multiple your size by the number of players,so I changed the * into a / but that didnt work at all,so am trying more to figure it out right now

I mean, you said you wanted to multiply it by the number of players that were in the server before.

Next time, read the post before posting. Thank you.

Does this work?

game:GetService("ReplicatedStorage").HEADINCREASESTAT.OnServerEvent:Connect(function(player)
player.leaderstats.Size.Value = (player.leaderstats.Size.Value + player.PlayerGui.UI.BOOK.Value) / #game:GetService("Players"):GetPlayers()
end)

Really Sorry i meant to say divide

If you’re going to be rude, I’m also going to be rude.
Learn how to read before saying something like that.
He told us this: “That works but it would add to the size how much people are in the server,so for example if there are 3 people in the server it will add to the size 3 times as much”
And now he’s saying that he wants to divide it instead of multiply it.

I’m not trying to be rude, but I knew it was divide because instead of just jumping and responding, I read the conversation with him and saw what he needed to do.

Sorry if you misunderstood that,I kind of made it complicated but I meant that that was the problem and not what I was trying to do

I just lost all my brain cells in this argument, I’m just going to leave. Good luck with your script @bobsdestroyer!

Thanks and am sorry if this got complicated.

It’s okay! I’m just mad because that other dude was rude when talking to me.

Again, not trying to be rude, but I was just giving you some criticism that you might want to acknowledge. No offense, but you did just read his post and assumed what he meant.

Alright! Next time you try to tell someone he’s wrong, don’t say something that can be interpreted as rude.

Sorry about that! I was a little weird-ed out when you started criticizing my post but have a great day.

How are you using the server event? When is it firing? How is it firing? Can you post that code?

Yeah, so can you post the localscript where you fire the Remote Event?

It could be that you’re firing it every time a player joins the game, or who knows. We’d just need to see that localscript so that we can find out what’s happening.