How to fix "Unable to cast token to bool", how to fix?
I am trying to get a userid from a username in a roblox endpoint using HTTP requests, yes HTTP Requests are turned on, yes I specified Enum.HttpContentType
Here is the script:
01 | local HTTP = game:GetService( "HttpService" ) |
03 | script.Parent.MouseButton 1 Click:Connect( function () |
04 | local User = script.Parent.Parent.Username.Text |
07 | local Response 1 = HTTP:JSONDecode( |
11 | local UserID = Response 1. Id |
13 | print ( "Got User ID of " ..game.Players.LocalPlayer.Name) |
15 | local GetUserFollowers = HTTP:JSONDecode( |
19 | local FollowerCount = GetUserFollowers.count |
21 | print ( "Getting follower count of " ..User) |
22 | script.Parent.Parent.Output.Followers.Text = ( "Follower Count: " ..FollowerCount) |