local remoteFunction = game.ReplicatedStorage:WaitForChild("GetCoins")
remoteFunction.OnServerInvoke = function(player)
return 100
endlocal remoteFunction = game.ReplicatedStorage:WaitForChild("GetCoins")
script.Parent.MouseButton1Click:Connect(function()
local coins = remoteFunction:InvokeServer()
print("Мои монеты:", coins)
end)local result = remoteFunction:InvokeServer("Sword")remoteFunction.OnServerInvoke = function(player, itemName)
print(player.Name, itemName)
return "Предмет найден"
end