text = game.StarterGui.ScreenGui.Frame.TextBox.Text
Spawn.MouseButton1Down:connect(function(spawn)
local ID = "item"..game.ScreenGui.ScreenGui.Frame.TextBox.Text
print(ID)
end)
.. It doesnt work.. It doesnt print anything
text = game.Players.LocalPlayer.PlayerGui.Frame.TextBox.Text Spawn = ???? --you need to define spawn Spawn.MouseButton1Down:connect(function(spawn) local ID = "item"..text print(ID) end)
You forgot to define spawn and also the text would be in the PlayerGUi
Closed as Not Constructive by ScriptGuider, Azmidium, DevSean, and Uroxus
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?