Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do you change the text size?

Asked by 3 years ago

im trying to do:

local Close = script.Parent

Close.MouseEnter:Connect(function() Close.TextSize = 17 end)

Close.MouseLeave:Connect(function() Close.TextSize = 14 end)

it just doesnt work why?

0
could u use a code block to showcase the code? Catr899 12 — 3y

1 answer

Log in to vote
0
Answered by
Catr899 12
3 years ago

Hope this helps! i think the problem was either debounce or the textscaled value was true

01local debounce = false
02script.Parent.MouseEnter:Connect(function()
03    if not debounce then
04        debounce = true
05        -- code here
06        -- this is testing code V
07        script.Parent.TextSize = 100
08        script.Parent.TextScaled = false
09        wait(0.5)
10        debounce = false
11    end
12 
13end)
14 
15local debounce = false
View all 27 lines...

dont remove the debounce as that will bug it out

Ad

Answer this question