تبيه بنافذة
يتحرك من يمين ل يسار
local againStartMove = 100 -- يبدأ لما ينتهي من
local endMove = 400 -- يوقف لما تبيه يرجع عند
addEventHandler("onClientRender",root,function()
if ( guiGetVisible(YouWindowNme) == true ) then
local x,y = guiGetPosition(YouLabelName,false)
guiSetPosition(YouLabelName,x + 3,y,false)
if ( x >= endMove ) then
guiSetPosition(YouLabelName,againStartMove,y,false)
end
end
end)
بدون ناففذة
local againStartMove = 100
local endMove = 400
addEventHandler("onClientRender",root,function()
local x,y = guiGetPosition(YouLabelName,false)
guiSetPosition(YouLabelName,x + 3,y,false)
if ( x >= endMove ) then
guiSetPosition(YouLabelName,againStartMove,y,false)
end
end)