Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you follow a player in different games in the same universe?

I want to make a GUI that lets players follow other players. All that they would have to do is enter the username of the character. An example of what I want to do is "Apocalypse Rising".

2 answers

Is the other player in the same server as the player trying to follow them? If so, this should help:

function getPlayerFromUsername(username)
	return game.Players:findFirstChild(username).userId
end

local UnlimitusId = getPlayerFromUsername(Unlimitus) --Will return 43542624, my Id.

Hope this helped.

1 comment

0

Well, I want to be able to do it in a different place. Like I am in Server A and I want to get to my friend who is in a server I don't know. But they are in the same game.

To add to unlimitus you can use a Local Script and put game.Player.LocalPlayer instead of the Players Username

This discussion is preserved as it was. New answers, comments, and votes are closed.