I created a keypad in ro studio and it worked fine but when I tested it in a roblox server it didn't work, just a note I am using surface GUIs and my game is filtering enabled.
script for button 1:
local text = script.Parent.Parent.Parent.Parent.screen.Gui.Top.TextLabel
local debounce = false
script.Parent.MouseButton1Down:connect(function()
if debounce == false then
debounce = true
local num = script.Parent.Name
text.Text = text.Text..num
debounce = false
end
end)
The script is inside a surface gui and the game is filtering enabled but when I turn filtering enabled off it works perfectly fine.
Thank you in advance

3 comments
still didn't work
i added some more information on my question
the game is filtering enabled aswell