How do I make a tool that places a sign with players textbox content

  1. When I put text in the textbox and click apply I want the script to take the textboxes text and put it in the textlabel that’s on the sign. (I want it to show on the whole server not only on the players client and add a filter!)

  2. The issue is I don’t know how to do that (I tried to remake the build tool, but I couldn’t) so at least please show me where I should look to make the script myself

  3. I found zero information about a simillar topic on the devforum

Here’s the very basic script I made that doesn’t even work (the only thing that works is the print())
local textContent = game.StarterPack[“Place Notes”].Top.SurfaceGui.TextContent
local textBox = script.Parent.Parent.TextBox

function onClick()
print(“it works”)
textContent.Text = textBox.Text
print(“and theres no error”)
end

script.Parent.MouseButton1Click:Connect(onClick)

1 Like

I think you might be able to find a YouTube tutorial on that, but I can also take a quick look at it later when I have time if you want.

yup found a simillar tutorial online, not quite what I wanted, but Thanks!

Shouldn’t

textContent.Text = textBox.Text

be the opposite?

TextContent is on the sign
TextBox is in the gui so no
the opposite of it breaks the gui now shows N/A

textContent is defined to the TextLabel that is placed in the StarterPack. You are not defining the Tool the player has.

You will have to do something like this:

local textContent = game.Players.LocalPlayer.Character["Place Notes"].Top.SurfaceGui.TextContent
--remember that this won't work when the player does not have the tool equipped.
--you will have to get it from the Backpack then

Players.HereIsADisplay.PlayerGui.ScreenGui.Frame.SubmitButton.Script:1: attempt to index nil with ‘Character’ I’ve got that error now

Its because that script is on the client instead of on the server, consider using a client sided script and using a remote event.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.