Pans_xualJoin Date: 2014-03-14 Post Count: 2201 |
i'm a very very very basic scripter
i know pretty much nothing
i'm trying to make it so this gui text will move from one area to the other
i put the script in the gui
what's wrong with it?
while true do
wait(0.1)
StarterGui.text.TextLabel.Position = {0, 0},{0, 0}
wait(0.1)
StarterGui.text.TextLabel.Position = {0.1, 0},{0, 0}
wait(0.1)
end
i wake up early in the morning, and go back to sleep |
|
Aaaboy97Join Date: 2009-04-05 Post Count: 6612 |
There are dedicated functions for moving GUIs smoothly from one section to another. Take a look at this wiki article.
http://wiki.roblox.com/index.php?title=Tween |
|
CasualistJoin Date: 2014-06-26 Post Count: 4443 |
For the future, this kind of thread belongs in Scripting Helpers, not Scripters.
You have to use the UDim2 class for GUIs
while true do
wait(0.1)
StarterGui.text.TextLabel.Position = UDim2.new(0,0,0,0)
wait(0.1)
StarterGui.text.TextLabel.Position = UDim2.new(0.1,0,0,0)
wait(0.1)
end
|
|
Aaaboy97Join Date: 2009-04-05 Post Count: 6612 |
@Casualist
From his description, it seems like he only wants to move the GUI once. The way that the script he posted would function is essentially making the GUI shake. I think he misunderstood what a while loop does. |
|
Pans_xualJoin Date: 2014-03-14 Post Count: 2201 |
okayy
thanks
i'm stilling learning
and i kinda just started
i wake up early in the morning, and go back to sleep |
|
Pans_xualJoin Date: 2014-03-14 Post Count: 2201 |
welp
nvm that didn't work
and Aaaboy97 is right
i wake up early in the morning, and go back to sleep |
|
Aaaboy97Join Date: 2009-04-05 Post Count: 6612 |
@FutureDope
Try this snippet
StarterGui.text.TextLabel:TweenPosition(UDim2.new(0.1, 0, 0, 0), 1, 3, .1) |
|
Pans_xualJoin Date: 2014-03-14 Post Count: 2201 |
yeeeeee
i'm gonna have to do this on my own
sorry i posted in the wrong sub-forum
i wake up early in the morning, and go back to sleep |
|
jasondee1Join Date: 2008-07-26 Post Count: 8002 |
Ugh, you guys didn't teach him anything. I hate the dysfunction in this community.
There was nothing wrong with your script, you just forgot to identify the parameter you were using to move the GUI label. (EG: Vector3, ect).
Use UDim2 for GUI's
http://wiki.roblox.com/index.php?title=UDim2 |
|
jasondee1Join Date: 2008-07-26 Post Count: 8002 |
Also, you used it in the wrong way
"StarterGui.text.TextLabel.Position = {0.1, 0},{0, 0}"
I'm not sure what you were trying to do here, but read up on the link I gave you |
|
aboy5643Join Date: 2010-10-08 Post Count: 5458 |
@Aaaboy
Super OT: Remind me how I remember you... It's been so long and your username (because it's similar to mine) is strikingly familiar. |
|
morashJoin Date: 2010-05-22 Post Count: 5834 |
Also, I wouldn't go through and directly manipulate the StarterGui since that is only replicated to the PlayerGui when they spawn. |
|
|
You should go to Scripting Helpers to receive good help! |
|