Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how do you change the text size?

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?

1 comment

0

could u use a code block to showcase the code?

1 answer

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

local debounce = false
script.Parent.MouseEnter:Connect(function()
	if not debounce then
		debounce = true
		-- code here
		-- this is testing code V
		script.Parent.TextSize = 100
		script.Parent.TextScaled = false
		wait(0.5)
		debounce = false
	end
	
end)

local debounce = false
script.Parent.MouseLeave:Connect(function()
	if not debounce then
		debounce = true
		-- code here
		-- this is testing code V
		script.Parent.TextSize = 20
		script.Parent.TextScaled = false
		wait(0.5)
		debounce = false
	end

end)

dont remove the debounce as that will bug it out

This discussion is preserved as it was. New answers, comments, and votes are closed.