Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui moves, but to the wrong place. Any help?

Asked by 8 years ago

In my script after it is done doing what it is doing, it moves to a certain area, which happens to be the bottom left. [Another Gui's position]. However it moves, but to the top left like its going to {0,0}

Here is the script:

wait()
local t = script.Parent
local location = t.Parent.put.Position
wait()
t.Visible = true
wait(0.05)
t.Visible = false
wait(0.05)
t.Visible = true
wait(0.05)
t.Visible = false
wait(0.05)
t.Visible = true
wait(0.05)
t.Visible = false
wait(0.05)
t.Visible = true
wait(0.05)
t.Visible = false
wait(0.05)
t.Visible = true
wait(0.05)
t.Visible = false
wait(0.05)
t.Visible = true
wait(0.05)
t.Visible = false
wait(0.05)
t.Visible = true
wait(1.5)
t.Text = "$100"
t:TweenPosition(UDim2.new(location),"Out","Quad",1,true)

1 answer

Log in to vote
0
Answered by 8 years ago

I usually use "Out","Quad" for everything. Try changing it to "Out","Quad". The last time I used another GUI's location to determine where a second GUI should move to, those two worked.

0
okay ill see, Thanks! CarterTheHippo 120 — 8y
0
it did the same thing CarterTheHippo 120 — 8y
0
Hmm...I can't think of what might be the problem then. Sorry I haven't been of much help. ShadowsDev 62 — 8y
0
its okay atleast you tried CarterTheHippo 120 — 8y
Ad

Answer this question