adicione a funçao de definir a prioridade nas animaçoes para action : -- Welcome to…
- User
adicione a funçao de definir a prioridade nas animaçoes para action : -- Welcome to Animify V2
--[[
codeVersion: 2.4 Documentation and API Link: https://devforum.roblox.com/t/2462029 Credits: Programmed by @4vials, designed by @ParadoxAssets Contributors: @SaintImmor, @Bloxmaster998144--]]
local Controller = setmetatable({}, { __index = require(script:WaitForChild('Configuration')) })
local Sections = {} -- cache to destroy when refreshing
-- UI Components local AnimationGUI = script.Parent local AnimationFrame = AnimationGUI:WaitForChild('MainFrame') local ToggleButton = AnimationGUI:WaitForChild('toggle')
-- Dependencies local Assets = script:WaitForChild('Assets') local Player = game.Players.LocalPlayer
-- Animation Modules local SectionsFolder = script:WaitForChild('Sections') local Utility = require(script.Utility)
-- Controller variables Controller.Frame = AnimationFrame Controller.Enabled = false
-- Internal Variables local PlayingAnimation = nil local CharacterInformation = game:GetService('Players'):GetHumanoidDescriptionFromUserId(Player.UserId)
-- Constants local Positions = { Open = UDim2.new(.5, 0, .5, 0), Closed = UDim2.new(.5, 0, 1.5, 0) }
-- Funcs local tween = Utility.Tween
local function AddSection(sectionName: string) if Sections[sectionName] then warn(sectionName..' already exists') return end
codelocal sectionButton = Assets.SectionButton:Clone() sectionButton.Parent = AnimationFrame.Sections sectionButton.Text = sectionName Utility.SetupSectionButton(sectionButton, sectionName) Sections[sectionName] = {sectionButton} return Sections[sectionName]end
local function AddAnimation(sectionName: string, animationTitle: string, animationID: number) task.defer(function() local section = Sections[sectionName] or AddSection(sectionName)
code - Assistant