Checking play value on local script!

can I do this on a local script without players exploiting?:

if player.leaderstats.Rebirths.Value >= 5 then

end

unfortunately no, client-sided scripts are exploitable by the client themself, i suggest you make a serverscript do that for you by sending a remoteevent?

2 Likes

It’s best to do a check such as that on the server, as a client could locally modify any data/values such as their ‘rebirths’. Because these modifications are unlikely to be replicated to the server, it’s better to do a check on a server script.

No like @hesoyam2k14 pointed out, you can’t - that would be a hell of an exploiting issue!

You could check on the Server every so often (maybe using a while wait(5) loop or something) and then send that data to the client (using a remote event)

Link: RemoteEvent (hyperlink)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.