I want a script where a player touches a brick, and then a gui pops up
Here's a script
-- script
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
game.ReplicatedStorage.MMEvent:FireClient(player)
end)
-- local script
game.ReplicatedStorage.MMEvent.OnClientEvent:Connect(function(player)
local frame = script.Parent.Parent
Frame.Visible = true
end)
for some reason the output says "player argument must be a Player object"

2 comments
Explain what is wrong with it.
After line 3, put "if not player then return end"