Is there any way to slow down the animation or at least make little cooldowns between performing few of them?
Im using this code to make full dab emote by using /dab command on chat
if GetModConfigData("LANG") == "english" then
GLOBAL.AddModUserCommand("Hidden Name Mod", "dab", {
prettyname = function(command) return "dab emote" end,
desc = function() return "Perform an emote!" end,
permission = "USER",
params = {},
emote = true,
slash = true,
usermenu = false,
servermenu = false,
vote = false,
serverfn = function(params, caller)
local player = GLOBAL.UserToPlayer(caller.userid)
if player ~= nil then
player:PushEvent("emote", { anim = "emote_dab_pre", randomanim = true })
player:PushEvent("emote", { anim = "emote_dab_loop", randomanim = true })
player:PushEvent("emote", { anim = "emote_dab_pst", randomanim = true })
end
end,
localfn = function(params, caller)
local player = GLOBAL.UserToPlayer(caller.userid)
if player ~= nil then
player:PushEvent("emote", { anim = "emote_dab_pre", randomanim = true })
player:PushEvent("emote", { anim = "emote_dab_loop", randomanim = true })
player:PushEvent("emote", { anim = "emote_dab_pst", randomanim = true })
end
end,
})
end
It's working but animation is really "quick" or sharp i would say.
Maybe sth like ~~Event:DoTaskInTime(1) might work but i don't know how to implement it
Any help please