nforeman

CoreGames | Ease3D Demo Script

Sep 11th, 2020
1,085
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Cube = script:GetCustomProperty("Cube"):WaitForObject()
  2. local Ease3D = require(script:GetCustomProperty("Ease3D"))
  3.  
  4. local task = Task.Spawn(function()
  5.     Task.Wait(2)
  6.     Ease3D.EaseWorldPosition(Cube, Vector3.New(-600, 0, 250), 2, Ease3D.EasingEquation.ELASTIC, Ease3D.EasingDirection.IN)
  7.     Ease3D.EaseWorldScale(Cube, Vector3.New(5), 2, Ease3D.EasingEquation.ELASTIC, Ease3D.EasingDirection.IN)
  8.     Task.Wait(2)
  9.     Ease3D.EaseWorldPosition(Cube, Vector3.New(600, 0, 50), 2, Ease3D.EasingEquation.ELASTIC, Ease3D.EasingDirection.OUT)
  10.     Ease3D.EaseWorldScale(Cube, Vector3.New(1), 2, Ease3D.EasingEquation.ELASTIC, Ease3D.EasingDirection.OUT)
  11. end)
  12. task.repeatCount = -1
  13. task.repeatInterval = -1
RAW Paste Data