Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
pk008 15
8 years ago

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

Log in to vote
0
Answered by 8 years ago

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

Ad
Log in to vote
0
Answered by
Unlimitus 120
8 years ago

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.

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. pk008 15 — 8y

Answer this question