Advertisement
EconomicSerg

Tween

Jan 6th, 2021
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local TweenService = game:GetService("TweenService")
  2.  
  3. local part = Instance.new("Part")
  4. part.Position = Vector3.new(0, 10, 0)
  5. part.Color = Color3.new(1, 0, 0)
  6. part.Anchored = true
  7. part.Parent = game.Workspace
  8.  
  9. local goal = {}
  10. goal.Position = Vector3.new(10, 10, 0)
  11. goal.Color = Color3.new(0, 1, 0)
  12.  
  13. local tweenInfo = TweenInfo.new(5)
  14.  
  15. local tween = TweenService:Create(part, tweenInfo, goal)
  16.  
  17. tween:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement