R

[lollypophub] teleport to selekted plr

public
rrixh Jul 23, 2024 Never 37
Clone
Plaintext forLollypopHub-teleportToSelektedPlr.xlsx 15 lines (15 loc) | 818 Bytes
1
local player = game.Players.LocalPlayer
2
local targetPlayer = game.Players:FindFirstChild(selektedPlayerName);
3
if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
4
local targetPosition = targetPlayer.Character.HumanoidRootPart.Position
5
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
6
player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPosition)
7
print("“"..selektedPlayerName.."“")
8
else
9
bNotif(3, "ok", "Player or HumanoidRootPart not found")
10
end
11
else
12
bNotif(3, "aight", "Player or their HumanoidRootPart not found")
13
end
14
else
15
bNotif(3, "oh", "No player selekted")