generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Difficulty Changing GUI Position

Previous Thread :: Next Thread 
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
11 Sep 2016 12:36 PM
part.Position = UDim2.new(PercentOfScreenSizeX,PixelsX,PercentOfScreenSizeY,PixelsY)
Report Abuse
DeGames is online. 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 is not online. 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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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 is not online. 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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
11 Sep 2016 12:42 PM
Nvm, looks like I just needed to use a LocalScript.


~MightyDantheman
Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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 is not online. 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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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 is not online. 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
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image