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
|
  |
| 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
|
  |
| Joined: 27 Apr 2014 |
| Total Posts: 53 |
|
|
| 10 Jun 2014 12:37 PM |
| Yeah I'm kinda new to scripting :( |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
|
| 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
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
|
| 10 Jun 2014 12:38 PM |
that to @vle
13,484/40,000 R$ |
|
|
| Report Abuse |
|
|