So I'm making a player whitelist and when I play the game, it gives me HTTPGET is not a data model Error. please help me
Pastebin
whitelist = {
[234788097] = true,
[321321] = true
}
return whitelist
Script
local userids = loadstring(game:HttpGet("https://pastebin.com/raw/ZAtXUJpu", true))()
if userids[game.Players.LocalPlayer.UserId] then
warn('whitelisted')
else
warn('blacklisted')
end

4 comments
This usually happens when your place has HTTP Services off.
the http service of the game Is ON. somehow the script won't work!
Pretty sure game:HttpGet() isn't a real function. Try game.HttpService:GetAsync() instead https://developer.roblox.com/en-us/api-reference/function/HttpService/GetAsync
it kinda work but it only print nil