hbgnhu
(CrimKingNoChat)
April 9, 2023, 11:39am
1
Remote event receives events in different order than it was fired, which kinda breaks my script because Summon has to happen first
print('fired summon')
VFX:FireAllClients("Standmain", "Summon", Char)
local Anim = GetAnim(Ability, Name)
local tInfo = {Priority = 'Action'}
print('fired animate')
VFX:FireAllClients("StandMain", "Animate", Char, {Anim, tInfo})
return function(Task, Char, Variables)
print('recieved', Task)
end
Have you tried adding a simple task.wait() in-between those 2 events?
task.wait() is like wait() but way faster (takes 1/30 of a second less). Why don’t you give it a shot?
In what use case would you need to fire both of these events immediately if they are affecting one instance or group?
Why not just have animate happen within summon?
I think since you’re calling a function, your function has some sort of delay in it. Just a reminder, functions yield your code until it’s finished. You could try calling a coroutine when calling the function or a coroutine inside the function itself and tell us how it results.
hbgnhu
(CrimKingNoChat)
April 9, 2023, 3:01pm
6
I don’t want to animate every time i summon
hbgnhu
(CrimKingNoChat)
April 9, 2023, 3:01pm
7
What function am I calling? Im firing a remote vent that passes stuff to a module. There is no delay
Why is the summon args the task is Standmain
But in the animate args the task is StandMain
Standmain and StandMain are not the same task?
You should try that it will work
hbgnhu
(CrimKingNoChat)
April 9, 2023, 5:53pm
10
There is one part I didn’t add because I didn’t think it was important. StandMain is a module inside a localscript, and it gets required by this function
VFX.OnClientEvent:Connect(function(ModuleName, ...)
require(script[ModuleName])(...)
end)
StandMain is the ModuleName, so in the module the first variable (Task) is the second argument basically
I have a solution but for confirm that is a solution can you tell what is the second script?
What? Normally your script give error that you must write StandMain and not Standmain Right?
VFX:FireAllClients("Standmain", "Summon", Char)
hbgnhu
(CrimKingNoChat)
April 9, 2023, 6:21pm
13
Wow, I can’t believe I didn’t notice that spelling error
Thanks
system
(system)
Closed
April 23, 2023, 6:22pm
14
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.