im trying to make a textbox that when a player type in something then click a button, it will take the text from the textbox and put it into a stringvalue but i get this error : bad argument #3 to 'Value' (string expected, got nil)
local player = game.Players.LocalPlayer
local name = game.Lighting.Players:FindFirstChild(player.Name).CivilName
function Done()
player.Backpack.Camera:Destroy()
local named = script.Parent.Name.Text
name.Value = named

2 comments
Can you include more of the script? And also provide the line number, etc., for the error?
the rest of the script isn't related to that and the error is at line 6