Paygammy

Create Tween Function

Jun 9th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. local function CreateTween(Object,Tween,Table)
  2. local Tween = TweenService:Create(Object,Tween,Table)
  3. Tween.Completed:Connect(function(PlaybackState)
  4. if PlaybackState ~= Enum.PlaybackState.Completed then
  5. return
  6. end
  7. Tween:Destroy()
  8. end)
  9. Tween:Play()
  10. end
Advertisement
Add Comment
Please, Sign In to add comment