Problem with displaying surfacegui on tool

  1. What do you want to achieve?
    I’m making a tool that have surface gui on it and it’ll show the text when you type in gui. (When you equipped the tool the gui will pop up)

  2. What is the issue?
    The text that player1 input it show to player2 sign too.Here this is a picture


Here This is my code



If someone have the same problem as mine here is the solution. (I messaged someone to help me and he came up with this)

I only use 1 RemoteEvent to send the text from client to server. The display section is from this code

RemoteEvent.OnServerEvent:Connect(function(player,text)
    local toolName = "TOOL NAME HERE"
    if player.Character:FindFirstChild(toolName) then
    	player.Character[toolName].Handle.SurfaceGui.TextLabel.Text = text
    elseif player.Backpack:FindFirstChild(toolName) then
	    player.Backpack[toolName].Handle.SurfaceGui.TextLabel.Text = text
    end
end)
1 Like