Preview Video

Github

#Set up
fxmanifest.lua:

client_scripts {
    '@tweenCFX/tweenCFX.lua',
    'important.lua'
}

#Instance(within the video)

DrawText2D = perform(textual content,x,y,alpha)
	SetTextScale(0.5, 0.5)
	SetTextFont(1)
	SetTextColour(255, 255, 255, alpha)
	SetTextDropshadow(0, 0, 0, 0, 255)
	SetTextDropShadow()
	SetTextOutline()
	SetTextCentre(true)
	BeginTextCommandDisplayText('STRING')
	AddTextComponentSubstringPlayerName(textual content)
	EndTextCommandDisplayText(x, y)
	ClearDrawOrigin()
finish
native testDrawWhile = nil 
native testDrawWhile2 = nil 
perform OnDrawFinish(textual content)
    print(textual content.." draw end!")
    testDrawWhile = nil
finish 
perform OnDrawFinish2(obj,state)
    if state == 2 then 
    print(obj._text.." draw end!")
    testDrawWhile2 = nil
    else 
    TweenCFX.Tween.to(obj,3.0,{_alpha=0.0,ease=TweenCFX.Ease.EaseTable[1],onCompleteScope=OnDrawFinish2,onCompleteArgs={obj,2}})
    finish 
finish 
CreateThread(perform()
    native object = {}
    object._text = "haha"
    object._x = 0.5
    object._y = 0.0
    object._alpha = 0
    TweenCFX.Tween.to(object,3.0,{_y=0.5,_alpha=255,delay=1,ease=TweenCFX.Ease.LinearNone,onCompleteScope=OnDrawFinish,onCompleteArgs={object._text}})
    native object2 = {}
    object2._text = "haha2"
    object2._x = 0.0
    object2._y = 0.5
    object2._alpha = 255
    TweenCFX.Tween.to(object2,5.0,{_x=0.7,ease=TweenCFX.Ease.EaseTable[4],onCompleteScope=OnDrawFinish2,onCompleteArgs={object2,1}})
    CreateThread(perform()
        testDrawWhile = true 
        testDrawWhile2 = true 
        whereas testDrawWhile or testDrawWhile2 do Wait(0)
            DrawText2D(object._text,object._x,object._y,math.ground(object._alpha))
            DrawText2D(object2._text,object2._x,object2._y,math.ground(object2._alpha))
        finish 
    finish)
finish)

Standalone
However it will likely be included within the Threads Lib script sooner or later.



Looking for paid scripts? Click here