I made a textlabel act as a textbutton and it's ridiculously easy! The idea for this is to make it so it doesn't change the mouse icon. All you have to do is put a boolvalue named MouseHover in a textlabel and put this script in the parent of the text label.. Here is the script:
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
wait(5) -- Making sure everything loads in PlayerGui without having to use WaitForChild()
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("TextLabel") then
v.MouseEnter:connect(function()
v.MouseHover.Value=true
end)
v.MouseLeave:connect(function() -- Edit, forgot to add this to it
v.MouseHover.Value=false
end)
end
end
mouse.Button1Down:connect(function()
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("TextLabel") then
if v.MouseHover.Value == true then
-- Add your text button function here!
end
end
end

1 comment
Yep! Thanks for supporting my idea. It's just I have made a ton of games where I changed the mouse icon, then when I hover the icon over a textbutton it changed to the arrow. So I came up with this.