im not good with remote events but i do know on :FireClient() the first parameter is always the player but if i leave it blank it says missing or nil and if i define the player it says unable to cast value to object any help?
--script script.Parent.Touched:Connect(function(hit) game.ReplicatedStorage.Battery:FireClient(hit.Parent.Name) end)
--localscript game.ReplicatedStorage.Battery.OnClientEvent:Connect(function(hit) hit.Backpack.Battery.Value = true print(hit.Name.."Has Picked Up Battery") end)
your sending the character's name, not the player!
--script script.Parent.Touched:Connect(function(hit) game.ReplicatedStorage.Battery:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent)) end)