I'm trying to rename a RemoteEvent from a localscript in playergui which is activated by a key press but I get the error message "invalid argument #3 (string expected, got Instance)" from this bit of code:
local Player = game:GetService("Players").LocalPlayer.Name
local Playeruse = game.Workspace:WaitForChild(Player)
if Playeruse:FindFirstChild(Player) == true then
print(Playeruse)
end
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("Remote")
remoteEvent.Name = Playeruse
Someone please help me

1 comment
Note: the error is for the 10th line which is what renames the remote