I need help fixing this error. I don't think the remote event will take "player".
The error is "FireClient: player argument must be a Player object"
Here is the script
local part = script.Parent
local player = game.Players.LocalPlayer
local debounce = false
part.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChildWhichIsA('Humanoid')
if debounce == false then
debounce = true
game.ReplicatedStorage.GreenArrow:FireClient(player)
end
end)

1 comment
Is this a LocalScript or a Script? In Script, not LocalScript, game.Players.LocalPlayer is nil. local player = game.Players:GetPlayerFromCharacter(hit.Parent)