local tele = script.Parent.Teleporter
local player = game.Players.LocalPlayer
script.Parent.ClickDetector.MouseClick:Connect(function()
player.Character.HumanoidRootPart.CFrame = tele.CFrame * CFrame.new(0, 3, 0)
end)
The error says 'attempt to index nil with character.
