Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Why does this Gui Position return 3.2? ( Advanced UDim2 )

Asked by 9 years ago

Why does this Gui's position return 3.2?

Gui_Cmds={}
Output_New_Gui=function(Plr,Message)
local GUI=game.Players[Plr.Name]['PlayerGui']:WaitForChild('Gui_Cmds_Holder');
local Frame=GUI['Main_Frame'];
local Line=Frame['Gui_Line'];
local TXT=Frame['Text_Gui'];
----------------------------
local Gui_Cmd=Instance.new('TextButton',Frame)
Gui_Cmd.BackgroundTransparency=0.5
Gui_Cmd.BorderSizePixel=1
Gui_Cmd.Size=UDim2.new(1,0,0.02,0)
Gui_Cmd.Font='SourceSans'
Gui_Cmd.FontSize='Size18'
Gui_Cmd.TextColor3=Color3.new(0,0,255)
Gui_Cmd.TextScaled=true
Gui_Cmd.Text=(tostring(Message))
Gui_Cmd.TextWrapped=true
wait()
Gui_Cmd:TweenPosition(UDim2.new(0,0,0.02+#Gui_Cmds,0,0),"Out","Linear",0.3*2,true)
-- I have 3 instances in the Table but why is it making the 3 guis return position 3.2?

I have tryed to fix this like for 4days or so and nothing.... Nothing I can figure out works correctly... ;-;

0
Any suggestions? MessorAdmin 598 — 9y
0
On line 19 I have 3 instancing things into the table.. So I think thats where its getting the 3 BUT WHY 3.2?!?! MessorAdmin 598 — 9y

Answer this question