ScriptBlox is undergoing maintenance, so downtime is possible. Sorry for the inconvenience!
Anime Defenders [🗿RAIDS]
64.4k Views

Join player Require script

Anime Defenders [🗿RAIDS]Uploaded by
2 years ago
Please login to perform these actions:

Description

i need auto join player sceipt for farm in hubs these doesnt work and my code doesnt work too Mu code is while wait(5) do local pl = game.Players.LocalPlayer.Character.HumanoidRootPart local Him = game.Players.Myusername local me = game.Players.LocalPlayer.Character.HumanoidRootPart me.CFrame = CFrame.new(Him) end

View Raw
Edited By: Shenanigga Download


Comments
2
User profile picture
DinoZ 2 years ago - Edited
u tryna get "Him" CFrame but u only try to get his "DisplayName?" ( try use real name ), so its like this local Target = "Impostor" -- player name u wanna tp to it here while wait(5) do local me = game.Players.LocalPlayer.Character.HumanoidRootPart me.CFrame = game.Players[Target].Character.HumanoidRootPart.CFrame end
User profile picture
katze7500 2 years ago - Edited
while wait(5) do local Players = game.Players local localPlayer = Players.LocalPlayer local targetPlayer = Players:FindFirstChild("impostor") -- replace "impostor" with the correct username if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") then local me = localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart") if me then me.CFrame = targetPlayer.Character.HumanoidRootPart.CFrame end else warn("Target player or their HumanoidRootPart does not exist.") end end _____Finding the Target Player: Players:FindFirstChild("impostor") will find the player with the username "impostor". Replace "impostor" with the correct username. Checking Existence: The script checks if the target player and their HumanoidRootPart exist. This prevents errors when trying to reference parts that don't exist. Moving the Player: If everything exists, it sets the CFrame of the local player's HumanoidRootPart to the target player's HumanoidRootPart.
Please Login to add a comment.