local Cookie = "_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_Werenostrangerstolove"
local BrowserToken = "i think i cant share this i dont know what it means"
local function GiveRank(GroupId, Id, Rank)
local Link = `https://groups.roproxy.com/v1/groups/{GroupId}/users/{Id}`
task.spawn(function() -- no yield
print(pcall(function() -- no errors
return HttpService:RequestAsync({
Url = Link,
Method = "PATCH", -- i think this is not supported
Body = HttpService:JSONEncode({
["roleId"] = tostring(Rank)
}),
Headers = {
["X-CSRF-TOKEN"] = BrowserToken,
[".ROBLOSECURITY"] = Cookie, -- invalid character `.` and `|`
["Referer"] = "https://www.roblox.com/",
["Origin"] = "https://www.roblox.com"
}
})
end))
end)
end
The code above me is a failed attempt of me setting some random dude’s role to an admin, Is there a possible way to set a role without learning php or glitch or setting up a whole website thing?
There are no other people who tried to do this in roblox before I think