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!