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

IntValue.Value is showing values as 0?

Asked by 4 years ago

I've been working on a directional swing system for a melee-based combat game.

Each player has MouseHorizontal and MouseVertical IntValues in which are always -1, 0, or 1, corresponding to the previous movement of their mouse.

The IntValues are being set perfectly, however, I'm currently trying to access these values through the weapons script. As you can see in this screenshot, the IntValue on the right shows as 1, however, the print from the weapon script shows 0.

I'm currently stuck here. Any help would be greatly appreciated.

https://ibb.co/GMC2Nnp

0
it will be good to show some code, maybe something is changing value 123nabilben123 499 — 4y
0
I thought that would be the case, but I just did a check and the values are only being changed by the script that checks for mouse movement. User#32778 0 — 4y

1 answer

Log in to vote
2
Answered by
Fifkee 2017 Community Moderator Moderation Voter
4 years ago

You're forgetting that any changes done on the client will not be replicated to the server unless there is a bridge formed via RemoteEvents or RemoteFunctions. Respect filtering enabled.

0
*most, not any. Fifkee 2017 — 4y
0
I shall never respect filtering enabled cuz it broke my games in like....... 2016 greatneil80 2647 — 4y
0
no one can play your game now. Luka_Gaming07 534 — 4y
0
other than friends Luka_Gaming07 534 — 4y
Ad

Answer this question