Hello!I Recently i found a very strange feature in Pls donate!When your friend joins you,he will teleport to you(not teleportservice,just setting cframe,or position to plr who friend with plr that joined)
I didnt tried it yet,but i want to know how to do this,thankyou!
P.S you can test it with your friend in pls donate
there is a function called :IsFriendsWith(UserId) that you can call on the player
so just loop through the players like this
game.Players.PlayerAdded:Connect(function(Player)
for i, v in pairs(game:GetService("Players"):GetPlayers() do
if v == player then continue end
if player:IsFriendsWith(v.UserId) then
-- do ur stuff here
end
end
end)
It works,but sometimes when a friend joined - it wont teleport it to you,like i made,player.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame