Hello developers, welcome to my very first post! Today I made a system that allows you to join a specified server by using a link!
Why did I make it?
First, I made that system because nobody did it before
And I made it so you can join a specified server just using an url!
What can you do with it?
You can make cool systems like a report system where the moderation team have to join a specified server
How to use it?
You just have to enter that link in any browser and follow some steps:
https://www.roblox.com/games/start?placeId=16302670534&launchData=[TargetGameId]/[JobId]
Follow these steps:
- Change [TargetGameId] to your game Id
- Change [JobId] to the server JobId
- Youāre done!
Warning : DO NOT change āplaceId=16302670534
ā, only change the things I said
Update for people saying āI did not make itā
I want to clarify that the system I created does not simply involve using the link https://www.roblox.com/games/start?placeId=16302670534
. My system actually allows users to join specific servers by using links containing unique game and server identifiers, known as āTargetGameIdā and āJobIdā. By entering these identifiers into the link, users can conveniently be directed to specific servers. I developed this system to make it easier to access specific servers, and I apologize if this was not clear in my initial post.
Here is how it works:
I made a game and added that script inside ServerScriptService:
local PlayersService = game:GetService("Players")
PlayersService.PlayerAdded:Connect(function(Player)
local JoinData = Player:GetJoinData().LaunchData
print("JoinData:", JoinData)
if JoinData then
local TargetGameId, JobId = string.match(JoinData, "(%d+)/(.+)")
print("TargetGameId:", TargetGameId)
print("JobId:", JobId)
game:GetService("TeleportService"):TeleportToPlaceInstance(TargetGameId, JobId, Player)
else
Player:Kick("You have joined without the ServerJoin link")
end
end)
What it does is that when the player join the game it detects the TargetGameId and the JobID and redirects you to the targetServer
I hope you like it! (Let me know if there is a problem)