Weexer Posted February 12, 2019 Share Posted February 12, 2019 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Ā Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now