Honuluau
(Honuluau)
#1
I want to find out what platform a player is on and put it on the leaderboard. However, the user input service isn’t firing the server.
Can someone tell me the problem here?
Extra Details
Script is in StarterGui
Script is Local
Script returns no errors
1 Like
If I’m not mistaken, shouldn’t it be “key.InputType”, since UserInputService.InputEnded returns an Input object with properties.
1Urge
(1Urge)
#3
Is your print statement not appearing in the output, because if it is, then that means the remote event is firing. Can we see the serverscript?
Honuluau
(Honuluau)
#4
I thought that was the case but It only returned this error
Honuluau
(Honuluau)
#5
I was about to and then I realize the serverscript isn’t even in the game anymore, but its on the top bar Strange.
Honuluau
(Honuluau)
#6
nvm i was still in playtest here it is:
1Urge
(1Urge)
#7
@BuilderDolphin is right. UserInputType is the way to go.
I just figured out the problem by looking at this page. Apparently it’s called “InputObject.UserInputType” instead of InputType.
Honuluau
(Honuluau)
#9
Yup, works now. Thank you!
and thank you @1Urge for helping