local minus = "2" -- 2
local Label = script.Parent.Parent.Parent.Height -- "Height" TextLabel
local current = print(Label.Text) -- Height text is 100 so "100"
local current2 = Label.Text -- The label text
local now = current - minus -- 100 - 2 = 98
script.Parent.MouseButton1Click:Connect(function() -- Textbutton click function
current2 = now -- The label's text is 98 now
end) -- end
This is a local script inside a text button. I have checked everything it has been named correctly. It must be my code.
So , when you click the text button , it gets the TextLabel called "Height" 's Text or value which is "100" cause I typed "100". Then minus by two and equals to 98 afterwards end itself. I am not sure why it is not working , help would be appreciated. Thanks in advance!

2 comments
hi, it's tostring and tonumber.
Mixing up my languages - think I used Python syntax. Thanks for catching that