so im making an house system and now im making a test , i know how to substract money but i have a problem; this is a test so it's free XD
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local name = script.Parent.teSTO.name
local textlabel = script.Parent.teSTO.SurfaceGui.TextLabel
name.Value = player
textlabel.Text = name
end)
--name is a string value--
Workspace.test.Script:4: invalid argument #3 (string expected, got Instance) - Server - Script:4
can u help me thx

4 comments
oh yes i forgot , that was a stupid question XD, but now i get Workspace.test.Script:5: invalid argument #3 (string expected, got Instance)
wait i think i fixed it
U need to write "name.Value" to make it work
thx