Argument 1 missing or nil error in RemoteFunction?
I got an error trying to use a RemoteFunction from server to client to try and create a Hitmarker. I couldn't find any way to fix it, so i decided i was going to ask it here.
Error:
Argument 1 missing or nil
Server Script:
01 | local humanoid = part.Parent:FindFirstChild( "Humanoid" ) |
04 | game.ReplicatedStorage.Hitmarker:InvokeClient() |
05 | if part.Name = = "Torso" then |
07 | elseif part.Name = = "HumanoidRootPart" then |
09 | elseif part.Name = = "Head" then |
14 | humanoid.Health = humanoid.Health - Damage |
Local Script:
1 | local mouse = game.Players.LocalPlayer:GetMouse() |
5 | game.ReplicatedStorage.Hitmarker.OnClientInvoke = function () |
Any help would be appreciated!