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

When I kill a player with gun, it won't give me +1 KO. Why?

Asked by 5 years ago

This may be about scripting or not,

But I put guns in my game, and I have a KO/WO leaderboard. When I kill another player with a gun, they die on my screen, but not on theirs, and it doesn't give me +1 KO. They also don't respawn when they die on my screen. When I reset, it gives me my +1 WO. Anybody know why?

0
Please post your script(s), we don't know what is wrong if you don't show your attempt theking48989987 2147 — 5y
0
There are many scripts. Do you need the leaderboard or the guns charlesg9 5 — 5y
0
Based on what you've said above, the issue is the gun set-up SerpentineKing 3885 — 5y
0
I can link em if you wish charlesg9 5 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Your code is most likely in a LocalScript. With FilteringEnabled set to true, all changes on the Client will NOT replicate to the Server.

If you want these changes to occur for all players, make sure your code is in Server Scripts.

You can also use RemoteEvents as highlighted here: https://developer.roblox.com/api-reference/class/RemoteEvent in order to communicate between the server and the client if you'd like to keep your localscript basis.

Ad

Answer this question