Advertisement
karobloxYT

Untitled

May 18th, 2019
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local screenGui = script.Parent
  2. local bgFr = gui:WaitForChild("BackgroundFrame")
  3. local fxFr = gui:WaitForChild("EffectFrame")
  4. local TS = game:GetService("TweenService")
  5.  
  6. function Tween(obj,prop,info) -- object to animate, properties to change, tween info.
  7. info = info or TweenInfo.new(
  8. 1,
  9. Enum.EasingStyle.Linear,
  10. Enum.EasingDirection.Out,
  11. -1,
  12. true,
  13. 0
  14. )
  15. TS:Create(obj,info,prop):Play()
  16. end
  17.  
  18. while true do
  19. fxFr.Position = UDim2.new(0.75,0,0.75,0) -- set position to bottom right
  20. Tween( fxFr, { Position = UDim2.new(0.25, 0, 0.25, 0) } ) -- Tween to top left
  21. wait(1)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement