Tween service use

i am kinda new at tween service, i want to know how to make the button go to a place when pressed and bringing other guis with the button

TweenService for the purpose that you have listed is not difficult to understand at all. Here are the basics.

First you will need to understand what is required to make this tween work, creation of a tween object requires three arguments. The first argument is what instance or interface you will be tweening with. The second argument is TweenInfo, which is used to tell the tween object certain rules to follow when tweening (ie. how long it takes and how it animates the tween). You can find more information about the available TweenInfo arguments here. The final argument is a table consisting of what properties you would like to tween and what they need to arrive at. All of this together looks something like this (this example would move a part in workspace):

local TweenService = game:GetService("TweenService")
local PartToTween = game.Workspace.Part
local LengthOfTween = 5 -- how many seconds the tween will take
local TweenProperties = {}
local TInfo = TweenInfo.new(LengthOfTween)

TweenProperties.Position = Vector3.new(50,5,50)

local MyTween = TweenService:Create(PartToTween, TInfo, TweenProperties)
MyTween:Play()

This example will tween a part in workspace to the worldspace vector location 50x 5y 50z in the span of 5 seconds. Hope this helps. The same concepts should apply for UI.

1 Like