I'm doing a cutscene and I'm interested into moving the humanoid through a script when a part is touched.
This is my code:
game.Workspace.SpawnLocation.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
humanoid:MoveTo(Vector3.new(41.958, 4.264, 66.435))
end)
However the script is not running.