Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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?

4 comments

0

Please post your script(s), we don't know what is wrong if you don't show your attempt

0

There are many scripts. Do you need the leaderboard or the guns

0

Based on what you've said above, the issue is the gun set-up

0

I can link em if you wish

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.