I’m working on a game with my friend called Virtual Hangout.
None of us nor the Scripters for our Hangout know how to script a Devforum member Only door.
Can anyone help me by linking the Coding for it?
Thank you!
I’m working on a game with my friend called Virtual Hangout.
None of us nor the Scripters for our Hangout know how to script a Devforum member Only door.
Can anyone help me by linking the Coding for it?
Thank you!
I don’t think it’s possible as of now.
It’s possible. I know many of those RDC Hangout games have a door where only Devforum members can enter if they’re whitelisted or something.
You can send a http GET request with that URL
https://devforum.roblox.com/u/USERNAME.json
to get the information about a devforum user and using that you can obtain information about the trust level
So, I put that link into a script? What type of script? And then I’ll work?
This would need an external server because you can’t send HTTP requests to a Roblox domain from studio or in-game
I’m confused. I enabled HTTP Request from what it says in HttpService.
I was just making sure about that and indeed you will need to use an external server, because otherwise it will cause an error
Sorry, I’m kinda dumb. Cause I don’t know anything about Programming. I only know stuff about building.
Some game’s owner has found another solution to check whether a player is in this group or not (Roblox DevForum Community - Roblox). Many devforum members are there so you can just encourage people to join if they want to get the devforum door access. Owners of that group use a bot which checks if a roblox user is a devforum member or not so only devforum members are accepted.
Oh, So like a Group Only door? DevForum members can only pass the door if they’re in that Group.
Without an external server, your best bet is check if people are in this group: Roblox DevForum Community - Roblox
and whitelist anybody manually who might not be in it.
I mean, Flex Your Account Age has a DevForum only door, and it works for me despite me not being in the group, so there has to be some way.
They probably use an external server, which is too much to get into for one simple thing
Here is script for that:
local http = game:GetService("HttpService")
game.Players.PlayerAdded:Connect(function(player)
local devforumUrl = ("https://devforum.rprxy.xyz/u/%s.json/"):format(player.Name) -- proxy
local success , trustLevel= pcall(function()
return http:JSONDecode(http:GetAsync(devforumUrl)).user.trust_level
end)
if success and ( tonumber(trustLevel) >= 1) then
print(player.Name .. " is devforum member")
local isDevForumMember = Instance.new("BoolValue" , player)
isDevForumMember.Name = "DevForum"
end
end)
It creates BoolValue in player and can be used by other scripts to determine if player is DevForum member.
@Amiaa16 went in more depth here and broke it down, for anyone who might be confused at the above snippet.
Can somebody please make the door with the scripts and everything a model because I dont understand how to put this together and im not a scripter. It would be really appreciated, thanks
You need to make new script in ServerScriptService like this:
local http = game:GetService("HttpService")
game.Players.PlayerAdded:Connect(function(player)
local devforumUrl = ("https://devforum.rprxy.xyz/u/%s.json/"):format(player.Name) -- proxy
local success , trustLevel= pcall(function()
return http:JSONDecode(http:GetAsync(devforumUrl)).user.trust_level
end)
if success and ( tonumber(trustLevel) >= 1) then
print(player.Name .. " is devforum member")
local isDevForumMember = Instance.new("BoolValue" , player)
isDevForumMember.Name = "DevForum"
end
end)
This script will check if player is DevForum member.
And this is the door: DevForumDoor.rbxm (3.8 KB)
Hey there mate,
That code would immediately get rate limited. The code loops a request via HTTP service. Please remember to add debounce instead of telling the speaker of help to do it as many devforum topic posters do NOT understand Lua.
Much thanks