It's error My script is going to be like

When Players join clone GUI the name of the player Get Tools Name

(But I didn't do Trade system yet)


-- Script get Plr Names --

-- Server

local Remote = game.ReplicatedStorage.getPlayerName

game.Players.PlayerAdded:Connect(function(plr)
	Remote:FireAllClients(plr)
end)

-- Client
local Remote = game.ReplicatedStorage.getPlayerName

Remote.OnClientEvent:Connect(function(plr)
	local Dname = script.Parent
	Dname.Text = plr.DisplayName
	local DnameClone = Dname:Clone()
	DnameClone.Text = plr.DisplayName
end)

-- Script Get item name --

local function getItemFromBackpack(plr, tool)
	local backpack = plr:FindFirstChildOfClass("Backpack")
	if backpack then
		local le = script.Parent
		le.Text = tool.Name
	end
end

1 comment

0

Open output and describe the error