Make ur roblox game do a GET request to that file every second or two and check for differences.
If it’s different than the last cached file then it’s a new request
Roblox-side code:
local lastCachedData = ""
while wait(2) do
local newData = game:GetService("HttpService"):HttpGetAsync("https://mygameserver.com/lastRequest.txt")
if (newData ~= lastCachedData) then
-- do something with ur new data
lastCachedData = newData
end
end
note this method is VERY unsafe if you’re POSTing private data that nobody should be able to read, but if you’re fine with them being able to read it then this should work fine
Yeah I thought the same, thanks for clearing it up. Will it work with a local server? I’m doing this for testing purposes only, if I decide to use in games then I’ll look for a server.
im not sure if itll work for a local server even when only testing in studio
i know roblox does https checks before making a connection so u might have to do some weird stuff to ur local server to make it work
Everyone can do a “google” please only reply if you have an idea. Also I know that C# has a HttpListener class but I want this to be on Roblox rn. I know this forum isn’t a .NET forum but it involves Roblox a lot.