Local Script
local event = game.ReplicatedStorage.Events.ACTransfer
local button = script.Parent
button.MouseButton1Click:Connect(function()
event:FireServer()
end)
Server Script
local event = game.ReplicatedStorage.Events.ACTransfer
event.OnServerEvent:Connect(function(player)
print(player.Name)
end)
No print

5 comments
local script is in text button and server scruot is in workspace
text button is in surface gui, could be that a problem?
yes, that is a problem. local scripts cant run in the workspace.
to fix that, you could put it (local script) in sarterplayerscripts and do something like local button = workspace.Part.SurfaceGui.TextButton
Correction: LocalScripts run in the workspace if they are a descendant of an object owned by a player such as the player's character. The object you have in the workspace is not owned by any player, therefore it does not run.