Help With Make UI

I am trying to make a crate system like in the game Blade Ball

You spend coins on a crate and then a slot machine UI comes up. You get you Item and the UI disappears. (fortune roll)

I know how to do all of this but the ui part. How do I make a script that makes the boxes go away like in the image.

1 Like

You can enable ClipDescendants on the frame: that’ll handle clipping them off, all you need is to move them outside the bounds of the frame.

2 Likes

Thanks that solve one problem. Do you know how to make a script where the UI moves randomly horizontal

1 Like

You can get a random position for the gui

local YPosition = -- Whatever you want
local XPosition = math.random(MinimumDistance, MaxDistance)

local Position = UDim2.new(XPosition, 0, YPosition, 0) -- If you want to use Scale
-- or
local Position = UDim2.new(0, XPosition, 0, XPosition) -- If you want to use Offset

Gui.Position = Position

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.