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

Why aren't these pages in my GUI tweening correctly?

Asked by 10 years ago

In my GUI, I'm creating pages in my menu for the players to see more things about the game. Unfortunately I've tried my best and nothing seems to be working. I'm not sure if I'm tweening the pages incorrectly or maybe it could be the positioning? I'm not sure, any thoughts? The only thing that seems to be working is scrolling down the pages, scrolling back up is where it breaks and shows nothing. (The silly keywords, such as "cheese" or "depression", are tags for the levels in the game, if that throws anyone off)

001pagenow = 1
002cf = true
003cheese = UDim2.new(0.100000001, 0,0.100000001, 0)
004depression = UDim2.new(2, 0, 0.100000001, 0)
005driving = UDim2.new(3, 0, 0.100000001, 0)
006thousand = UDim2.new(4, 0, 0.100000001, 0)
007rub = UDim2.new(5, 0, 0.100000001, 0)
008function TweenPageTo(page,pos)
009page:TweenPosition(pos,"Out","Back",.75,true,nil)
010end
011function SetPageTo(page,pos)
012page.Position = pos
013end
014 
015function CountPages() --returns table with pages
View all 104 lines...
0
Script block pl0x fahmisack123 385 — 10y
0
Try changed line 9 to this - page:TweenPosition(pos, "Out", "Back", .75, false) - it may be thrown off by the true and nil that you had. FearMeIAmLag 1161 — 10y

Answer this question