This is a LocalScript which is inside of a TextButton.
local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local n = playerGui.OrderGui.Scroll.Name.TextBox.Text
function leftClick()
print("Left mouse click")
playerGui.OrderGui.CurrentOrder.Text = "Vanilla Milkshake by "..n
end
script.Parent.MouseButton1Click:Connect(leftClick)
When I remove the ..n part it works fine, but nothing happens when I click the button when it has the ..n part in it.
(Excuse me as I was tired when I wrote this, I can go into further detail if you ask)

1 comment
I got an error message when I removed the ..n part. I did it for testing purposes. Here it is: Players.MinecraftButterfly87.PlayerGui.OrderGui.Flavour.Vanilla.LocalScript:5: attempt to index nil with 'Text'