Categories > Coding > Lua >
How do I disable TextButton background changing (if it's possible)?
Posted
This may be a dumb question but I dont have alot of experience with Roblox Studio
Whenever I hover over a TextButton, the background gets darker,
Is it possible to prevent this from happening?
Im not really active anymore, so alot of my information isnt updated.
https://media.discordapp.net/attachments/836952000876511252/950508582892367912/pigeon_siggy.png
Replied
local script inside of the button :
script.Parent.AutoButtonColor = false
Cancel
Post
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Replied
you can make a renderstepped hook and make a loop to change it to your needed color all the time so it will be unchangeble
something like:
-- Lets say that the parent of this localscript is the button
local btn = script.Parent
game:GetService("RunService").RenderStepped:Connect(function()
btn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) -- change the color to ur own
end)
Cancel
Post
Added
@hookfunction I FORGOT ABOUT THAT I MADE IT SO MORE OVERCOMPLICAYED LOPOEHYGiuehgeb
Cancel
Post
Im not really active anymore, so alot of my information isnt updated.
https://media.discordapp.net/attachments/836952000876511252/950508582892367912/pigeon_siggy.png
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post