MettaurSpJoin Date: 2010-03-20 Post Count: 3179 |
Making an admin script right now and one of the commands creates a GUI requiring a scroll bar. Only problem is that server scripts are horrible when it comes to that as they don't respond as quickly as LocalScripts. Now I have to make some ugly bit of code that taps into the LocalScript used for a local script command when it is available. Anyone have any solutions to get around this with a Script? |
|
Charl3s7Join Date: 2007-12-07 Post Count: 4146 |
Almost anything you do with your UI should be done in localscripts. |
|
MettaurSpJoin Date: 2010-03-20 Post Count: 3179 |
I see why, but it would just be more convenient if there was an effective solution to keep the code in the main script so I don't have to clone a whole new script and change the Value of a StringValue to perform what I want it to do. That would mess up the command if the LocalScript isn't present, and it is an essential command to the script. |
|
|
Just put a localscript into the scrollbar that controls it :P
unless its a surfacegui? im not sure what to do then. |
|
MettaurSpJoin Date: 2010-03-20 Post Count: 3179 |
Welp, got the script to add a separate LocalScript to the player's PlayerGui and noticed that a whole lot of issues I have been having with it were cause of the behavior of a server sided script using client related properties. Would have been useful to be able to do it from the main script, but this works too. Thread issue closed. |
|
|
You can you the RbxGui library. Here is a link to it's wiki page:
http://wiki.roblox.com/index.php/Rbxgui |
|
|
@arb,
Your help was about as useless as ROBLOX's support team. |
|
|
@cutie
what is your point |
|
CrakkittyJoin Date: 2009-12-25 Post Count: 17408 |
@Cutie,
It actually isn't useless, as it's a redirection to something that directly relates to the question OP has. |
|
OysiJoin Date: 2009-07-06 Post Count: 9058 |
What?
Use localscript for all ui interactions, and then send request to server. |
|
SharksieJoin Date: 2009-10-10 Post Count: 30576 |
"clone a whole new script and change the Value of a StringValue to perform what I want it to do."
StringValues are three exploitable. Memory editing those is a walk in the park. You /need/ to use Bindables for server/client communication. |
|
|
Or how about buttons = server-sided, scroll = local? |
|
200ABJoin Date: 2010-08-24 Post Count: 1604 |
@Arb
Ew, no. RBXGUI is the worst thing ever. |
|
|
@Crak,
Someone like 200AB would clearly know about the RBXGUI, and using it would not fix his issue. Why would you tell him something that he clearly knows about and evidently does not want to use? What kind of help is that? |
|
MettaurSpJoin Date: 2010-03-20 Post Count: 3179 |
Custom made scroll bars > Roblox's. Using theirs would be sort of like using a free model, you need to use it very carefully or it would look frankensteined together. |
|