Basically I have a code that gets fired to a localscript in all players. The speaker / player argument is used to make sure the event is recieved by the correct reciever, and the "allow" argument is a boolean value used for later code. (Don't think about that part).
This is the :FireEvent Script
game.ReplicatedStorage.AllowDisallowPresent:FireClient(speaker, true)
This is the reciever / localscript
game.ReplicatedStorage.AllowDisallowPresent.OnClientEvent:Connect(function(player, allow)
if not player.Name == game.Players.LocalPlayer.Name then return end
Error:
attempt to index boolean with 'Name'
My thought is that it skips the player argument or switches it with the allow parameter. I have tried searching it up on google, although i didnt find a clear answer.
Sincerely, ItsMeMathe
