“Roblox Tweenservice” Réponses codées

Roblox Tweenservice

local TweenService = game:GetService("TweenService")

local part = script.Parent
local goal = {}
goal.Position = Vector3.new(1, 0, 1)
goal.Color = Color3.new(0, 1, 0) -- Green

local tweenInfo = TweenInfo.new(5)
local tween = TweenService:Create(part, tweenInfo, goal)
wait(5) -- Wait Time
tween:Play()
Undefined

Roblox Tweenservice

local TS = game:GetService("TweenService")
local TInfo = TweenInfo.new(2, Enum.EasingStyle.Quart, Enum.EasingStyle.InOut)

local Part = script.Parent -- Assuming you have the script inside the Part.
local Pos = Part.Position -- where it is in the workspace.
local Size = Part.Size -- how large it is.

local Goal = {} -- This part will be explained later.
Goal.Position = Vector3.new(Pos.x+10, Pos.y, Pos.z-15)
Goal.Size = Vector3.new(Size.x+2, Size.y+3, Size.z+15)

local Tween = TS:Create(Part, TInfo, Goal)
Tween:Play()
Opal

Réponses similaires à “Roblox Tweenservice”

Questions similaires à “Roblox Tweenservice”

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code