Admin Panel Scipt

I need help with my money giver script, here’s the code for the server side:

image

Client Side:
image

You don’t need to send the player name because the first parameter in .OnServerEvent is the player who fired the event

every devforum post, i learn more about the scripting of roblox, but I have a question;

What if I’m trying to give this money to someone else from this GUI?

Like @Orbular3 said, the problem is with your OnServerEvent function parameters. The player is automatically passed to OnServerEvent, which as a result means entry is the player object, and giver is the value intended for entry.

--client-side
gm:FireServer(entry, giver)
--server-side
tm.OnServerEvent:Connect(function(player, entry, giver) --[[code here]] end)

If you want to give it to another player, pass the player’s name with it. Do you have a variable that stores the target player’s name, which you are passing through the RemoteEvent? If so, which is it?