#help userinputservice function wont work it was working before i put the remote function
1 messages · Page 1 of 1 (latest)
Have you tried checking if the 2nd script is running?
and why are there so many big gaps in the code COVID isn't in code you don't gotta social distance code
makes it clear
the second one is running i know because the problem is the first one, it doesnt print
Why did you use OnServerInvoke twice
I believe it can only be used once
huh, would just the second one overwrite the first one
If so, that could be the problem
i need both of them though
i looked through the dev forums it says there is no limit to how many you can use
this is so annoying
Why not use it once
i need 2 variables
I believe you can combine the two
Do it in the same function, then return both of them
Can I see the script
This is the same thing
yeah because its the script
@cerulean pagoda
ill try that again ig
you can return two things at once if you didn't know
do you already know or should I give an example
in the same line?
yes
then i dont know
local function something(a : number, b : number)
local x = a + b
local y = a * b
return x, y
end
-- wrote on mobile, idk if the format is readable
print(something(2, 3))
np 
another way to return multiple things without knowing the method is to use a table
it's more complicated than the one I showed you
oh