How to attach billboard Gui to shirt?
I got this billboard gui and i wanna attach it to my shirt any ideas?
01 | local X = 324 local Y = 157 local P = Instance.new( 'Part' ) |
05 | P.Position = Vector 3. new( 0 , 0 , 0 ) |
06 | P.Parent = game.Workspace |
08 | local B = Instance.new( 'BillboardGui' ) |
11 | B.Size = UDim 2. new( 0 , X, 0 , Y) |
13 | local F = Instance.new( 'Frame' ) |
15 | F.Size = UDim 2. new( 1 , 0 , 1 , 0 ) |
16 | F.BackgroundTransparency = 1 |
18 | local res = 2 local current = 1 |
22 | local cooldowncount = 0 |
24 | for _,v in pairs (imageBytes) do |
25 | local frame = Instance.new( 'Frame' ) |
26 | frame.BackgroundColor 3 = Color 3. new(v.r/ 255 , v.g/ 255 , v.b/ 255 ) |
27 | frame.Size = UDim 2. new( 0 , 1 , 0 , 1 ) |
28 | frame.BorderSizePixel = 0 |
29 | frame.Position = UDim 2. new( 0 , math.floor(v.x/res), 0 , math.floor(v.y/res)) |
31 | if frame.BackgroundColor 3 = = Color 3. new( 0 , 0 , 0 ) then |
35 | if current % 2 = = 0 and not cooldown then |
38 | elseif current % 2 = = 0 and cooldown then |
39 | cooldowncount = cooldowncount+ 1 |
40 | if cooldowncount = = 25 then |