✓ Accepted answer
You're trying to add a string value. Adding only works with int/number values. You can set the text of the string by simply doing,
function onClicked()
script.Parent.Parent.Parent.Parent.thingy.Text = "bleh bleh bleh "
script.Parent.Parent.Visible = false
end
script.Parent.MouseButton1Click:connect(onClicked)
If however you wanted to keep the text that's already there and just add new text to the end you would do,
function onClicked()
script.Parent.Parent.Parent.Parent.thingy.Text = script.Parent.Parent.Parent.Parent.thingy.Text.."bleh bleh bleh "
script.Parent.Parent.Visible = false
end
script.Parent.MouseButton1Click:connect(onClicked)
If you wanted to add the string to the beginning of the text and keep the rest you would do this,
function onClicked()
script.Parent.Parent.Parent.Parent.thingy.Text = "Thanks Wfvj014"..script.Parent.Parent.Parent.Parent.thingy.Text
script.Parent.Parent.Visible = false
end
script.Parent.MouseButton1Click:connect(onClicked)
Hope that helped (:
Good luck!
4 comments
It's string, why do you often write sting?
MrHalloween I didn't catch that.
Thats hilarious! I fixed it. I don't know why I was saying sting xD
Thank you so much, I feel so dumb because after I read this answer, I realised that I had already done this in the past. Lol