I am having one of the most indescribable errors that I’ve ever ran into. Well, not really, but here’s the issue that I’m experiencing…
Players.PlayerAdded:Connect(function(player)
local result = "Some example text, obscured for security"
local data = {
["content"] = result
}
HttpService:PostAsync(endpointUrl, HttpService:JSONEncode(data), Enum.HttpContentType.ApplicationJson, false)
player:Kick()
end)
Now, my issue is that, the code thereafter HttpService:PostAsync(endpointUrl, HttpService:JSONEncode(data), Enum.HttpContentType.ApplicationJson, false)
is refusing to run! In this case, player:Kick()
. But even calling print afterward is not working. Funny thing is, if I move the player:Kick()
to the beginning of the callback, it works… no problems at all. Honestly, I have no idea why this is even happening. Wrapping PostAsync in a pcall does not help either. No errors… and I am receiving the message from PostAsync on my server. Super weird, does anybody know how to get this working?