Crate Opening animation

So I’m trying to create a spinning animation, I know how to make all the templates and frames, but I don’t know how to do the animtion within a frame like this:
robloxapp-20240629-0810088.wmv (1.1 MB)
If anyone could help me that would be nice.

4 Likes

You could most likely achieve this using scrolling frames and then scrolling through it within script and disabling the regular scrolling.

For actually choosing the item, you could easily do it by predetermining the place it will land on and set the landing spot as an RNG item (this will most likely save you more time than actually checking for what it lands on)

UIListLayouts are also very helpful for this.

If you need additional help, feel free to reply for help

2 Likes

I know how to do the scrolling frame, but not how to do the predeterming, could you show me?

2 Likes

I can’t do an interactive show, because I am currently banned, But I can help walk you through it

The easiest possible way is to put a bunch of items into the scrolling frame, but mark one of the items with a tag or attribute (this is so you know which one to switch)
Next, you are going to make sure that when you manually scroll the scrolling frame, that it lands on the item frame with the tag/attribute.

And finally, when you hit the roll button (to start the sequence), You are going to use RNG to get whatever item you’re picking and then replace the item frame with a tag/attribute with the randomly selected item

Summary of what to do
  1. Insert a bunch of frames with that are random items but make one of the frames have a tag/attribute that you will use later

  2. Make sure the scrolling frame lands on the set frame that has the tag/attribute

  3. When roll clicked, randomly select item and replace the tagged/attributed frame with the item’s stats

If you want a more complex/better looking one, I can reply again, but I don’t know if it would truly work due to me not having access to studio at the moment.

2 Likes

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