You can write your topic however you want, but you need to answer these questions:
So I want make Texulabel’s position random on both X and Y axis and go up 0.4 on Y axes
like this
(I am a good artist)
2.
What is the issue? Include screenshots / videos if possible!
no matter where Label spawn it goes here? Weird thing
local function GetRandomPosition()
return UDim2.new(r:NextNumber(0.235,0.711),0,0,0) --R is MathRandom
end
KelenkoClone.Position = GetRandomPosition()
KelenkoClone:TweenPosition(UDim2.new(0,0,0.4,0),"In","Sine",1,false)
Like Why are you going there you are supposed go up ;(
Jacky2804
(Jacky2804)
February 19, 2023, 1:16am
#2
That’s because when you are tweening the label, you reverted back to X 0 both on scale and offset.
Yeah I figured it and Handled it now I just want it to Go straight up from where it spawns
Idk how though
1 Like
Ovibion
(Alexan)
February 19, 2023, 1:19am
#4
It’s because you are tweening the GuiObject
to the position 0, 0, 0.4, 0
, instead of tweening it to its position plus 0.4 on its Y axis. Try this:
-- Add to the Y axis.
local newPos = guiObject.Position + UDim2.fromScale(0, 0.4)
guiObject:TweenPosition(newPos, "In", "Sine", 1)
1 Like
Jacky2804
(Jacky2804)
February 19, 2023, 1:19am
#5
Sweet! Glad you have solved it.
Thank you it worked <30Charter Well 0.4 made it tween down so I just add - to it but yeah thanks ofc :3
system
(system)
Closed
March 5, 2023, 1:26am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.