Open Animation module
For loot boxes, crates, chests, etc.
Hello developers!
Does your game have a loot box system? Then this may be the module for you!
Tutorial
Firstly, get the module here and insert it into your game via the toolbox.
Then create a LocalScript in StarterGui or somewhere else on the client and require the module:
local OpenAnim = require(game.ReplicatedStorage.OpenAnimation)
You can play the animation with this function:
local OpenAnim = require(game.ReplicatedStorage.OpenAnimation)
OpenAnim.PlayAnimation()
The function takes a dictionary with a range of properties as argument, let’s look at an example.
local OpenAnim = require(game.ReplicatedStorage.OpenAnimation)
OpenAnim.PlayAnimation({
ItemName = "Azure Sword",
Rarity = "Legendary",
ItemModel = game.ReplicatedStorage.Models.AzureSword,
ItemType = "Sword",
RarityColor = Color3.fromRGB(71, 212, 0),
})
Possible properties:
string ItemName
(required)
string Rarity
(required)
Instance ItemModel
(required)
string ItemType
Color3 RarityColor
(Default: Color3.fromRGB(255, 255, 255)
)
bool Skipable
(Default: true
)
Here is an example game, it is uncopylocked.
More is definitely to come, as it is currently in beta. Please reply with feedback, suggestions, bugs, improvements, etc.
I hope it comes in handy!