LOCAL SCRIPT
function onTouch()
local player = game.Players.LocalPlayer
local cashMultiplyer = script.CashMultiplyer.Value
game.ReplicatedStorage.Delivered:FireServer(player, cashMultiplyer)
end
game.Workspace.Brick.Touched:connect(onTouch)
SERVER SCRIPT
game.Players.PlayerAdded:Connect(function(player)
game.ReplicatedStorage.Delivered.OnServerEvent:Connect(function(player, cashMultiplyer)
print(cashMultiplyer.Name)
print(cashMultiplyer)
end)
end)
The server script prints my username instead of script.CashMultiplyer.Name

1 comment
You don't need to define the player, you're sending it to the server. the solution is just to remove the 'player' in the FireServer parameters