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 » Scripting Helpers
Home Search
 

Re: GUI Movement

Previous Thread :: Next Thread 
DaDesign is not online. DaDesign
Joined: 27 Apr 2014
Total Posts: 53
10 Jun 2014 12:33 PM
Well GG I guess this won't work and its like the most simple script ever..

StartGUI = game.StarterGui.StartGui.ImageButton
function onClick()
StartGUI.Position = StartGUI.Position+Udim2.new(0,0,15,0)
end
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Jun 2014 12:36 PM
huge mistake.
if you want this to work for a player, you need playergui.
Also, it's startergui, not startgui


plr = game.Players.LocalPlayer
gui = plr.PlayerGui.GUINAME.Frame.ImageButton
function onClick()
gui.Position = StartGUI.Position+Udim2.new(0,0,15,0)
end

13,484/40,000 R$
Report Abuse
DaDesign is not online. DaDesign
Joined: 27 Apr 2014
Total Posts: 53
10 Jun 2014 12:37 PM
Yeah I'm kinda new to scripting :(
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
10 Jun 2014 12:38 PM
Tweenposition.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
10 Jun 2014 12:38 PM
p = game.Players.LocalPlayer
sg = p:WaitForChild("PlayerGui")
StartGUI = sg.StartGui.ImageButton
function onClick()
StartGUI.Position = StartGUI.Position+Udim2.new(0,0,15,0)
end
script.Parent.MouseButton1Down:connect(onClick)

--make sure to put this code in a localscript, and inside a button
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Jun 2014 12:38 PM
that to @vle


13,484/40,000 R$
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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