Does anyone know the coding to make a Devforum member Only door?

No, you have to send a http request using HttpService.

This would need an external server because you can’t send HTTP requests to a Roblox domain from studio or in-game

1 Like

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
image

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

1 Like

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.

3 Likes

@Amiaa16 went in more depth here and broke it down, for anyone who might be confused at the above snippet.

4 Likes

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)

:wave: 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

2 Likes

Im not too experinced in Js and Json. Where do you find these Json files lol?

1 Like

:beverage_box: Hey there,

This code is in Lua. We use HttpService:JsonEncode() to send a HTTP request in JSON data format.

2 Likes

Yea I know that. What I was trying to say is where do you access the files that store the information about the members, etc.?

Also, Im new to the devfourm, how do you get the programmer title?

Join the groups here:
https://devforum.roblox.com/g

1 Like