I tried many times many way's but it isn't working? Could somone help?
It's all in a GUI but i did this quick it's not complete
Localscript:
local targetname = target.Parent.Name script.Parent.Target:FireServer(targetname)
ServerScipt
script.Parent.Target.OnServerEvent:Connect(function(player, targetname) script.Parent.Username.Value = targetname end)
The problem is that you never defined the term target at the beginning of your script, meaning that roblox won't know what target is and return an error. Simply, just define a variable called target at the beginning of your local script and that should do the trick.