Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use Experience Bar w FilteringEnabled?

Asked by
Ruves 21
5 years ago

I'm creating an experience bar while I have FilteringEnabled.

I know how to create the bar without FilteringEnabled but I'm having a hard time doing the problem solving for how I'd get it to work with FilteringEnabled.

What's the safest way to prevent players altering there experience? Should I do it all locally? Or should I pass the experience through a RemoteEvent that will increase the value of the IntValue, Experience?

0
The remote event is safer. TiredMelon 405 — 5y
0
Also we cant help you if you dont post your code TiredMelon 405 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Simple. Just never tell the server what it should know - Only tell it what it should do.

That is to say that only the server should ever give XP. Anything that could give XP is handled on the server, and there's no RemoteEvents which could say "Give me XP". And then just tell the client what their XP is using RemoteEvents or IntValues.

0
ahh I see. basically I want EXP to be rewarded every-time an ability is used so I'd have to give EXP every-time the player presses a key I have set- Is that alright? Ruves 21 — 5y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Your problem is very similar to one I answered earlier today. Click here

Answer this question