Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 20 Aug 2016 03:54 AM |
| Let's say an IntValue's value gets changed on the client side that is never supposed to be changed. Would a localscript pick up the .Changed event if the player used a third party program to change it? |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2016 03:55 AM |
| why would someone change the IntValue |
|
|
| Report Abuse |
|
|
vexieh
|
  |
| Joined: 22 Oct 2009 |
| Total Posts: 3468 |
|
|
| 20 Aug 2016 03:59 AM |
Pretty sure a LocalScript could detect that yeah, you could probably use a RemoteEvent to compare the local value and the server value of the IntValue.
|
|
|
| Report Abuse |
|
|
Dodeca
|
  |
| Joined: 11 Sep 2011 |
| Total Posts: 13649 |
|
|
| 20 Aug 2016 04:00 AM |
@boss my game is going to use intvalues in guis that should be read-only |
|
|
| Report Abuse |
|
|
vexieh
|
  |
| Joined: 22 Oct 2009 |
| Total Posts: 3468 |
|
|
| 20 Aug 2016 04:01 AM |
Compare inside the LocalScript of course, although it's not a perfect method you could try something like this
local ServerInt = game.Workspace.FetchIntEvent:FireServer() local Player = game.Players.LocalPlayer local Leaderstats = Player:WaitForChild("leaderstats")
if(ServerInt == Leaderstats.IntValue.Value)then print("Number is the same on both the client and server") else print("Number is not the same") end
|
|
|
| Report Abuse |
|
|