local function OnTouched(hit)
if debounce and enabled and hit then
debounce = false -- no touchy again for a moment
local hint = Instance.new("Hint", workspace)
hint.Text = "Locating Plexus..."
if teleportTarget then
local startPoint = teleportTarget:FindFirstChild("StartPoint")
if startPoint then
local startPointValue = startPoint.Value
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and player.Character and player.Character:FindFirstChild("UpperTorso") then
-- Add player to the team, for tracking
player.Team = Teams:FindFirstChild("Easy")
player.Neutral = false
-- Teleport player to the start point
player:SetPrimaryPartCFrame(CFrame.new(startPointValue))
end
hint.Text = "Entered the " .. teamName .. " Plexus! Find the goal and Good luck!"
end
else
teleportTarget = nil -- Reset the variable to try and locate again
hint.Text = "Plexus not found..."
end
wait(3)
hint:Destroy()
debounce = true
end
end
parent.Touched:Connect(OnTouched)
For some reason, in the IF statement to verify the player and player parts, player is nil. I cannot figure out why.

2 comments
Hints are deprecated. Use actual GUI instead
try putting on line "30" teleportTarget = 0 or nil