So I am working on a fps game. The game is FE is on and I'm not very familiar with FE. The problem is that when I shoot the weapon and it kills a player it only shows on the Client who killed the player. I have looked at the Roblox Wiki, Youtube videos and some articles about filtering enabled but all of my attempts never work.
Here's what I know: I will probably need a remote event to show all clients that the player took damage/died. I'll also need a script that handles the event when needed.
What should I do?
(Here's part of the framework)
local damage = 30
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent:findFirstChild("Humanoid"):TakeDamage(damage)
-- Something like this?
-- The first argument is the players name that was hit
-- The second argument is the damage done
game.ReplicatedStorage.KillEvent:FireServer(hit.Parent.Name,damage)
end

3 comments
Well you shouldn't be handling the damaging on the client like you're doing.!
If this is in a local script, it probs would not show on the server. So you need to use another remote event to deduct damage from the player being hit and then in serverscriptservice add a global script which does the stuff in lines 01-08 which runs after the aforementioned damage deducting remoteevent is fired
Can I use a module function to do it?