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""

1 comment
You can't use player gui's using a local script