You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Fix the HttpService is not allowed to access ROBLOX resources.
What is the issue? Its saying HttpService is not allowed to access ROBLOX resources but I am not
What solutions have you tried so far? Did you look for solutions on the Developer Hub? Developer Hub and youtube but they did not help.
Also I am using the PNG Library by CloneTrooper1019.
Draw localscript:
local Draw = require(game:GetService("ReplicatedStorage"):WaitForChild("playLib"):WaitForChild("Draw"))
Draw.DrawImage("https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/SNice.svg/800px-SNice.svg.png")
Draw module:
--IAmBanFor June 7 2022
local module = {}
local PNG = require(script.Parent:WaitForChild("PNG"))
function module:DrawImage(url)
--nerdy stuff
local UrlData = game:GetService("ReplicatedStorage").GetRawData:InvokeServer(url)
local buffer = PNG.new(UrlData)
if buffer then
print(buffer.Bitmap)
else
error("PlayLib Error | Buffer is not correct")
end
end
return module
stuff script:
game:GetService("ReplicatedStorage"):WaitForChild("GetRawData").OnServerInvoke = function(url)
return game:GetService("HttpService"):GetAsync(url)
end
No, notice it’s on the server side.
On the server side you always need to provide the player as first argument( when working with InvokeServer or FireServer)