How to display all of the Billboard Gui's and not just one?
1 | local display = dice.RI.numdisplay and dice.RII.numdisplay and dice.WI.numdisplay and dice.WII.numdisplay and dice.WIII.numdisplay and dice.WIV.numdisplay and dice.WV.numdisplay and dice.WVI.numdisplay |
Whenever I roll my dice, only dice WVI displays its billboard gui, how do I make them all show their billboard gui?
full script if you want to know:
01 | local ts = game:GetService( "TweenService" ) |
02 | local p 1 = script.Parent.Parent.rollmove.RI |
03 | local p 2 = script.Parent.Parent.rollmove.RII |
04 | local box = script.Parent.Parent.rollmove.Box |
05 | local click = script.Parent.ClickDetector |
06 | local dicee = script.Parent.Parent.rollmove.dice:GetChildren() |
07 | local dice = script.Parent.Parent.rollmove.dice |
09 | local display = dice.RI.numdisplay and dice.RII.numdisplay and dice.WI.numdisplay and dice.WII.numdisplay and dice.WIII.numdisplay and dice.WIV.numdisplay and dice.WV.numdisplay and dice.WVI.numdisplay |
12 | local diceget = dicee [ i ] |
13 | diceget.Anchored = true |
15 | local default_dist = script.Parent.ClickDetector.MaxActivationDistance |
16 | script.Parent.ClickDetector.MouseClick:Connect( function (player) |
17 | game.ReplicatedStorage.Roll:FireAllClients() |
18 | script.Parent.ClickDetector.MaxActivationDistance = 0 |
19 | script.Parent.SurfaceGui.Rolling.Visible = true |
20 | script.Parent.SurfaceGui.Roll.Visible = false |
23 | local function moveItem(item, wp) |
24 | local ti = TweenInfo.new( 2 , Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0 , false , 0 ) |
25 | local tween = ts:Create(item, ti, { Position = wp.Position } ) |
29 | local function moveItems(item, wp) |
30 | local ti = TweenInfo.new( 0.1 , Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0 , false , 0 ) |
31 | local tween = ts:Create(item, ti, { Position = wp.Position } ) |
36 | local diceget = dicee [ i ] |
37 | moveItems(diceget, p 1 ) |
41 | local diceget = dicee [ i ] |
42 | diceget.Transparency = 1 |
43 | moveItems(diceget, p 2 ) |
46 | box.Orientation = Vector 3. new( 0 , 180 , 180 ) |
48 | local diceget = dicee [ i ] |
49 | diceget.Transparency = 0 |
50 | diceget.Anchored = false |
52 | display.Enabled = true |
55 | local diceget = dicee [ i ] |
56 | diceget.Anchored = true |
57 | diceget.Transparency = 1 |
58 | moveItems(diceget, p 1 ) |
59 | display.Enabled = false |
62 | box.Orientation = Vector 3. new( 0 , 0 , 0 ) |
63 | script.Parent.SurfaceGui.Rolling.Visible = false |
64 | script.Parent.SurfaceGui.Roll.Visible = true |
65 | script.Parent.ClickDetector.MaxActivationDistance = default_dist |