the returned query is a table. so you’d do test.coins to retrieve coins.
They’re asking why the returned value isn’t typed. They probably know that the value can be retrieved with test.coins
but they are wondering why test has a type of any
rather than {coins = number}
.
ahh. its cuz u used .GetCoins twice @LordMerc
packets.queries.GetCoins.GetCoins instead of packets.queries.GetCoins
Ah, valid blunder on my side.
Even fixed, still shows any typed
That’s weird, it shows up accurately for me.
Hm, I’m not sure whats going on then. I grabbed it off creator place if that’s the reason.
Yea I’ve been trying the versions but it still shows as any for me, not sure why the typed isn’t working.
That’s very weird. But does it work without types?
I think you’re using it wrong somewhere, I can’t help since I don’t know how you’re using it.
Would you setup a repo place that works? Curious if the marketplace model is just not the correct one.
It works for me.
Do you have any beta features enabled?
EDIT: Think I figured why, it was the new type solver beta. Needed it on to be able to have this work.
Curious, is there a way to have it auto fill the return portion?
Syntax doesn’t see coins as a valid return, but when assigned a value it goes away. Just want to find a way to have intellisense realize coins should be the return.
That’s a Roblox issue, I don’t really have a solution for it.
Ah yes, Mitos.is music. Used to play the game
Is it possible for you to add an option to invoke the client from the server? It seems you’ve only implemented client → server queries, although I sometimes find server → client queries useful as well. For example to get the device type of a player.
I’d suggest using Remote Events for it. Roblox themselves advice against server → client remote functions.