I'm trying to create one of those "input code" thingies when i got this error that says "attempt to perform arithmetic (add) on string"
how do i fix this?
heres the code:
local frame = script.Parent.Parent local teckst = script.Parent.Text function onButtonActivated() frame.PWInput.Text = (frame.PWInput.Text + teckst) end script.Parent.Activated:Connect(onButtonActivated)
you have to do like so:
local frame = script.Parent.Parent local teckst = script.Parent.Text function onButtonActivated() frame.PWInput.Text = (frame.PWInput.Text .. teckst) -- replace + with two dots end script.Parent.Activated:Connect(onButtonActivated)