UserInputService not working?

try running the code in the command line just to see if its the UIS or the actual code

game.Players.LMVM2041.PlayerGui.MorphTeamSelection.TeamSelect.Visible = true

if this doesnt work then its UIS

otherwise its ur GUI stuff