How do I fix PiviotTo is not a valid member of Model "Workspace.Noob"

Hello,
I want the character to teleport when it touches a part but it doesn’t work. I tried it with the Humanoid, HumanoidRootPart and the character but it all doesnt work.
Here is the script:

local Zipline = game.ReplicatedStorage.Zipline
local Teleporter = game.Workspace.Teleporter
local TeleportNoobTo = game.Workspace.NoobTo
local TeleportZiplineTo = game.Workspace.ZiplineTo

Teleporter.Touched:Connect(function(hit)
	
	local Humanoid = hit.Parent:FindFirstChild("Humanoid")
	
	if Humanoid then
		
		Zipline.Parent = game.Workspace
		Zipline:PivotTo(TeleportZiplineTo:GetPivot())
		
		Humanoid.Parent:PiviotTo(TeleportNoobTo:GetPivot())
		
	end
	
end)

any help is appreciated!

Correcting the typo should work

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.