Essentially, I’m making a script that teleports characterWhoNeedsRescuing's PrimaryPart (in this case, HRP, does this mean that everything else in the character will move with it?) to characterWhoIsRescuing's PrimaryPart.
Problem is, it’s doing as I ask and moving just the HRP, but I’m trying to get the entire character model to move to characterWhoIsRescuing.
local sp = script.Parent
local function setHealth(humanoid, amount)
humanoid.Health = amount
end
rescued = false
sp.MouseClick:Connect(function(clicker)
local characterWhoIsRescuing = workspace:FindFirstChild(clicker.Name)
local characterWhoNeedsRescuing = script.Parent.Parent
local rescueTPPoint = characterWhoIsRescuing.PrimaryPart.Position
characterWhoNeedsRescuing.PrimaryPart.Position = rescueTPPoint
rescued = true
setHealth(characterWhoNeedsRescuing:FindFirstChild("Humanoid"), 100)
sp:Destroy()
end)