Well I had a bit problems
function getId(username){
const https = require("https")
let id = ""
let data = ``
https.get(`https://api.roblox.com/users/get-by-username?username=${username}`, (response) =>{
    response.on('data', (chunk) => {
        data += chunk;
    })
    response.on('end', () =>{
        if(data){
          id = JSON.parse(data).Id
        }
    })
})
.on('error', (error) => {
   console.log(error)
})
return id
}
So my goal here to use getId("IHZAQSTORM33") and expected result, it will return user id (1684676332). but instead, it give me (""). It give me a colons
 yes I'm trying to connect to roblox api.
 
    