Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screenGui = script.Parent
- local bgFr = gui:WaitForChild("BackgroundFrame")
- local fxFr = gui:WaitForChild("EffectFrame")
- local TS = game:GetService("TweenService")
- function Tween(obj,prop,info) -- object to animate, properties to change, tween info.
- info = info or TweenInfo.new(
- 1,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.Out,
- -1,
- true,
- 0
- )
- TS:Create(obj,info,prop):Play()
- end
- while true do
- fxFr.Position = UDim2.new(0.75,0,0.75,0) -- set position to bottom right
- Tween( fxFr, { Position = UDim2.new(0.25, 0, 0.25, 0) } ) -- Tween to top left
- wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement