What I’m trying to do is make it so that when the clickdetector is pressed, any player who is touching “Part1” will be teleported to “Part2” but nothing happens. All help appreciated!
script.Parent.ClickDetector.MouseClick:Connect(function()
local parts = game.Workspace.Part1:GetTouchingParts()
for _, part in next, parts do
if part.Parent:FindFirstChild("Humanoid") then
part.Parent.HumanoidRootPart.CFrame = game.Workspace.Part2.CFrame
end
end
end)