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

How would I change a size of context action service button and questions?

Asked by 5 years ago
Edited 5 years ago

So I was testing around with CAS(ContextActionService) and I'm fairly new to CAS so I do not know much about it. I made a simple, simple script to see how CAS works. The problem is, that, I set some text for the button but the text is not fitting in the button so it just says a fraction of the text I wanted it to show up. I looked in the wiki but couldn't find any, SetSize() functions. The script is below. Please help! (Below the script I have more questions.)

local cas = game:GetService("ContextActionService")
function pressed()
    print("Pressed")
end

cas:BindAction("PrintButton",pressed,true,'g')

Questions:

  1. Will this work if a player will hold the button?( Like maybe if your making a machine gun ) 2.How would I use this in a tool with FE? 3.Is there a more accurate way to make buttons?
0
"text for the button but the text is not wrapped"? Are you referring to a Gui? Please elaborate on the issue again. xPolarium 1388 — 5y

Answer this question