So, I've been making a combat system for about a week now. And my friend and I decided to test the actual game already. But, it is only I who could see him dealt damage and only him that could see me took damage. What should we do, Sir/Ma'am? Thanks much.
Local Script under StarterPlayerScript:
local UIS = game:GetService("UserInputService")
local function attack()
--block of codes
end
UIS.InputBegan:Connect(function(input, gameProcessed)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.Q then
attack()
end
end)

3 comments
Uhhh, I actually have 4 different functions/attacks. Do I have to have 4 ServerScript and 4 RemoteEvent?
No. Not at all. Optimisation and Common sense is key.
Thanks, Sir.