|
| 24 Sep 2015 03:57 PM |
I am trying to make a gui move from the top of the screen to the middle and stop there, but my script has a error.
local Logo = script.Parent.Parent.NGFXLogo
repeat wait(0.01) Logo.Position = Logo.Position + UDim2.new(0, 0, 0.005, 0) until Logo.Position = (0, 0, 0.2, 0) end
There is a error at the "=" symbol in the "until Logo.Position = (0, 0, 0.2, 0)" line.
Why and how do I fix it and still make it do what I want it to do? |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:00 PM |
Forget all of that...and use
Logo:TweenPosition(0,0,.2,0) |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:00 PM |
Oh, and btw you have to use "==" aka equal to.
print(1=1) --Error print(1==1) --true |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:00 PM |
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/TweenPosition
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:11 PM |
| Way to fast! is there a way of making it move slowly? |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:12 PM |
omg, why you doin that sht, use dis instead: http://wiki.roblox.com/index.php?title=TweenPosition
https://www.youtube.com/watch?v=qLKhxjfG03A |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:14 PM |
| Too fast guys it need to look like a animation |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:20 PM |
bool TweenPosition ( UDim2 endPosition, EasingDirection easingDirection = Out, EasingStyle easingStyle = Quad, float time = 1, bool override = false, void function() callback = nil )
Increase the time argument. [2]
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:20 PM |
bool TweenPosition ( UDim2 endPosition, EasingDirection easingDirection = Out, EasingStyle easingStyle = Quad, float time = 1, bool override = false, void function() callback = nil )
Increase the time argument. [3]
https://www.youtube.com/watch?v=qLKhxjfG03A |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:27 PM |
| No clue how that helps me XD |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:28 PM |
it's going fast cause you have it set to 1, or nothing at all (nothing defaults to one) For more info go here: http://wiki.roblox.com/index.php?title=Tweening
https://www.youtube.com/watch?v=qLKhxjfG03A |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:29 PM |
If u cant tell im a noob
I tried to do this but still no dif
Logo:TweenPosition(UDim2.new(0.35, 0, 0.2, 0),'Out','Quad',0.01) |
|
|
| Report Abuse |
|
|
|
| 24 Sep 2015 04:29 PM |
yeah, where it says 0.01, that is the speed, it goes really fast because you told it to go really fast.. LOL
https://www.youtube.com/watch?v=qLKhxjfG03A |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Sep 2015 04:34 PM |
k np
https://www.youtube.com/watch?v=qLKhxjfG03A |
|
|
| Report Abuse |
|
|