|
| 11 Sep 2016 12:34 PM |
How does one change the position of a GUI? I tried changing the position with a regular script, and it didn't do anything. I didn't get any errors either, only that the part that supposedly changes the position, well.. isn't.
What am I doing wrong?
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:36 PM |
| part.Position = UDim2.new(PercentOfScreenSizeX,PixelsX,PercentOfScreenSizeY,PixelsY) |
|
|
| Report Abuse |
|
|
DeGames
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1028 |
|
|
| 11 Sep 2016 12:36 PM |
http://wiki.roblox.com/index.php?title=GUI_Guide
try using a local script as well
|
|
|
| Report Abuse |
|
|
pullman45
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 2891 |
|
|
| 11 Sep 2016 12:36 PM |
Do you want to just move it?
Change its position ._. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:38 PM |
@pullman45
Did you read everything I wrote? I tried moving it and nothing happened.
I should also mention that I'm trying to change the offset of x and y separately.
~MightyDantheman |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Sep 2016 12:40 PM |
gui.Position = UDim2.new(0,gui.AbsolutePosition.X+50,0,gui.AbsolutePosition.Y+50)
|
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:40 PM |
I'm not trying to do anything fancy.
I simply want to change the x offset of the gui, nothing else.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:41 PM |
while wait() do thing.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1)) end there u go |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:42 PM |
Nvm, looks like I just needed to use a LocalScript.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:44 PM |
http://wiki.roblox.com/index.php?title=API:Class/LocalScript http://wiki.roblox.com/index.php?title=API:Class/PlayerGui http://wiki.roblox.com/index.php?title=API:Class/StarterGui http://wiki.roblox.com/index.php?title=API:Class/Script
-.- |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:45 PM |
I don't think a single one of you understood what I was trying to do.
Regardless, I figured it out. Thanks for trying to help, anyways.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:46 PM |
"How does one change the position of a GUI"
you were the one who didnt know what you wanted to do you skid |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:48 PM |
I didn't expect someone so immature to find the Scripters subforum. Everyone just gave me a bunch of random lines of code that didn't help my situation. I asked for the exact way to do it. Udim2.new(0,0,0,0) would've sufficed. But it turns out it had nothing to do with that, anyways.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:49 PM |
| because you dont give any information about anything else you are doing and regular script ~= server script |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:51 PM |
In pretty much every case, a regular script would equal server script. I provided all the information that is necessary to answer the question. I'm not sure where everyone go the idea that I wanted to position something in the middle of my screen.
When someone asks for something, please only give what was asked.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:52 PM |
regular script means a normal script or basic script server script means a server sided script local script means a client sided script
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Sep 2016 12:54 PM |
@Mighty we literally gave you everything you needed. The problem here is that you were stupid to not use a local script for the gui. Your fault. Not our, not stop crying like a little baby.
|
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:54 PM |
A normal script or basic script is literally the exact same thing as a server script. A server script is not called 'server script', it's simply called 'script'. It's literally common sense.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:55 PM |
no it is not, in STUDIO it is called script
but the definition of the word 'script' applies to multiple things, and local scripts are also scripts. so unless you can understand basic english and learn how to correctly elaborate on your issues, it is your problem. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:56 PM |
@TimeTicks
Are you blind? You didn't give me what I wanted at all. For the record, it wasn't that either.
That's beside the point, anyway. Let's say I knew nothing about scripting. If I looked at everything you gave me with no previous knowledge, that would make 0 sense to me. The wiki explains it better. All you had to do was say 'Udim2.new()'. That's literally it.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 12:58 PM |
@thedailyblarg
Do you lack common sense? Unless I specifically say 'LocalScript', then I'm talking about a regular, normal, basic, whatever else you want to call it, script.
For the record, 'regular' literally means 'normal', so you contradicted yourself. gg.
~MightyDantheman |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 01:00 PM |
^ regular script = normal script = any script at all classifies as normal
you do not understand the client-server differences between roblox's scripts so stop being an idiot |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 01:04 PM |
For the last time. If you hear 'regular' or 'normal' script, it does, in fact, mean 'Script'. A default script is a server script.
Most people would refer to a server script as 'script'. If they wanted to specify another type of script, they would. If you don't understand this basic knowledge, I can't figure out how you're even here.
~MightyDantheman |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 11 Sep 2016 01:05 PM |
@OP You're such an ignorant IDIOT.
'part.Position = UDim2.new(PercentOfScreenSizeX,PixelsX,PercentOfScreenSizeY,PixelsY)'
How is that not what you wanted you moron? Thats exactly how you change the position of a gui. Maybe if you use your brain for once and research more info if you don't understand, we wouldn't be having the stupid discussion. I guess they don't teach that anymore in school. Go get an actual education first.
|
|
|
| Report Abuse |
|
|
|
| 11 Sep 2016 01:05 PM |
| Why are you all being such edgy skids, not everybody scripts as much as you losers do. |
|
|
| Report Abuse |
|
|