of     1   

ReveredEngineer
#141149787Tuesday, July 22, 2014 8:30 AM GMT

How would Add/Times a Vector3 or UDim/2 by the lenth of a table? kk = {} I tried: function touch(plr) h = instance.new("TextLabel" game.Players.GetPlayerFromCharacter(plr).PlayerGui.ScreenGui) h.Text = (table.concat(kk)) h.Size = UDim2.new(1,0, .15,0) h.Position = UDim2.new(0,0, 1,0) * UDim2.new(0,0 (#kk),0) end script.Parent.Touched:connect(touch) It errors and says "Exspected UDim2 value, got userdata" Any one know how to fix this?
cntkillme
#141149835Tuesday, July 22, 2014 8:31 AM GMT

+ UDim2.new should fix it, although it wouldn't be wise to put the length of the table as y_scale since when there is even 1 it will take up the whole screen.
ReveredEngineer
#141149898Tuesday, July 22, 2014 8:32 AM GMT

Oh, I was just giving sort of an example, it adds a Gui to a scrollingGui, so I'm safe.
ReveredEngineer
#141149984Tuesday, July 22, 2014 8:34 AM GMT

Now it's just erroring: attempt to preform atrethmetic on a userdata
cntkillme
#141150065Tuesday, July 22, 2014 8:36 AM GMT

That's if you multiply/divide, roblox handles it when you add or subtract UDim2's h.Position = UDim2.new(0,0, 1,0) + UDim2.new(0,0 (#kk),0) If you want, you could make your own custom UDim2 to handle other types of arithmetic operations.
ReveredEngineer
#141150237Tuesday, July 22, 2014 8:40 AM GMT

Oh yeah, you fixed it before... In my sript I had: h.Position = h.Position + UDim2.new(0,0, (#kk),0) Thanks btw.
cntkillme
#141150290Tuesday, July 22, 2014 8:41 AM GMT

That one should work too (assuming h is a frame/imagelabel/etc.)

    of     1