Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local guiObject = script.Parent.Parent.Parent.Games
- local function callback(didComplete)
- if didComplete then
- print("The tween completed successfully")
- else
- print("The tween was cancelled")
- end
- end
- local willTween = guiObject:TweenSize(
- UDim2.new(0, 205,0, 19), -- endSize (required)
- Enum.EasingDirection.In, -- easingDirection (default Out)
- Enum.EasingStyle.Sine, -- easingStyle (default Quad)
- 2, -- time (default: 1)
- true, -- should this tween override ones in-progress? (default: false)
- callback -- a function to call when the tween completes (default: nil)
- )
- wait(2.50)
- script.Parent.Parent.Parent.Games.Visible = false
- wait(0.1)
- script.Parent.Parent.Parent.MainTab.Visible = true
- local guiObject = script.Parent.Parent.Parent.MainTab
- local function callback(didComplete)
- if didComplete then
- print("The tween completed successfully")
- else
- print("The tween was cancelled")
- end
- end
- local willTween = guiObject:TweenSize(
- UDim2.new(0, 476,0, 209), -- endSize (required)
- Enum.EasingDirection.In, -- easingDirection (default Out)
- Enum.EasingStyle.Sine, -- easingStyle (default Quad)
- 2, -- time (default: 1)
- true, -- should this tween override ones in-progress? (default: false)
- callback -- a function to call when the tween completes (default: nil)
- )
- if willTween then
- print("The GuiObject will tween")
- else
- print("The GuiObject will not tween")
- if willTween then
- print("The GuiObject will tween")
- else
- print("The GuiObject will not tween")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment