My question tho is the second script for a tool specifically? Cause i was looking for players getting an amount of points for being in a group. Confused honestly on it.
Oh if they join a group then to add them the points? only move the local script to StarterPlayerScripts and copy this:
local player = game.Players.LocalPlayer
if player:IsInGroup("Here your id") then
player.leaderstats.Points.Value += 5
end
it works fine but now i have issue of it resetting the points to 10000 even tho you have like lets say 3000. should be 13000 but changes to 10000 only.
i don’t understand, do you want to add your points to a variable???
I want the points to be added when a player is in a group but i dont want it to affect a players current Points that are saved. Currently it just resets there points to whatever amount I put. It doesnt add them it just changes to the amount in +=
That’s strange because =
does reset that, and +=
should add. maybe you can try:
player.leaderstats.Points.Value = player.leaderstats.Points.Value + 5
it’s the same but maybe?
Imma give it a try give me one moment