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!)
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
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
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