This is normal script:
local rp = game:GetService("ReplicatedStorage") script.Parent.Triggered:Connect(function(player) print(player) rp.shopactivate:FireClient(player) end)
This is local script in player scripts:
local rp = game:GetService("ReplicatedStorage") rp.shopactivate:OnClientEvent(function(player) player.PlayerGui.Shop.ImageLabel.Transparency = 1 end)
The first script works but not the local script. I get the error "OnClientEvent is not a valid member of RemoteEvent "ReplicatedStorage.shopactivate""
OnClientEvent is not a function of the Remote Event, rather it's an RBXScriptSignal (event)
--bad rp.shopactivate:OnClientEvent(function(player) --good rp.shopactivate.OnClientEvent:Connect(function(player)
try this tutorial https://www.youtube.com/watch?v=uVUCaFs4Bh4