So this is just a question i want to ask. I have a script that instanced a text label into a GUI and a imagelabel into the text label. The thing is, whenever the text's increases image stays in it's position STILL.

How to make the image move to side whenever's text is longer ?

	TextLabel2 = Instance.new("TextLabel", GUI)
	TextLabel2.BackgroundTransparency = 1
	TextLabel2.Size = UDim2.new(0, 200, 0, 50)
	TextLabel2.Font = "ArialBold"
	TextLabel2.FontSize = "Size42"
	TextLabel2.Position = UDim2.new(0.5, 0, 0.5, 0)
	TextLabel2.TextStrokeTransparency = 0
	TextLabel2.Text = "+" ..Award
	---------------------------IMG---------------------------------
	ImageLabel2 = Instance.new("ImageLabel", TextLabel2)
	ImageLabel2.Image = "http://roblox.com/asset/?id=156071939"
	ImageLabel2.Position = UDim2.new(-0.1,0,0,0)
	ImageLabel2.Size = UDim2.new(0,50,0,50)

2 comments

0

can you please tell me how to, sir ?