I dunno what to do with my teleport script because it dont teleporting player when touched. Output says " Workspace.Portal.PortalPart.Script:5: attempt to index nil with 'Character' ".
This is a script:
local scndChck = game.Workspace.SecondCheck
local function touch(hit)
local player = game.Players.LocalPlayer
player.Character.HumanoidRootPart.CFrame = CFrame.new(scndChck.Position.X,scndChck.Position.Y + 5,scndChck.Position.Z)
end
script.Parent.Touched:Connect(touch)

1 comment
ty